/* ======= VARIABLES Y BASE ======= */
:root {
  --primary: #0677c8;
  --primary-light: rgba(6, 119, 200, 0.1);
  --primary-dark: #0564a8;
  --white: #ffffff;
  --gray-light: #f5f7fa;
  --gray-medium: #e1e5eb;
  --gray-dark: #4a5568;
  --black: #1a1a1a;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background-color: var(--white);
  color: var(--black);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  overflow-x: hidden; /* ¡CLAVE! Asegura que nada desborde horizontalmente */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ======= TYPOGRAPHY ======= */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

p {
  margin-bottom: 1rem;
}

/* ======= MODERN HEADER ======= */
/* ======= HEADER PRINCIPAL ======= */
/* Estilos base: Aplican a todas las pantallas, con unidades relativas */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* Permite que se acomode si no cabe */
  padding: 14px clamp(15px, 5vw, 40px); /* Reducido max padding para tablets */
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: padding 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.logo img {
  height: clamp(45px, 6vw, 65px);
  width: auto;
  transition: transform 0.3s ease, height 0.3s ease;
}

.logo img:hover {
  transform: scale(1.02);
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 16px);
  flex-wrap: wrap; /* Evita cortes si no cabe */
}

nav a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: #0677c8;
  font-weight: 500;
  font-size: clamp(0.9rem, 1vw, 1rem);
  padding: 6px 4px;
  border-radius: 6px;
  transition: color 0.3s, background 0.3s, transform 0.2s;
  white-space: nowrap;
}

nav a:hover {
  color: #045fa0;
  background: rgba(6, 119, 200, 0.08);
  transform: translateY(-2px);
}

nav a span.material-icons-round {
  font-size: clamp(1rem, 1vw, 1.1rem);
  transition: transform 0.3s;
}

nav a:hover span.material-icons-round {
  transform: translateY(-1px);
}

.btn-primary {
  background: #0677c8;
  color: #ffffff;
  border: none;
  padding: 8px clamp(12px, 2vw, 18px);
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(0.9rem, 1vw, 1rem);
  transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn-primary:hover {
  background: #0565a8;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* ======= HAMBURGER ======= */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1100;
}

.hamburger .bar {
  width: 24px;
  height: 3px;
  background-color: #0677c8;
  border-radius: 2px;
  transition: all 0.3s;
}

/* --- Responsive Activation --- */

@media (max-width: 992px) {
  .hamburger {
    display: flex;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: clamp(250px, 85vw, 350px);
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 80px 25px 30px;
    gap: 16px;
    transition: right 0.3s ease;
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.08);
    overflow-y: auto;
    box-sizing: border-box;
  }

  nav.show {
    right: 0;
  }

  nav a {
    font-size: clamp(1rem, 3.5vw, 1.2rem);
    padding: 10px 0;
    width: 100%;
    box-sizing: border-box;
  }

  .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 12px;
  }

  .logo img {
    height: clamp(50px, 8vw, 70px);
  }
}

@media (max-width: 576px) {
  header {
    padding: 10px clamp(10px, 4vw, 20px);
  }

  .logo img {
    height: clamp(48px, 10vw, 65px);
  }

  nav {
    width: clamp(220px, 90vw, 300px);
    padding: 70px 20px 25px;
  }

  nav a {
    font-size: clamp(1rem, 4.5vw, 1.2rem);
  }
}

/* Hamburger Animation */
.hamburger.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* ======= MODERN HERO ======= */
/* ==== HERO SECTION SOLO ==== */
.modern-hero {
    position: relative;
    overflow: hidden;
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #005fa3 0%, #0677c8 100%);
    color: #ffffff;
}

.hero-bg-shape {
    position: absolute;
    top: -30%;
    right: -30%;
    width: 160%;
    height: 160%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.07) 0%, transparent 70%);
    transform: rotate(15deg);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 3rem;
}

@media (min-width: 992px) {
    .hero-container {
        flex-direction: row;
        justify-content: space-between;
    }
}

.hero-left {
    flex: 1;
    max-width: 500px;
    text-align: center;
}

@media (min-width: 992px) {
    .hero-left {
        text-align: left;
    }
}

.hero-left h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-left h1 span {
    color: #aee1ff;
}

.hero-left p {
    font-size: 1.2rem;
    color: #e0f1ff;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 992px) {
    .hero-buttons {
        justify-content: flex-start;
    }
}

.btn-primary {
    background: #ffffff;
    color: #005fa3;
    padding: 0.8rem 1.6rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
}

.btn-secondary {
    border: 2px solid #ffffff;
    color: #ffffff;
    padding: 0.8rem 1.6rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
}

/* ==== HERO RIGHT ==== */
.hero-right {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-unframed {
    width: 100%;
    max-width: 500px;
    border-radius: 1rem;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
    animation: glow 6s ease-in-out infinite;
    transition: transform 0.5s ease;
}

.hero-image-unframed:hover {
    transform: scale(1.03);
}

/* ==== FLOATING INFO ==== */
.hero-floating-info {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: #ffffff;
    top: 10%;
    left: 10%;
    animation: float 5s ease-in-out infinite;
}

.hero-floating-info.delay {
    top: auto;
    bottom: 10%;
    right: 10%;
    left: auto;
    animation-delay: 2.5s;
}

/* ==== ANIMATIONS ==== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 30px rgba(255, 255, 255, 0.2); }
    50% { box-shadow: 0 0 50px rgba(255, 255, 255, 0.3); }
}

/* ======= ABOUT US SECTION ======= */
/* ==== TECH VISION SECTION ==== */
/* ================================
   TECH VISION SECTION - MEJORADA
   ================================ */

.tech-vision-section {
    position: relative;
    padding: 4rem 1rem;
    background: #0677c8;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.tech-vision-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.05), transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.05), transparent 50%);
    background-size: 200% 200%;
    animation: subtle-pan 60s linear infinite alternate;
    pointer-events: none;
    z-index: 0;
}

.tech-vision-content {
    max-width: 800px;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 1rem;
}

.tech-vision-content h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #dbeafe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.8rem;
    letter-spacing: -0.02em;
    transition: transform 0.3s ease;
}

.tech-vision-content h2:hover {
    transform: scale(1.03);
}

.tech-vision-content p {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: #f0f9ff;
    max-width: 550px;
    margin: 0 auto 2rem auto;
    line-height: 1.6;
    opacity: 0.95;
}

.tech-pillars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .tech-pillars {
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
    }
}

.pillar-item {
    flex: 1;
    min-width: 180px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.8rem;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.pillar-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.pillar-item:hover::before {
    opacity: 1;
}

.pillar-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.pillar-item h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff, #dbeafe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.pillar-item:hover h3 {
    transform: scale(1.05);
}

.pillar-item p {
    font-size: 0.9rem;
    color: #f0f9ff;
    line-height: 1.4;
    opacity: 0.95;
}

/* ================================
   ANIMATIONS
   ================================ */
@keyframes subtle-pan {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}






/* ==== TECH PORTFOLIO SECTION ==== */
.tech-portfolio-section {
    padding: 3rem 1rem;
    background: #ffffff;
    color: #0f172a;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tech-portfolio-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    background: #0677c8;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.tech-portfolio-header p {
    font-size: 1.1rem;
    color: #475569;
    max-width: 600px;
    margin: 0 auto 3rem auto;
    line-height: 1.6;
}

.tech-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    width: 100%;
}

.tech-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background: #f8fafc;
}

.tech-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
    border-radius: 1rem;
}

.tech-card:hover img {
    transform: scale(1.05);
    filter: brightness(0.9);
}

.tech-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 1rem;
    transition: background 0.4s ease;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
}

.tech-card:hover .tech-card-content {
    background: rgba(255, 255, 255, 0.95);
}

.tech-card-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.tech-card-content p {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.4;
}


/* ======= SECTORS SECTION ======= */
.sectors-section {
  padding: clamp(4rem, 8vw, 6rem) 5%;
  background-color: var(--white);
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.sector-card {
  background-color: var(--white);
  border-radius: 0.8rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--gray-medium);
}

.sector-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.card-header {
  padding: 1.5rem;
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.card-icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--primary);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
}

.card-title {
  font-size: 1.2rem;
  color: var(--black);
  margin: 0;
}

.card-content {
  padding: 1.5rem;
}

.sector-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.sector-list li {
  padding: 0.5rem 0;
  color: var(--gray-dark);
  position: relative;
  padding-left: 1.5rem;
}

.sector-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1rem;
  width: 0.6rem;
  height: 0.6rem;
  background-color: var(--primary);
  border-radius: 50%;
}

.sector-stats {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* -- */
.about-section {
    background: #ffffff;
    padding: 5rem 2rem;
    display: flex;
    justify-content: center;
}

.about-container {
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    width: 100%;
    flex-wrap: nowrap; /* mantiene lado a lado */
}

.about-content {
    flex: 1;
    max-width: 600px;
}

.section-header .section-pre-title {
    color: #2563eb;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.section-header .section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
}

.section-header .section-description {
    font-size: 1.05rem;
    color: #475569;
    max-width: 550px;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 1rem;
    border-radius: 0.75rem;
}

.feature-item:hover {
    background: #f8fafc;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.feature-icon {
    background: #2563eb;
    color: #ffffff;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.feature-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.feature-text {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.5;
}

.about-image-container {
    flex: 1;
    max-width: 500px;
    text-align: center;
}

.about-image {
    width: 100%;
    max-width: 100%;
    border-radius: 1rem;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transition: transform 0.4s ease;
}

.about-image:hover {
    transform: scale(1.03);
}

/* Tablet: mantiene lado a lado en iPad Air y similares */
@media (max-width: 1024px) {
    .about-container {
        gap: 2rem; /* menor separación */
    }
    .about-content,
    .about-image-container {
        flex: 1;
        max-width: 50%; /* fuerza mitad-mitad */
    }
    .about-image {
        max-width: 100%;
    }
}

/* Mobile: pasa a columna */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .about-content,
    .about-image-container {
        max-width: 100%;
    }
}

/* ======= TESTIMONIALS SECTION ======= */
.testimonials-section {
  padding: clamp(4rem, 8vw, 6rem) 5%;
  background-color: var(--white);
}

.testimonials-carousel {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonial-item {
  background-color: var(--white);
  border-radius: 0.8rem;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-medium);
  margin-bottom: 2rem;
}

.testimonial-content {
  position: relative;
  margin-bottom: 1.5rem;
}

.quote-icon {
  position: absolute;
  top: -1rem;
  left: -1rem;
  color: var(--primary-light);
  font-size: 3rem;
  opacity: 0.5;
}

.testimonial-text {
  font-size: 1.1rem;
  color: var(--gray-dark);
  font-style: italic;
  position: relative;
  z-index: 2;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-image {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  overflow: hidden;
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info {
  flex: 1;
}

.author-name {
  font-size: 1.1rem;
  color: var(--black);
  margin-bottom: 0.2rem;
}

.author-title {
  font-size: 0.9rem;
  color: var(--gray-dark);
  margin-bottom: 0.5rem;
}

.author-rating {
  color: var(--primary);
  display: flex;
  gap: 0.2rem;
}

/* ======= CTA SECTION ======= */
.cta-section {
  background: linear-gradient(135deg, #0677c8 0%);
  color: #ffffff;
  padding: clamp(2rem, 6vw, 4rem) 5%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cta-container {
  text-align: center;
  max-width: 600px;
  padding: 1rem;
}

.cta-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.cta-text {
  font-size: 1rem;
  opacity: 0.9;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.btn-primary {
  background: #0677c8;
  color: white;
  border: none;
  border-radius: 0.5rem;
  padding: 0.7rem 1.2rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  background: #f5f5f5;
  transform: translateY(-2px);
}

.btn-primary:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}



/* ======= FOOTER ======= */
.footer {
  background: #0677c8;
  color: #ffffff;
  padding: 3rem 5% 2rem;
  font-family: 'Inter', sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.footer-column h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.footer-column h4 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.footer-column p {
  opacity: 0.9;
  line-height: 1.6;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column a:hover {
  color: #ffffff;
}

.newsletter-form {
  display: flex;
  margin-top: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.5rem 0.8rem;
  border: none;
  border-radius: 0.3rem 0 0 0.3rem;
  font-size: 0.9rem;
}

.newsletter-form button {
  background: #ffffff;
  color: #0677c8;
  border: none;
  padding: 0 1rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 0 0.3rem 0.3rem 0;
  transition: background 0.3s;
}

.newsletter-form button:hover {
  background: #f0f0f0;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ======= RESPONSIVENESS ======= */
@media (max-width: 1200px) {
  .features-content,
  .cta-container {
    flex-direction: column;
    text-align: center;
  }
  
  .features-list {
    align-items: center;
  }
  
  .feature-item {
    max-width: 500px;
  }
  
  .cta-buttons {
    justify-content: center;
  }
}

@media (max-width: 992px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .title-highlight::after {
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
  }
  
  .process-steps {
    max-width: 600px;
  }

  .carousel-nav {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.2rem;
  }

  .prev {
    left: 0.5rem;
  }

  .next {
    right: 0.5rem;
  }

  .portfolio-item {
    flex: 0 0 calc(50% - 0.75rem);
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }
  
  .logo-text {
    display: block; /* Muestra el texto del logo en móvil */
    font-size: 1.1rem; /* Ajusta el tamaño para que quepa mejor */
  }
  
  .hero-cta,
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-primary,
  .btn-secondary,
  .btn-outline {
    width: 100%;
    justify-content: center;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-line {
    left: 1.5rem; 
  }
  .step-item {
    padding-left: 3.5rem;
  }
  .step-number {
    left: 0; 
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.3rem;
  }

  .portfolio-item {
    flex: 0 0 100%;
  }
  
  .carousel-track {
    scroll-padding-left: 0;
    gap: 1rem;
  }

  /* Ajustes específicos para evitar que la sección de Partners se suba */
  .partners-section {
    margin-top: 0; /* Asegura que no haya márgenes negativos no deseados */
    padding-top: clamp(2rem, 5vw, 3rem); /* Ajusta el padding superior para móviles */
  }

  /* Asegurarse de que el header no tenga ningún "padding-right" oculto o similar que empuje */
  .sticky-header {
    padding-right: 5%; /* Mantiene el padding consistente en ambos lados */
  }
  .header-container {
    /* Aquí no deberían necesitarse más cambios, flexbox ya hace un buen trabajo */
  }
}
.btn-outline-primary {
  background: #ffffff;              /* fondo blanco */
  color: #0677c8;                   /* texto azul */
  border: 2px solid #0677c8;        /* borde azul */
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  transition: background 0.3s, color 0.3s, transform 0.2s, box-shadow 0.2s;
}

.btn-outline-primary:hover {
  background: #0677c8;              /* azul en hover */
  color: #ffffff;                   /* texto blanco en hover */
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0,0,0,0.1);
}


@media (max-width: 576px) {
  .stats-content {
    grid-template-columns: 1fr;
  }
  
  .testimonial-author {
    flex-direction: column;
    text-align: center;
  }
  
  .author-info {
    text-align: center;
  }
  
  .author-rating {
    justify-content: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .legal-links {
    justify-content: center;
  }

  .logo-text {
    font-size: 1rem;
  }
}

.video-section {
  padding: clamp(4rem, 8vw, 6rem) 5%;
  background: linear-gradient(135deg, #f9fbfc 0%, #eef3f8 100%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-container {
  max-width: 900px;
  width: 100%;
  text-align: center;
}

.video-title {
  font-size: clamp(2rem, 5vw, 2.6rem);
  color: #0677c8; /* azul corporativo profundo */
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.25;
  letter-spacing: -0.5px;
}

.video-text {
  font-size: 1.125rem;
  color: #444;
  margin-bottom: 2.2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-wrapper:hover {
  transform: scale(1.015);
  box-shadow: 0 16px 32px rgba(0,0,0,0.12);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 1rem;
}

/* Animación al aparecer */
@media (prefers-reduced-motion: no-preference) {
  .video-section {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeSlideIn 0.8s ease-out forwards;
  }

  @keyframes fadeSlideIn {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}


/* ======= ANIMATIONS AND EFFECTS ======= */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade {
  animation: fadeIn 0.8s ease forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Glow on hover effect for buttons and cards */
.glow-on-hover {
  position: relative;
  overflow: hidden;
}

.glow-on-hover::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 35%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 65%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.glow-on-hover:hover::before {
  opacity: 1;
  animation: shine 1.5s ease infinite;
}

@keyframes shine {
  0% { left: -50%; top: -50%; }
  100% { left: 150%; top: 150%; }
}

/* Wave effect in the footer */
.wave-effect {
  position: relative;
  overflow: hidden;
}

.wave-effect::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.wave-effect:hover::after {
  opacity: 1;
}

/* Accessibility for Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .animate-fade,
  .floating-element,
  .floating-tag,
  .glow-on-hover::before,
  .wave-effect::after {
    animation: none !important;
    transition: none !important;
  }
}

.portfolio-section {
  padding: clamp(4rem, 8vw, 6rem) 5%;
  background-color: var(--gray-light);
}

.portfolio-carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  background-color: var(--white);
  border: none;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: var(--transition);
}

.carousel-nav:hover {
  background-color: var(--primary);
  color: var(--white);
}

.prev {
  left: -1.5rem;
}

.next {
  right: -1.5rem;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  padding: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 1rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.portfolio-item {
  flex: 0 0 calc(33.333% - 1rem);
  min-width: 280px;
  scroll-snap-align: start;
  background-color: var(--white);
  border-radius: 0.8rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.portfolio-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-image img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(6, 119, 200, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-content {
  padding: 1.5rem;
}

.portfolio-badge {
  display: inline-block;
  background-color: var(--primary-light);
  color: var(--primary);
  padding: 0.3rem 0.8rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.portfolio-title {
  font-size: 1.2rem;
  color: var(--black);
  margin-bottom: 0.5rem;
}

.portfolio-description {
  color: var(--gray-dark);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.portfolio-stats {
  display: flex;
  gap: 1rem;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--gray-dark);
  
}


.tech-impact-section {
    background: #ffffff;
    padding: 8rem 2rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.tech-impact-section::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(6, 119, 200, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.tech-impact-container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.tech-impact-title {
    font-size: clamp(2.2rem, 6vw, 3rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.tech-impact-title span {
    background: linear-gradient(90deg, #0677c8, #005fa3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tech-impact-description {
    font-size: 1.15rem;
    color: #475569;
    max-width: 600px;
    line-height: 1.6;
}

.tech-impact-button {
    background: linear-gradient(135deg, #0677c8, #005fa3);
    color: #ffffff;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-impact-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(6, 119, 200, 0.3);
}
