body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #f1f6fa, #e8f3f7);
  color: #1a1a1a;
}
header#main-

.main-title {
  font-size: 1.5rem;
  margin: 0.2rem 0 0;
}
.subtitle {
  font-size: 0.8rem;
  margin: 0;
  color: #111;
}


@keyframes logoZoom {
  0% { transform: scale(0.6); opacity: 0; }
  60% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); }
}
#logo {
  width: 100px;
  filter: drop-shadow(0 0 10px #0a75ad);
  animation: logoZoom 1.5s ease-in-out;
}

.medical-text {
  margin-top: 0.5rem;
  line-height: 1.5;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem;
  color: #1a1a1a;
}
.medical-text p {
  margin: 0.3rem 0;
}
@media (max-width: 600px) {
  .medical-text {
    font-size: 0.95rem;
    padding: 0 1rem;
  }
}










/* Centrado global en iPhone */
body, html {
  max-width: 100vw;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* Encabezado centrado */
#main-header {
  margin: 0 auto;
  max-width: 960px;
}

/* Botones rediseñados */





/* CENTRADO INTELIGENTE */
body, html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

#main-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 1.5rem 1rem 2.5rem;
  margin: 0 auto;
  text-align: center;
  box-sizing: border-box;
}

/* TEXTO HEADER */
.main-title, .subtitle, .medical-text {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.medical-text {
  line-height: 1.7;
  font-size: 1.05rem;
  padding: 0 1rem;
}

/* BOTONES ESTÉTICOS AVANZADOS */
.header-buttons {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.nav-button {
  background: linear-gradient(145deg, #f6fafd, #dfeaf3);
  color: #0c2f4a;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid #c8d5e3;
  border-radius: 14px;
  padding: 0.5rem 1.2rem;
  box-shadow: 4px 4px 8px #ccd9e6, -3px -3px 6px #ffffff;
  text-decoration: none;
  transition: all 0.25s ease-in-out;
}
.nav-button:hover {
  transform: translateY(-2px);
  background: #ffffffdd;
  box-shadow: 2px 2px 10px #9dbbd4, -2px -2px 8px #ffffff;
  color: #0277bd;
}

/* AJUSTES PARA IPHONE */
@media only screen and (max-width: 600px) {
  .medical-text {
    font-size: 0.95rem;
  }
  .main-title {
    font-size: 1.25rem;
  }
  .nav-button {
    font-size: 0.8rem;
    padding: 0.45rem 1rem;
  }
}

.hero-container {
  width: 100%;
  margin: 0;
  padding: 0;
  display: block;
}

.hero-img {
  width: 100%;
  height: auto;
  max-height: 95vh;
  object-fit: cover;
  display: block;
}



.whatsapp-button:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}


.footer {
  background-color: #FFFFFF;
  border-top: 1px solid #EEEEEE;
  padding: 20px 10px;
  text-align: center;
  font-size: 14px;
  color: #444444;
  margin-top: 40px;
}

.footer-container {
  max-width: 800px;
  margin: 0 auto;
}

.footer-text {
  margin-bottom: 10px;
  font-weight: 400;
  color: #444444;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  font-weight: 500;
}

.footer-links a {
  color: #2A6CC0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #1F5DA0;
  text-decoration: underline;
}

.separator {
  color: #CCCCCC;
}


/* === BOTÓN ATÓMICO === */
#boton-atomico-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
}
#boton-atomico {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 72px;
  height: 72px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: transform 0.3s ease;
}
#boton-atomico:hover {
  transform: scale(1.05);
}
#boton-atomico img {
  width: 100%;
  height: auto;
}

#iconos-satelite {
  position: absolute;
  bottom: 70px;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}
#iconos-satelite.activo {
  opacity: 1;
  pointer-events: auto;
}
#iconos-satelite a img {
  width: 64px;
  height: 64px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform 0.2s;
}
#iconos-satelite a img:hover {
  transform: scale(1.1);
}


/* Ajustes botones: tamaño y alineación */

#boton-atomico {
  width: 72px;
  height: 72px;
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
}





/* GLOW EMOCIONAL FIJO POR PERSONAJE */
.personaje.clara  { box-shadow: 0 0 12px 4px rgba(126, 214, 223, 0.8); }
.personaje.erik   { box-shadow: 0 0 12px 4px rgba(0, 206, 201, 0.8); }
.personaje.bruno  { box-shadow: 0 0 12px 4px rgba(253, 203, 110, 0.8); }
.personaje.iris   { box-shadow: 0 0 12px 4px rgba(129, 236, 236, 0.8); }
.personaje.alma   { box-shadow: 0 0 12px 4px rgba(162, 155, 254, 0.8); }
.personaje.lucia  { box-shadow: 0 0 12px 4px rgba(255, 234, 167, 0.8); }
.personaje.doktor { box-shadow: 0 0 12px 4px rgba(99, 110, 114, 0.8); }


/* GLOW REFORZADO */

/* GLOW EMOCIONAL FIJO POR PERSONAJE – REFORZADO */
.personaje.clara  { box-shadow: 0 0 16px 6px rgba(126, 214, 223, 0.9) !important; }
.personaje.erik   { box-shadow: 0 0 16px 6px rgba(0, 206, 201, 0.9) !important; }
.personaje.bruno  { box-shadow: 0 0 16px 6px rgba(253, 203, 110, 0.9) !important; }
.personaje.iris   { box-shadow: 0 0 16px 6px rgba(129, 236, 236, 0.9) !important; }
.personaje.alma   { box-shadow: 0 0 16px 6px rgba(162, 155, 254, 0.9) !important; }
.personaje.lucia  { box-shadow: 0 0 16px 6px rgba(255, 234, 167, 0.9) !important; }
.personaje.doktor { box-shadow: 0 0 16px 6px rgba(99, 110, 114, 0.9) !important; }


/* GLOW SUTIL */

/* GLOW EMOCIONAL FIJO POR PERSONAJE – VERSIÓN SUTIL */
.personaje.clara  { box-shadow: 0 0 10px 3px rgba(126, 214, 223, 0.5) !important; }
.personaje.erik   { box-shadow: 0 0 10px 3px rgba(0, 206, 201, 0.5) !important; }
.personaje.bruno  { box-shadow: 0 0 10px 3px rgba(253, 203, 110, 0.5) !important; }
.personaje.iris   { box-shadow: 0 0 10px 3px rgba(129, 236, 236, 0.5) !important; }
.personaje.alma   { box-shadow: 0 0 10px 3px rgba(162, 155, 254, 0.5) !important; }
.personaje.lucia  { box-shadow: 0 0 10px 3px rgba(255, 234, 167, 0.5) !important; }
.personaje.doktor { box-shadow: 0 0 10px 3px rgba(99, 110, 114, 0.5) !important; }

.whatsapp-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

/* === BOTÓN WHATSAPP RESPONSIVE === */
.whatsapp-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Ajustes específicos para móviles */
@media screen and (max-width: 480px) {
  }



/* Rediseño cuadrado del botón atómico */
#boton-atomico {
  width: 72px;
  height: 72px;
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  border-radius: 16px;
  background-color: transparent;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  padding: 0;
  border: none;
}

#boton-atomico img {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  display: block;
}



/* Iconos cuadrados de los personajes con halo emocional pulsátil */
#boton-satelites a img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  animation: halo-pulse 2.5s infinite;
  display: block;
}

/* Animación general del halo pulsante */
@keyframes halo-pulse {
  0% {
    box-shadow: 0 0 6px 2px rgba(126, 214, 223, 0.5);
  }
  50% {
    box-shadow: 0 0 14px 6px rgba(126, 214, 223, 0.8);
  }
  100% {
    box-shadow: 0 0 6px 2px rgba(126, 214, 223, 0.5);
  }
}

/* Personalización por personaje */
.personaje.clara  { animation-name: halo-pulse; border-radius: 16px; }
.personaje.bruno  { animation-name: halo-pulse; box-shadow: 0 0 6px 2px rgba(255, 195, 0, 0.5); border-radius: 16px; }
.personaje.erik   { animation-name: halo-pulse; box-shadow: 0 0 6px 2px rgba(76, 209, 55, 0.5); border-radius: 16px; }
.personaje.iris   { animation-name: halo-pulse; box-shadow: 0 0 6px 2px rgba(18, 137, 167, 0.5); border-radius: 16px; }
.personaje.alma   { animation-name: halo-pulse; box-shadow: 0 0 6px 2px rgba(162, 155, 254, 0.5); border-radius: 16px; }
.personaje.lucia  { animation-name: halo-pulse; box-shadow: 0 0 6px 2px rgba(255, 118, 117, 0.5); border-radius: 16px; }
.personaje.doktor { animation-name: halo-pulse; box-shadow: 0 0 6px 2px rgba(223, 230, 233, 0.5); border-radius: 16px; }



/* Halo pulsátil negro translúcido para el botón atómico */
@keyframes halo-atomico {
  0% {
    box-shadow: 0 0 6px 2px rgba(0, 0, 0, 0.15);
  }
  50% {
    box-shadow: 0 0 14px 6px rgba(0, 0, 0, 0.25);
  }
  100% {
    box-shadow: 0 0 6px 2px rgba(0, 0, 0, 0.15);
  }
}

#boton-atomico {
  animation: halo-atomico 2.5s infinite;
}

.whatsapp-button-new {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 68px;
  height: 68px;
  border-radius: 16px;
  overflow: hidden;
  z-index: 9999;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.whatsapp-button-new img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body {
  background-image: url('assets/fondo.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: -1;
}


.blog-section h2 {
  color: #111 !important;
}


#blog-container * {
  color: #111 !important;
}


/* Tarjeta Laboratorio 2030 para opiniones */
.tarjeta-opinion-lab2030 {
  background: linear-gradient(to right, rgba(250,250,255,0.06), rgba(200,200,210,0.08));
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 18px 24px;
  margin: 20px auto;
  max-width: 600px;
  box-shadow: inset 0 0 1px rgba(255,255,255,0.15),
              0 2px 12px rgba(0,0,0,0.4);
  color: #f1f1f1;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  animation: fadeInUp 0.5s ease both;
}

.tarjeta-opinion-lab2030:hover {
  transform: scale(1.01);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1),
              0 6px 18px rgba(0,0,0,0.6);
}

.tarjeta-opinion-lab2030 div {
  text-align: center;
}


/* Tarjeta Laboratorio 2030 mejorada con textos visibles */
.tarjeta-opinion-lab2030 {
  background: linear-gradient(to right, rgba(255,255,255,0.15), rgba(240,240,240,0.18));
  border: 2px solid rgba(220, 220, 220, 0.3);
  border-radius: 20px;
  padding: 18px 24px;
  margin: 20px auto;
  max-width: 600px;
  box-shadow: inset 0 0 1px rgba(180,180,180,0.15),
              0 2px 12px rgba(0,0,0,0.15);
  color: #111;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  animation: fadeInUp 0.5s ease both;
}

.tarjeta-opinion-lab2030:hover {
  transform: scale(1.01);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.05),
              0 6px 18px rgba(0,0,0,0.25);
}

.tarjeta-opinion-lab2030 #opinion-estrellas {
  color: #fbc02d;
}

.tarjeta-opinion-lab2030 #opinion-iniciales {
  color: #222;
  font-weight: bold;
}

.tarjeta-opinion-lab2030 #opinion-texto {
  color: #333;
}

.tarjeta-opinion-lab2030 div {
  text-align: center;
}


/* Tarjetas estilo Laboratorio 2030 con fondo blanco */
.tarjeta-opinion-lab2030-blanca {
  background: #ffffff;
  border: 2px solid rgba(180, 180, 180, 0.25);
  border-radius: 20px;
  padding: 18px 24px;
  margin: 20px auto;
  max-width: 600px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  color: #111;
  transition: all 0.3s ease;
  animation: fadeInUp 0.5s ease both;
}

.tarjeta-opinion-lab2030-blanca:hover {
  transform: scale(1.01);
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}

.tarjeta-opinion-lab2030-blanca #opinion-estrellas,
.tarjeta-opinion-lab2030-blanca div[style*="★★★★★"] {
  color: #fbc02d;
}

.tarjeta-opinion-lab2030-blanca h2 {
  color: #111;
}

.tarjeta-opinion-lab2030-blanca p {
  color: #333;
}


/* Tarjetas Laboratorio 2030 con fondo blanco y centrado visual */
.tarjeta-opinion-lab2030-blanca {
  background: #ffffff;
  border: 2px solid rgba(180, 180, 180, 0.25);
  border-radius: 20px;
  padding: 22px 28px;
  margin: 24px auto;
  max-width: 600px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  color: #111;
  transition: all 0.3s ease;
  animation: fadeInUp 0.5s ease both;
  text-align: center;
}

.tarjeta-opinion-lab2030-blanca:hover {
  transform: scale(1.01);
  box-shadow: 0 8px 28px rgba(0,0,0,0.15);
}

.tarjeta-opinion-lab2030-blanca #opinion-estrellas,
.tarjeta-opinion-lab2030-blanca div[style*="★★★★★"] {
  font-size: 2rem;
  color: #fbc02d;
  margin-bottom: 0.6rem;
}

.tarjeta-opinion-lab2030-blanca #opinion-iniciales {
  font-weight: bold;
  margin-bottom: 0.3rem;
  font-size: 1rem;
}

.tarjeta-opinion-lab2030-blanca #opinion-texto {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.4;
}

.tarjeta-opinion-lab2030-blanca h2 {
  color: #111;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.tarjeta-opinion-lab2030-blanca p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
}


/* --- Estilos añadidos para tarjetas inteligentes y botón laboratorio 2030 --- */

/* Estilo Laboratorio 2030 para tarjetas inteligentes */
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 18px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  color: #f5f5f5;
  transition: all 0.3s ease-in-out;
}
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.25);
  transform: scale(1.02);
}

/* Botón dentro de la tarjeta */
  display: inline-block;
  margin-top: 15px;
  padding: 12px 24px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background-color 0.3s ease, transform 0.2s ease;
}
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}


/* --- Tarjetas Inteligentes Estilo Fondo Claro Premium --- */

/* --- Tarjetas Inteligentes Estilo Laboratorio 2030 sobre fondo claro --- */


.boton-lab2030 {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 24px;
  border-radius: 12px;
  background-color: #1a1a1a;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.boton-lab2030:hover {
  background-color: #333333;
  transform: scale(1.05);
}

/* RESPONSIVE */
@media screen and (max-width: 768px) {

  .boton-lab2030 {
    width: 100%;
    text-align: center;
  }
}


/* --- Wrapper y Tarjetas Inteligentes unificados y responsive --- */

.tarjetas-wrapper {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

/* Unificación y corrección de estilos para tarjetas inteligentes */
.tarjeta-inteligente-lab2030 {
  background: #ffffff;
  border: 1.5px solid #ccc;
  border-radius: 20px;
  padding: 24px 20px;
  width: 100%;
  max-width: 680px;
  color: #222;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  margin: 16px 0;
  box-sizing: border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.tarjeta-inteligente-lab2030:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

@media (max-width: 480px) {
  .tarjeta-inteligente-lab2030 {
    padding: 18px 14px;
    margin: 12px 0;
  }
}


/* --- Corrección overflow texto botones móvil --- */

@media (max-width: 480px) {
  .tarjeta-inteligente-lab2030 .boton-lab2030,
  .tarjeta-inteligente-lab2030 a.boton-lab2030 {
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
  }
}


/* FASE 4 - Scroll Snap y corrección de video fullscreen en móviles */
.scroll-snap-section {
    scroll-snap-align: start;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

#video-section video {
    object-fit: cover;
    width: 100%;
    height: 100vh;
    display: block;
}

/* Mejoras para dispositivos móviles */
@media screen and (max-width: 768px) {
    #video-section video {
        height: 100vh;
        object-fit: cover;
    }
}

.footer-legal {
  background-color: rgba(0, 0, 0, 0.7);
  color: #ffffffcc;
  text-align: center;
  padding: 30px 10px 20px;
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 0.9rem;
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(6px);
}

.footer-legal-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 10px;
}

.footer-legal-container a {
  color: #ffffffcc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-legal-container a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-copy {
  font-size: 0.8rem;
  color: #cccccc;
  max-width: 800px;
  margin: 0 auto;
  padding-top: 10px;
  line-height: 1.4;
}
