* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

body {
  background: #f2f6fb;
  color: #1f2933;
  line-height: 1.7;
}

/* ================= HERO ================= */
.hero {
  min-height: 90vh;
  background:
    linear-gradient(135deg, rgba(14,58,88,0.9), rgba(30,120,180,0.85)),
    url("https://images.unsplash.com/photo-1579684385127-1ef15d508118");
  background-size: cover;
  background-position: center;
  color: white;
  padding: 6rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  max-width: 900px;
}

.hero p {
  font-size: 1.3rem;
  max-width: 850px;
  margin: 1.5rem auto 0;
  opacity: 0.95;
}

/* ================= NAV ================= */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: white;
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 1.2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

nav a {
  text-decoration: none;
  color: #0e3a58;
  font-weight: 600;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #1e78b4, #3fbac2);
  left: 0;
  bottom: -6px;
  transition: 0.3s;
}

nav a:hover::after {
  width: 100%;
}

/* ================= SECCIONES ================= */
.section {
  max-width: 1200px;
  margin: 5rem auto;
  padding: 0 2rem;
}

.section.alt {
  background: linear-gradient(135deg, #ffffff, #e8f0fa);
  padding: 4rem 2rem;
  border-radius: 30px;
}

.section h2 {
  font-size: 2.6rem;
  color: #0e3a58;
  margin-bottom: 1.5rem;
}

.section p {
  font-size: 1.1rem;
  max-width: 900px;
}

/* ================= CARDS ================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.card {
  background: linear-gradient(145deg, #ffffff, #f0f6fc);
  padding: 2.5rem;
  border-radius: 22px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

.card h3 {
  color: #1e78b4;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

/* ================= DOCTOR ================= */
.doctor-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  align-items: center;
}

.doctor-photo {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* ================= FORM ================= */
form {
  background: linear-gradient(145deg, #ffffff, #eef4fb);
  padding: 3rem;
  border-radius: 25px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.1);
  margin-top: 3rem;
}

form input,
form textarea,
form select {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1.2rem;
  border-radius: 10px;
  border: 1px solid #cfd9e3;
  font-size: 1rem;
}

button {
  background: linear-gradient(90deg, #1e78b4, #3fbac2);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-size: 1.1rem;
  cursor: pointer;
}

button:hover {
  opacity: 0.9;
}

/* ================= FOOTER ================= */
footer {
  background: linear-gradient(135deg, #0e3a58, #1e78b4);
  color: white;
  text-align: center;
  padding: 2.5rem;
  margin-top: 6rem;
}

/* ===== HERO CARRUSEL ===== */
.hero-carousel {
  position: relative;
  height: 90vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-content {
  text-align: center;
  color: white;
  max-width: 900px;
  padding: 2rem;
}

.hero-content h1 {
  font-size: 3.6rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
}

.hero-btn {
  display: inline-block;
  padding: 1rem 3rem;
  background: linear-gradient(90deg, #1e78b4, #3fbac2);
  color: white;
  border-radius: 50px;
  font-size: 1.2rem;
  text-decoration: none;
  font-weight: 600;
}



.hero-btn {
  position: relative;
  z-index: 10;
}
/* ================= MEDICINA CUBANA ================= */
.medicina-cubana {
  background: linear-gradient(135deg, #ffffff, #eaf2fb);
  margin: 4rem auto;
  padding: 3.5rem 2rem;
  border-radius: 30px;
  max-width: 1200px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.08);
}

.medicina-content {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.medicina-content img {
  width: 150px;  /* Ajusta el tamaño si es necesario */
  filter: drop-shadow(0 12px 25px rgba(0,0,0,0.35));
}

.medicina-content h3 {
  font-size: 2rem;
  color: #0e3a58;
  margin-bottom: 1rem;
}

.medicina-content p {
  font-size: 1.1rem;
  color: #1f2933;
  max-width: 800px;
}

/* Responsive */
@media (max-width: 768px) {
  .medicina-content {
    flex-direction: column;
    text-align: center;
  }

  .medicina-content img {
    width: 120px;  /* Ajuste para móvil */
  }
}
/* ===== LOGO SOBRE HERO (SIN CONTENEDOR) ===== */
.hero-carousel {
  position: relative;
}

.header-logo {
  position: absolute;
  top: 30px;
  left: 35px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo img {
  width: 150px;   /* ← MÁS GRANDE */
  height: auto;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.45));
}


/* Texto */
.header-logo span {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

/* Responsive */
@media (max-width: 768px) {
  .header-logo {
    top: 18px;
    left: 18px;
  }

  .header-logo img {
    width: 65px;   /* ← móvil */
  }

  .header-logo span {
    font-size: 0.95rem;
  }
}

.auth-body {
  background: linear-gradient(135deg, #0e3a58, #1e78b4);
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  background: #fff;
  padding: 40px;
  border-radius: 14px;
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.auth-card input {
  width: 100%;
  padding: 12px;
  margin: 12px 0;
}

.auth-card button {
  width: 100%;
  padding: 12px;
  background: #1e78b4;
  color: #fff;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

.auth-sub {
  font-size: 0.9rem;
  color: #666;
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  padding: 40px;
}

.dash-card {
  background: #f7f9fb;
  padding: 25px;
  border-radius: 12px;
}

/* ===== FIX REAL DE CLICKS (SIN ROMPER ESTILOS) ===== */

/* El carrusel NO debe interceptar clics fuera del hero */
.hero-carousel {
  pointer-events: none;
}

/* Los botones del hero sí deben ser clickeables */
.hero-content,
.hero-btn {
  pointer-events: auto;
}

/* El contenido normal siempre por encima */
.section,
.medicina-cubana,
footer,
form {
  position: relative;
  z-index: 2;
}
/* ===== FIX HERO SMALL ===== */
.hero-small {
  min-height: 45vh; /* o 40vh si quieres */
}

/* asegurar que el hero NO tape el contenido */
.hero {
  position: relative;
  z-index: 1;
}

.section {
  position: relative;
  z-index: 2;
}

/* botón siempre clickeable */
.hero-btn {
  position: relative;
  z-index: 3;
}
.go-home {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.btn-home {
  background: #1e78b4;
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-home:hover {
  background: #155a85;
  transform: translateY(-2px);
}

.tm-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.tm-highlights {
  background: linear-gradient(145deg, #ffffff, #eef4fb);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.tm-highlights p {
  margin-bottom: 1rem;
  font-weight: 500;
}
/* Animaciones */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease;
}
.slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease;
}
.slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}


    body {
      margin: 0;
      font-family: 'Poppins', sans-serif;
      background: #f9f9f9;
      color: #333;
    }

    /* HEADER LOGO */
    /* LOGO SOBRE HERO (IGUAL QUE INDEX) */
.header-logo {
  position: absolute;
  top: 30px;
  left: 35px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* IMAGEN LOGO */
.header-logo img {
  height: 55px;
  width: auto;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.45));
}

/* TEXTO */
.header-logo span {
  color: white !important;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .header-logo {
    top: 18px;
    left: 18px;
  }

  .header-logo img {
    height: 45px;
  }

  .header-logo span {
    font-size: 0.95rem;
  }
}


    


    /* CTA */
    .hero-btn {
      display: inline-block;
      background: #1e78b4;
      color: white;
      padding: 16px 34px;
      border-radius: 30px;
      text-decoration: none;
      font-weight: 600;
      margin-top: 25px;
      transition: background .3s;
    }
    .hero-btn:hover {
      background: #155d8a;
    }

    /* ANIMACIONES */
    .fade-in, .slide-left, .slide-right {
      opacity: 0;
      transition: all 0.8s ease;
    }
    .fade-in { transform: translateY(30px); }
    .slide-left { transform: translateX(-60px); }
    .slide-right { transform: translateX(60px); }
    .visible { opacity: 1; transform: translate(0,0); }

    footer {
      background: #0e3a58;
      color: white;
      text-align: center;
      padding: 25px;
      margin-top: 60px;
    }

  /* ===== INFO BLOCK (ZIGZAG TELEMEDICINA) ===== */
.info-block {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.info-block img {
  width: 340px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.info-block img:hover {
  transform: scale(1.05);
}

.info-block div {
  flex: 1;
}

.info-block h3 {
  margin-bottom: 12px;
  color: #0e3a58;
  font-size: 22px;
}

/* Zigzag alterno */
.info-block.reverse {
  flex-direction: row-reverse;
}

/* Responsive: siempre en columna en móvil */

/* ===== TELEMEDICINA ZIGZAG ===== */

.info-block {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  margin-bottom: 5rem;
}

.info-block img {
  width: 360px;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
  transition: transform 0.35s ease;
}

.info-block img:hover {
  transform: scale(1.04);
}

.info-block div {
  flex: 1;
}

.info-block h3 {
  font-size: 1.6rem;
  color: #0e3a58;
  margin-bottom: 1rem;
}

.info-block p {
  font-size: 1.05rem;
  color: #1f2933;
  line-height: 1.7;
}

/* 🔁 Zigzag real */
.info-block.reverse {
  flex-direction: row-reverse;
}

/* 📱 Responsive */
@media (max-width: 768px) {
  .info-block,
  .info-block.reverse {
    flex-direction: column;
    text-align: center;
  }

  .info-block img {
    width: 100%;
    max-width: 320px;
  }
}

/* ===== CARRUSEL BENEFICIOS ===== */
.carousel {
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin: auto;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-card {
  min-width: 100%; /* ← una tarjeta por vez */
  flex-shrink: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 30px;
  text-align: center;
  font-size: 18px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #1e78b4;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }
/* ===== BENEFICIOS PREMIUM ===== */
.section-title {
  text-align: center;
  font-size: 2.6rem;
  margin-bottom: 3.5rem;
  color: #0e3a58;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
}

.benefit-card {
  background: linear-gradient(145deg, #ffffff, #eef4fb);
  border-radius: 22px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 20px 45px rgba(0,0,0,0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  border: 1px solid rgba(30,120,180,0.15);
}

.benefit-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 35px 70px rgba(0,0,0,0.12);
}

.benefit-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e78b4, #3fbac2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-icon svg {
  width: 34px;
  height: 34px;
  stroke: white;
  fill: none;
  stroke-width: 2;
}

.benefit-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: #0e3a58;
}

.benefit-card p {
  font-size: 1rem;
  color: #1f2933;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .section-title {
    font-size: 2.1rem;
  }
}



/* ===== CTA CENTRADO PREMIUM ===== */
.cta-center {
  text-align: center;
  background: linear-gradient(135deg, #ffffff, #eef4fb);
  padding: 4rem 2rem;
  border-radius: 30px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.08);
  max-width: 900px;
  margin: 5rem auto;
}

.cta-center h2 {
  font-size: 2.6rem;
  color: #0e3a58;
  margin-bottom: 1.2rem;
}

.cta-center p {
  font-size: 1.15rem;
  color: #1f2933;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.cta-center .hero-btn {
  font-size: 1.2rem;
  padding: 1.1rem 3.2rem;
  box-shadow: 0 12px 30px rgba(30,120,180,0.35);
}









/* =========================
   LOGO SIN APARIENCIA DE LINK
   (NUCLEAR)
   ========================= */

.header-logo,
.header-logo * {
  text-decoration: none !important;
  color: inherit !important;
  cursor: default !important;
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
  background: none !important;
  -webkit-tap-highlight-color: transparent;
}

/* Quita foco azul de Chrome / Edge */
.header-logo:focus,
.header-logo:focus-visible,
.header-logo:active {
  outline: none !important;
  box-shadow: none !important;
}

/* Mata cualquier estilo global de <a> */
a.header-logo,
a.header-logo:hover,
a.header-logo:active,
a.header-logo:focus,
a.header-logo:focus-visible,
a.header-logo:visited {
  text-decoration: none !important;
  color: inherit !important;
  cursor: default !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Extra por si hay underline con border */
.header-logo span {
  border-bottom: 0 !important;
}



.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: default;   /* NO manita */
  user-select: none; /* no selección rara */
}

.header-logo span {
  text-decoration: none;
}

.politica-contenedor {
 max-width: 900px;
 margin: 40px auto;
 padding: 20px 25px;
 background: #ffffff;
 border-radius: 8px;
 line-height: 1.6;
}

.politica-contenedor h1 {
 font-size: 2rem;
 margin-bottom: 20px;
}

.politica-contenedor h2 {
 margin-top: 20px;
 font-size: 1.3rem;
 color: #0e3a58;
}



.testimonios-contenedor {
 max-width: 1100px;
 margin: 40px auto;
 padding: 20px 15px;
}

.testimonios-contenedor h1 {
 text-align: center;
 margin-bottom: 30px;
}

.testimonios-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
 gap: 20px;
}

.testimonio-tarjeta {
 background: #ffffff;
 border-radius: 10px;
 padding: 15px;
 box-shadow: 0 2px 8px rgba(0,0,0,0.08);
 text-align: center;
}

.testimonio-tarjeta img {
 width: 100%;
 max-width: 180px;
 height: auto;
 border-radius: 50%;
 object-fit: cover;
 margin-bottom: 10px;
}

.testimonio-texto {
 font-style: italic;
 margin-bottom: 8px;
}

.testimonio-nombre {
 font-weight: bold;
 color: #0e3a58;
}







/* Contenedor general */
.politica-contenedor {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: grid;
  grid-template-columns: 1fr; /* por defecto una columna */
  gap: 2rem;
}

/* En pantallas grandes, dos columnas */
@media (min-width: 768px) {
  .politica-contenedor {
    grid-template-columns: 1fr 1fr;
  }
}

/* Tarjetas de privacidad */
.privacy-container {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.privacy-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Títulos */
.privacy-container h2 {
  font-size: 1.3rem;
  color: #005577;
  margin-bottom: 1rem;
  border-left: 4px solid #00aaff;
  padding-left: 0.6rem;
}

/* Texto */
.privacy-container p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}




/* =========================
   POLÍTICA DE PRIVACIDAD – ESTILO CTA
   ========================= */

.politica-contenedor {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* Bloque tipo tarjeta */
.privacy-container {
  background: #ffffff;
  border-radius: 18px;
  padding: 35px 30px;
  margin-bottom: 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: transform .3s ease, box-shadow .3s ease;
}

/* Hover elegante */
.privacy-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

/* Títulos */
.privacy-container h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #0a3d62; /* tono médico */
}

/* Texto */
.privacy-container p,
.privacy-container li {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
}

/* Listas centradas */
.privacy-container ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.privacy-container ul li::before {
  content: "✔ ";
  color: #1abc9c;
  font-weight: bold;
}

/* Header inicial */
.privacy-header {
  text-align: center;
  margin-bottom: 50px;
}

.privacy-header h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.privacy-header p {
  font-size: 1.1rem;
  color: #555;
}





