:root {
  --azul-oscuro: #142850;
  --azul-petroleo: #27496d;
  --azul-celeste: #009ffd;
  --gris-fondo: #f7f7f7;
  --blanco: #fff;
  --overlay-dark: rgba(24, 24, 24, 0.80);
  --overlay-light-gray: rgba(247, 247, 247, 0.80);
  --naranja: #ff7f1f;
}

html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--blanco);
  scroll-behavior: smooth;
  width: 100vw;
  min-width: 100vw;
  max-width: 100vw;
  overflow-x: hidden;
  height: 100%;
}

body {
  min-height: 100vh;
  width: 100vw;
  height: 100%;
}

/* HEADER */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  background: var(--blanco);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  z-index: 1001;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.header-content {
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  min-height: 72px;
}

.logo-favicon img {
  height: 60px;
  object-fit: contain;
}

nav {
  display: flex;
  align-items: center;
}

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 40px;
  font-size: 1.08rem;
  font-weight: 500;
}

.menu-list li a {
  color: #222;
  text-decoration: none;
  padding: 12px 0;
  transition: color .15s;
}

.menu-list li a:hover {
  color: var(--azul-petroleo);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  cursor: pointer;
  color: var(--azul-petroleo);
  z-index: 1002;
}

@media (max-width: 1024px) {
  .menu-list {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 260px;
    background: var(--blanco);
    box-shadow: -2px 0 18px rgba(0,0,0,.13);
    flex-direction: column;
    align-items: flex-end;
    padding: 100px 18px 0 0;
    gap: 30px;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4,2,.6,1);
  }

  .menu-list.open {
    transform: translateX(0);
    display: flex;
  }

  .menu-list li {
    width: 100%;
    text-align: right;
  }

  .menu-list li a {
    font-size: 1.15rem;
    padding: 10px 0;
  }

  .menu-toggle {
    display: block;
  }
}

/* SNAP CONTAINER */
.snap-container {
  padding-top: 72px;
}

/* SECCIONES */
section {
  width: 100vw;
  min-width: 100vw;
  max-width: 100vw;
  min-height: calc(100vh - 72px);
  height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border-bottom: 1.5px solid #eee;
  box-sizing: border-box;
  position: relative;
}

.section-content {
  align-items: center;
  text-align: center;
  width: 100vw;
  padding: 70px 24px 40px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

/* BOTÓN */
.inicio-btn {
  background: var(--azul-celeste);
  color: #fff;
  border: 2px solid var(--azul-celeste);
  padding: 18px 38px;
  border-radius: 32px;
  font-size: 1.18rem;
  font-weight: 600;
  box-shadow: 0 3px 16px rgba(0,0,0,0.07);
  cursor: pointer;
  transition: background .18s, border-color .18s;
  display: inline-block;
  text-decoration: none;
  margin-top: auto;
  margin-bottom: 150px;
  align-self: center;
  position: relative;
  z-index: 3;
}
.btn-inicio_escritorio { margin-bottom: 30px; }
.btn-funciona_escritorio { margin-bottom: 30px; }
.btn-precio_escritorio { margin-bottom: 90px; }
.btn-nosotros_escritorio { margin-bottom: 90px; }
.btn-testimonios_escritorio { margin-bottom: 80px; }

.inicio-btn:hover,
.inicio-btn:focus {
  background: var(--azul-petroleo);
  border-color: var(--azul-petroleo);
}

/* ============== */
/* SECCIÓN INICIO */
/* ============== */

#inicio {
  background-image: url('imagen/inicio.png');
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-height: 100 vh;
  height: calc(100vh - 72px);
}

#inicio .inicio-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--overlay-dark);
  z-index: 1;
}

#inicio .section-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  text-align: center;
  padding: 0 24px;
  height: 100%;
}

.inicio-titulo {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 28px;
  letter-spacing: .01em;
}

.inicio-texto {
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 640px;
  margin-bottom: 24px;
}

.inicio-aviso {
  font-size: 1.08rem;
  margin-top: 14px;
  letter-spacing: .02em;
}

/* ====================== */
/* SECCIÓN CÓMO FUNCIONA  */
/* ====================== */

#como-funciona {
  background: var(--gris-fondo);
  background-image: url('imagen/funciona.png');
  background-size: cover;
  background-position: center;
  color: var(--azul-oscuro);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 100vh;
  overflow-y: hidden;
}

#como-funciona .como-funciona-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--overlay-light-gray);
  z-index: 1;
}

.como-funciona-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  max-width: 900px;
  width: 100%;
  padding: 40px 20px 80px;
  box-sizing: border-box;
  z-index: 2;
}

.como-funciona-wrapper .inicio-titulo {
  margin-bottom: 10px;
  color: var(--azul-oscuro);
  font-size: 2.5rem;
}

.guard-image-container-desktop {
  position: absolute;
  width: 100%;
  height: 280px;
  display: flex;
  justify-content: left;
  align-items: flex-end;
  margin-bottom: 0px;
  z-index: 3;
}

.guard-full {
  width: 300px;
  height: auto;
  display: block;
  margin-left: -160px;
  margin-top: 250px;
}

.guard-torso-mobile,
.guard-pies-mobile {
  display: none;
}

.interactive-card {
  position: absolute;
  width: 100%;
  max-width: 500px;
  height: auto;
  min-height: 220px;
  margin-bottom: 20px;
  background: var(--blanco);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
  top: 0;
  margin: 40px 0 20px;
}

.tab-content {
  flex: 1;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.tab-content.active {
  display: flex;
}

.tab-content h3 {
  margin-bottom: 10px;
  color: var(--azul-oscuro);
  font-size: 1.5rem;
}

.tab-content p {
  margin: 0;
}

.tab-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px 0;
}

.tab-buttons button {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 6px;
  background: var(--gris-fondo);
  color: var(--azul-oscuro);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-weight: 600;
}

.tab-buttons button.active {
  background: var(--naranja);
  color: var(--blanco);
}


/* OTRAS SECCIONES */
#precio {
  background: var(--azul-celeste);
  color: #fff;
}

#nosotros {
  background: var(--gris-fondo);
}

#testimonios {
  background: #f0f6fb;
}

#contacto {
  background: var(--blanco);
}

/* ================================ */
/* SECCIÓN CÓMO FUNCIONA RESPONSIVE */
/* ================================ */

@media (max-width: 800px) {
  .snap-container {
    scroll-snap-type: y mandatory;
    scroll-padding-top: 72px;
    overflow-y: auto;
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
  }

  section {
    scroll-snap-align: start;
    height: 100vh;
    min-height: 100vh;
    padding: 0 5vw;
  }

  .section-content {
    justify-content: flex-start !important;
    padding: 36px 5vw 24px 5vw;
  }

  body {
    display: block;
  }

  html {
    height: 100vh;
  }

  #como-funciona { 
    padding: 0px 0; 
  }

  .como-funciona-wrapper {
    padding: 0px;
    justify-content: space-around;
  }

  .guard-image-container-desktop {
    display: none;
  }

  .guard-torso-mobile {
    display: block;
    position: relative;
    bottom: -10px;
    left: 48%;
    transform: translateX(-50%);
    width: 380px;
    max-width: none;
    height: auto;
    z-index: 3;
  }

  .guard-pies-mobile {
    display: block;
    position: absolute;
    bottom: 10px;
    left: 55%;
    transform: translateX(-50%);
    width: 250px;
    max-width: none;
    height: auto;
    z-index: 1;
  }

  .interactive-card {                         /* Clase para estilizar una tarjeta interactiva */
    width: 95%;                               /* Ocupa el 95% del ancho del contenedor padre */
    max-width: 300px;                         /* No supera los 300px de ancho, aunque tenga espacio */
    height: auto;                             /* La altura se adapta automáticamente al contenido */
    padding-top: 40px;                        /* Relleno interno arriba de 10px */
    padding-bottom: 10px;                     /* Relleno interno abajo de 10px */
    margin-top: 250px;                        /* Margen externo superior en px */
    position: absolute;                      /* Se posiciona de forma absoluta respecto al contenedor posicionado más cercano */
    bottom: 210px;                            /* Se separa en px desde abajo (anula el top si se usa) */
    left: 50%;                                /* Coloca el borde izquierdo al 50% del ancho del contenedor */
    transform: translateX(-50%);              /* Lo corre hacia la izquierda el 50% de su propio ancho para quedar centrado */
    z-index: 2;                               /* Lo pone por encima de elementos con menor z-index */
  }

  .tab-content {
    font-size: 1rem;
    padding: 20px;
  }

  .tab-content h3 {
    font-size: 1.7rem;
  }

  .tab-buttons { margin-top: 10px; }

  .tab-buttons button {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .btn-inicio { margin-bottom: 30px; }
  .btn-funciona { margin-bottom: 150px; }
  .btn-precio { margin-bottom: 90px; }
  .btn-nosotros { margin-bottom: 90px; }
  .btn-testimonios { margin-bottom: 90px; }

}

/* AJUSTE SOLO PARA ESCRITORIO */

@media (min-width: 801px) {
  #como-funciona {
    position: relative;
    background: var(--gris-fondo);
    background-image: url('imagen/funciona.png');
    background-size: cover;
    background-position: center;
    color: var(--azul-oscuro);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
  }

  .como-funciona-wrapper {
    padding: 60px 20px 60px;
    justify-content: flex-start;
  }

  .guard-image-container-desktop {
    position: absolute;
    bottom: 0;
    left: 0;
    height: auto;
    width: auto;
    z-index: 3;
  }

  .guard-full {
    width: 360px;
    height: auto;
    margin-left: -90px;
    margin-bottom: 0;
    margin-top: 0;
  }

  .interactive-card {
    position: relative;
    width: 90%;
    max-width: 450px;
    min-height: 280px;
    margin-top: 40px;
    background: var(--blanco);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 20px 30px;
    z-index: 2;
  }

  .btn-funciona_escritorio {
    margin-top: 40px;
    margin-bottom: 30px;
    z-index: 2;
  }
}

/* =============== */
/* SECCIÓN PRECIO  */
/* =============== */

#precio {
    background: var(--azul-celeste);
    color: white;
    text-align: center;
    padding: 30px 10px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
}

.section-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.precio-titulo {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.precio-subtitulo {
    font-size: 1.8rem;
    margin-bottom: 40px;
    font-weight: 400;
    line-height: 1.5;
}

.precio-grid-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.precio-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    align-items: stretch;
    width: 100%;
}

/* Orden escritorio explícito */
.tarjeta-confianza { order: 1; }
.tarjeta-precio { order: 2; }
.tarjeta-imagen { order: 3; }

/* ---------- TARJETAS GENERALES ----------- */
.precio-card {
    background: white;
    color: var(--azul-oscuro);
    border-radius: 18px;
    padding: 24px 20px;
    width: 280px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    text-align: left;
    animation: fadeUp 0.8s ease both;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Escalonado */
.tarjeta-precio { animation-delay: 0.3s; }
.tarjeta-confianza { animation-delay: 0.6s; }
.tarjeta-imagen { animation-delay: 0.9s; }

/* ---------- TARJETA CONFIANZA ----------- */
.confianza-card {
    background: linear-gradient(150deg, #0059b3, #0072ce);
    color: white;
    padding: 28px 20px;
}

.confianza-titulo {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2px;
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.confianza-texto {
    display: inline-block;
    line-height: 1.1;
}

.confianza-titulo i {
    font-size: 3.5rem !important;
    color: white;
    flex-shrink: 0;
    margin-bottom: 0;
}

.confianza-lista {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: -30px;
    padding-top: 0px;
}

.confianza-lista li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.confianza-lista li i {
    font-size: 2rem;
    flex-shrink: 0;
    margin-top: 2px;
    color: white;
}

.confianza-lista li span {
    font-weight: 400;
}

.confianza-lista li span strong {
    font-weight: 600;
}

.sin-icono {
    padding-left: 2px;
}

/* ---------- TARJETA PRECIO ----------- */
.precio-card-central .precio-header {
    background: var(--azul-petroleo);
    color: white;
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    text-align: center;
}

.precio-header h3 {
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.3;
}

.precio-monto {
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 8px;
}

.precio-detalle {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.precio-detalle li {
    font-size: 0.92rem;
    margin-bottom: 10px;
    padding-left: 18px;
    position: relative;
}

.precio-detalle li::before {
    content: "\2713";
    color: var(--azul-petroleo);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* ---------- BOTÓN ----------- */
.precio-btn {
    background: var(--azul-celeste);
    border: none;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 30px;
    padding: 12px 20px;
    cursor: pointer;
    width: auto;
    transition: background 0.3s;
    text-align: center;
    text-decoration: none;
    display: block;
}

.precio-btn:hover {
    background: var(--azul-petroleo);
}

/* ---------- TARJETA IMAGEN ----------- */
.imagen-card {
    padding: 0;
    overflow: hidden;
}

.imagen-card img {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    object-fit: cover;
}

/* ================================ */
/* SECCIÓN PRECIO RESPONSIVE */
/* ================================ */
@media (max-width: 768px) {
  .precio-container {
    flex-direction: column;
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
  }

  .precio-card {
    scroll-snap-align: start;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }

  .tarjeta-precio { order: 1; }
  .tarjeta-confianza { order: 2; }
  .tarjeta-imagen { order: 3; }

  .tarjeta-imagen {
    padding: 0;
  }
}

/* ---------- ANIMACIONES ----------- */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 769px) {
    .precio-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    }
}

/* ================ */
/* SECCIÓN NOSOTROS */
/* ================ */

#nosotros {
  min-height: 100vh;
  height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-image: url('imagen/nosotros.png');
  background-size: cover;
  background-position: center;
  position: relative;
}

#nosotros::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(39, 73, 109, 0.85); /* azul petróleo con 85% opacidad */
  z-index: 1;
}


#nosotros .section-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 40px 24px 40px;
  max-width: 800px;
  margin: 0 auto;
  height: 100%;
  position: relative;
  z-index: 2;
  color: white; /* letras blancas */
}

#nosotros .section-content p {
  margin-bottom: 12px;
  line-height: 1.5;
  color: white; /* asegúrate de que el texto también sea blanco */
}

.firma-nosotros {
  max-width: 160px;
  margin-top: 20px;
  margin-bottom: 100px;
}
