/* =============================================
   AS CONTENT MEDIA — Stylesheet
   ============================================= */

/* ---- Variables ---- */
:root {
  --black:     #080808;
  --dark:      #101010;
  --dark2:     #191919;
  --dark3:     #222222;
  --white:     #f4efe9;
  --white-70:  rgba(244, 239, 233, 0.72);
  --white-60:  rgba(244, 239, 233, 0.6);
  --white-20:  rgba(244, 239, 233, 0.2);
  --white-08:  rgba(244, 239, 233, 0.08);
  --gold:      #c4a87a;
  --gold-lt:   #d4be9a;
  --serif:     'Cormorant Garamond', Georgia, serif;
  --sans:      'Raleway', system-ui, sans-serif;
  --ease:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --trans:     all 0.4s var(--ease);
}

/* ---- Reset ---- */
*, *::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(--sans);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { border: none; background: none; font: inherit; }
ul { list-style: none; }

/* ---- Grain overlay ---- */
.grain {
  position: fixed;
  inset: -20%;
  width: 140%;
  height: 140%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.032;
  pointer-events: none;
  z-index: 9999;
  animation: grain 10s steps(8) infinite;
  will-change: transform;
  contain: strict;
}
@media (max-width: 768px) {
  .grain { animation: grain 14s steps(6) infinite; opacity: 0.024; }
}
@keyframes grain {
  0%   { transform: translate(0,0); }
  12%  { transform: translate(-5%,-5%); }
  25%  { transform: translate(-10%, 5%); }
  37%  { transform: translate(5%,-10%); }
  50%  { transform: translate(-5%, 15%); }
  62%  { transform: translate(15%,0); }
  75%  { transform: translate(0,10%); }
  87%  { transform: translate(-15%,0); }
  100% { transform: translate(10%,5%); }
}

/* ---- Layout helpers ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}
@media (max-width: 768px) { .container { padding: 0 24px; } }

/* ---- Reveal animation (solo desktop) ---- */
@media (min-width: 769px) {
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  }
  .reveal.in { opacity: 1; transform: none; }
}
@media (max-width: 768px) {
  .reveal { opacity: 1; transform: none; }
}

/* =============================================
   NAVIGATION
   ============================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 30px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 18px 48px;
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--white-08);
}

.nav__logo { display: flex; flex-direction: column; line-height: 1; }
.nav__logo-as {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 300;
  letter-spacing: 0.04em;
}
.nav__logo-sub {
  font-size: 0.52rem;
  letter-spacing: 0.32em;
  color: var(--white-60);
  text-transform: uppercase;
  margin-top: 3px;
}

.nav__links {
  display: flex;
  gap: 44px;
}
.nav__link {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-60);
  position: relative;
  transition: color 0.3s;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--ease);
}
.nav__link:hover { color: var(--white); }
.nav__link:hover::after { width: 100%; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--white);
  transition: var(--trans);
}
.nav__burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* =============================================
   MOBILE MENU
   ============================================= */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 36px; text-align: center; }
.mobile-menu ul li {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.mobile-menu.open ul li { opacity: 1; transform: none; }
.mobile-menu.open ul li:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.open ul li:nth-child(2) { transition-delay: 0.16s; }
.mobile-menu.open ul li:nth-child(3) { transition-delay: 0.24s; }
.mobile-menu.open ul li:nth-child(4) { transition-delay: 0.32s; }
.mobile-menu.open ul li:nth-child(5) { transition-delay: 0.40s; }
.mobile-link {
  font-family: var(--serif);
  font-size: 3.2rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--white);
  transition: color 0.3s;
}
.mobile-link:hover { color: var(--gold); }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  min-height: 44px;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--trans);
}
.btn--white { background: var(--white); color: var(--black); border-color: var(--white); }
.btn--white:hover { background: var(--gold); border-color: var(--gold); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(244, 239, 233, 0.35); }
.btn--ghost:hover { background: rgba(244, 239, 233, 0.06); border-color: var(--white-60); }
.btn--lg { padding: 17px 44px; min-height: 52px; font-size: 0.78rem; }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.nav__link:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; color: var(--white); }
.port-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 130px 48px 90px;
  position: relative;
  overflow: hidden;
  max-width: 100vw;
}

.hero__right-section {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 58%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero__bg-letter {
  position: absolute;
  font-family: var(--serif);
  font-size: clamp(200px, 22vw, 380px);
  font-weight: 300;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 239, 233, 0.05);
  letter-spacing: -0.02em;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.hero__content {
  max-width: 820px;
  position: relative;
  z-index: 1;
}

.hero__tag {
  font-size: 0.75rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  transition-delay: 0.1s;
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(3.8rem, 8.5vw, 8.5rem);
  font-weight: 300;
  line-height: 1.03;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
  transition-delay: 0.2s;
}
.hero__title em { font-style: italic; color: var(--gold-lt); }

.hero__sub {
  font-size: 1rem;
  color: var(--white-70);
  line-height: 1.68;
  max-width: 460px;
  margin-bottom: 52px;
  transition-delay: 0.3s;
  padding-top: 24px;
  position: relative;
}
.hero__sub::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 40px; height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.hero__cta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  transition-delay: 0.4s;
}

/* ---- Hero right panel ---- */
.hero__right {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  z-index: 2;
  pointer-events: all;
}
.hero__badge {
  position: relative;
  width: 190px;
  height: 190px;
  flex-shrink: 0;
}
.hero__badge-ring {
  width: 100%;
  height: 100%;
  animation: spinBadge 28s linear infinite;
}
@keyframes spinBadge { to { transform: rotate(360deg); } }
.hero__badge-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 76px; height: 76px;
  border: 1px solid var(--white-20);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.4s;
}
.hero__badge:hover .hero__badge-center { border-color: var(--gold); }
.hero__badge-center svg { width: 30px; height: 30px; color: var(--white-60); transition: color 0.4s; }
.hero__badge:hover .hero__badge-center svg { color: var(--gold); }
.hero__right-divider {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--white-20), transparent);
}
.hero__ig {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-60);
  border: 1px solid var(--white-08);
  padding: 11px 20px;
  transition: color 0.3s, border-color 0.3s;
}
.hero__ig:hover { color: var(--white); border-color: var(--white-20); }
.hero__location {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 239, 233, 0.55);
}

/* Ocultar en móvil */
@media (max-width: 960px) { .hero__right-section { display: none; } }

.hero__scroll {
  position: absolute;
  bottom: 44px;
  right: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.hero__scroll span {
  font-size: 0.58rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--white-60);
  writing-mode: vertical-rl;
}
.hero__scroll-line {
  width: 1px;
  height: 64px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* =============================================
   SECTION COMMON
   ============================================= */
.section-head { text-align: center; margin-bottom: 72px; }
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 0.88rem;
  color: var(--white-60);
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.75;
}

/* =============================================
   SERVICES
   ============================================= */
.services {
  padding: 130px 0;
  background:
    radial-gradient(ellipse 100% 55% at 50% 0%, #1c1409 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 100%, #14100600 0%, transparent 100%),
    var(--dark);
  position: relative;
  overflow: hidden;
}

/* Glow central suave detrás de las tarjetas */
.services::before {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(196,168,122,0.12), transparent);
  pointer-events: none;
}

/* Líneas horizontales decorativas */
.services__deco-line {
  position: absolute;
  left: 48px; right: 48px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(196,168,122,0.18), transparent);
  pointer-events: none;
}
.services__deco-line--top    { top: 0; }
.services__deco-line--bottom { bottom: 0; }

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--white-08);
}

.svc-card {
  background: var(--dark);
  padding: 56px 40px 48px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: background 0.4s var(--ease);
  overflow: hidden;
}
.svc-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(to right, var(--gold), transparent);
  transition: width 0.6s var(--ease);
}
.svc-card:hover::before { width: 100%; }
.svc-card--featured::before { width: 60%; opacity: 0.7; }
.svc-card:hover { background: var(--dark2); }
.svc-card--featured { background: var(--dark2); }
.svc-card--featured:hover { background: var(--dark3); }

.svc-card__badge {
  position: absolute;
  top: 22px; right: 22px;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 5px 14px;
}

.svc-card__num {
  font-family: var(--serif);
  font-size: 4.5rem;
  font-weight: 300;
  color: var(--white-08);
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -0.04em;
}
.svc-card--featured .svc-card__num { color: rgba(244, 239, 233, 0.12); }

.svc-card__icon {
  width: 38px;
  height: 38px;
  color: var(--gold);
  margin-bottom: 28px;
  opacity: 0.75;
}
.svc-card__icon svg { width: 100%; height: 100%; }

.svc-card__title {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.svc-card__title em { font-style: italic; color: var(--gold-lt); }

.svc-card__desc {
  font-size: 0.83rem;
  color: var(--white-60);
  line-height: 1.72;
  margin-bottom: 28px;
}

.svc-card__list {
  flex: 1;
  margin-bottom: 40px;
}
.svc-card__list li {
  font-size: 0.78rem;
  color: var(--white-60);
  padding: 10px 0 10px 18px;
  border-bottom: 1px solid var(--white-08);
  position: relative;
}
.svc-card__list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.7rem;
}

.svc-card__link {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  padding-bottom: 5px;
  border-bottom: 1px solid var(--gold);
  transition: color 0.3s, border-color 0.3s;
  align-self: flex-start;
}
.svc-card__link:hover { color: var(--gold); }

/* =============================================
   PORTFOLIO
   ============================================= */
.portfolio {
  padding: 130px 0;
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 0 48px;
}

.port-card {
  background: var(--dark);
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--white-08);
  transform-style: preserve-3d;
  transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  will-change: transform;
}
.port-card:focus { outline: 1px solid var(--gold); outline-offset: -1px; }
.port-card:hover {
  border-color: rgba(196, 168, 122, 0.3);
  box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(196, 168, 122, 0.12);
}

/* Gloss shine layer */
.port-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(244, 239, 233, 0.09) 0%,
    transparent 50%,
    rgba(196, 168, 122, 0.04) 100%
  );
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
  z-index: 3;
}
.port-card:hover::after { opacity: 1; }

.port-card__visual {
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
}

.port-card__placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--dark2), var(--dark3));
  transition: transform 0.9s var(--ease);
}
.port-card:hover .port-card__placeholder { transform: scale(1.04); }

.port-card__cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s var(--ease);
}
.port-card:hover .port-card__cover-img { transform: scale(1.04); }
.port-card__placeholder svg {
  width: 60px;
  height: 60px;
  color: rgba(244, 239, 233, 0.06);
}

.port-card__hover {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.port-card:hover .port-card__hover { opacity: 1; }
.port-card__hover span {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid var(--white-20);
  padding: 13px 30px;
}

.port-card__info {
  padding: 28px 36px;
}
.port-card__info h3 {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 400;
  margin-bottom: 7px;
  letter-spacing: -0.01em;
}
.port-card__info p {
  font-size: 0.78rem;
  color: var(--white-60);
  line-height: 1.55;
}
.port-card__link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s, letter-spacing 0.3s;
}
.port-card__link:hover {
  color: var(--gold-lt);
  letter-spacing: 0.18em;
}

/* =============================================
   CONTACT
   ============================================= */
.contact {
  padding: 140px 0;
  background:
    radial-gradient(ellipse 85% 65% at 50% 50%, #1e1408 0%, #0e0c08 50%, var(--black) 100%);
  position: relative;
  overflow: hidden;
}

/* Anillos concéntricos decorativos */
.contact::before,
.contact::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.contact::before {
  width: 520px; height: 520px;
  border: 1px solid rgba(196, 168, 122, 0.07);
}
.contact::after {
  width: 820px; height: 820px;
  border: 1px solid rgba(196, 168, 122, 0.035);
}

/* Brackets en las esquinas */
.contact__deco {
  position: absolute;
  width: 52px;
  height: 52px;
  pointer-events: none;
}
.contact__deco--tl { top: 36px; left: 48px;  border-top:  1px solid rgba(196,168,122,0.25); border-left:  1px solid rgba(196,168,122,0.25); }
.contact__deco--tr { top: 36px; right: 48px; border-top:  1px solid rgba(196,168,122,0.25); border-right: 1px solid rgba(196,168,122,0.25); }
.contact__deco--bl { bottom: 36px; left: 48px;  border-bottom: 1px solid rgba(196,168,122,0.25); border-left:  1px solid rgba(196,168,122,0.25); }
.contact__deco--br { bottom: 36px; right: 48px; border-bottom: 1px solid rgba(196,168,122,0.25); border-right: 1px solid rgba(196,168,122,0.25); }
.contact__inner {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}
.contact__title {
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.contact__title em { font-style: italic; color: var(--gold-lt); }
.contact__sub {
  font-size: 0.88rem;
  color: var(--white-60);
  margin-bottom: 24px;
  line-height: 1.75;
}
.contact__tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: rgba(244, 239, 233, 0.55);
  text-decoration: none;
  margin-bottom: 36px;
  transition: color 0.3s;
}
.contact__tel:hover { color: var(--white); }
.contact__btns {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  padding: 64px 0;
  border-top: 1px solid var(--white-08);
}
.footer__inner { text-align: center; }
.footer__logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 18px;
}
.footer__as {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 300;
  letter-spacing: 0.08em;
}
.footer__sub {
  font-size: 0.44rem;
  letter-spacing: 0.42em;
  color: var(--white-60);
  text-transform: uppercase;
  margin-top: 2px;
}
.footer__tag {
  font-size: 0.82rem;
  color: var(--white-60);
  margin-bottom: 10px;
}
.footer__privacy {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.footer__privacy:hover { opacity: 1; }
.footer__copy {
  font-size: 0.68rem;
  color: rgba(244, 239, 233, 0.45);
  letter-spacing: 0.05em;
}
.footer__dev {
  font-size: 0.62rem;
  color: rgba(244, 239, 233, 0.3);
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}
.footer__dev-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.footer__dev-link:hover { opacity: 1; }

/* =============================================
   MODAL
   ============================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.96);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.modal.open {
  opacity: 1;
  pointer-events: all;
}

.modal__close {
  position: fixed;
  top: 24px; right: 32px;
  width: 46px; height: 46px;
  border: 1px solid var(--white-20);
  color: var(--white);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.3s;
  z-index: 1002;
}
.modal__close:hover { border-color: var(--white-60); }

.modal__head {
  padding: 88px 48px 36px;
  text-align: center;
}
.modal__title {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.modal__note {
  font-size: 0.78rem;
  color: var(--white-60);
  letter-spacing: 0.05em;
}

.modal__body { padding: 0 48px 80px; }

.modal__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2px;
  background: var(--white-08);
  max-width: 1100px;
  margin: 0 auto;
}

.gallery-item {
  aspect-ratio: 4/3;
  background: var(--dark2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-ph {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(140deg, var(--dark2), var(--dark3));
}
.gallery-ph svg { width: 30px; height: 30px; color: var(--white-20); }
.gallery-ph span {
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--white-20);
}
.gallery-item--video .gallery-ph { background: linear-gradient(140deg, #0e0e1a, #181828); }

/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox__close {
  position: fixed;
  top: 24px; right: 32px;
  width: 46px; height: 46px;
  border: 1px solid var(--white-20);
  color: var(--white);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.3s;
  z-index: 3001;
  background: none;
}
.lightbox__close:hover { border-color: var(--white-60); }

.lightbox__arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border: 1px solid var(--white-20);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
  z-index: 3001;
  background: rgba(8,8,8,0.6);
}
.lightbox__arrow:hover { border-color: var(--white-60); background: rgba(8,8,8,0.9); }
.lightbox__arrow svg { width: 22px; height: 22px; }
.lightbox__arrow--prev { left: 24px; }
.lightbox__arrow--next { right: 24px; }
.lightbox__arrow.hidden { opacity: 0; pointer-events: none; }

.lightbox__media {
  max-width: calc(100vw - 160px);
  max-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__media img {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  display: block;
  animation: lbFadeIn 0.3s var(--ease);
}
.lightbox__media video {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  animation: lbFadeIn 0.3s var(--ease);
}
@keyframes lbFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

.lightbox__counter {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  color: var(--white-60);
  text-transform: uppercase;
}

/* ---- Gallery items clickable ---- */
.gallery-item { cursor: pointer; transition: opacity 0.25s; }
.gallery-item:hover { opacity: 0.82; }

.gallery-item__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.gallery-loading {
  grid-column: 1 / -1;
  background: var(--dark);
  padding: 80px 40px;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-60);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }

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

  .portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 20px;
  }
  .port-card__info { padding: 20px 24px; }

  .about { padding: 88px 0; }
  .faq { padding: 88px 0; }
}

@media (max-width: 600px) {
  .hero { padding: 110px 24px 80px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { justify-content: center; text-align: center; }
  .hero__scroll { right: 24px; }
  .nav { padding: 24px; }
  .nav.scrolled { padding: 16px 24px; }
  .services { padding: 88px 0; }
  .services__grid { grid-template-columns: 1fr; }
  .svc-card { padding: 40px 28px 36px; }
  .portfolio { padding: 64px 0; }
  .portfolio__grid { grid-template-columns: 1fr; padding: 0 24px; }
  .contact { padding: 88px 0; }
  .contact__btns { flex-direction: column; align-items: center; }
  .modal__head { padding: 72px 24px 28px; }
  .modal__body { padding: 0 24px 60px; }
  .modal__grid { grid-template-columns: 1fr; }
  .about { padding: 56px 0; }
  .about__inner { grid-template-columns: 1fr; gap: 32px; }
  .about__body { font-size: 0.88rem; line-height: 1.75; margin-bottom: 14px; }
  .about .section-title { font-size: clamp(2rem, 8vw, 2.8rem); margin-bottom: 20px; }
  .about__signature { margin-top: 24px; padding-top: 20px; }

  /* Ocultar el frame decorativo pero mostrar stats en fila */
  .about__deco-frame { padding: 0; background: none; border: none; }
  .about__deco-frame::before { display: none; }
  .about__deco-inner { display: none; }
  .about__deco-stats {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    padding: 24px 0;
    border-top: 1px solid var(--white-08);
    border-bottom: 1px solid var(--white-08);
  }
  .about__stat-divider { display: none; }
  .about__stat { padding: 0; text-align: center; flex: 1; }
  .about__stat-num { font-size: 1.8rem; }
  .about__stat-label { font-size: 0.6rem; }
  .about__deco-area { display: none; }
  .faq { padding: 64px 0; }
  .faq__question { font-size: 1.05rem; }
  .testimonials { padding: 64px 0; }
  .testimonials__grid { grid-template-columns: 1fr; padding: 0; }

  /* Touch targets mínimos 44px */
  .nav__link { padding: 12px 8px; }
  .port-card__link { padding: 12px 0; display: inline-block; min-height: 44px; line-height: 44px; }
}

/* Preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__badge-ring { animation: none; }
  .hero__scroll-line { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* =============================================
   ABOUT
   ============================================= */
.about {
  padding: 130px 0;
  background: var(--black);
  position: relative;
}
.about::before {
  content: '';
  position: absolute;
  top: 0; left: 48px; right: 48px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(196,168,122,0.18), transparent);
}
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about .section-tag { display: block; margin-bottom: 16px; }
.about .section-title {
  text-align: left;
  margin-bottom: 32px;
}
.about .section-title em { font-style: italic; color: var(--gold-lt); }
.about__body {
  font-size: 0.9rem;
  color: var(--white-60);
  line-height: 1.9;
  margin-bottom: 20px;
}
.about__signature {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--white-08);
}
.about__signature span:first-child {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 300;
  font-style: italic;
  color: var(--gold-lt);
  letter-spacing: 0.02em;
}
.about__handle {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244,239,233,0.35);
}

/* About decorative side */
.about__deco {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.about__deco-frame {
  border: 1px solid var(--white-08);
  padding: 48px 36px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  position: relative;
  background: var(--dark);
}
.about__deco-frame::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(196,168,122,0.07);
  pointer-events: none;
}
.about__deco-icon {
  width: 64px;
  height: 64px;
  color: var(--gold);
  opacity: 0.5;
}
.about__deco-stats {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}
.about__stat {
  text-align: center;
  padding: 20px 0;
}
.about__stat-divider {
  width: 40px;
  height: 1px;
  background: var(--white-08);
  margin: 0 auto;
}
.about__stat-num {
  display: block;
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--gold-lt);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
}
.about__stat-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white-60);
}
.about__deco-area {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(244,239,233,0.25);
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials {
  padding: 130px 0;
  background: var(--black);
  position: relative;
}
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testi-card {
  padding: 36px 32px;
  border: 1px solid var(--white-08);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 0.4s;
  position: relative;
  overflow: hidden;
}
.testi-card::before {
  content: '\201C';
  position: absolute;
  top: -8px; right: 20px;
  font-family: var(--serif);
  font-size: 6rem;
  font-weight: 300;
  color: var(--gold);
  opacity: 0.06;
  line-height: 1;
  pointer-events: none;
  transition: opacity 0.4s;
}
.testi-card:hover::before { opacity: 0.1; }
.testi-card:hover { border-color: rgba(196, 168, 122, 0.3); }
.testi-card__stars {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 4px;
}
.testi-card__text {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.75;
  color: rgba(244, 239, 233, 0.8);
  flex: 1;
}
.testi-card__author {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--white-08);
}
.testi-card__author strong {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--white);
  font-weight: 500;
  font-style: normal;
}
.testi-card__author span {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: uppercase;
}

/* 5th card centered on bottom row */
.testi-card:nth-child(4) { grid-column: 1; }
.testi-card:nth-child(5) { grid-column: 2; }

@media (max-width: 960px) {
  .testimonials { padding: 88px 0; }
  .testimonials__grid { grid-template-columns: 1fr 1fr; }
  .testi-card:nth-child(4),
  .testi-card:nth-child(5) { grid-column: auto; }
}
@media (max-width: 600px) {
  .testimonials__grid { grid-template-columns: 1fr; padding: 0 24px; }
}

/* =============================================
   FAQ
   ============================================= */
.faq {
  padding: 130px 0;
  background: var(--dark);
  position: relative;
}
.faq::before {
  content: '';
  position: absolute;
  top: 0; left: 48px; right: 48px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(196,168,122,0.18), transparent);
}
.faq .section-head { margin-bottom: 64px; }

.faq__list {
  max-width: 860px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--white-08);
}
.faq__item:first-child {
  border-top: 1px solid var(--white-08);
}

.faq__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--white);
  cursor: pointer;
  list-style: none;
  transition: color 0.3s;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question:hover { color: var(--gold-lt); }
.faq__item[open] .faq__question { color: var(--gold-lt); }

.faq__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 1px solid var(--white-20);
  border-radius: 50%;
  position: relative;
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  background: var(--white-60);
  transition: opacity 0.3s, background 0.3s;
}
.faq__icon::before {
  width: 8px; height: 1px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq__icon::after {
  width: 1px; height: 8px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s, transform 0.4s var(--ease);
}
.faq__item[open] .faq__icon {
  border-color: var(--gold);
  transform: rotate(45deg);
}
.faq__item[open] .faq__icon::before,
.faq__item[open] .faq__icon::after {
  background: var(--gold);
}

.faq__answer {
  padding-bottom: 28px;
}
.faq__answer p {
  font-size: 0.88rem;
  color: var(--white-60);
  line-height: 1.88;
  max-width: 720px;
}
.faq__answer strong {
  color: rgba(244,239,233,0.85);
  font-weight: 500;
}
