/* ======================== VARIABLES ======================== */
:root {
  /* Colores corporativos */
  --color-primary: #006699;
  --color-primary2: #0066999a;
  --color-primary-light: #0077b3;
  --color-primary-dark: #005f85;
    --color-primary-s1: #0090cc;
  --color-primary-s2: #003852;


  /* Colores de estado */
  --color-success: #00990a;
  --color-success-light: #00aa0f;
  --color-success-dark: #007f0b;
  --color-estrella: #ffd900b3;
  --color-gris-claro: #ffffff1e;


  --color-danger: #ff0046;
  --color-danger-light: #ff295f;
  --color-danger-dark: #b02138;

  /* Texto y fondo */
  --color-text: #232c52;
  --color-bg: #f5f8fb;
  --color-white: #fff;

  /* Sombras */
  --shadow-soft: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 0.375rem 1rem rgba(0, 0, 0, 0.12);

  /* Tipografía */
  --font-family-base: "Segoe UI", "Roboto", "Open Sans", Arial, sans-serif;

  --font-size-base: 1rem;
  --font-size-sm: 0.875rem;
  --font-size-lg: 1.125rem;
  --font-weight-bold: 700;

  /* Espaciado */
  --radius-base: 0.5rem;
}

/* ======================== BASE ======================== */
html {
  /*font-size: 93.75%;  1rem = 15px */
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-family-base);
  background-color: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ======================== NAVBAR ======================== */
.navbar {
  background-color: var(--color-primary);
}
.navbar-toggler.white-toggler {
    border-color: #fff;
}

.navbar-toggler.white-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.nav-link,
.navbar-brand {
    background-color: var(--color-primary);
  color: var(--color-white) !important;
  font-weight: 500;
  font-size: var(--font-size-base);
}
.navbar-lines {
    border-bottom: 0.1px solid var(--color-primary-light);
}
.navbar-toggler,
.navbar-brand i {
  color: var(--color-white);
}
.navbar .dropdown-menu {
  position: absolute !important;
  top: 100%;
  left: 0;
  z-index: 1050;
  display: none;
}
.navbar .dropdown:hover > .dropdown-menu,
.navbar .dropdown.show > .dropdown-menu {
  display: block;
}

/* ======================== HERO ======================== */

#hero-section {
  position: relative;
  color: var(--color-white);
  overflow: hidden;
  padding: 50px 0;

  min-height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;

}
#hero-image-container {
  background-image: url("../img/f.jpg");
background-size: cover;
  background-position: top right; /* *** CAMBIO CLAVE: Ancla la imagen a la derecha *** */
  background-attachment: fixed;
  position: absolute;
  inset: 0;
  z-index: 1;
  transition: transform 0.05s ease-out;
}
#text-degrade-col {
  position: relative;
  z-index: 5;
background: linear-gradient(
    to right,
    var(--color-primary) 30%, /* Degradado de color sólido hasta el 50% */
    var(--color-primary2) 70%,
    transparent 100%
  );
  height: 100vh;
}
#hero-content {
  z-index: 10;
}


/* ======================== SECCIONES ======================== */
section {
  padding: 4rem 0;
    padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}
.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
  font-size: 2.1rem;
}
#titulo {
  color: var(--color-danger);
}
#subtitulo {
  color: var(--color-white);
  font-size: 4rem;
}
/* ======================== FEATURE BOXES ======================== */
.feature-box {
  text-align: center;
  padding: 1.5rem;
  background-color: var(--color-white);
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}
.feature-box:hover {
  transform: translateY(-0.3rem);
  box-shadow: var(--shadow-hover);
}
.feature-box i {
  color: var(--color-primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  border: 0.125rem solid var(--color-primary);
  border-radius: 50%;
  padding: 1rem;
  width: 3.4rem;
  height: 3.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#cotizador-section {
  background-color: var(--color-light-bg);
    text-align: center;
  padding: 50px 0;

}
.cotizador-form-box {
  background-color: var(--color-blanco);
  padding: 40px;
  border-radius: 8px;
  box-shadow: var(--box-shadow-subtle);
}
#logos-section {
  padding: 1px 0;
  overflow: hidden;
}
.logo-carousel-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 15%,
    black 85%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 15%,
    black 85%,
    transparent 100%
  );
}
.logo-carousel-track {
  display: flex;
  animation: scroll-logos 45s linear infinite;
  width: max-content;
  padding-bottom: 20px;
}
.carousel-item {
  text-align: center;
  padding: 50px 0;
}

.logo-carousel-container:hover .logo-carousel-track {
  animation-play-state: paused;
}

@keyframes scroll-logos {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.isapre-logo-wrapper {
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  width: 160px;
}

.isapre-logo-wrapper img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: all 0.3s ease;
}
.isapre-logo-wrapper img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

.stat-box {
  background-color: var(--color-gris-claro);
  color: var(--color-blanco);
  padding: 40px;
  border-radius: 8px;
  box-shadow: var(--box-shadow-subtle);
}
.stat-box h2 {
  font-weight: 700;
  font-size: 2.3rem;
}
.h2 {
  font-size: 2.19em !important; /* antes 35px */
}

/* ======================== TESTIMONIOS ======================== */
#testimonials-section {
  background-color: var(--color-primary-dark);
  background-image: linear-gradient(180deg, var(--color-primary-dark) 0%,  var(--color-primary-s2)100%);
  color: var(--color-white);
  text-align: center;
  padding: 50px 0;
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.testimonial-text {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.testimonial-author {
  font-weight: var(--font-weight-bold);
  font-size: 1rem;
}
#testimonials-section .rating {
  display: inline-block;
  color: var(--color-estrella);
  font-size: 1.5rem;
}
#testimonials-section .rating i {
  margin: 0 0.1rem;
}

/* ======================== FOOTER ======================== */
footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 2.5rem 0;
  font-size: 0.9rem;
  border-top: 0.2rem solid rgba(255, 255, 255, 0.2);
  text-align: center;
}
footer a {
  color: var(--color-white);
  transition: color 0.3s ease;
}
footer a:hover {
  color: var(--color-bg);
}
footer .social-icons a {
  font-size: 1.4rem;
  margin-right: 1rem;
}

/* ======================== HELPERS ======================== */

#help-section {
  background-color: var(--color-blanco);
}
.video-responsive {
  position: relative;
  padding-bottom: 46.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--box-shadow-subtle);
    max-width: 900px;
  margin: 0 auto;
  border: 0.2rem solid #e0e0e0;
}
.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


#floating-actions {
  position: fixed;
  right: 60px;
  bottom: 20px;
  z-index: 1000;
  display: block;
  width: 0;
}
.float-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-blanco);
  font-size: 1.3rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  text-decoration: none;
  margin-top: 20px;
}
.float-btn:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}
.btn-contact {
  background-color: var(--color-primary-s1);
    color: var(--color-white);

}

.lead {
  color:#006699;
}

@media (min-width: 768px) and (max-width: 991.98px) {
    #text-degrade-col {
    position: relative;
    z-index: 5;
    background: linear-gradient(
      to right,
      var(--color-primary) 50%, /* Mantiene el color sólido hasta la mitad */
      var(--color-primary2) 80%,
      transparent 100%
    );
    height: 100vh;
  }
  #hero-image-container {
   background-position: 75% center; /* CAMBIO CLAVE para Móvil (muestra la derecha de la imagen) */
    height: 100%;
  }

  #hero-section .p-5 {
    background-position: 100% LEFT;
    background-repeat: no-repeat;
  }
}

@media (max-width: 767.99px) {
#text-degrade-col {
    z-index: 1;
    background-color: var(--color-primary); /* Fondo sólido */
    background-image: none;
    height: 100vh;
  }
#hero-image-container {
   background-size: 250% cover; /* Aumenta el ancho de la imagen */
   background-position: 100% center; /* Ancla la imagen a la derecha */
    height: 100%;
  }

  #hero-section .p-5 {
    background-position: 100% LEFT;
    background-repeat: no-repeat;
  }
}
#btn-plan-floating {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 1000;
  color: var(--color-white);
}

/* ======================== BOTONES WOW ======================== */

.btn-scroll,
.btn-whatsapp {
  position: relative;
  overflow: hidden;
  color: var(--color-white);
  font-weight: 600;
  letter-spacing: 0.3px;
  border: none;
  box-shadow: var(--shadow-soft);
  transition: all 0.35s ease;
}


/* ====== Colores base ====== */
.btn-scroll {
  background: linear-gradient(135deg, #6c757d, #868e96);
}
.btn-whatsapp {
  background: linear-gradient(135deg, var(--color-success-light), var(--color-success-dark));
}
.btn-plan {
  width: 180px;
  height: 50px;
  overflow: hidden;
  color: var(--color-white);
  font-weight: 600;
  letter-spacing: 0.3px;
  border: none;
  box-shadow: var(--shadow-soft);
  transition: all 0.35s ease;
  background: linear-gradient(135deg, var(--color-danger-light), var(--color-danger-dark));
  border-radius: 0.4rem;
  padding: 0.8rem 1.6rem;
  font-size: 1rem;
  text-transform: uppercase;

  /* --- Propiedades para el Parpadeo/Pulse --- */
  animation: pulse-effect 2s infinite ease-in-out;
  /* Nombre: pulse-effect
     Duración: 2 segundos
     Repetición: infinita
     Función de tiempo: ease-in-out (comienza y termina lento, rápido en el medio)
  */
}

/* --- Definición de la Animación de Parpadeo/Pulse --- */
@keyframes pulse-effect {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7); /* Empieza con una sombra invisible o muy pequeña */
  }
  50% {
    box-shadow: 0 0 0 10px rgba(255, 0, 0, 0); /* La sombra se expande y se vuelve completamente transparente */
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7); /* Vuelve al estado inicial */
  }
}

/* ====== Efecto reflejo (shine) ====== */
.btn-scroll::after,
.btn-whatsapp::after,
.btn-plan::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.25);
  transform: skewX(-25deg);
  transition: left 0.6s ease;
}
/* ====== Hover general ====== */
.btn-scroll:hover::after,
.btn-whatsapp:hover::after,
.btn-plan:hover::after {
  left: 125%;
}

/* ====== Activo (clic) ====== */
.btn-scroll:active,
.btn-whatsapp:active,
.btn-plan:active {
  transform: scale(0);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* ====== Animación glow sutil ====== */
.btn-scroll:hover,
.btn-whatsapp:hover,
.btn-plan:hover {
  animation: btn-glow 1.4s linear infinite;
    transform: translateY(-3px) scale(1.04);
  box-shadow: var(--shadow-hover);

}
@keyframes btn-glow {
  0% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.15);
  }
  100% {
    filter: brightness(1);
  }
}
/* ======================== HELPERS ======================== */
.text-small { font-size: var(--font-size-sm); }
.text-large { font-size: var(--font-size-lg); }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.shadow-soft { box-shadow: var(--shadow-soft); }
.rounded-base { border-radius: var(--radius-base); }

/* ======================== MEDIA QUERIES ======================== */
@media (max-width: 992px) {
  .section-title { font-size: 1.9rem; }
  section { padding: 3rem 0; }
}
@media (max-width: 576px) {
  html { font-size: 87.5%; scroll-behavior: smooth;}
  .section-title { font-size: 1.7rem; }
  .btn-hero, .btn-primary, .btn-success, .btn-danger {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
  }
}
/* ======================== AJUSTES INDEX ======================== */
#hero-content h1 {
  font-size: 3.0rem;
    max-width: 42rem;

  font-weight: 700;
  line-height: 1.2;
}
#hero-content p {
  font-size: 1.2rem;
  color: #e0f4ff;
  max-width: 35rem;
  margin-bottom: 1.5rem;
}

/* Features */
#features-title {
  margin-bottom: 3rem;
}
.feature-box h5 {
  color: var(--color-primary-dark);
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 0.8rem;
}
.feature-box p {
  font-size: 0.95rem;
  color: #555;
}

/* Planes */
#planes-section {
  background: linear-gradient(to bottom, #f9fbfd 0%, #eef5fa 100%);
}
.plan-card .card-header {
  font-size: 1rem;
  letter-spacing: 0.5px;
}
.plan-card .card-footer {
  border-top: 0;
  padding-top: 1rem;
  background: transparent;
}
/* Estadísticas */
#stats-section {
  background: linear-gradient(180deg, var(--color-primary-light) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  padding: 60px 0;
  text-align: center;
}
.stat-box p {
  font-size: 1rem;
  color: #e5e9ef;
}
footer .social-icons {
  margin-top: 1rem;
}
footer .social-icons a:hover {
  transform: translateY(-0.1rem);
  opacity: 0.9;
  transition: all 0.3s ease;
}
/* Ajustes responsive */
@media (max-width: 768px) {
  #hero-content h1 {
    font-size: 2rem;
    text-align: center;
  }
  #hero-content p {
    text-align: center;
    margin: 0 auto 1.5rem;
  }
  .feature-box {
    margin-bottom: 1.5rem;
  }
  .plan-card {
    margin-bottom: 2rem;
  }
}
.eff {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.eff img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 110%;
  object-fit: cover;
  transform: translateY(0);
  transition: transform 0.1s linear;
  will-change: transform;
}
section.py-5 {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
}
.text-center-somos {
  font-size: 1.4em;
  line-height: 2;
  text-align: justify;
  margin: 0 2vw;
  color: var(--color-text);
  font-weight: 400;
  letter-spacing: 0.3px;
}
#json-features-container .col {
  display: flex;
}
#json-features-container .card {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  border: none;
  border-radius: 0.75em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#json-features-container .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}
#json-features-container .card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
/* Margen lateral para menú en móviles */
@media (max-width: 991.98px) {
  .navbar-collapse {
    padding-left: 1rem;
  }
  .navbar-nav .nav-link {
    padding-left: 0.5rem;
  }
}
