/* ============================================================
   CLINICA-ONLINE.CSS
   Paleta: beige / marrón / dorado — Layout nuevo
   Formación Esencial · Jornada Clínica Online
   ============================================================ */

/* ── VARIABLES ─────────────────────────────────────────────── */
:root {
  --beige:        #f8f3eb;
  --beige2:       #f2ead8;
  --crema:        #fdfaf4;
  --arena:        #ede3cf;
  --dorado:       #b8924a;
  --dorado-claro: #d4aa6a;
  --dorado-oscuro:#8f6e32;
  --marron:       #4c3220;
  --marron-medio: #6b4a30;
  --marron-suave: #9b7250;
  --texto:        #3e2c1c;
  --texto-suave:  #7a5c3e;
  --linea:        rgba(139, 100, 58, 0.16);
  --linea-dorada: rgba(184, 146, 74, 0.3);
  --sombra:       0 12px 36px rgba(78, 52, 30, 0.10);
  --sombra-lg:    0 24px 60px rgba(78, 52, 30, 0.13);
  --sombra-btn:   0 8px 20px rgba(184, 146, 74, 0.28);
  --sombra-btn-hover: 0 12px 28px rgba(184, 146, 74, 0.38);
  --r:            18px;
  --r-lg:         28px;
  --contenedor:   1100px;
}

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html  { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: var(--beige);
  color: var(--texto);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.contenedor {
  width: min(100% - 2.4rem, var(--contenedor));
  margin-inline: auto;
}

/* ── HEADER ────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(253, 250, 244, 0.90);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--linea);
}

.hdr {
  display: flex;
  align-items: center;
  height: 72px;
  gap: 24px;
  width: min(100% - 2.4rem, var(--contenedor));
  margin-inline: auto;
}

.hdr__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.hdr__logo img {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.hdr__logo span {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--marron);
}

.hdr__nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
}
.hdr__nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--texto-suave);
  transition: color 0.2s;
}
.hdr__nav a:hover { color: var(--dorado-oscuro); }

.hdr__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--dorado-claro), var(--dorado-oscuro));
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 20px rgba(143,110,50,0.25);
  flex-shrink: 0;
}
.hdr__cta:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(143,110,50,0.32); }

.hdr__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.hdr__burger span {
  display: block;
  width: 24px; height: 2px;
  border-radius: 99px;
  background: var(--marron);
  transition: 0.3s;
}

/* hamburger open state */
.site-header.open .hdr__burger span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.site-header.open .hdr__burger span:nth-child(2) { opacity: 0; }
.site-header.open .hdr__burger span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

@media (max-width: 900px) {
  .hdr__burger { display: flex; }
  .hdr__cta    { display: none; }

  .hdr__nav {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--crema);
    border-bottom: 1px solid var(--linea);
    padding: 8px 0 16px;
    box-shadow: var(--sombra);
  }

  .site-header.open .hdr__nav { display: flex; }

  .hdr__nav a {
    width: 100%;
    padding: 13px 2rem;
    border-bottom: 1px solid var(--linea);
    font-size: 1rem;
  }
  .hdr__nav a:last-child { border-bottom: none; }
}

/* ── PORTADA ────────────────────────────────────────────────── */
.portada {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100dvh - 72px);
  overflow: hidden;
  position: relative;
}

/* Decoración anillos */
.portada__deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.deco-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--linea-dorada);
  opacity: 0.5;
}
.deco-ring--1 { width: 400px; height: 400px; top: -100px; left: -100px; }
.deco-ring--2 { width: 260px; height: 260px; top: 60%;  left: 5%;  opacity: 0.3; }
.deco-ring--3 { width: 180px; height: 180px; bottom: 5%; left: 48%; opacity: 0.25; }

.portada__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 80px;
  padding-bottom: 80px;
  padding-right: 56px;
  padding-left: max(1.2rem, calc((100vw - var(--contenedor)) / 2));
}

.portada__eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dorado);
  margin-bottom: 20px;
}

.portada__titulo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--marron);
  margin-bottom: 12px;
}

.portada__titulo-accent {
  font-style: italic;
  color: var(--dorado);
}

.portada__subtitulo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-style: italic;
  color: var(--marron-suave);
  margin-bottom: 36px;
}

/* Ficha de datos */
.portada__ficha {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--linea);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  box-shadow: var(--sombra);
  margin-bottom: 36px;
  backdrop-filter: blur(8px);
}

.ficha-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.ficha-item__icon {
  width: 18px; height: 18px;
  color: var(--dorado);
  margin-bottom: 6px;
}

.ficha-item strong {
  font-size: 0.95rem;
  color: var(--marron);
  font-weight: 700;
}

.ficha-item span {
  font-size: 0.85rem;
  color: var(--texto-suave);
}

.ficha-sep {
  width: 1px;
  background: var(--linea);
  margin: 0 20px;
  align-self: stretch;
}

/* Acciones portada */
.portada__acciones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #28c96f, #1a9950);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 10px 28px rgba(28,153,80,0.22);
  transition: transform 0.25s, box-shadow 0.25s;
}
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(28,153,80,0.30); }

.btn-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dorado-oscuro);
  transition: letter-spacing 0.2s;
}
.btn-link:hover { letter-spacing: 0.04em; }

/* Imagen portada */
.portada__img {
  position: relative;
  overflow: hidden;
}

.portada__img img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  object-position: center top;
  transition: transform 8s ease;
}

.portada:hover .portada__img img {
  transform: scale(1.04);
}

.portada__img-shine {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, var(--beige) 0%, transparent 42%),
    linear-gradient(to bottom, transparent 75%, var(--beige) 100%);
}

/* ── BANDA FRASE ───────────────────────────────────────────── */
.banda-frase {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 32px 1.2rem;
  background: linear-gradient(90deg, transparent, var(--arena), transparent);
  border-top: 1px solid var(--linea-dorada);
  border-bottom: 1px solid var(--linea-dorada);
  text-align: center;
}

.banda-frase p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  color: var(--marron);
  margin: 0;
}

.banda-frase__orn {
  color: var(--dorado);
  font-size: 1rem;
  opacity: 0.7;
}

/* ── ETIQUETA (eyebrow) ────────────────────────────────────── */
.etiqueta {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dorado-oscuro);
}
.etiqueta--claro { color: var(--dorado-claro); }

/* ── BLOQUES ───────────────────────────────────────────────── */
.bloque {
  padding: 88px 0;
}
.bloque--acento {
  background:
    linear-gradient(180deg, rgba(237,227,207,0.6), rgba(248,243,235,0.5));
}

.bloque__header {
  margin-bottom: 48px;
}
.bloque__header--centro {
  text-align: center;
}

.bloque__header h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  color: var(--marron);
  line-height: 1.1;
}

/* ── QUÉ ES — descripcion-grid ─────────────────────────────── */
.descripcion-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 52px;
  align-items: start;
}

.desc-texto .etiqueta {
  display: block;
}

.desc-titulo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  color: var(--marron);
  line-height: 1.1;
  margin-bottom: 28px;
}

.desc-texto p {
  font-size: 1.05rem;
  color: var(--texto-suave);
}
.desc-texto strong { color: var(--marron); font-weight: 700; }
.desc-texto em     { font-style: italic; color: var(--marron-medio); }

.desc-datos {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dato-card {
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--linea);
  border-radius: var(--r);
  padding: 24px;
  text-align: center;
  box-shadow: var(--sombra);
  transition: transform 0.25s;
}
.dato-card:hover { transform: translateY(-3px); }

.dato-card--outline {
  background: transparent;
  border-color: var(--linea-dorada);
}

.dato-card__num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 4rem;
  font-weight: 700;
  color: var(--dorado);
  line-height: 1;
  margin-bottom: 8px;
}

.dato-card__icono {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.dato-card__texto {
  font-size: 0.9rem;
  color: var(--texto-suave);
  line-height: 1.5;
}

/* ── PARA QUIÉNES — tarjetas-dest ──────────────────────────── */
.tarjetas-dest {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tarjeta-dest {
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--linea);
  border-top: 3px solid var(--dorado);
  border-radius: var(--r);
  padding: 32px 26px;
  box-shadow: var(--sombra);
  transition: transform 0.25s, box-shadow 0.25s;
}
.tarjeta-dest:hover {
  transform: translateY(-5px);
  box-shadow: var(--sombra-lg);
}

.tarjeta-dest__num {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: rgba(184,146,74,0.2);
  line-height: 1;
  margin-bottom: 12px;
}

.tarjeta-dest h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--marron);
  margin-bottom: 10px;
}

.tarjeta-dest p {
  font-size: 0.92rem;
  color: var(--texto-suave);
  margin: 0;
}

/* ── LÍNEA DE TIEMPO ───────────────────────────────────────── */
.linea-tiempo {
  list-style: none;
  position: relative;
  padding-left: 0;
  display: grid;
  gap: 0;
}

.linea-tiempo::before {
  content: '';
  position: absolute;
  left: 44px;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--linea-dorada), transparent);
}

.lt-item {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid var(--linea);
}
.lt-item:last-child { border-bottom: none; }

.lt-item__marca {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 1px solid var(--linea-dorada);
  background: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dorado);
  box-shadow: var(--sombra);
  transition: background 0.3s, transform 0.3s;
}
.lt-item:hover .lt-item__marca {
  background: var(--dorado);
  color: #fff;
  transform: scale(1.06);
}

.lt-item__cuerpo {
  padding-top: 18px;
}

.lt-item__cuerpo h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--marron);
  margin-bottom: 8px;
}

.lt-item__cuerpo p {
  color: var(--texto-suave);
  font-size: 1rem;
  max-width: 680px;
  margin: 0;
}

/* ── FACILITADOR ───────────────────────────────────────────── */
.banda-facilitador {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
  overflow: hidden;
}

.banda-facilitador__img {
  position: relative;
  overflow: hidden;
}
.banda-facilitador__img img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center top;
  transition: transform 6s ease;
}
.banda-facilitador:hover .banda-facilitador__img img {
  transform: scale(1.04);
}

.banda-facilitador__texto {
  background:
    linear-gradient(135deg, var(--marron) 0%, var(--marron-medio) 100%);
  color: rgba(255,255,255,0.85);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 56px;
}

.banda-facilitador__texto h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 24px;
}

.banda-facilitador__texto p {
  color: rgba(255,255,255,0.72);
  font-size: 1rem;
}

.banda-facilitador__cita {
  margin-top: 28px;
  padding-left: 22px;
  border-left: 2px solid var(--dorado-claro);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--dorado-claro);
  line-height: 1.3;
}

/* ── EVENTO GRID ───────────────────────────────────────────── */
.evento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.evento-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--linea);
  border-bottom: 3px solid var(--dorado);
  border-radius: var(--r);
  padding: 32px 18px;
  box-shadow: var(--sombra);
  transition: transform 0.25s;
}
.evento-item:hover { transform: translateY(-4px); }

.evento-item__icono { font-size: 1.9rem; margin-bottom: 6px; }

.evento-item strong {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dorado-oscuro);
}

.evento-item span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--marron);
}

/* ── INSCRIPCIÓN ───────────────────────────────────────────── */
.inscripcion {
  padding: 88px 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(184,146,74,0.08), transparent),
    var(--beige);
}

.inscripcion__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.inscripcion__texto h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  color: var(--marron);
  line-height: 1.1;
  margin-bottom: 20px;
}

.inscripcion__texto p {
  font-size: 1.05rem;
  color: var(--texto-suave);
}

.inscripcion__nota {
  font-size: 0.85rem !important;
  color: var(--marron-suave) !important;
  font-style: italic;
}

/* WA Card */
.wa-card {
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--linea);
  border-radius: var(--r-lg);
  padding: 40px;
  box-shadow: var(--sombra-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.wa-card__num {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wa-card__ico {
  width: 32px; height: 32px;
  color: #25d366;
  flex-shrink: 0;
}
.wa-card__num span {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--marron);
  letter-spacing: 0.03em;
}

.wa-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #28c96f, #1a9950);
  color: #fff;
  font-weight: 700;
  font-size: 1.02rem;
  box-shadow: 0 10px 28px rgba(28,153,80,0.22);
  width: 100%;
  transition: transform 0.25s, box-shadow 0.25s;
}
.wa-card__btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(28,153,80,0.30); }

.prox-subtitulo {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--marron);
  margin-bottom: 12px;
}
.prox-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}
.btn-ver-cal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  background: var(--dorado);
  color: var(--marron);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--sombra-btn);
  transition: transform 0.25s, box-shadow 0.25s;
}
.btn-ver-cal:hover { transform: translateY(-2px); box-shadow: var(--sombra-btn-hover); }

/* ── PIE / FOOTER ──────────────────────────────────────────── */
.pie {
  background:
    linear-gradient(180deg, var(--arena), var(--beige2));
  border-top: 1px solid var(--linea-dorada);
  padding: 56px 0 40px;
  text-align: center;
}

.pie__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.pie__frase {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  color: var(--marron);
  margin: 0 0 4px;
}

.pie__firma {
  font-size: 0.92rem;
  color: var(--texto-suave);
  margin: 0 0 20px;
}

.pie__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.pie__nav a {
  font-size: 0.87rem;
  color: var(--texto-suave);
  transition: color 0.2s;
}
.pie__nav a:hover { color: var(--dorado-oscuro); }

/* ── SCROLL REVEAL ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1060px) {
  .portada {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .portada__body {
    padding: 80px 1.5rem 40px;
  }
  .portada__img {
    order: -1;
    max-height: 380px;
  }
  .portada__img img { min-height: 280px; }
  .portada__img-shine {
    background:
      linear-gradient(to bottom, transparent 60%, var(--beige) 100%);
  }

  .descripcion-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .desc-datos { flex-direction: row; }
  .dato-card  { flex: 1; }

  .tarjetas-dest {
    grid-template-columns: 1fr;
  }

  .evento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .banda-facilitador {
    grid-template-columns: 1fr;
  }
  .banda-facilitador__img img { min-height: 320px; }
  .banda-facilitador__texto { padding: 48px 32px; }

  .inscripcion__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 680px) {
  .bloque { padding: 64px 0; }

  .portada__ficha {
    flex-direction: column;
    gap: 16px;
  }
  .ficha-sep { width: 100%; height: 1px; margin: 0; }

  .desc-datos { flex-direction: column; }

  .linea-tiempo::before { left: 30px; }
  .lt-item__marca { width: 62px; height: 62px; font-size: 1.3rem; }

  .evento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .wa-card { padding: 28px 20px; }

  .portada__acciones {
    flex-direction: column;
    align-items: flex-start;
  }
  .btn-wa { width: 100%; justify-content: center; }
}

@media (max-width: 420px) {
  .evento-grid { grid-template-columns: 1fr; max-width: 300px; margin-inline: auto; }
}
