/*
  Base y Estructura
*/
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
}

h1, h2, h3 {
    margin-top: 0;
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    text-align: center;
    color: #f16200;
    padding-bottom: 5px;
}

p {
    font-weight: 400;
    margin-bottom: 1em;
}

.steps h2, .logos h2 {
  padding-top: 20px;
  padding-bottom: 20px;
}

/* Contenedor general para las secciones principales */
.section-container {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/*
  ========= NAVBAR (único y final) =========
*/

/* Barra */
nav{
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  background: linear-gradient(90deg, rgba(241,98,0,1) 0%, rgba(237,128,55,1) 20%, rgba(243,177,131,1) 36%, rgba(245,245,245,1) 51%);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 48px;       /* aire al borde derecho */
  box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
  overflow: visible;
}

/* Logo */
.logo{
  display: flex; align-items: center; justify-content: center;
  width: 40%;               /* da más espacio a los links */
  color:#fff; font-weight: bold;
  font-size: 5px;
}
.logo img{ width:100px; max-width:100%; }
@media (max-width:1024px){ .logo img{ width:100px; } }
@media (max-width:768px){  .logo img{ width:90px;  } }

/* Links principales */
.nav-links{
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0 16px 0 0;      /* colchón interno a la derecha */
  white-space: nowrap;
}
.nav-links li{ display: inline; }

/* Enlaces con iconos */
.nav-links li a{
  display: inline-flex;
  align-items: center;
  gap: 8px;                 /* espacio ícono-texto */
  text-decoration: none;
  font-weight: bold;
  font-size: 10.9px;
  color: #1a3669;
  transition: transform .3s ease-in-out, color .3s ease-in-out;
  padding: 0 4px;
}
.nav-links li:last-child a{ padding-right: 18px; }  /* último con más aire */

.nav-links li a:hover{
  transform: translateY(-5px);
  color:#f26700;
  animation:bounce .5s ease-in-out;
}
.nav-links li a:active{ transform: scale(.95); }

@keyframes bounce{
  0%{transform:translateY(0);}
  50%{transform:translateY(-8px);}
  100%{transform:translateY(-5px);}
}

/* Hamburguesa (oculta en desktop) */
.menu-toggle{
  display: none;
  font-size: 30px;
  cursor: pointer;
  color: #f16200;
  background: transparent;
}

/* --- Responsive --- */
@media (max-width:768px){
  nav{ padding: 14px; }

  .menu-toggle{
    display: block;
    position: absolute;
    right: 12px; top: 10px;
    width: 44px; height: 44px;
    line-height: 44px; text-align: center;
    z-index: 1001;
  }

  .nav-links{
    display: none;
    flex-direction: column;
    background: #ffffff;
    position: absolute;
    top: 60px; left: 0; right: 0;
    text-align: center;
    padding: 20px 0;
    box-shadow: 10px 2px 0px rgba(0,0,0,0.219);
    z-index: 1000;
  }
  .nav-links.active{ display: flex; }
}
/* ======== FIN NAVBAR ======== */

/*
  Hero Section
*/
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: -webkit-linear-gradient(90deg, #ff0000,#ff8c00,#ffd000);
    background: linear-gradient(90deg, #ff5e00,#ff8c00,#ffd000);
    color: white;
    text-align: center;
    padding: 50px 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-text { max-width: 500px; }
.hero-text h1 { font-size: 2.2em; padding-top: 40px; }
.hero-image img { max-width: 190px; border-radius: 20px; margin-top: 20px; }
.hero-buttons { display: flex; flex-direction: column; gap: 15px; margin-top: 25px; }

/*
  Botones Reutilizables
*/
.btn {
    padding: 12px 24px;
    border-radius: 36px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn-green { background: #22c55e; color: white; border: none; }
.btn-green:hover { background: #16a34a; }
.btn-outline { border: 2px solid white; background: transparent; color: white; }
.btn-outline:hover { background: white; color: #f16200; }
.btn-download { padding: 15px 25px; background-color: #1a3669; color: white; border-radius: 16px; margin-top: 15px; font-size: 1em; }

/*
  Sección de Beneficios (Cards)
*/
.benefits {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 24px;
}
.card-inner { position: relative; width: 100%; height: 100%; min-height: 250px; text-align: center; transition: transform 0.8s; transform-style: preserve-3d; }
.card:hover .card-inner { transform: rotateY(180deg); }
.card-front, .card-back { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 20px; border-radius: 15px; box-sizing: border-box; }
.card-front { background-color: #fff; color: black; box-shadow: 0 4px 8px rgba(36, 36, 36, 0.2); }
.card-front img { height: 80px; margin-bottom: 10px; }
.card-back { background-color: #f16200; color: white; transform: rotateY(180deg); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); }

/*
  Sección de Pasos
*/
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.step { background: white; padding: 25px; border-radius: 15px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); text-align: center; transition: transform 0.3s ease-in-out; }
.step:hover { transform: translateY(-15px); }
.step img { height: 90px; object-fit: contain; margin-bottom: 15px; }

/*
  Sección de Logos
*/
.logos-grid {
    overflow: hidden;
    white-space: nowrap;
    padding: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}
.slider-track { display: flex; animation: slide 30s linear infinite; }
.logos-grid:hover .slider-track { animation-play-state: paused; }
.slider-track img { height: 40px; margin: 0 15px; opacity: 0.7; transition: 0.3s; }
.slider-track img:hover { opacity: 1; }

@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-100px * 5)); }
}

/*
  Sección CTA
*/

.cta {background:linear-gradient(90deg,rgba(43, 78, 143, 1) 0%, rgba(26, 54, 105, 1) 35%, rgba(18, 36, 64, 1) 100%); color: white; text-align: center; padding: 60px 20px; }
/*
  Footer
*/
.unique-footer {
    background: linear-gradient(90deg,rgba(241, 98, 0, 1) 0%, rgba(255, 179, 128, 1) 50%, rgba(255, 150, 123, 1) 100%);
    z-index: 1000;
    box-shadow: 0px -10px 50px rgba(0, 0, 0, 0.3);
    color: white;
    padding: 30px 10%;
    text-align: left;
}

.unique-footer-container {
    display: flex;
    flex-direction: column;
}

.datosFooter {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.datosFooter li {
    padding: 10px;
    box-sizing: border-box;
}

.datosFooter h5 {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0 0 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.datosFooter p {
    margin: 0;
    font-size: 1rem;
}

.datosFooter a {
    color: white;
    font-weight: bold;
    text-decoration: none;
    transition: opacity 0.3s ease-in-out;
}

.datosFooter a:hover {
    opacity: 0.7;
}

#socialNetwork {
    display: flex;
    flex-direction: column;
}

#socialNetwork a {
    display: inline-block;
    margin-right: 10px;
    font-size: 1.2rem;
}

.unique-footer-bottom {
    margin-top: 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    padding-top: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .datosFooter {
        grid-template-columns: 1fr 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .unique-footer {
        padding: 30px 5%;
    }

    .datosFooter {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .unique-footer-title {
        font-size: 1.3rem;
    }

    .unique-footer-text,
    .datosFooter p {
        font-size: 0.9rem;
    }

    #socialNetwork a {
        font-size: 1rem;
    }
}


/*
  Media Queries (Responsivo)
*/
@media (max-width: 768px) {

    .hero {
      padding: 10px 20px;
    }
    .hero-text h1 {
        font-size: 2em;
    }
    .hero-buttons {
      flex-direction: column;
      gap: 15px;
    }
    .hero-image img {
        max-width: 200px;
    }
}

/* Tabletas y pantallas medianas (768px y más) */
@media (min-width: 768px) {
    .section-container { padding: 80px 40px; }
    .hero { flex-direction: row; text-align: left; padding: 100px 40px; }
    .hero-text h1 { font-size: 2.5em; }
    .hero-image { margin-left: 50px; }
    .hero-image img { max-width: 350px; }
    .hero-buttons { flex-direction: row; }
    .benefits { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .slider-track img { height: 60px; margin: 0 20px; }
    .social-icons { justify-content: flex-start; }
}

/* Escritorio (1024px y más) */
@media (min-width: 1024px) {
    .section-container { padding: 100px 60px; }
    .hero { padding-top: 1px; padding-bottom: 10px; margin-bottom: 40px; }
    .hero-text h1 { padding-top: 50px; font-size: 2.9em; padding-bottom: 1px; }
    .hero-image img { max-width: 350px; }
    .hero-buttons { padding-top: 0px; }
    .hero p { font-size: 1.2em; padding-bottom: 1px; }
    .benefits { grid-template-columns: repeat(3, 1fr); gap: 40px; padding-bottom: 50px; padding-left: 130px; padding-right: 130px; }
    .steps-grid { grid-template-columns: repeat(4, 1fr); gap: 40px; padding-left: 130px; padding-right: 130px; }
    .step img { height: 150px; width: 150px; }
    .slider-track img { height: 70px; margin: 0 20px; }

}

/* Dropdown general */
.dropdown {
  position: relative;
}

 .dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  padding: 1rem 0;
  min-width: 220px;
  border: 1px solid #ccc;
  border-radius: 10px;
  z-index: 9999;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.nav-links .dropdown-content li {
  list-style: none;
  text-align: center;
}

.nav-links .dropdown-content li a {
  display: block;
  padding: 0.5rem 1rem;
  color: #333;
  text-decoration: none;
}

.nav-links .dropdown-content li a:hover {
  background: #f0f0f0;
}

/* Mostrar al hacer hover */
.nav-links .dropdown:hover .dropdown-content {
  display: block;
}

@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
  }

  .nav-links .dropdown-content {
    position: static;
    background: #fff;
    border: none;
    box-shadow: none;
    display: none;
  }

  .nav-links .dropdown-content.show {
    display: block;
  }
}

.navbar {
    background: #ff6600;
    padding: 15px;
    text-align: center;
}

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

.navbar ul li {
    display: inline;
    margin: 0 15px;
}

.navbar ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
}



/* FAQ */
.faq {
  padding: 60px 20px;
  text-align: center;
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.faq-item {
  background: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.faq-item h3 {
  color: #1a3669;
  margin-bottom: 10px;
}

/* Comparativa */
.comparison {
  padding: 60px 20px;
  text-align: center;
  border-radius: 16px;
}

.comparison table {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-collapse: collapse;
  border-radius: 50px;
}
.comparison th, .comparison td {
  border: 2px solid #ddd;
  padding: 12px;
  border-radius: 16px;
}
.comparison th {
  background: #1a3669;
  color: white;
  border-radius: 12px;
}
.comparison td {
  background: white;
  border-radius: 16px;
}

/* Sección base */
.testimonials {
  padding: 60px 20px;
  background: linear-gradient(to right, #f16200, #ffc400);
  text-align: center;
}
.testimonials h2 {
  font-size: 28px;
  margin-bottom: 30px;
  color: white;
}

/* Contenedor del slider */
.testimonial-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  height: 220px;
  overflow: hidden;
}

/* Cada par ocupa todo el espacio */
.testimonial-pair {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;

  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlide 25s infinite;
}

/* Animación para pares */
@keyframes fadeSlide {
  0%, 10%   { opacity: 1; transform: translateY(0); }
  20%, 100% { opacity: 0; transform: translateY(20px); }
}

.testimonial-pair:nth-child(1) { animation-delay: 0s; }
.testimonial-pair:nth-child(2) { animation-delay: 5s; }
.testimonial-pair:nth-child(3) { animation-delay: 10s; }
.testimonial-pair:nth-child(4) { animation-delay: 15s; }
.testimonial-pair:nth-child(5) { animation-delay: 20s; }

/* Estilo individual de testimonios */
.testimonial {
  background: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.09);
  font-style: italic;
}
.testimonial span {
  display: block;
  margin-top: 10px;
  font-weight: bold;
  color: #1a3669;
  font-style: normal;
}

/* Responsive: en móvil, 1 por turno */
@media (max-width: 768px) {
  .testimonial-pair { grid-template-columns: 1fr; }
  .testimonials { padding-bottom: 60px; margin-bottom: 50px; }
}

/* Responsivo para estas secciones */
@media (max-width: 1024px) {
  .faq-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .faq-grid { grid-template-columns: 1fr; }
}

/* Ajuste para móvil: altura automática */
@media (max-width: 768px) {
  .testimonial-slider {
      height: 360px;
    position: relative;
    overflow: hidden;
  }

  .testimonial-pair {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideMobile 25s infinite;
  }
}

@keyframes fadeSlideMobile {
  0%, 10%   { opacity: 1; transform: translateY(0); }
  20%, 100% { opacity: 0; transform: translateY(20px); }
}

:root {
  --linntae-orange: #ED6C2B;
  --linntae-light: #FFE6D5;
  --otrasmarcas-blue: #4F67A2;
  --otrasmarcas-light: #D5DBEB;
}

.info-extra{
  display: grid;
  grid-template-columns: 1fr 300px;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.info-extra img{
  width: 100%;
  height: auto;
  max-width: 360px;
  justify-self: end;
}

@media (max-width: 768px){
  .info-extra{
    grid-template-columns: 1fr;
    text-align: center;
  }
  .info-extra img{
    justify-self: center;
    max-width: 240px;
  }
}

.comparison-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  padding-bottom: 60px;
}
.column {
  flex: 1 1 300px;
  max-width: 600px;
  border-radius: 16px;
  overflow: hidden;
  background: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.column h2 {
  margin: 0;
  padding: 1rem;
  font-size: 1.5rem;
  color: white;
  text-align: center;
}
.linntae h2 { background: var(--linntae-orange); }
.otras-marcas h2 { background: var(--otrasmarcas-blue); }
.features { display: flex; flex-direction: column; }
.feature {
  padding: 1rem;
  border-bottom: 1px solid #ddd;
  text-align: center;
}
.linntae .feature:nth-child(odd) { background-color: var(--linntae-light); }
.otras-marcas .feature:nth-child(odd) { background-color: var(--otrasmarcas-light); }

@media (max-width: 768px) {
  .comparison-container {
    flex-direction: column;
    align-items: stretch;
    padding-left: 10px;
    padding-right: 10px;
  }
  .column, .features {
    height: auto;
    overflow: visible;
  }
}

/* === NAV: anti-recorte del último link === */
nav{
  /* más aire en el borde derecho; usa un valor adaptable */
  padding-right: clamp(48px, 5vw, 72px);
}

.logo{
  /* libera un poco más de espacio para los links */
  width: 35%;
}

/* el ul sigue siendo flex; añadimos un “espaciador” al final */
.nav-links {
  flex: 1 1 auto;
  justify-content: flex-start;
  gap: 14px; /* un poquito más de espacio entre cada link */
  padding-left: 20px;                /* <--- empuja todo hacia la derecha */
  padding-right: clamp(10px, 1.5vw, 16px);
  overflow: visible;
}

/* espaciador invisible al final para que nunca “raspe” */
.nav-links::after{
  content: "";
  display: block;
  flex: 0 0 24px;                      /* reserva espacio fijo */
}

/* ya no necesitamos empujar tanto solo el último link */
.nav-links li:last-child a{
  padding-right: 8px;
}

/* === NAV MOBILE: botón siempre visible y panel pegado (override final) === */
@media (max-width: 768px){
  :root{
    --nav-h-mobile: 60px;   /* alto del navbar en móvil */
    --nav-gap: 8px;         /* separación bajo el nav */
  }
  .nav-links {
    padding: 8px 0;        /* menos padding vertical */
    margin: 0;             /* asegura que no haya margen fantasma */
  }

  .nav-links li:last-child a {
    margin-bottom: 0;      /* por si los <a> tienen margen */
    padding-bottom: 8px;   /* uniforme con los demás */
  }


  /* Barra fija a todo el ancho, con aire para el botón */
  nav{
    position: fixed;
    top: 0; left: 0; right: 0;
    min-height: var(--nav-h-mobile);
    padding: 12px 34px 12px 14px; /* deja 64px a la derecha para el botón */
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 5000;          /* por encima del contenido */
    overflow: visible;
  }

  /* BOTÓN: fijo (no depende del layout del nav) y arriba del panel */
  .menu-toggle{
    display: block !important;
    position: fixed;        /* ← clave para que no “desaparezca” */
    top: 12px;
    right: 12px;
    width: 36px; height: 36px;
    line-height: 36px; text-align: center;
    color: #f16200;
    background: transparent;
    z-index: 6000;          /* > nav-links y > nav */
  }

  /* PANEL: fijo, pegado justo debajo del nav, ancho completo */
  .nav-links{
    position: fixed;
    top: calc(var(--nav-h-mobile) + var(--nav-gap));
    left: 0; right: 0;      /* mejor que width:100% */
    display: none;
    flex-direction: column;
    background: #fff;
    text-align: center;
    padding: 12px 0 16px;
    box-shadow: 0 8px 16px rgba(0,0,0,.12);
    z-index: 5500;          /* debajo del botón, encima del contenido */
    max-height: calc(100vh - (var(--nav-h-mobile) + var(--nav-gap)));
    overflow: auto;
    border: 0; border-radius: 0;
  }
  .nav-links.active{ display: flex; }

  /* Toque cómodo en items */
  .nav-links li a{ padding: 12px 16px; }

  /* Contenido separado del nav fijo */
  body{ padding-top: calc(var(--nav-h-mobile) + var(--nav-gap)); }
}

html { scroll-behavior: smooth; }

/* Altura del navbar para que no tape la ancla */
:root{
  --nav-h-desktop: 74px;  /* ajusta si tu nav mide distinto */
  --nav-h-mobile: 60px;
}

/* La sección destino se detiene con margen superior virtual */
#steps {
  scroll-margin-top: var(--nav-h-desktop);
}

@media (max-width: 768px){
  #steps {
    scroll-margin-top: var(--nav-h-mobile);
  }
}
