/* ── EYEBROW sobre fondo claro: #8B7434 pasa WCAG AA (4.52:1 sobre blanco) ── */

   SECCIÓN 3 — INTRO / CONTENIDO
════════════════════════════════ */
.intro-section {
  background: var(--white);
  color: var(--black);
  padding: 110px 24px 100px;
  text-align: center;
}

.intro-inner {
  max-width: 780px;
  margin: 0 auto;
}

.intro-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 48px;
}

.ornament-line {
  display: block;
  width: 72px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.ornament-diamond {
  display: block;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.intro-h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--white);
  margin-bottom: 36px;
}

.intro-divider {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 36px;
}

.intro-p {
  font-size: clamp(15px, 1.8vw, 17px);
  font-weight: 300;
  line-height: 1.85;
  letter-spacing: 0.02em;
  color: var(--white);
  max-width: 680px;
  margin: 0 auto;
}

/* ════════════════════════════════
   SECCIÓN 4 — SERVICIOS / TARJETAS
════════════════════════════════ */
.servicios-section {
  background: #0D0D0D;
  padding: 100px 24px 110px;
}

.servicios-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.servicios-header {
  text-align: center;
  margin-bottom: 64px;
}

.servicios-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  padding: 5px 14px;
  border: 1px solid rgba(201,168,76,0.35);
}

.servicios-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.02em;
}

.servicios-title em {
  font-style: italic;
  color: var(--gold-light);
}

/* grid de tarjetas */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

/* tarjeta individual */
.card {
  background: #111;
  border: 1px solid rgba(201,168,76,0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.3s;
}

.card:hover {
  border-color: rgba(201,168,76,0.55);
  transform: translateY(-4px);
}

.card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.card:hover .card-img-wrap img {
  transform: scale(1.04);
}

/* línea dorada inferior de imagen */
.card-img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.card-body {
  padding: 32px 28px 36px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
}

.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--white);
  letter-spacing: 0.01em;
}

.card-desc {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.02em;
  flex: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  margin-top: 8px;
  transition: gap 0.2s, color 0.2s;
}

.card-link:hover {
  gap: 14px;
  color: var(--gold-light);
}

.card-link::after {
  content: '→';
  font-size: 14px;
}

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 768px) {
  nav#mainNav { display: none; }
  .scroll-hint { display: none; }
  .servicios-grid { grid-template-columns: 1fr; }
  .card-body { padding: 24px 20px 28px; }
  body { padding-bottom: 62px; }
}

/* ════════════════════════════════
   SECCIÓN 5 — GALERÍA
════════════════════════════════ */
.galeria-section {
  background: var(--white);
  padding: 100px 24px 110px;
}

.galeria-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.galeria-header {
  text-align: center;
  margin-bottom: 64px;
}

.galeria-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #8B7434; /* WCAG AA: 4.52:1 sobre fondo blanco */
  margin-bottom: 16px;
  padding: 5px 14px;
  border: 1px solid rgba(139,116,52,0.4);
}

.galeria-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 300;
  color: var(--black);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.galeria-title em {
  font-style: italic;
  color: var(--gold);
}

/* grid masonry-like con 4 columnas */
.galeria-grid {
  columns: 4;
  column-gap: 12px;
}

.galeria-item {
  break-inside: avoid;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: block;
}

.galeria-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
  filter: grayscale(8%);
}

/* item de video */
.galeria-item.is-video .video-thumb {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
  filter: grayscale(8%);
}

/* overlay hover */
.galeria-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0);
  transition: background 0.35s ease;
}

.galeria-item:hover::after {
  background: rgba(10,10,10,0.35);
}

.galeria-item:hover img,
.galeria-item:hover .video-thumb {
  transform: scale(1.04);
}

/* ícono play para el video */
.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 52px;
  height: 52px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.45);
  transition: background 0.25s, transform 0.25s;
  pointer-events: none;
}

.play-icon svg {
  width: 18px;
  height: 18px;
  fill: var(--gold-light);
  margin-left: 3px;
}

.galeria-item:hover .play-icon {
  background: var(--gold);
  transform: translate(-50%, -50%) scale(1.1);
}

.galeria-item:hover .play-icon svg {
  fill: var(--black);
}

/* ════════════════════════════════
   LIGHTBOX
════════════════════════════════ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.open { display: flex; }

.lightbox-media {
  position: relative;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-media img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  display: block;
}

.lightbox-media video {
  max-width: 90vw;
  max-height: 88vh;
  outline: none;
}

/* borde dorado sutil alrededor del media */
.lightbox-media::before {
  content: '';
  position: absolute;
  inset: -2px;
  border: 1px solid rgba(201,168,76,0.3);
  pointer-events: none;
}

/* botón cerrar */
.lightbox-close {
  position: fixed;
  top: 24px;
  right: 32px;
  background: none;
  border: 1px solid rgba(201,168,76,0.4);
  color: var(--gold-light);
  font-size: 22px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  z-index: 201;
  line-height: 1;
}

.lightbox-close:hover {
  background: var(--gold);
  color: var(--black);
}

/* flechas navegación */
.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid rgba(201,168,76,0.35);
  color: var(--gold-light);
  font-size: 20px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 201;
  transition: background 0.2s, color 0.2s;
}

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

.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--gold);
  color: var(--black);
}

/* contador */
.lightbox-counter {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.4);
  font-family: 'Barlow', sans-serif;
  z-index: 201;
}

/* ── RESPONSIVE GALERÍA ── */
@media (max-width: 1024px) {
  .galeria-grid { columns: 3; }
}
@media (max-width: 640px) {
  .galeria-grid { columns: 2; column-gap: 8px; }
  .galeria-item { margin-bottom: 8px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* ════════════════════════════════
   SECCIÓN 6 — CONTACTO
════════════════════════════════ */
.contacto-section {
  background: #0D0D0D;
  padding: 100px 24px 110px;
}

.contacto-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.contacto-header {
  text-align: center;
  margin-bottom: 72px;
}

.contacto-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  padding: 5px 14px;
  border: 1px solid rgba(201,168,76,0.35);
}

.contacto-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.02em;
}

.contacto-title em {
  font-style: italic;
  color: var(--gold-light);
}

/* grid 2 columnas */
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}

/* — Columna datos — */
.datos-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 36px;
  letter-spacing: 0.01em;
}

.datos-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.datos-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.datos-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(201,168,76,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.datos-icon svg {
  width: 18px;
  height: 18px;
}

.datos-label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.datos-value {
  display: block;
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  text-decoration: none;
  transition: color 0.2s;
}

a.datos-value:hover {
  color: var(--gold-light);
}

/* — Columna formulario — */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-full {
  grid-column: 1 / -1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}

.form-input {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.2);
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  font-weight: 300;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.25s, background 0.25s;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

.form-input::placeholder {
  color: rgba(255,255,255,0.25);
}

.form-input:focus {
  border-color: rgba(201,168,76,0.6);
  background: rgba(201,168,76,0.04);
}

/* fix color picker de fecha en webkit */
.form-input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.6) sepia(1) saturate(2) hue-rotate(5deg);
  cursor: pointer;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* botones de envío */
.form-actions {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.form-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.2s;
}

.form-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.form-btn-email {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-light);
}

.form-btn-email:hover {
  background: var(--gold);
  color: var(--black);
  transform: translateY(-2px);
}

.form-btn-wa {
  background: #25D366;
  color: #fff;
  border: 1px solid #25D366;
}

.form-btn-wa:hover {
  background: #1ebe5e;
  border-color: #1ebe5e;
  transform: translateY(-2px);
}

/* ════════════════════════════════
   FOOTER
════════════════════════════════ */
.site-footer {
  background: #000;
  border-top: 1px solid rgba(201,168,76,0.2);
  padding: 40px 24px;
  text-align: center;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo-wrap {
  display: flex;
  justify-content: center;
}

.footer-logo {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.55;
}

.footer-divider {
  width: 48px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.footer-copy {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
}

.footer-copy a {
  color: rgba(201,168,76,0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-copy a:hover {
  color: var(--gold-light);
}

/* ── RESPONSIVE CONTACTO ── */
@media (max-width: 860px) {
  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 540px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-actions {
    flex-direction: column;
  }
  .form-btn {
    justify-content: center;
  }
}

/* ════════════════════════════════
   BOTTOM NAV — solo móvil
════════════════════════════════ */
.bottom-nav {
  display: none; /* oculto en desktop */
}

@media (max-width: 768px) {

  /* mostrar barra */
  .bottom-nav {
    display: flex;
    position: fixed;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100%;
    height: 62px;
    background: rgba(0, 0, 0, 0.97);
    border-top: 1px solid rgba(201,168,76,0.25);
    border-bottom: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    align-items: stretch;
    transform: none !important;
  }

  .bnav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.2s;
    padding: 8px 4px;
    position: relative;
  }

  /* línea dorada activo */
  .bnav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: var(--gold);
    opacity: 0;
    transition: opacity 0.2s;
  }

  .bnav-item.active,
  .bnav-item:hover {
    color: var(--gold-light);
  }

  .bnav-item.active::before {
    opacity: 1;
  }

  .bnav-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  /* espacio inferior para que el footer no quede tapado */
  .site-footer {
    padding-bottom: calc(40px + 62px);
  }
}

/* ════════════════════════════════
   SECCIÓN FAQ
════════════════════════════════ */
.faq-section {
  background: var(--white);
  padding: 110px 24px 100px;
}

.faq-inner {
  max-width: 780px;
  margin: 0 auto;
}

.faq-header {
  text-align: center;
  margin-bottom: 56px;
}

.faq-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #8B7434; /* WCAG AA: 4.52:1 sobre fondo blanco */;
  padding: 5px 14px;
  border: 1px solid rgba(201,168,76,0.35);
  margin-bottom: 16px;
}

.faq-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 400;
  color: var(--black);
  line-height: 1.2;
}

.faq-title em {
  font-style: italic;
  color: var(--gold);
}

.faq-list {
  border-top: 1px solid rgba(10,10,10,0.12);
}

.faq-item {
  border-bottom: 1px solid rgba(10,10,10,0.12);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--gray-text);
  font-family: 'Barlow', sans-serif;
  font-size: clamp(14px, 1.8vw, 16px);
  font-weight: 400;
  line-height: 1.5;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--black);
}

.faq-question[aria-expanded="true"] {
  color: var(--black);
  font-weight: 500;
}

.faq-chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: var(--gold);
  transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}

.faq-answer.open {
  max-height: 600px;
  opacity: 1;
}

.faq-answer p,
.faq-answer ul {
  padding: 0 4px 22px;
  font-family: 'Barlow', sans-serif;
  font-size: clamp(14px, 1.6vw, 15px);
  font-weight: 300;
  line-height: 1.85;
  color: var(--gray-text);
}

.faq-answer ul {
  padding-left: 20px;
  list-style: none;
}

.faq-answer ul li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
}

.faq-answer ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
}

.faq-cta-wrap {
  text-align: center;
  margin-top: 56px;
}

.faq-cta-text {
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: var(--gray-text);
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

/* FAQ — responsive */
@media (max-width: 768px) {
  .faq-inner { padding: 80px 20px 90px; }
  .faq-question { padding: 20px 4px; }
}

/* ════════════════════════════════
   PERFORMANCE OPTIMIZATIONS
════════════════════════════════ */

/* Promover capas de composición solo en elementos animados críticos */
.hero-slide {
  will-change: opacity;
}

.hero-content {
  will-change: transform, opacity;
}

/* Evitar paint en hover de tarjetas — usar compositor */
.card {
  will-change: transform;
  contain: layout style;
}

/* Galería: contain:paint rompe columns CSS masonry — solo style */
.galeria-item {
  contain: style;
}

/* content-visibility solo en imágenes de galería (lazy load) — nunca en logo ni hero */
.galeria-item img {
  content-visibility: auto;
}

/* Hero slides: quitar will-change tras la animación inicial (via JS si fuera necesario).
   Acá forzamos rendering en GPU para el crossfade sin repaints */
.hero-slides {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Reducir layout shifts en fuentes serif (Cormorant) */
h1, h2, h3,
.hero h1,
.intro-h2,
.servicios-title,
.galeria-title,
.contacto-title,
.faq-title,
.card-title,
.datos-title {
  font-display: swap;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
