/* ============================================================
   Andy Garmendia — estilo editorial Vogue
   Paleta: B&N alto contraste + dorado mínimo como acento
   Títulos: Bodoni Moda (la serif de Vogue)
   Cuerpo: Inter (sans-serif limpia)
   ============================================================ */

:root {
  --black:        #0a0a0a;
  --ink:          #1a1a1a;       /* casi negro para texto */
  --paper:        #ffffff;       /* blanco de papel */
  --paper-warm:   #fbfaf7;       /* blanco roto, muy sutil */
  --rule:         #e8e6e1;       /* divisores muy claros */
  --muted:        #6f6f6f;       /* gris secundario */
  --gold:         #b08a44;       /* dorado mate, único acento de color */
  --gold-soft:    #d9c79a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: var(--paper); }

/* ============================================================
   NAV
   ============================================================ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.5rem 3rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .35s ease, padding .35s ease, box-shadow .35s ease;
  background: transparent;
  mix-blend-mode: difference;   /* el menú se invierte sobre fotos oscuras */
  color: #fff;
}
nav.scrolled {
  mix-blend-mode: normal;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  color: var(--ink);
  padding: 1rem 3rem;
  border-bottom: 1px solid var(--rule);
}
.nav-brand {
  font-family: 'Bodoni Moda', 'Times New Roman', serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: .05em;
}
.nav-links {
  display: flex; list-style: none; gap: 2.25rem;
}
.nav-links a {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .25em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: currentColor;
  transition: width .3s ease;
}
.nav-links a:hover::after { width: 100%; }

.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: transparent; border: 0;
  cursor: pointer; padding: 4px;
}
.hamburger span {
  width: 26px; height: 1.5px; background: currentColor; display: block;
  transition: transform .3s ease, opacity .3s ease;
}

.mobile-menu {
  display: none;
  position: fixed; inset: 0; z-index: 999;
  background: var(--paper);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 2.5rem;
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a {
  font-family: 'Bodoni Moda', serif;
  font-size: 2.25rem; font-weight: 500; color: var(--ink);
}

/* ============================================================
   HERO — split editorial estilo magazine spread
   ============================================================ */
.hero {
  position: relative;
  height: 100vh; min-height: 640px;
  display: grid; grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  overflow: hidden;
  background: var(--paper-warm);
}
.hero-bg {
  grid-column: 2; grid-row: 1;
  background: url('/assets/img/modic-1-portrait.jpeg') center 25% / cover no-repeat;
  width: 100%; height: 100%;
}
.hero-content {
  grid-column: 1;
  position: relative; z-index: 2;
  align-self: center; justify-self: end;
  padding: 6rem 3rem 4rem;
  max-width: 640px;
  color: var(--ink);
}
.hero-eyebrow {
  font-size: .7rem; font-weight: 500;
  letter-spacing: .35em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 1rem;
}
.hero-eyebrow::before {
  content: ''; width: 50px; height: 1px; background: var(--gold);
}
.hero-name {
  font-family: 'Bodoni Moda', serif;
  font-weight: 500;
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  line-height: .95;
  letter-spacing: -.01em;
  margin-bottom: 1.25rem;
  color: var(--ink);
}
.hero-name em {
  font-style: italic;
  font-weight: 400;
}
.hero-tagline {
  font-family: 'Bodoni Moda', serif;
  font-style: italic;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 400;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 2.25rem;
  line-height: 1.5;
}
.hero-roles {
  display: flex; gap: 1.75rem; flex-wrap: wrap;
}
.hero-roles span {
  font-size: .62rem; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--ink);
  position: relative;
}
.hero-roles span:not(:last-child)::after {
  content: '·'; position: absolute; right: -1rem; color: var(--gold);
}
.hero-scroll {
  position: absolute; left: 25%; bottom: 2rem; z-index: 2;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: var(--muted);
}
.hero-scroll span {
  font-size: .6rem; letter-spacing: .35em; text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--gold-soft), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: .25; transform: scaleY(.9); transform-origin: top; }
  50%     { opacity: 1;   transform: scaleY(1); }
}

/* ============================================================
   Estructura común de secciones
   ============================================================ */
section {
  padding: 7rem 3rem;
  position: relative;
}
.section-header {
  text-align: center;
  margin-bottom: 4.5rem;
  max-width: 700px; margin-left: auto; margin-right: auto;
}
.section-eyebrow {
  font-size: .65rem; font-weight: 500;
  letter-spacing: .35em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.section-title {
  font-family: 'Bodoni Moda', serif;
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -.01em;
}
.section-rule {
  width: 40px; height: 1px; background: var(--ink);
  margin: 1.5rem auto 0;
}

/* ============================================================
   BIO
   ============================================================ */
.bio { background: var(--paper); }
.bio-grid {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 5fr 7fr;
  gap: 5rem; align-items: center;
}
.bio-image {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}
.bio-image img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.05);
}
.bio-text h3 {
  font-family: 'Bodoni Moda', serif;
  font-weight: 400; font-style: italic;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.45;
  margin-bottom: 2rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--gold);
}
.bio-text p {
  font-size: .98rem; line-height: 1.85;
  color: var(--ink);
  margin-bottom: 1.25rem;
}
.bio-text strong {
  font-weight: 600; color: var(--ink);
}
.bio-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem; padding-top: 2.25rem;
  border-top: 1px solid var(--rule);
}
.bio-stat-number {
  font-family: 'Bodoni Moda', serif;
  font-weight: 500;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--ink);
}
.bio-stat-label {
  font-size: .62rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
  margin-top: .5rem;
}

/* ============================================================
   GALERÍA — masonry CSS columns + lightbox
   ============================================================ */
.gallery {
  background: var(--paper-warm);
  padding-bottom: 8rem;
}
.gallery-masonry {
  max-width: 1280px; margin: 0 auto;
  column-count: 3;
  column-gap: 1rem;
}
.gallery-item {
  break-inside: avoid;
  margin: 0 0 1rem;
  position: relative;
  cursor: zoom-in;
  background: var(--ink);
  overflow: hidden;
}
.gallery-item img {
  width: 100%; height: auto; display: block;
  transition: transform .7s cubic-bezier(.4,0,.2,1), opacity .4s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,0) 60%);
  opacity: 0; transition: opacity .35s ease;
  display: flex; align-items: flex-end; padding: 1.75rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-caption {
  font-family: 'Bodoni Moda', serif;
  font-style: italic; font-size: .95rem;
  color: #fff;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(8,8,8,.96);
  display: none; align-items: center; justify-content: center;
  padding: 2rem;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw; max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.lightbox-close {
  position: absolute; top: 1.5rem; right: 2rem;
  background: transparent; border: 0; color: #fff;
  font-size: 2rem; cursor: pointer; line-height: 1;
}
.lightbox-caption {
  position: absolute; bottom: 1.5rem; left: 0; right: 0;
  text-align: center;
  font-family: 'Bodoni Moda', serif; font-style: italic;
  color: rgba(255,255,255,.85);
  font-size: .95rem;
}

/* ============================================================
   IDM — TV section con lite YouTube embed
   ============================================================ */
.tv-section { background: var(--paper); }
.tv-content {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 7fr 5fr;
  gap: 4.5rem; align-items: center;
}
.tv-frame {
  aspect-ratio: 16/9;
  position: relative; overflow: hidden;
  background: var(--ink);
  cursor: pointer;
  box-shadow: 0 25px 60px rgba(0,0,0,.18);
}
.tv-frame img,
.tv-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; object-fit: cover;
}
.tv-frame img { transition: transform .8s cubic-bezier(.4,0,.2,1); }
.tv-frame:hover img { transform: scale(1.03); }
.tv-frame::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
}
.tv-frame.playing::before,
.tv-frame.playing .tv-frame-content { display: none; }

.tv-frame-content {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: #fff; pointer-events: none;
}
.tv-frame-logo {
  font-family: 'Bodoni Moda', serif;
  font-weight: 600;
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: .12em;
  text-shadow: 0 2px 25px rgba(0,0,0,.5);
}
.tv-frame-sub {
  font-size: .65rem; font-weight: 500;
  letter-spacing: .35em; text-transform: uppercase;
  color: rgba(255,255,255,.85);
  margin-top: .25rem;
}
.tv-play-btn {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center;
  margin-top: 1.5rem;
  background: rgba(0,0,0,.15);
  transition: background .3s ease, border-color .3s ease, transform .3s ease;
}
.tv-frame:hover .tv-play-btn {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.07);
}
.tv-play-btn svg {
  width: 22px; height: 22px; fill: #fff; margin-left: 4px;
}
.tv-cta {
  font-size: .55rem; font-weight: 500;
  letter-spacing: .35em; text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin-top: 1.25rem;
}

.tv-info h3 {
  font-family: 'Bodoni Moda', serif;
  font-weight: 500;
  font-size: clamp(2.25rem, 3.5vw, 3rem);
  line-height: 1.05;
  margin-bottom: .75rem;
}
.tv-info h3 em { font-style: italic; }
.tv-channel {
  font-size: .7rem; font-weight: 500;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.75rem;
  display: flex; align-items: center; gap: .8rem;
}
.tv-channel .dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
}
.tv-description {
  font-size: .98rem; line-height: 1.85;
  color: var(--ink);
  margin-bottom: 2.25rem;
}
.tv-schedule {
  display: flex; gap: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
}
.tv-schedule-value {
  font-family: 'Bodoni Moda', serif;
  font-weight: 500;
  font-size: 1.6rem; line-height: 1; color: var(--ink);
}
.tv-schedule-label {
  font-size: .58rem; font-weight: 500;
  letter-spacing: .25em; text-transform: uppercase;
  color: var(--muted);
  margin-top: .4rem;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background: var(--ink); color: var(--paper);
  text-align: center;
}
.contact .section-title { color: var(--paper); }
.contact .section-eyebrow { color: var(--gold-soft); }
.contact .section-rule { background: var(--gold); }

.contact-intro {
  font-family: 'Bodoni Moda', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(255,255,255,.8);
  max-width: 540px;
  margin: 1rem auto 3rem;
  line-height: 1.6;
}
.contact-form {
  max-width: 620px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 1.25rem;
  text-align: left;
}
.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem;
}
.contact-form label {
  display: block;
  font-size: .58rem; font-weight: 500;
  letter-spacing: .3em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: .5rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: .75rem 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.2);
  color: var(--paper);
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  font-weight: 400;
  outline: none;
  transition: border-color .3s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--gold);
}
.contact-form select {
  appearance: none;
  background: transparent;
  cursor: pointer;
}
.contact-form select option {
  background: var(--ink); color: var(--paper);
}
.contact-form textarea { resize: vertical; min-height: 110px; }

/* honeypot — invisible para humanos, los bots lo completan */
.hp-field {
  position: absolute; left: -10000px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

.contact-btn {
  align-self: center;
  margin-top: 1.5rem;
  padding: 1rem 3.5rem;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-family: 'Inter', sans-serif;
  font-size: .68rem; font-weight: 500;
  letter-spacing: .35em; text-transform: uppercase;
  cursor: pointer;
  transition: background .3s ease, color .3s ease;
}
.contact-btn:hover { background: var(--gold); color: var(--ink); }
.contact-btn:disabled { opacity: .5; cursor: wait; }

.contact-socials {
  margin-top: 4rem;
  display: flex; justify-content: center; gap: 2rem;
  flex-wrap: wrap;
}
.contact-socials a {
  font-size: .65rem; font-weight: 500;
  letter-spacing: .3em; text-transform: uppercase;
  color: rgba(255,255,255,.6);
  transition: color .25s ease;
}
.contact-socials a:hover { color: var(--gold); }

.flash {
  max-width: 560px; margin: 0 auto 2rem;
  padding: 1rem 1.5rem;
  border: 1px solid var(--gold);
  font-size: .8rem; letter-spacing: .05em;
}
.flash.error  { border-color: #d97a7a; color: #ffd5d5; }
.flash.success{ border-color: var(--gold); color: var(--gold-soft); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  padding: 2rem 3rem;
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,.06);
  text-align: center;
}
footer p {
  font-size: .6rem; letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
}

/* ============================================================
   Animaciones de entrada
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s ease, transform .9s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .gallery-masonry { column-count: 2; }
}
@media (max-width: 880px) {
  nav { padding: 1.2rem 1.5rem; }
  nav.scrolled { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }

  section { padding: 5rem 1.5rem; }

  /* En mobile el hero vuelve a foto full-bleed con texto abajo (más legible) */
  .hero {
    grid-template-columns: 1fr;
    background: var(--black);
  }
  .hero-bg {
    grid-column: 1 / -1; grid-row: 1;
    position: absolute; inset: 0;
  }
  .hero::after {
    content: '';
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,.45) 50%, rgba(0,0,0,.85) 100%);
  }
  .hero-content {
    grid-column: 1; grid-row: 1;
    align-self: end; justify-self: stretch;
    padding: 0 1.5rem 4rem;
    color: #fff;
    z-index: 2;
  }
  .hero-content .hero-name { color: #fff; }
  .hero-content .hero-tagline { color: rgba(255,255,255,.85); }
  .hero-content .hero-roles span { color: rgba(255,255,255,.9); }
  .hero-content .hero-eyebrow { color: var(--gold-soft); }
  .hero-content .hero-eyebrow::before { background: var(--gold-soft); }
  .hero-scroll { left: 50%; color: rgba(255,255,255,.6); }
  .hero-roles { gap: 1.25rem; }
  .hero-roles span:not(:last-child)::after { right: -.85rem; }

  .bio-grid { grid-template-columns: 1fr; gap: 3rem; }
  .bio-image { max-width: 420px; margin: 0 auto; aspect-ratio: 3/4; }

  .tv-content { grid-template-columns: 1fr; gap: 3rem; }

  .form-row { grid-template-columns: 1fr; }

  .gallery-masonry { column-count: 1; column-gap: 0; }
  .gallery-item { margin-bottom: .75rem; }
}
@media (max-width: 480px) {
  .hero-name { font-size: 3.2rem; }
  .bio-stats { grid-template-columns: 1fr 1fr; }
  .bio-stats > div:nth-child(3) { grid-column: 1 / -1; }
  .tv-schedule { gap: 1.5rem; }
}
