/* ================================================================
   EXIMIA MEDIA — style.css
   Fotografía Premium · Madrid
   ================================================================ */


/* ================================================================
   1. VARIABLES & RESET
   ================================================================ */

:root {
  /* Paleta */
  --red:        #C41230;
  --red-dark:   #9A0E26;
  --black:      #0D0D0D;
  --black-2:    #1A1A1A;
  --cream:      #F5F2EE;
  --white:      #FAFAFA;
  --gray:       #888;
  --gray-light: #DDDBD8;

  /* Tipografías */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'DM Sans', sans-serif;

  /* Transición global suave */
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Altura de la navbar */
  --nav-h: 72px;

  /* ── Sistema unificado de alineación de contenido ──────────
     Variables compartidas por TODOS los hero / page-headers.
     Garantizan que la línea roja vertical decorativa y el texto
     mantengan exactamente la misma separación en cada página.
       · --line-offset : posición horizontal de la línea roja
       · --content-gap : separación entre línea y texto
       · --content-x   : posición x del contenido (línea + gap)
     Si necesitas modificar la separación en todo el sitio,
     basta con cambiar --content-gap aquí. */
  --line-offset: 5vw;
  --content-gap: 2rem;
  --content-x:   calc(var(--line-offset) + var(--content-gap));
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none; /* ocultamos el cursor nativo — usamos el custom */
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }
button { cursor: none; font-family: var(--font-sans); border: none; background: none; }


/* ================================================================
   2. CURSOR PERSONALIZADO
   ----------------------------------------------------------------
   Solución al problema de visibilidad sobre fondos rojos:
   mix-blend-mode: difference invierte el color del cursor según
   el fondo que tenga debajo:
     · Sobre negro   → muestra blanco   ✓
     · Sobre rojo    → muestra cian     ✓
     · Sobre crema   → muestra oscuro   ✓
   Así el cursor es siempre visible en cualquier sección.

   IMPORTANTE: forzamos cursor:none en TODOS los elementos para
   evitar que el navegador muestre el cursor nativo (pointer,
   text, etc.) encima del personalizado al pasar sobre links,
   botones, inputs, textareas, selects, labels, etc.
   ================================================================ */

/* Anulamos el cursor nativo en absolutamente todo el documento */
*,
*::before,
*::after {
  cursor: none !important;
}

.cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  background: #ffffff;          /* base blanca para mix-blend-mode */
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease;

  /* ← CLAVE: invierte el cursor respecto al fondo */
  mix-blend-mode: difference;
}

.cursor-follower {
  position: fixed;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.35s ease, width 0.3s ease, height 0.3s ease, opacity 0.3s ease;

  /* El anillo también aplica difference para mantenerse visible */
  mix-blend-mode: difference;
}

/* Estado hover: el punto se amplía */
.cursor.active {
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%) scale(1);
}

/* El anillo se expande y desvanece ligeramente en hover */
.cursor-follower.active {
  width: 64px;
  height: 64px;
  opacity: 0.4;
}

/* ────────────────────────────────────────────────────────────
   DISPOSITIVOS TÁCTILES (móvil / tablet)
   ----------------------------------------------------------------
   En pantallas táctiles no hay puntero, así que el cursor
   personalizado no tiene sentido y al tocar la pantalla aparece
   flotando donde se tocó, estorbando. Lo ocultamos por completo
   y restauramos el comportamiento nativo del cursor.
   La media query (hover: none) and (pointer: coarse) detecta
   de forma fiable los dispositivos táctiles. */
@media (hover: none) and (pointer: coarse) {
  .cursor,
  .cursor-follower {
    display: none !important;
  }

  /* Restauramos el cursor nativo (el !important global lo había
     anulado para todos los elementos) */
  *,
  *::before,
  *::after {
    cursor: auto !important;
  }

  /* Elementos clicables vuelven a mostrar el puntero de mano */
  a, button, .filter-btn, .service-card, .gallery-item,
  .masonry-item, .event-card, .contact-method-card, .social-link,
  input[type="submit"], [onclick] {
    cursor: pointer !important;
  }
}


/* ================================================================
   3. NAVBAR
   ================================================================ */

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  transition:
    background var(--transition),
    backdrop-filter var(--transition),
    border-color var(--transition);
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(12px);
  border-color: rgba(255, 255, 255, 0.06);
}

/* Logo de la navbar — usa el PNG blanco oficial de la marca.
   El logo viene en su versión blanca (con detalles negros internos
   en la X y elementos decorativos), preparado para fondos oscuros.
   No necesita filtros CSS de inversión. */
.nav-logo {
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0.8rem 0;
}

.nav-logo img {
  height: 48px;
  width: auto;
  display: block;
  transition: opacity var(--transition);
}
.nav-logo:hover img { opacity: 0.85; }

/* Logo del footer — versión más pequeña, ligeramente atenuada */
.footer-logo {
  display: inline-flex;
  align-items: center;
}
.footer-logo img {
  height: 40px;
  width: auto;
  display: block;
  opacity: 0.85;
  transition: opacity var(--transition);
}
.footer-logo:hover img { opacity: 1; }

/* En móvil, el logo de la navbar se reduce un punto */
@media (max-width: 768px) {
  .nav-logo img { height: 38px; }
}

/* Links de escritorio */
.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--transition);
  position: relative;
}

/* Subrayado animado al hover */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--red);
  transition: width var(--transition);
}

.nav-links a:hover       { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

/* Botón CTA de la nav */
.nav-cta {
  padding: 0.55rem 1.4rem;
  border: 1px solid var(--red);
  color: var(--red) !important;
  border-radius: 2px;
  font-size: 0.78rem !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background var(--transition), color var(--transition) !important;
}
.nav-cta::after     { display: none !important; }
.nav-cta:hover      { background: var(--red); color: var(--white) !important; }

/* Hamburger (visible solo en móvil) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Menú móvil fullscreen */
.mobile-nav {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.mobile-nav.open { opacity: 1; pointer-events: all; }

.mobile-nav a {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--white);
  transition: color var(--transition);
}
.mobile-nav a:hover { color: var(--red); }


/* ================================================================
   4. HERO
   ================================================================ */

#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  /* Sobrescribimos el padding heredado de `section` para usar el
     sistema unificado de alineación. De este modo el texto del
     hero queda a EXACTAMENTE la misma distancia de la línea roja
     que en .page-header de portfolio.html.
       · padding-left  = --content-x   (línea + gap)
       · padding-right = --line-offset (simétrico)
       · padding-bottom = 9vh (espacio para que el contenido respire)
       · padding-top    = 0 (el contenido se alinea abajo con flex) */
  padding: 0 var(--line-offset) 9vh var(--content-x);
  overflow: hidden;
}

/* Imagen de fondo con efecto zoom-out al cargar */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 8s ease;
}
.hero-bg.loaded img { transform: scale(1); }

/* Gradiente oscuro hacia abajo para legibilidad */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.15) 35%,
    rgba(0, 0, 0, 0.55) 70%,
    rgba(0, 0, 0, 0.85) 100%
  );
  z-index: 1;
}

/* Línea roja vertical decorativa — se anima al cargar.
   Posición horizontal = --line-offset (sistema unificado). */
.hero-line {
  position: absolute;
  top: 0;
  left: var(--line-offset);
  width: 1px;
  height: 0;
  background: var(--red);
  z-index: 2;
  transition: height 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}
.hero-line.animate { height: 100%; }

/* Wrapper del contenido — sin padding propio: el espaciado
   horizontal y vertical viene directamente de #hero, que usa
   el sistema unificado (mismo cálculo que .page-header). */
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Eyebrow: línea + subtítulo */
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease 0.6s, transform 0.8s ease 0.6s;
}
.hero-eyebrow.animate { opacity: 1; transform: translateY(0); }

.hero-eyebrow-line {
  width: 36px;
  height: 1px;
  background: var(--red);
}
.hero-eyebrow span {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

/* Título grande con reveal por líneas */
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 8vw, 8rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.01em;
  overflow: hidden;
  margin-bottom: 0.6rem;
}
.hero-title-line {
  display: block;
  transform: translateY(110%);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-title-line.animate                { transform: translateY(0); }
.hero-title-line:nth-child(2)          { transition-delay: 0.15s; }
.hero-title em                          { font-style: italic; color: rgba(255, 255, 255, 0.55); }

/* Tagline */
.hero-tagline {
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.65);
  max-width: 420px;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease 1s, transform 0.8s ease 1s;
}
.hero-tagline.animate { opacity: 1; transform: translateY(0); }

/* Botones del hero */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease 1.2s, transform 0.8s ease 1.2s;
}
.hero-actions.animate { opacity: 1; transform: translateY(0); }

/* Botón primario rojo */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  background: var(--red);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); }

/* Botón fantasma (solo texto + flecha) */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--transition);
}
.btn-ghost svg         { transition: transform var(--transition); }
.btn-ghost:hover       { color: var(--white); }
.btn-ghost:hover svg   { transform: translateX(4px); }

/* Indicador scroll (esquina inferior derecha) */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  right: 5vw;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  opacity: 0;
  transition: opacity 0.8s ease 1.6s;
}
.hero-scroll.animate { opacity: 1; }
.hero-scroll span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  writing-mode: vertical-rl;
}

/* Línea animada del scroll */
.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--red), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}


/* ================================================================
   5. SECCIONES — UTILIDADES COMUNES
   ================================================================ */

section { padding: 7rem 5vw; }

/* Etiqueta pequeña sobre el título */
.section-label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}
.section-label::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--red);
}
.section-label span {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
}

/* Título de sección grande */
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.section-title em { font-style: italic; color: rgba(255, 255, 255, 0.45); }

/* Animación de reveal al hacer scroll */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.visible        { opacity: 1; transform: translateY(0); }
.reveal-delay-1        { transition-delay: 0.1s; }
.reveal-delay-2        { transition-delay: 0.2s; }
.reveal-delay-3        { transition-delay: 0.3s; }
.reveal-delay-4        { transition-delay: 0.4s; }


/* ================================================================
   6. SERVICIOS
   ================================================================ */

#services {
  background: var(--cream);
  color: var(--black);
}

.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* Adaptamos colores del label al fondo claro */
#services .section-label::before { background: var(--red); }
#services .section-label span    { color: var(--red); }
#services .section-title em      { color: rgba(13, 13, 13, 0.3); }

.services-intro {
  max-width: 340px;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.8;
  text-align: right;
}

/* Grid de tarjetas separadas por 1px gris (simula bordes) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--gray-light);
  border: 1px solid var(--gray-light);
}

.service-card {
  background: var(--cream);
  padding: 2rem 2.2rem;
  position: relative;
  overflow: hidden;
  transition: background var(--transition);
}

/* Línea roja que crece desde la izquierda al hacer hover */
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.5s ease;
}
.service-card:hover            { background: #EEECEA; }
.service-card:hover::after     { width: 100%; }

.service-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  color: var(--red);
}

.service-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 0.8rem;
  color: var(--black);
}

.service-desc {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.8;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black);
  transition: color var(--transition);
}
.service-link:hover     { color: var(--red); }
.service-link svg       { transition: transform var(--transition); }
.service-link:hover svg { transform: translateX(4px); }


/* ================================================================
   7. PORTFOLIO
   ================================================================ */

#portfolio { background: var(--black); }

.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* Texto introductorio del portfolio (sustituye a los filtros en index.html) */
.portfolio-intro {
  max-width: 340px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.8;
  text-align: right;
}

/* ─── Galería en grid (index) ───────────────────────────────
   Grid de 3 columnas organizado por filas. Las imágenes
   horizontales (.landscape) y verticales (.portrait) usan
   aspect-ratio fijo para que cada fila quede perfectamente
   alineada — algo que el masonry por columnas no permite. */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: none;
}

/* Proporciones: horizontal 3:2, vertical 2:3 */
.gallery-item.landscape { aspect-ratio: 3 / 2; }
.gallery-item.portrait  { aspect-ratio: 2 / 3; }

.gallery-item .img-wrap {
  width: 100%;
  height: 100%;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* Overlay con info que aparece al hover */
.masonry-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  transition: background 0.4s ease;
}
.gallery-item:hover .masonry-overlay { background: rgba(0, 0, 0, 0.45); }

.masonry-info {
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.gallery-item:hover .masonry-info { transform: translateY(0); opacity: 1; }

.masonry-info-cat {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.3rem;
}
.masonry-info-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 300;
}

.portfolio-cta {
  text-align: center;
  margin-top: 3.5rem;
}


/* ================================================================
   8. LIGHTBOX
   ================================================================ */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.open { opacity: 1; pointer-events: all; }

.lightbox img {
  max-width: 88vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}
.lightbox-close:hover { color: var(--white); }


/* ================================================================
   9. SOBRE NOSOTROS
   ================================================================ */

#about {
  background: var(--black-2);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.about-image {
  position: relative;
  min-height: 600px;
}
.about-image img { height: 100%; }

/* Degradado que integra la imagen con el contenido de la derecha */
.about-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, var(--black-2) 100%);
}

/* Tarjeta flotante de estadística sobre la imagen */
.about-stat {
  position: absolute;
  bottom: 3rem;
  left: 3rem;
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 2px solid var(--red);
  padding: 1.4rem 1.8rem;
}
.stat-number {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 300;
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.about-content {
  padding: 6rem 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.9;
  margin: 1.8rem 0 2rem;
}
.about-text strong { color: var(--white); font-weight: 400; }

.about-values {
  display: flex;
  gap: 2.5rem;
  margin-top: 2rem;
}
.about-value {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}
.about-value-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}
.about-value-desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}


/* ================================================================
   10. CONTACTO
   ================================================================ */

#contact {
  background: var(--black);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.contact-lead {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.8vw, 2.6rem);
  font-weight: 300;
  line-height: 1.25;
  margin: 1.5rem 0 2.5rem;
}
.contact-lead em { font-style: italic; color: rgba(255, 255, 255, 0.4); }

.contact-data {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}
.contact-data-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
}
.contact-data-item svg        { color: var(--red); flex-shrink: 0; }
.contact-data-item a          { color: rgba(255, 255, 255, 0.65); transition: color var(--transition); }
.contact-data-item a:hover    { color: var(--white); }

/* Redes sociales */
.social-links { display: flex; gap: 1.2rem; }

.social-link {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.55);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
  border-radius: 2px;
}
.social-link:hover {
  border-color: var(--red);
  color: var(--white);
  background: rgba(196, 18, 48, 0.1);
}

/* ─── Reglas del antiguo formulario eliminadas ────────────────
   El sitio ya no incluye formulario: los usuarios contactan vía
   WhatsApp o llamada. Las reglas .form-row, .form-group,
   .submit-btn, .form-submit y .form-note han sido retiradas
   junto con el toast de confirmación. */

/* ─── Panel CTA del index (sustituye al formulario movido) ─────
   Se usa en index.html#contact, en la columna derecha del grid,
   para mantener el equilibrio visual del layout 2-col tras
   mover el formulario completo a contact.html. Estética coherente
   con el resto: borde rojo lateral (como .about-stat) y tipografía
   serif para el título. */
.contact-cta-panel {
  padding: 2.8rem 2.8rem 2.5rem;
  background: rgba(196, 18, 48, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 2px solid var(--red);
  position: relative;
  overflow: hidden;
}

/* Brillo sutil en la esquina superior derecha (decorativo) */
.contact-cta-panel::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(196, 18, 48, 0.12), transparent 70%);
  pointer-events: none;
}

.contact-cta-panel .section-label {
  margin-bottom: 1.4rem;
}

.contact-cta-title {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin-bottom: 1.4rem;
}
.contact-cta-title em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.45);
}

.contact-cta-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
  margin-bottom: 2.2rem;
  max-width: 400px;
}

/* Fila con dos acciones: WhatsApp (primario) y llamada (ghost) */
.contact-cta-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}

.contact-cta-btn {
  /* El botón primario hereda .btn-primary; solo ajustamos
     el espaciado dentro de la fila de acciones */
  margin-bottom: 0;
}

.contact-cta-ghost {
  /* Hereda .btn-ghost; ajustamos color hover para que combine
     con el panel rojo translúcido del CTA */
  color: rgba(255, 255, 255, 0.85);
}
.contact-cta-ghost:hover { color: var(--white); }
.contact-cta-ghost svg   { transition: transform var(--transition); }
.contact-cta-ghost:hover svg { transform: scale(1.08) rotate(-8deg); }

.contact-cta-note {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.contact-cta-note a {
  color: var(--white);
  border-bottom: 1px solid rgba(196, 18, 48, 0.5);
  padding-bottom: 1px;
  transition: border-color var(--transition), color var(--transition);
}
.contact-cta-note a:hover {
  border-color: var(--red);
  color: var(--red);
}


/* ================================================================
   11. FOOTER
   ================================================================ */

footer {
  background: #080808;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3rem 5vw 2rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* Logo del footer — los estilos están en la sección 3 (navbar)
   junto con .nav-logo, ya que ambos comparten el mismo PNG. */

.footer-nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--white); }

/* Navegación legal (Aviz Legal, Política Confidencialitate, Cookies)
   Se sitúa entre el footer-top y footer-bottom, centrada, con
   tipografía y opacidades sutiles para no competir con el resto. */
.footer-legal {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem 0.8rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}
.footer-legal a {
  color: rgba(255, 255, 255, 0.4);
  transition: color var(--transition);
}
.footer-legal a:hover {
  color: var(--white);
}
.footer-legal-sep {
  color: rgba(255, 255, 255, 0.15);
}

@media (max-width: 600px) {
  .footer-legal {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  .footer-legal-sep { display: none; }
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.8rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy        { font-size: 0.78rem; color: rgba(255, 255, 255, 0.25); }
.footer-copy span   { color: var(--red); }
.footer-made        { font-size: 0.78rem; color: rgba(255, 255, 255, 0.2); }


/* ================================================================
   12. RESPONSIVE
   ================================================================ */

/* Tablet */
@media (max-width: 1024px) {
  #about {
    grid-template-columns: 1fr;
  }
  .about-image { min-height: 450px; }
  .about-image-overlay {
    background: linear-gradient(to bottom, transparent 60%, var(--black-2) 100%);
  }
  .about-content { padding: 4rem 5vw; }

  #contact {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

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

/* Móvil */
@media (max-width: 768px) {
  .nav-links  { display: none; }
  .hamburger  { display: flex; }

  section { padding: 5rem 5vw; }

  .gallery-grid    { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .services-grid   { grid-template-columns: 1fr; }
  .services-header { flex-direction: column; align-items: flex-start; }
  .services-intro  { text-align: left; max-width: 100%; }

  .portfolio-header { flex-direction: column; align-items: flex-start; }
  .portfolio-intro  { text-align: left; max-width: 100%; }

  .about-values     { flex-direction: column; gap: 1.5rem; }

  .contact-cta-panel { padding: 2rem 1.6rem; }

  .footer-top { flex-direction: column; align-items: flex-start; }
}

/* Móvil pequeño */
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; gap: 18px; }
  .hero-title { font-size: 3.2rem; }
}

/* ================================================================
   13. PÁGINA PORTFOLIO DEDICADA (portfolio.html)
   ----------------------------------------------------------------
   Estilos exclusivos de la página interior /portfolio.html:
   header de página, breadcrumb, filtros de categoría y mensaje
   "sin resultados". El resto (navbar, footer, masonry, lightbox,
   cursor) se reutiliza desde las secciones anteriores.
   ================================================================ */

/* Header de página interior con padding para compensar la navbar fija.
   Usa el mismo sistema unificado que .hero-content en index.html
   para que la separación línea-texto sea EXACTAMENTE la misma
   en ambas páginas (sistema de diseño consistente). */
.page-header {
  padding: calc(var(--nav-h) + 6rem) var(--line-offset) 4rem var(--content-x);
  background: var(--black);
  position: relative;
  overflow: hidden;
}

/* Línea roja vertical decorativa, idéntica a la del hero del index */
.page-header::before {
  content: '';
  position: absolute;
  top: var(--nav-h);
  left: var(--line-offset);
  width: 1px;
  height: 0;
  background: var(--red);
  animation: pageHeaderLine 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}
@keyframes pageHeaderLine {
  to { height: calc(100% - var(--nav-h) + 4rem); }
}

/* Breadcrumb (Inicio / Portfolio) */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}
.breadcrumb a {
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition);
}
.breadcrumb a:hover    { color: var(--white); }
.breadcrumb .separator { color: var(--red); }
.breadcrumb .current   { color: var(--white); }

/* Título principal de la página */
.page-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}
.page-title em { font-style: italic; color: rgba(255, 255, 255, 0.45); }

/* Descripción debajo del título */
.page-description {
  max-width: 560px;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.65);
}

/* ─── Sección de la galería ───────────────────────────────── */
.portfolio-page {
  background: var(--black);
  padding: 3rem 5vw 7rem;
}

/* Barra superior con filtros + contador */
.portfolio-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* Filtros: re-añadidos solo para esta página */
.portfolio-filters {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
}

.filter-btn {
  position: relative;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  padding: 0.4rem 0;
  transition: color var(--transition);
}

/* Subrayado animado del filtro */
.filter-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--red);
  transition: width var(--transition);
}
.filter-btn:hover           { color: var(--white); }
.filter-btn:hover::after    { width: 100%; }
.filter-btn.active          { color: var(--white); }
.filter-btn.active::after   { width: 100%; }

/* Pequeño contador junto al filtro activo (ej: "Bodas 7") */
.filter-btn .count {
  display: inline-block;
  margin-left: 0.4rem;
  font-size: 0.65rem;
  color: var(--red);
  vertical-align: super;
}

/* Contador del total de resultados */
.results-count {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}
.results-count strong {
  color: var(--white);
  font-weight: 400;
}

/* Galería más densa para la página dedicada */
.portfolio-page .masonry {
  column-count: 3;
  column-gap: 14px;
}
.portfolio-page .masonry-item { margin-bottom: 14px; }

/* Mensaje cuando no hay resultados */
.no-results {
  text-align: center;
  padding: 5rem 0;
  display: none;
}
.no-results.show { display: block; }
.no-results-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 300;
  margin-bottom: 0.6rem;
  color: rgba(255, 255, 255, 0.7);
}
.no-results-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.4);
}

/* CTA final de la página */
.portfolio-page-cta {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}
.portfolio-page-cta p {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 300;
  margin-bottom: 1.8rem;
  color: rgba(255, 255, 255, 0.85);
}
.portfolio-page-cta p em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.4);
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .portfolio-page .masonry { column-count: 2; }
}

@media (max-width: 768px) {
  /* Mantenemos el padding-left = --content-x para conservar la
     separación entre la línea roja vertical y el texto, igual que
     en desktop. El padding-right baja a 5vw. */
  .page-header     { padding: calc(var(--nav-h) + 4rem) 5vw 3rem var(--content-x); }
  .portfolio-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .portfolio-filters { gap: 1.4rem; }
}

@media (max-width: 480px) {
  .portfolio-page .masonry { column-count: 1; }
}


/* ─── Grid de cards de eventos (portfolio.html) ────────────────
   Sustituye al masonry de fotos sueltas. Cada card es un <a>
   clickable que enlaza a event.html?id=xxx. */

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 2rem;
}

.event-card {
  display: flex;
  flex-direction: column;
  background: var(--black-2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
  position: relative;
}

.event-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.5);
}

/* Imagen de portada con aspect-ratio fijo */
.event-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.event-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.event-card:hover .event-card-image img { transform: scale(1.05); }

/* Overlay sutil sobre la imagen */
.event-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(0, 0, 0, 0.5) 100%
  );
  pointer-events: none;
}

/* Badge superior con categoría + contador */
.event-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.event-card-cat {
  background: rgba(13, 13, 13, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 2px solid var(--red);
  padding: 0.35rem 0.8rem;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
}

.event-card-count {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(13, 13, 13, 0.6);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.7rem;
  border-radius: 2px;
}

/* Cuerpo de la card */
.event-card-body {
  padding: 1.8rem 1.6rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.event-card-title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.005em;
}

.event-card-subtitle {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--red);
  margin-bottom: 0.3rem;
}

.event-card-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.65;
  margin-bottom: 1rem;
  /* Truncamos a 3 líneas para mantener cards igualadas */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  transition: color var(--transition);
}
.event-card-link svg { transition: transform var(--transition); }
.event-card:hover .event-card-link        { color: var(--red); }
.event-card:hover .event-card-link svg    { transform: translateX(4px); }

/* Responsive del grid */
@media (max-width: 768px) {
  .events-grid           { grid-template-columns: 1fr; gap: 1.5rem; }
  .event-card-title      { font-size: 1.5rem; }
  .event-card-body       { padding: 1.4rem 1.3rem 1.3rem; }
}


/* ================================================================
   14. PÁGINA DE EVENTO INDIVIDUAL (event.html)
   ----------------------------------------------------------------
   Layout único de la página de evento: hero con imagen de fondo
   + título superpuesto, intro descriptiva, galería masonry,
   navegación prev/next y CTA final. También 404 si el id no existe.
   ================================================================ */

/* ─── Hero del evento ─────────────────────────────────────── */
.event-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 4rem) var(--line-offset) 4rem var(--content-x);
  overflow: hidden;
}

.event-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.event-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 10s ease-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

.event-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.55) 50%,
    rgba(0, 0, 0, 0.9) 100%
  );
  z-index: 1;
}

.event-hero-line {
  position: absolute;
  top: var(--nav-h);
  left: var(--line-offset);
  width: 1px;
  height: 0;
  background: var(--red);
  z-index: 2;
  animation: heroLineGrow 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}
@keyframes heroLineGrow {
  to { height: calc(100% - var(--nav-h) - 1rem); }
}

.event-hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 900px;
}

.event-hero-content .breadcrumb { margin-bottom: 2rem; }

.event-hero-category {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(196, 18, 48, 0.4);
}

.event-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 0.8rem;
  color: var(--white);
}

.event-hero-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.8rem;
}

.event-meta {
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.event-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
}
.event-meta-item svg { color: var(--red); flex-shrink: 0; }

/* ─── Intro descriptiva ──────────────────────────────────── */
.event-intro {
  background: var(--black);
  padding: 5rem var(--line-offset) 4rem var(--content-x);
  position: relative;
}

.event-intro-inner {
  max-width: 760px;
}

.event-intro-label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
.event-intro-label::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--red);
}
.event-intro-label span {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
}

.event-intro-text {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  font-weight: 300;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: -0.005em;
}

/* ─── Sección de galería ────────────────────────────────── */
.event-gallery-section {
  background: var(--black);
  padding: 3rem var(--line-offset) 5rem var(--content-x);
}

.event-gallery-header {
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.event-gallery-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  margin-top: 1rem;
  line-height: 1.1;
}
.event-gallery-title em { font-style: italic; color: rgba(255, 255, 255, 0.4); }

.event-gallery-section .masonry {
  column-count: 3;
  column-gap: 14px;
}
.event-gallery-section .masonry-item { margin-bottom: 14px; }

/* ─── Navegación entre eventos ──────────────────────────── */
.event-nav {
  background: var(--black-2);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 2.5rem 5vw;
  gap: 2rem;
}

.event-nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition);
  position: relative;
  padding: 1rem 0;
}
.event-nav-link.prev { padding-left: 2.2rem; }
.event-nav-link.next { padding-right: 2.2rem; text-align: right; align-items: flex-end; }

.event-nav-link svg {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--red);
  transition: transform var(--transition);
}
.event-nav-link.prev svg { left: 0; }
.event-nav-link.next svg { right: 0; }

.event-nav-link:hover { color: var(--white); }
.event-nav-link.prev:hover svg { transform: translateY(-50%) translateX(-4px); }
.event-nav-link.next:hover svg { transform: translateY(-50%) translateX(4px); }

.event-nav-meta {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.event-nav-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
}

.event-nav-all {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  padding: 0.6rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  transition:
    color var(--transition),
    border-color var(--transition),
    background var(--transition);
}
.event-nav-all:hover {
  color: var(--white);
  border-color: var(--red);
  background: rgba(196, 18, 48, 0.08);
}

/* ─── CTA final ──────────────────────────────────────────── */
.event-cta {
  background: var(--black);
  padding: 5rem 5vw;
  text-align: center;
}
.event-cta p {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 300;
  margin-bottom: 1.8rem;
  color: rgba(255, 255, 255, 0.85);
}
.event-cta p em { font-style: italic; color: rgba(255, 255, 255, 0.4); }

/* ─── 404: evento no encontrado ─────────────────────────── */
.event-not-found {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 4rem) 5vw 4rem;
  background: var(--black);
}
.event-not-found-inner {
  text-align: center;
  max-width: 520px;
}
.event-not-found-label {
  font-family: var(--font-serif);
  font-size: 5rem;
  color: rgba(196, 18, 48, 0.4);
  line-height: 1;
  margin-bottom: 1rem;
}
.event-not-found-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  margin-bottom: 1.2rem;
  color: var(--white);
}
.event-not-found-title em { font-style: italic; color: rgba(255, 255, 255, 0.4); }
.event-not-found-desc {
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* ─── Responsive de la página de evento ─────────────────── */
@media (max-width: 1024px) {
  .event-gallery-section .masonry { column-count: 2; }
  .event-nav { grid-template-columns: 1fr; gap: 1.5rem; text-align: center; }
  .event-nav-link.prev, .event-nav-link.next { padding: 1rem; text-align: center; align-items: center; }
  .event-nav-link svg { position: static; transform: none; }
  .event-nav-link.prev:hover svg,
  .event-nav-link.next:hover svg { transform: none; }
}

@media (max-width: 768px) {
  /* padding-left = --content-x para mantener la separación con la
     línea roja vertical del hero del evento (igual que en desktop). */
  .event-hero { min-height: 60vh; padding: calc(var(--nav-h) + 3rem) 5vw 3rem var(--content-x); }
  .event-intro { padding: 3rem 5vw 3rem var(--content-x); }
  .event-gallery-section { padding: 2rem 5vw 4rem; }
}

@media (max-width: 480px) {
  .event-gallery-section .masonry { column-count: 1; }
}


/* ================================================================
   14. PÁGINA CONTACTO DEDICADA (contact.html)
   ----------------------------------------------------------------
   Sobrescribimos los paddings de #contact (que estaba pensado como
   sección del index) para integrar el formulario dentro del layout
   de página interior (con page-header arriba). Añadimos también el
   título del formulario y el contraste reforzado (page-header con
   degradado y form como tarjeta elevada).
   ================================================================ */

/* Cuando #contact tiene la clase .contact-page, se renderiza como
   sección de página interior: padding ajustado y sin doble margen
   superior con el page-header de encima. */
#contact.contact-page {
  background: var(--black);
  padding: 4rem 5vw 7rem;
  gap: 6rem;
}

/* Título del formulario (solo aparece en contact.html, no en el index) */
.contact-form-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 300;
  line-height: 1.2;
  margin: 1rem 0 2.2rem;
}
.contact-form-title em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.4);
}


/* Responsive: en contact.html el grid colapsa a 1 columna igual
   que el #contact original, vía las reglas de la sección 13. */
@media (max-width: 1024px) {
  #contact.contact-page { gap: 4rem; padding: 3rem 5vw 5rem; }
}

/* ─── Contraste visual reforzado para contact.html ─────────────
   La página dedicada de contacto introduce un layout más editorial
   con dos zonas de contraste claro:
     · Columna izquierda (info): se queda sobre el fondo principal
     · Columna derecha (form):   se transforma en una "tarjeta"
       elevada con fondo más claro (#1A1A1A), borde superior rojo
       y sombra proyectada. Los inputs ganan relleno sutil y borde
       completo para sentirse como campos reales sobre la tarjeta.
   El page-header además gana un radial gradient rojo muy tenue en
   la esquina superior derecha que añade profundidad sin saturar. */

/* Backdrop decorativo del page-header — versión aclarada.
   En lugar del fondo negro plano, usamos un degradado vertical
   de gris cálido a negro que aporta luminosidad y profundidad
   en la zona superior de la página. El radial rojo se mantiene
   pero con mayor opacidad para destacar sobre el gris. */
.page-header-contact {
  background:
    radial-gradient(ellipse 60% 80% at 90% -10%,
      rgba(196, 18, 48, 0.18),
      transparent 55%),
    linear-gradient(
      to bottom,
      #2A2A2A 0%,
      #1F1F1F 50%,
      var(--black) 100%
    );
}

/* Línea fina horizontal al final del header para separar zonas */
.page-header-contact::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 5vw;
  right: 5vw;
  height: 1px;
  background: linear-gradient(to right,
    transparent,
    rgba(255, 255, 255, 0.12) 20%,
    rgba(255, 255, 255, 0.12) 80%,
    transparent);
}

/* Texto de la página un punto más brillante para asentar
   sobre el fondo claro del header */
.page-header-contact .page-title {
  color: rgba(255, 255, 255, 0.98);
}
.page-header-contact .page-description {
  color: rgba(255, 255, 255, 0.75);
}
.page-header-contact .breadcrumb {
  color: rgba(255, 255, 255, 0.5);
}
.page-header-contact .breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
}
.page-header-contact .breadcrumb a:hover {
  color: var(--white);
}

/* Transición suave de fondo en la sección de contacto */
#contact.contact-page {
  background: linear-gradient(
    to bottom,
    rgba(26, 26, 26, 0.4) 0%,
    var(--black) 25%
  );
}

/* ─── Métodos de contacto directos (.contact-methods) ──────────
   La columna derecha de contact.html. Sustituye al formulario
   anterior: ofrece dos tarjetas grandes (WhatsApp y llamada)
   con hover dinámico y diferenciación cromática. */

.contact-methods {
  position: relative;
}

/* Marcadores "01"/"02" tipo magazine en ambas columnas */
#contact.contact-page .contact-info,
#contact.contact-page .contact-methods {
  position: relative;
}
#contact.contact-page .contact-info::before,
#contact.contact-page .contact-methods::before {
  position: absolute;
  top: 0.4rem;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.25);
}
#contact.contact-page .contact-info::before {
  content: '01 — INFO';
  right: 0;
}
#contact.contact-page .contact-methods::before {
  content: '02 — CONTACT DIRECT';
  right: 0;
  color: rgba(196, 18, 48, 0.5);
}

/* Título del bloque de métodos (subtítulo de la columna) */
#contact.contact-page .contact-form-title {
  margin-top: 1.2rem;
}

/* Intro descriptiva sobre los métodos */
.contact-methods-intro {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 480px;
}

/* ─── Tarjeta de método de contacto ──────────────────────────
   Card grande, clickable entera, con tres zonas: icono | texto |
   flecha. En hover gana fondo, eleva la flecha y mueve el icono
   suavemente. */
.contact-method-card {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 1.6rem 1.8rem;
  background: var(--black-2);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 2px solid transparent;
  border-radius: 2px;
  margin-bottom: 1rem;
  transition:
    border-color var(--transition),
    background var(--transition),
    transform var(--transition);
  position: relative;
  overflow: hidden;
}

.contact-method-card:hover {
  background: #222;
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Variante WhatsApp: acento verde sutil al hover (color oficial) */
.contact-method-card.whatsapp:hover {
  border-left-color: #25D366;
}
.contact-method-card.whatsapp .contact-method-icon {
  color: #25D366;
}

/* Variante llamada: acento rojo (color de marca) */
.contact-method-card.phone:hover {
  border-left-color: var(--red);
}
.contact-method-card.phone .contact-method-icon {
  color: var(--red);
}

/* Icono del método: círculo translúcido con el SVG dentro */
.contact-method-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  transition: transform var(--transition), background var(--transition);
}
.contact-method-card:hover .contact-method-icon {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.05);
}

/* Bloque de texto central */
.contact-method-content {
  flex: 1;
  min-width: 0;
}

.contact-method-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.3rem;
}

.contact-method-value {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.contact-method-desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
}

/* Flecha del lado derecho, se desplaza en hover */
.contact-method-arrow {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.3);
  transition: transform var(--transition), color var(--transition);
}
.contact-method-card:hover .contact-method-arrow {
  transform: translateX(6px);
  color: var(--white);
}

/* Lead text de la info column un punto más brillante */
#contact.contact-page .contact-lead {
  color: rgba(255, 255, 255, 0.95);
}

/* Datos de contacto: hover más visible */
#contact.contact-page .contact-data-item a {
  color: rgba(255, 255, 255, 0.8);
}

/* ─── Responsive en móvil ────────────────────────────────────── */
@media (max-width: 768px) {
  .contact-method-card {
    padding: 1.3rem 1.3rem;
    gap: 1rem;
  }
  .contact-method-icon { width: 48px; height: 48px; }
  .contact-method-icon svg { width: 26px; height: 26px; }
  .contact-method-value { font-size: 1.2rem; }
  .contact-method-arrow { display: none; }
  #contact.contact-page .contact-info::before,
  #contact.contact-page .contact-methods::before {
    display: none; /* ocultamos los marcadores 01/02 en móvil */
  }

  /* Stack vertical de las acciones del CTA panel del index */
  .contact-cta-actions { flex-direction: column; align-items: stretch; }
  .contact-cta-actions .contact-cta-btn,
  .contact-cta-actions .contact-cta-ghost {
    justify-content: center;
  }
}


/* ================================================================
   15. PÁGINAS LEGALES (aviz-legal, politica-confidentialitate, politica-cookies)
   ----------------------------------------------------------------
   Estilos compartidos para las 3 páginas legales del sitio. Texto
   denso pero legible, jerarquía clara, ancho confortable de lectura
   (~720px). Mantenemos coherencia con el resto del sitio: page-header
   con línea roja, fondo oscuro, tipografía serif para títulos.
   ================================================================ */

.legal-page {
  background: var(--black);
  padding: 4rem var(--line-offset) 6rem var(--content-x);
  max-width: 960px;
  margin: 0 auto;
}

/* Cada sección con margen vertical generoso */
.legal-section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.legal-section:last-of-type {
  border-bottom: none;
}

/* Bloque destacado para texto importante (ej: "este sitio NO usa cookies") */
.legal-section.legal-highlight {
  background: rgba(196, 18, 48, 0.05);
  border: 1px solid rgba(196, 18, 48, 0.15);
  border-left: 3px solid var(--red);
  padding: 1.8rem 2rem;
  margin: 2.5rem 0;
}

/* Título de cada sección */
.legal-section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 1.2rem;
  letter-spacing: -0.005em;
  line-height: 1.2;
}

/* Párrafos de texto legal */
.legal-page p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.75;
  margin-bottom: 1rem;
  max-width: 720px;
}
.legal-page p:last-child {
  margin-bottom: 0;
}

/* Resaltado de texto importante */
.legal-page strong {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}
.legal-page em {
  color: rgba(255, 255, 255, 0.55);
  font-style: italic;
}

/* Enlaces en texto legal */
.legal-page a {
  color: var(--white);
  border-bottom: 1px solid rgba(196, 18, 48, 0.5);
  padding-bottom: 1px;
  transition: border-color var(--transition), color var(--transition);
}
.legal-page a:hover {
  border-color: var(--red);
  color: var(--red);
}

/* Listas dentro de las secciones */
.legal-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
  max-width: 720px;
}

.legal-list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.6rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

/* Bullet rojo personalizado en cada item */
.legal-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
}

/* Nota auxiliar en cursiva más sutil */
.legal-note {
  font-size: 0.85rem !important;
  color: rgba(255, 255, 255, 0.45) !important;
  font-style: italic;
  padding: 1rem 1.2rem;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  margin-top: 1.2rem !important;
}

/* Fecha de última actualización */
.legal-updated {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem !important;
  color: rgba(255, 255, 255, 0.4) !important;
  text-align: center;
}

/* Navegación cruzada entre las 3 páginas legales */
.legal-related {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.legal-related a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  border-bottom: none;
  transition: color var(--transition);
}
.legal-related a:hover {
  color: var(--red);
}

/* Responsive */
@media (max-width: 768px) {
  .legal-page {
    padding: 3rem 5vw 4rem var(--content-x);
  }
  .legal-section {
    margin-bottom: 2.2rem;
    padding-bottom: 1.5rem;
  }
  .legal-section.legal-highlight {
    padding: 1.4rem 1.4rem;
  }
  .legal-related {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
}


/* ================================================================
   16. FORMULARIO DE CONTACTO (contact.html)
   ----------------------------------------------------------------
   Formulario con fondo oscuro, inputs con líneas inferiores estilo
   editorial. Coherente con el resto del sitio. Validación visual
   con bordes rojos en error y verdes en válido.
   ================================================================ */

.contact-form-section {
  background: var(--black);
  padding: 5rem var(--line-offset) 7rem var(--content-x);
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.contact-form-container {
  max-width: 760px;
  margin: 0 auto;
}

.contact-form-header {
  margin-bottom: 3rem;
  text-align: center;
}

.contact-form-header .section-label {
  justify-content: center;
}
.contact-form-header .section-label::before {
  display: none; /* sin guion en la sección centrada */
}

.contact-form-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 1.2rem;
  color: var(--white);
}
.contact-form-title em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.5);
}

.contact-form-intro {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto;
}

/* Honeypot (anti-spam): visualmente oculto pero accesible
   semánticamente. Si un bot lo rellena → lo descartamos en PHP. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* Filas con 2 campos en desktop, 1 en móvil */
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-form .form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.contact-form .form-group label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.6rem;
  transition: color var(--transition);
}
.contact-form .form-group:focus-within label {
  color: var(--red);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.7rem 0;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 300;
  outline: none;
  transition: border-color var(--transition);
  -webkit-appearance: none;
  border-radius: 0; /* iOS Safari elimina su redondeo nativo */
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.25);
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--red);
}

/* Campos en estado de error (validación cliente) */
.contact-form .form-group.error input,
.contact-form .form-group.error textarea {
  border-color: var(--red);
  animation: shake 0.3s ease;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-4px); }
  75%      { transform: translateX(4px); }
}

.contact-form textarea {
  resize: vertical;
  min-height: 110px;
  font-family: var(--font-sans);
}

/* Checkbox de consentimiento RGPD */
.form-consent {
  margin: 1.5rem 0 2rem;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}

.consent-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--red);
  cursor: pointer;
}

.consent-label a {
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(196, 18, 48, 0.5);
  transition: color var(--transition), border-color var(--transition);
}
.consent-label a:hover {
  color: var(--red);
  border-color: var(--red);
}

.form-consent.error .consent-label {
  color: var(--red);
}

/* Botón de envío + nota de campos obligatorios */
.form-submit-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.form-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1rem 2.4rem;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  min-width: 200px;
  position: relative;
}
.form-submit-btn:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}
.form-submit-btn:disabled {
  background: var(--red-dark);
  cursor: not-allowed;
  transform: none;
  opacity: 0.7;
}
.form-submit-btn .btn-arrow {
  transition: transform var(--transition);
}
.form-submit-btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* Spinner de carga (oculto por defecto) */
.btn-loader {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-submit-btn.loading .btn-label,
.form-submit-btn.loading .btn-arrow {
  display: none;
}
.form-submit-btn.loading .btn-loader {
  display: block;
}

.form-required-note {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
}

/* Toast de confirmación / error */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--black-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--red);
  padding: 1rem 1.6rem;
  font-size: 0.9rem;
  color: var(--white);
  z-index: 3000;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  max-width: 360px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
.toast.success {
  border-left-color: #4ade80;
}
.toast.error {
  border-left-color: #ef4444;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-form-section {
    padding: 4rem 5vw 5rem var(--content-x);
  }
  .contact-form .form-row {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 0;
  }
  .form-submit-btn {
    width: 100%;
  }
  .toast {
    left: 1rem;
    right: 1rem;
    max-width: none;
  }
}


/* ================================================================
   17. CONTACT.HTML V2 — Diseño con personalidad
   ----------------------------------------------------------------
   Reemplaza completamente el page-header y la sección de métodos.
   Estética oscura premium con acentos rojos, jerarquía visual
   reforzada, números decorativos editoriales, microinteracciones.
   ================================================================ */

/* ─── A. HERO DE CONTACT ──────────────────────────────────── */

.contact-hero {
  position: relative;
  background: var(--black);
  padding: calc(var(--nav-h) + 2.5rem) var(--line-offset) 3rem var(--content-x);
  overflow: hidden;
}

/* Glow radial rojo decorativo en la esquina inferior derecha */
/* Glow radial rojo decorativo en la esquina inferior derecha.
   Importante: position absolute + inset reduce el riesgo de
   afectar al flujo del layout. Se posiciona como capa de fondo. */
.contact-hero-glow {
  position: absolute;
  inset: auto -10% -10% auto;
  width: 50vw;
  max-width: 600px;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(196, 18, 48, 0.12) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Línea roja vertical decorativa (igual estética que el hero del index) */
.contact-hero::before {
  content: '';
  position: absolute;
  top: var(--nav-h);
  left: var(--line-offset);
  width: 1px;
  height: 60%;
  background: var(--red);
  z-index: 1;
}

/* Todos los hijos por encima del glow */
.contact-hero > * { position: relative; z-index: 2; }

/* Breadcrumb arriba */
.contact-hero-top {
  margin-bottom: 1.8rem;
}
.contact-hero-top .breadcrumb {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.contact-hero-top .breadcrumb a {
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition);
}
.contact-hero-top .breadcrumb a:hover { color: var(--red); }
.contact-hero-top .breadcrumb .separator { color: rgba(255, 255, 255, 0.2); }
.contact-hero-top .breadcrumb .current { color: var(--red); }

/* Eyebrow editorial: línea roja + texto */
.contact-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.contact-hero-eyebrow .hero-eyebrow-line {
  width: 36px;
  height: 1px;
  background: var(--red);
}
.contact-hero-eyebrow span {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

/* Título grande */
.contact-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.015em;
  color: var(--white);
  margin-bottom: 2rem;
  max-width: 800px;
}
.contact-hero-title em {
  font-style: italic;
  color: var(--red);
}

/* Bloque inferior: descripción + métricas */
.contact-hero-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: end;
  margin-top: 8vh;
  padding-bottom: 2rem;
}

.contact-hero-description {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
  max-width: 540px;
}

/* Métricas rápidas (response time, location) */
.contact-hero-meta {
  display: flex;
  gap: 2.5rem;
}
.contact-hero-meta .meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  border-left: 2px solid var(--red);
  padding-left: 1.2rem;
}
.contact-hero-meta .meta-value {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1;
}
.contact-hero-meta .meta-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

/* Scroll indicator */
.contact-hero-scroll {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}
.contact-hero-scroll span {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}
.contact-hero-scroll .scroll-arrow {
  width: 30px;
  height: 1px;
  background: var(--red);
  position: relative;
  animation: scrollArrow 1.8s ease-in-out infinite;
}
.contact-hero-scroll .scroll-arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  width: 8px;
  height: 8px;
  border-right: 1px solid var(--red);
  border-bottom: 1px solid var(--red);
  transform: rotate(-45deg);
}
@keyframes scrollArrow {
  0%, 100% { transform: translateX(0); opacity: 1; }
  50%      { transform: translateX(8px); opacity: 0.5; }
}


/* ─── B. SECCIÓN DE MÉTODOS DE CONTACTO V2 ────────────────── */

.contact-methods-v2 {
  background: var(--black);
  padding: 6rem var(--line-offset) 7rem var(--content-x);
  position: relative;
}

/* Línea roja vertical decorativa continuando del hero */
.contact-methods-v2::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--line-offset);
  width: 1px;
  height: 35%;
  background: linear-gradient(to bottom, var(--red), transparent);
}

.contact-methods-header {
  margin-bottom: 4rem;
  max-width: 720px;
}

.contact-methods-header .section-label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}
.contact-methods-header .section-label::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--red);
}
.contact-methods-header .section-label span {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
}

.contact-methods-h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--white);
}
.contact-methods-h2 em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.45);
}

/* Grid 2 columnas de canales */
.contact-channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 5rem;
}

/* Card de canal: número decorativo grande, icono, label, value, action */
.contact-channel {
  position: relative;
  background: var(--black-2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2.5rem 2.5rem 2rem;
  overflow: hidden;
  transition:
    background var(--transition),
    border-color var(--transition),
    transform var(--transition);
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.contact-channel:hover {
  background: #1F1F1F;
  border-color: rgba(196, 18, 48, 0.4);
  transform: translateY(-4px);
}

/* Línea roja en la base que crece al hover */
.contact-channel::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.contact-channel:hover::after { width: 100%; }

/* Número decorativo grande tipo "01", "02" en la esquina superior derecha */
.channel-num {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 300;
  font-style: italic;
  color: rgba(196, 18, 48, 0.18);
  line-height: 1;
  transition: color var(--transition), transform var(--transition);
}
.contact-channel:hover .channel-num {
  color: rgba(196, 18, 48, 0.55);
  transform: scale(1.05);
}

/* Icono del canal */
.channel-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(196, 18, 48, 0.08);
  border: 1px solid rgba(196, 18, 48, 0.2);
  color: var(--red);
  margin-bottom: 1.8rem;
  transition: background var(--transition), border-color var(--transition);
  border-radius: 2px;
}
.contact-channel:hover .channel-icon {
  background: rgba(196, 18, 48, 0.15);
  border-color: var(--red);
}

/* Label (uppercase, rojo discreto) */
.channel-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.6rem;
}

/* Value (número de teléfono grande, tipografía serif) */
.channel-value {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 0.8rem;
  letter-spacing: -0.005em;
}

/* Descripción de la card */
.channel-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Action: "Deschide WhatsApp →" */
.channel-action {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}
.contact-channel:hover .channel-action {
  color: var(--red);
}
.channel-action svg {
  transition: transform var(--transition);
}
.contact-channel:hover .channel-action svg {
  transform: translateX(4px);
}


/* ─── C. SEPARADOR + REDES SOCIALES ────────────────────────── */

.contact-social-divider {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0 auto 2.5rem;
  max-width: 480px;
}
.contact-social-divider .divider-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}
.contact-social-divider .divider-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
}

.contact-social-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.social-link-v2 {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1.4rem;
  color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  font-size: 0.85rem;
  border-radius: 2px;
}
.social-link-v2:hover {
  color: var(--red);
  border-color: var(--red);
  background: rgba(196, 18, 48, 0.06);
}


/* ─── D. RESPONSIVE ────────────────────────────────────────── */

@media (max-width: 1024px) {
  .contact-hero-bottom {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .contact-hero-meta { gap: 2rem; }
  .contact-channels { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .contact-hero {
    padding: calc(var(--nav-h) + 3rem) 5vw 3rem var(--content-x);
    min-height: 60vh;
  }
  .contact-hero-top { margin-bottom: 2.5rem; }
  .contact-hero-title { margin-bottom: 2rem; }
  .contact-hero-meta {
    flex-direction: column;
    gap: 1.2rem;
  }
  .contact-hero-meta .meta-value { font-size: 1.4rem; }

  .contact-methods-v2 {
    padding: 4rem 5vw 5rem var(--content-x);
  }
  .contact-methods-header { margin-bottom: 2.5rem; }
  .contact-channel {
    padding: 2rem 1.8rem 1.8rem;
    min-height: auto;
  }
  .channel-num {
    font-size: 2.2rem;
    top: 1rem;
    right: 1.4rem;
  }
  .channel-value { font-size: 1.4rem; }

  .contact-social-row { gap: 1rem; }
  .social-link-v2 { padding: 0.7rem 1.1rem; font-size: 0.8rem; }
}


/* ================================================================
   18. FIX FORMULARIO — Inputs y checkbox del formulario
   ================================================================ */

/* Inputs con fondo oscuro semi-transparente para que el texto blanco
   sea siempre visible (antes era transparente y al autocompletar se
   ponía blanco con texto blanco invisible). */
.contact-form input,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.8rem 0.9rem;
  border-radius: 2px 2px 0 0;
}
.contact-form input:focus,
.contact-form textarea:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--red);
}

/* Override del autocompletado del navegador */
.contact-form input:-webkit-autofill,
.contact-form input:-webkit-autofill:hover,
.contact-form input:-webkit-autofill:focus,
.contact-form input:-webkit-autofill:active,
.contact-form textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px rgba(26, 26, 26, 0.95) inset !important;
  -webkit-text-fill-color: var(--white) !important;
  caret-color: var(--white);
  transition: background-color 5000s ease-in-out 0s;
}

/* Checkbox RGPD personalizado — TICK AGRANDADO */
.consent-label input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 1px;
  position: relative;
  transition: border-color var(--transition), background var(--transition);
}

.consent-label input[type="checkbox"]:hover {
  border-color: rgba(255, 255, 255, 0.6);
}

.consent-label input[type="checkbox"]:checked {
  background: var(--red);
  border-color: var(--red);
}

/* Tick MÁS GRANDE — ocupa proporcionalmente más del cuadrado */
.consent-label input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 1px;
  width: 7px;
  height: 13px;
  border: solid var(--white);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.consent-label input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
