/* =========================================================
   VARIABLES GLOBALES
   ========================================================= */
:root{
  --panel-w: clamp(260px, 32vw, 360px);
  --panel-bg: rgba(255,255,255,0.85);
  --panel-border: #eaeaea;
  --text-1: #161616;
  --text-2: #5f5f5f;
  --hover: #f7f7f7;
  --shadow: 0 10px 30px rgba(0,0,0,.06);
}

/* =========================================================
   BASE DEL SITIO
   ========================================================= */
body{
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1rem;
  margin: 0;
}

.container{
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

.content img{ max-width:100%; height:auto; display:block; margin-inline:auto; }
.img-center{ display:block; margin-inline:auto; }
.text-center{ text-align:center; }
figure{ margin: 0; }

/* Enlaces y botones */
a{ color: var(--accent); text-decoration: none; }
a:hover{ color: var(--accent-600); text-decoration: underline; }

.btn{
  display:inline-block;
  padding: .7rem 1.1rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border: none;
  box-shadow: var(--shadow);
}
.btn:hover{ background: var(--accent-600); }

/* Cards */
.card{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

/* =========================================================
   HEADER + MARCA + HAMBURGUESA
   ========================================================= */

.site-header{
  padding: .75rem 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 5;
}

/* Grid centrada: hamburguesa | título | spacer */
.site-bar--center{
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 12px;
}

/* Marca (Isabel Serrano) */

/* ===== TÍTULO DE PORTADA ESTILO EDITORIAL ===== */
.brand{
  text-align: center;
}

/* ===== TÍTULO EDITORIAL (Playfair Display) ===== */
.brand a {
  font-family: "Cinzel", serif;
  font-weight: 400;
  font-size: clamp(32px, 5vw, 60px);
  letter-spacing: 0.5px;
  line-height: 1.1;
  color: var(--text-1);
  text-decoration: none;
  display: inline-block;
  padding: 0.1em 0 0.2em;
}

/* Ligero ajuste en móvil */
@media (max-width: 480px) {
  .brand a {
    font-size: clamp(28px, 7vw, 46px);
  }
}


.brand a:hover {
  text-decoration: none;
}

/* Spacer derecho */
.bar-spacer{
  justify-self: end;
  width: 40px;
  height: 40px;
}

/* Botón hamburguesa */
.hamburger{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  cursor: pointer;
}
.hamburger .line{
  width: 22px;
  height: 2px;
  background: #111;
  border-radius: 1px;
  transition: transform .2s ease, opacity .2s ease;
  cursor: pointer;
}

/* Animación al estado “X” */
body.nav-open .hamburger .line:nth-child(1){
  transform: translateY(7px) rotate(45deg);
}
body.nav-open .hamburger .line:nth-child(2){
  opacity: 0;
}
body.nav-open .hamburger .line:nth-child(3){
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   OVERLAY FONDO
   ========================================================= */
.nav-overlay{
  position: fixed; inset: 0;
  background: rgba(0,0,0,.22);
  opacity: 0;
  transition: opacity .2s ease;
}
.nav-overlay.show{
  opacity: 1;
}

/* Bloqueo de scroll */
.no-scroll{ overflow: hidden; }

/* =========================================================
   PANEL LATERAL (DRAWER)
   ========================================================= */

.site-navwrap{
  position: fixed;
  top: 0; bottom: 0; left: 0;
  width: var(--panel-w);
  background: var(--panel-bg);
  backdrop-filter: blur(10px);
  border-right: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  transform: translateX(-104%);
  transition: transform .25s ease;
  display: grid;
  grid-template-rows: auto auto auto 1fr; /* 🔹 las 3 primeras compactas, la última absorbe espacio */
  padding: 18px 16px;
  align-items: start;  /* 🔹 asegura que todo empieza arriba */
  row-gap: 0;          /* 🔹 sin huecos verticales */
}

.site-navwrap[data-open="true"]{
  transform: translateX(0);
  animation: drawerPop .28s cubic-bezier(.22,.9,.34,1);
  will-change: transform;
}

/* Animación elástica */
@keyframes drawerPop {
  0%   { transform: translateX(-104%); }
  80%  { transform: translateX(-2%); }
  100% { transform: translateX(0); }
}

/* =========================================================
   MENÚ INTERNO
   ========================================================= */

.main-nav {
  display: grid;
  gap: 2px;                 /* separación mínima entre opciones */
  padding: 0;
  margin: 0;
}

/* Inicio / Sobre mí / Contacto: mismo estilo, tipo lista */
.main-nav a,
.main-nav .dropbtn {
  appearance: none;
  background: none;
  border: none;
  display: block;
  width: 100%;
  text-align: left;
  font-size: 0.9rem;        /* un pelín más pequeño, editorial */
  font-weight: 300;         /* fino */
  padding: 3px 4px;         /* muy compacto */
  color: var(--text-1);
  letter-spacing: 0.15px;
  border-radius: 6px;
  cursor: pointer;
  line-height: 1.4;
  position: relative;
  z-index: 100;
  pointer-events: auto;
}

/* Hover muy sutil */
.main-nav a:hover,
.main-nav .dropbtn:hover {
  background: var(--hover);
}

/* Icono ▾/▴ a la derecha en "Sobre mí" */
.main-nav .dropbtn::after {
  content: "▾";
  float: center;
  opacity: .6;
  margin-left: 6px;
  font-size: 0.8em;
}


/* Idiomas (estilo coherente con el resto) */
.lang-switch a {
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--text-2);
  letter-spacing: 0.2px;
}

/* =========================================================
   DROPDOWN (Sobre mí) – VERSIÓN LIMPIA
   ========================================================= */

/* Botón "Sobre mí" igual que el resto */
.main-nav .dropbtn::after {
  content: "▾";
  float: right;
  opacity: .6;
  margin-left: 4px;
  font-size: 0.75em;
}

/* Cambia a ▴ cuando está abierto */
.dropdown.open .dropbtn::after {
  content: "▴";
  opacity: 1;
}

/* Submenú oculto por defecto */
.dropdown .dropdown-content {
  display: none;              /* oculto */
  margin-top: 3px;
  padding-left: 14px;
  border-left: 1px solid #e4e4e4;
  gap: 2px;
}

/* Cuando "Sobre mí" está abierto */
.dropdown.open .dropdown-content {
  display: flex;              /* columna de enlaces */
  flex-direction: column;
}

/* Enlaces del submenú */
.dropdown .dropdown-content a {
  font-size: 0.85rem;
  font-weight: 300;
  padding: 2px 2px;
  letter-spacing: 0.15px;
  color: var(--text-2);
  border-radius: 0;
}

.dropdown .dropdown-content a:hover {
  background: var(--hover);
}

/* =========================================================
   HERO
   ========================================================= */

.hero{ margin: 0; }
.hero-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================================================
   GALERÍAS
   ========================================================= */

.gallery{
  --gap: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
  gap: var(--gap);
}

.gallery .tile{
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  box-shadow: var(--shadow);
  overflow:hidden;
}

.gallery--uniform .media{
  aspect-ratio: 4/5;
  overflow:hidden;
}
.gallery--uniform .media img{
  width:100%; height:100%; object-fit:cover;
}

.gallery figcaption{
  padding:.6rem .8rem;
  font-size:.9rem;
  color:var(--muted);
  text-align:center;
}

/* =========================================================
   FORMULARIO DE CONTACTO — ESTILO EDITORIAL
   ========================================================= */

/* ===== CONTENEDOR DE CONTACTO — VERSIÓN EDITORIAL DEFINIDA ===== */

.contact-form {
  background: #fcfcfc;                      /* 🔹 un blanco más cálido */
  border: 1px solid rgba(0,0,0,0.07);       /* 🔹 borde casi invisible */
  border-radius: 14px;
  padding: 2rem;
  box-shadow:
    0 3px 6px rgba(0,0,0,0.04),             /* 🔹 sombra muy delicada */
    0 8px 20px rgba(0,0,0,0.03);
  transition: box-shadow .25s ease;
}

/* Glow editorial suave al pasar el ratón */
.contact-form:hover {
  box-shadow:
    0 6px 14px rgba(0,0,0,0.06),
    0 12px 28px rgba(0,0,0,0.04);
}


/* INPUTS Y TEXTAREA — no se salen jamás */
.contact-form input,
.contact-form textarea {
  width: 100%;                 /* 🔹 SIEMPRE del ancho del contenedor */
  padding: .75rem .9rem;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #f7f7f7;
  font-size: 1rem;
  box-sizing: border-box;      /* 🔹 evita desbordes */
}

/* HOVER y FOCUS elegantes */
.contact-form input:hover,
.contact-form textarea:hover {
  background: #f2f2f2;
}

.contact-form input:focus,
.contact-form textarea:focus {
  background: #fff;
  border-color: #c19a6b;
  box-shadow: 0 0 0 3px rgba(193,154,107,0.22);
  outline: none;
}

/* BOTÓN — tamaño normal, no enorme */
.contact-form button {
  width: auto;                /* 🔹 NO el 100% */
  padding: .55rem 1.2rem;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 12px;
  background: transparent;
  font-size: .95rem;
  font-weight: 300;
  cursor: pointer;
  color: var(--text-1);
  box-shadow: none;
  align-self: flex-start;     /* 🔹 evita que se estire */
}

/* Hover botón */
.contact-form button:hover {
  background: rgba(0,0,0,.04);
  border-color: rgba(0,0,0,.25);
}

/* ===== Separación elegante del footer ===== */

.contact-section {
  margin-bottom: 5rem;   /* 🔹 aire editorial antes del footer */
}


/* =========================================================
   AUDIOS GRID
   ========================================================= */

.audio-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin: 1rem 0 2rem;
}
.audio-card{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.audio-card audio{
  width: 100%;
  border-radius: 8px;
}

/* =========================================================
   VIDEOS GRID
   ========================================================= */

.video-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin: 1rem 0 2rem;
}

/* Tarjeta de vídeo */
.video-card{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  box-shadow: var(--shadow);
}

/* Cabecera: título + meta */
.video-card header{
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.video-card .video-title{
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
}

.video-card .video-meta{
  font-size: .85rem;
  color: var(--muted);
}

/* Contenedor del vídeo: 16:9, recorte elegante */
.video-media{
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #000; /* para evitar parches blancos mientras carga */
}

.video-media video{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Pie: acciones (opcional, igual que audio) */
.video-actions{
  margin-top: .25rem;
  display: flex;
  gap: .5rem;
  align-items: center;
}

/* --- Botón estilo outline (versión elegante/adaptada a tu web) --- */
/* Botón outline limpio y SIEMPRE visible */
.btn.outline {
  display: inline-flex;
  background: transparent;
  border: 1px solid rgba(0,0,0,.15);  
  color: var(--text-1);   /* 🔹 fuerza texto visible */
  padding: .45rem .9rem;
  border-radius: 15px;
  font-size: .9rem;
  font-weight: 300;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}

/* Hover suave */
.btn.outline:hover {
  background: rgba(0,0,0,.04);
  border-color: rgba(0,0,0,.25);
  color: var(--text-1);   /* 🔹 se mantiene visible al hover */
}




/* =========================================================
   SOCIAL BAR
   ========================================================= */

.social-bar{
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
}
.social-link{
  width: 48px;
  height: 48px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#fff;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}
.social-link:hover{
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

/* =========================================================
   ACCESIBILIDAD / REDUCE MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce){
  .nav-overlay,
  .site-navwrap,
  .hamburger .line{
    transition: none;
    animation: none;
  }
}

/* =========================================================
   MASONRY EDITORIAL — VOGUE STYLE
   ========================================================= */

.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 20px;

  /* Masonry moderno */
  grid-auto-flow: dense;
  align-items: start;
}

.gallery-masonry .m-item {
  display: block;
  break-inside: avoid;
}

.gallery-masonry img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px; /* borde suave y elegante */
  box-shadow: 0 6px 18px rgba(0,0,0,.12); /* sombra editorial ligera */
  transition: transform .25s ease;
}

.gallery-masonry img:hover {
  transform: scale(1.015); /* micro zoom editorial */
}

.photo-copyright {
  display: block;
  margin-top: 6px;
  font-size: .75rem;
  font-weight: 300;
  color: var(--text-2);
  opacity: .75;
  text-align: right;
}


/* ===== COMPACTAR DE VERDAD EL MENÚ LATERAL ===== */

.site-navwrap {
  padding-top: 16px;
}

/* El menú: una columna pegada arriba, sin repartir el espacio */
.main-nav {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start !important;
  gap: 4px;              /* separación pequeña entre opciones */
  margin: 0;
  padding: 0;
  height: auto !important;
}

/* Opciones tipo lista editorial, bien juntitas */
.main-nav a,
.main-nav .dropbtn {
  padding: 2px 2px;      /* casi sin “colchón” */
  margin: 0;
  font-size: 0.9rem;
  font-weight: 300;
  border-radius: 0;
}

/* Submenú oculto por defecto */
.dropdown .dropdown-content {
  display: none;              /* 🔹 por defecto no se ve */
  margin-top: 3px;
  padding-left: 14px;
  border-left: 1px solid #e4e4e4;
  gap: 2px;
}

/* Cuando "Sobre mí" está abierto */
.dropdown.open .dropdown-content {
  display: flex;              /* 🔹 se ve como columna de enlaces */
  flex-direction: column;
}

/* Enlaces del submenú */
.dropdown .dropdown-content a {
  font-size: 0.85rem;
  font-weight: 300;
  padding: 2px 2px;
  letter-spacing: 0.15px;
  color: var(--text-2);
  border-radius: 0;
}

/* === Asegurar que el menú lateral está encima del header === */
.site-navwrap,
.nav-overlay {
  z-index: 9999 !important;
  position: fixed; /* importante: garantiza que pueda apilarse */
}

/* El header debe quedarse por debajo del panel lateral */
.site-header {
  z-index: 1000 !important;
}


/* =========================================================
   SISTEMA TIPOGRÁFICO — ESTILO VOGUE EQUILIBRADO
   ========================================================= */

/* --------------------------------------------
   TÍTULOS PRINCIPALES (H1) — para todas las páginas
   -------------------------------------------- */
h1, .page-title {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: clamp(30px, 4vw, 50px);
  letter-spacing: 0.3px;
  line-height: 1.15;
  margin: 1.2rem 0 1.6rem;
  text-transform: none;     /* Elegante, no exagerado */
}

/* --------------------------------------------
   TÍTULOS DE SECCIÓN (H2)
   -------------------------------------------- */
h2, .section-title {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 0.25px;
  line-height: 1.25;
  margin: 2rem 0 1rem;
  text-transform: none;
}

/* --------------------------------------------
   SUBTÍTULOS (H3)
   -------------------------------------------- */
h3, .subtitle {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: clamp(19px, 2.2vw, 28px);
  letter-spacing: 0.2px;
  line-height: 1.3;
  margin: 1.5rem 0 .6rem;
}

/* --------------------------------------------
   TEXTO BASE
   -------------------------------------------- */
body, p, li, .text {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: .2px;
  color: var(--text-1);
}

/* --------------------------------------------
   BREADCRUMBS
   -------------------------------------------- */
.breadcrumb {
  font-size: .85rem;
  font-weight: 300;
  color: var(--text-2);
  letter-spacing: .15px;
}

/* --------------------------------------------
   MENÚ LATERAL — opciones principales
   -------------------------------------------- */
.main-nav a,
.main-nav .dropbtn {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: .9rem;
  font-weight: 300;
  letter-spacing: .22px;
  line-height: 1.35;
  text-transform: none;     /* Elegante, no excesivo */
}

/* Submenú */
.dropdown .dropdown-content a {
  font-size: .85rem;
  letter-spacing: .2px;
  font-weight: 300;
  text-transform: none;
}

/* --------------------------------------------
   IDIOMAS
   -------------------------------------------- */
.lang-switch a {
  font-size: .8rem;
  font-weight: 300;
  letter-spacing: .2px;
}

/* --------------------------------------------
   CARDS AUDIO / VIDEO
   -------------------------------------------- */
.audio-card .audio-title,
.video-card .video-title {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: .25px;
  text-transform: none;
}

.audio-card .audio-meta,
.video-card .video-meta {
  font-size: .85rem;
  font-weight: 300;
  letter-spacing: .15px;
}

/* --------------------------------------------
   FORMULARIO CONTACTO
   -------------------------------------------- */
.contact-block .contact-heading {
  font-family: "Playfair Display", serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 400;
  letter-spacing: .25px;
  margin-bottom: .5rem;
  text-transform: none;
}

.contact-form label {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: .9rem;
  font-weight: 400;
  letter-spacing: .2px;
  text-transform: none;
}

.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: .2px;
}

.contact-form button {
  font-family: inherit;
  font-size: .9rem;
  font-weight: 300;
  letter-spacing: .25px;
  text-transform: none;
}

/* Contenedor del título + icono alineados */
.contact-title-row {
  display:flex;
  justify-content:left;
  align-items:baseline;
  gap: 12px;
  margin-bottom: 1.5rem;
}


/* --------------------------------------------
   FOOTER
   -------------------------------------------- */

.site-footer {
  padding: 2rem 0;
  text-align: center;
  font-size: .75rem;
  color: var(--text-2);
  letter-spacing: 0.3px;
  opacity: 0.85;
}

.site-footer p {
  margin: 0;
}

/* --------------------------------------------
   MENSAJE ÉXITO/ERROR ENVÍO CORREO
   -------------------------------------------- */
.contact-success {
  background: #e6f6ec;
  color: #2f7a46;
  padding: .8rem 1rem;
  border-radius: 8px;
}

.contact-error {
  background: #fdecec;
  color: #9b2c2c;
  padding: .8rem 1rem;
  border-radius: 8px;
}

/* Copyright en galería */
.photo-copyright {
  font-size: .75rem;
  font-weight: 300;
  color: var(--text-2);
  margin-top: 6px;
  text-align: right;
  opacity: .75;
  line-height: 1.3;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* =========================================================
   LIGHTBOX EDITORIAL CON NAVEGACIÓN
   ========================================================= */
   
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(4px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
}

.lightbox-overlay.active {
  display: flex;
  animation: fadeIn .25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox-img {
  max-width: 90vw;
  max-height: 75vh;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,.3);
  transition: opacity .3s ease;
  opacity: 0;
  object-fit: contain;
}

.lightbox-img.loaded {
  opacity: 1;
}

/* Botón cerrar */
.lightbox-close {
  position: fixed;
  top: 24px;
  right: 24px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  z-index: 10000;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(4px);
  padding: 4px 12px 6px;
  border-radius: 10px;
  border: none;
  transition: background .2s ease;
}

.lightbox-close:hover {
  background: rgba(255,255,255,.25);
}

/* Flechas navegación */
.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: #fff;
  background: rgba(255,255,255,.1);
  border: none;
  padding: 6px 14px;
  border-radius: 10px;
  cursor: pointer;
  z-index: 10000;
  backdrop-filter: blur(4px);
  transition: background .2s ease;
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-nav:hover {
  background: rgba(255,255,255,.2);
}

.lightbox-counter {
  position: fixed;
  bottom: 24px;
  color: #fff;
  font-size: 1rem;
  opacity: .85;
  letter-spacing: .5px;
}
.lightbox-copyright {
  margin-top: 12px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  text-align: center;
  font-weight: 300;
  max-width: 90%;
  margin-inline: auto;
  letter-spacing: 0.2px;
}
.lightbox-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-height: 100%;
  gap: 12px;
  width: 100%;
}
