/* =========================================================================
   Celine Stajcer — estilo inspirado en el lenguaje visual de mamagenas.com:
   base cálida crema, acentos dorado/blush, tipografía editorial (serif +
   sans), botones tipo píldora, esquinas redondeadas generosas, mucho
   espacio en blanco, fotografía real por sobre ilustración.
   ========================================================================= */

:root {
  --cream: #fbf5ec;
  --cream-alt: #f4e7d9;
  --surface: #ffffff;
  --ink: #3b2e27;
  --ink-muted: #8a7768;
  --gold: #c69a5c;
  --gold-dark: #a97c3f;
  --blush: #e7b6ad;
  --blush-dark: #cf8e83;
  --line: rgba(59, 46, 39, 0.1);

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --shadow-soft: 0 20px 45px rgba(90, 60, 30, 0.12);
  --shadow-card: 0 10px 30px rgba(90, 60, 30, 0.1);

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Jost", "Segoe UI", sans-serif;

  --container: 1120px;
}

* { box-sizing: border-box; }

/* El atributo hidden debe ganar siempre, incluso sobre reglas que fijan display
   (ej. .login-screen o .whatsapp-float usan display:flex con la misma especificidad
   que [hidden]; sin este !important, el elemento quedaría visible igual). */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.section { padding: 96px 0; }
.section-alt { background: var(--cream-alt); }

.section-header { margin-bottom: 40px; }
.section-header.centered { text-align: center; }

.section-title { font-size: clamp(1.8rem, 2.6vw, 2.6rem); }

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--gold-dark);
  font-weight: 500;
  margin: 0 0 10px;
}
.kicker-spaced { margin-top: 40px; }

.prose { color: var(--ink); }
.prose p { margin: 0 0 1.1em; }
.prose-centered { max-width: 760px; margin: 0 auto 48px; text-align: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 34px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  box-shadow: var(--shadow-card);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-outline:hover { transform: translateY(-2px); background: var(--surface); }

.cta-standalone { margin-top: 34px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 40px; }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(94%, 1080px);
  background: rgba(251, 245, 236, 0.85);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
  transition: background 0.3s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 10px 26px;
}

.nav-brand {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-links a:hover { background: var(--cream-alt); }
.nav-links a.nav-cta {
  background: var(--ink);
  color: #fff;
}
.nav-links a.nav-cta:hover { background: var(--gold-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    padding: 10px;
    gap: 2px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { text-align: center; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(59,46,39,0.15) 0%, rgba(59,46,39,0.05) 45%, rgba(59,46,39,0.75) 100%);
}

.hero-content {
  position: relative;
  color: #fff;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px 90px;
  width: 100%;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: var(--blush);
  margin: 0 0 14px;
  font-weight: 500;
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-style: italic;
  margin-bottom: 18px;
  max-width: 780px;
}

.hero-subtitle {
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 0 32px;
  color: rgba(255,255,255,0.92);
}

/* ---------- Bio ---------- */

.bio-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}

.bio-photo img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  position: sticky;
  top: 120px;
}

@media (max-width: 900px) {
  .bio-grid { grid-template-columns: 1fr; gap: 32px; }
  .bio-photo img { position: static; aspect-ratio: 4 / 3; }
}

/* ---------- Escuela ---------- */

.escuela-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.video-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16 / 9;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 900px) {
  .escuela-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Galería / Prensa ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.gallery button {
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 1 / 1;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery button:hover img { transform: scale(1.06); }

@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* ---------- Blog / Eventos (listas de publicaciones con link externo) ---------- */

.publicaciones-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 720px;
}
.publicaciones-list li { border-bottom: 1px solid var(--line); }
.publicaciones-list li:first-child { border-top: 1px solid var(--line); }
.publicaciones-list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 20px 6px;
  color: var(--ink);
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.publicaciones-list a:hover { color: var(--gold-dark); padding-left: 12px; }
.publicaciones-titulo { font-family: var(--font-display); font-size: 1.1rem; }
.publicaciones-fecha { font-size: 0.85rem; color: var(--ink-muted); white-space: nowrap; flex-shrink: 0; }

.newsletter-box {
  max-width: 560px;
  margin: 0 auto 48px;
  padding: 30px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  text-align: center;
}
.newsletter-label { font-family: var(--font-display); font-size: 1.1rem; margin: 0 0 18px; }
.newsletter-form { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
}
.newsletter-form input[type="email"]:focus { outline: none; border-color: var(--gold); }
.newsletter-box .form-status { text-align: center; }

/* Honeypot anti-spam: campo trampa invisible para personas, visible para bots que
   completan todos los inputs de un formulario. No usar display:none (algunos bots lo
   detectan y lo saltan) - se oculta sacándolo de la vista en su lugar. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* ---------- Contacto ---------- */

.contact-form {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 26px; }
}

.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-status {
  margin: 14px 0 0;
  font-size: 0.9rem;
  min-height: 1.2em;
}
.form-status.ok { color: #4d7c4a; }
.form-status.error { color: #b1473f; }

/* ---------- Footer ---------- */

.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.85);
  padding: 56px 0 34px;
  text-align: center;
}
.footer-inner { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

.footer-brand {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: #fff;
  margin: 0 0 22px;
}

.social-row {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 26px;
  padding: 0;
}
.social-row a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  transition: background 0.2s ease, transform 0.2s ease;
}
.social-row a:hover { background: var(--gold); transform: translateY(-2px); }
.social-row svg { width: 18px; height: 18px; }

.copyright { font-size: 0.82rem; color: rgba(255,255,255,0.55); margin: 0; }

/* ---------- WhatsApp flotante ---------- */

.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  z-index: 90;
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 14, 10, 0.92);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(90vw, 1000px);
  max-height: 86vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close {
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
  line-height: 1;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 2rem;
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

@media (max-width: 640px) {
  .lightbox-nav { width: 42px; height: 42px; font-size: 1.6rem; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}
