:root {
  --ink: #08202a;
  --ink-2: #103544;
  --ocean: #0c6174;
  --aqua: #28b3ad;
  --aqua-soft: #bce9df;
  --sand: #eecb91;
  --cream: #f7f1e8;
  --paper: #fffdf9;
  --night: #06161e;
  --white: #ffffff;
  --muted: #59727a;
  --line: rgba(8, 32, 42, .16);
  --shadow: 0 28px 70px rgba(6, 22, 30, .14);
  --shadow-soft: 0 14px 40px rgba(6, 22, 30, .11);
  --radius: 28px;
  --max: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 15%, rgba(40, 179, 173, .06), transparent 24rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
svg { display: block; }

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  background: var(--white);
  color: var(--ink);
  border-radius: 10px;
  transform: translateY(-150%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: absolute;
  z-index: 30;
  inset: 0 0 auto;
  padding: 18px 22px;
}
.nav-shell {
  width: min(var(--max), 100%);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--white);
  font-weight: 780;
  letter-spacing: -.02em;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  backdrop-filter: blur(10px);
}
.brand-mark svg { width: 27px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(4, 25, 34, .36);
  backdrop-filter: blur(15px);
}
.main-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  color: rgba(255,255,255,.84);
  font-size: .92rem;
  font-weight: 650;
  transition: color .2s ease, background .2s ease;
}
.main-nav a:hover, .main-nav a:focus-visible { color: var(--white); background: rgba(255,255,255,.12); outline: none; }
.menu-toggle { display: none; }

.hero {
  position: relative;
  min-height: 780px;
  padding: 132px 22px 92px;
  background:
    linear-gradient(130deg, rgba(2, 19, 27, .98), rgba(7, 54, 68, .95) 55%, rgba(7, 32, 42, .98)),
    var(--night);
  isolation: isolate;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .24;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 54vw;
  height: 54vw;
  max-width: 760px;
  max-height: 760px;
  right: -16vw;
  top: 4vh;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 0 0 65px rgba(255,255,255,.018), 0 0 0 130px rgba(255,255,255,.012);
}
.hero-orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(2px); }
.hero-orb-one { width: 320px; height: 320px; background: rgba(40,179,173,.17); top: 18%; left: -180px; }
.hero-orb-two { width: 260px; height: 260px; background: rgba(238,203,145,.11); bottom: -120px; right: 35%; }
.hero-grid {
  width: min(var(--max), 100%);
  min-height: 560px;
  margin: auto;
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  align-items: center;
  gap: clamp(40px, 6vw, 90px);
}
.hero-copy { color: var(--white); }
.eyebrow {
  margin: 0 0 15px;
  color: var(--aqua);
  font-size: .76rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .22em;
}
.hero .eyebrow { color: #7ee0d4; }
.hero h1 {
  margin: 0;
  max-width: 720px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 7vw, 7.6rem);
  font-weight: 500;
  line-height: .83;
  letter-spacing: -.055em;
}
.hero h1 span { color: var(--sand); font-style: italic; }
.hero-actions { margin-top: 42px; display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  min-height: 50px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 760;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--aqua-soft); color: var(--ink); box-shadow: 0 14px 32px rgba(3, 17, 24, .22); }
.button-ghost { color: var(--white); border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.07); backdrop-filter: blur(10px); }
.button-ghost:hover { background: rgba(255,255,255,.12); }
.scroll-link {
  width: max-content;
  margin-top: 70px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.68);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}
.scroll-link svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; animation: bounce 1.8s ease-in-out infinite; }
@keyframes bounce { 0%,100% { transform: translateY(-2px); } 50% { transform: translateY(4px); } }

.hero-visual { position: relative; min-height: 520px; }
.hero-photo {
  position: absolute;
  margin: 0;
  padding: 8px;
  border: 1px solid rgba(188,233,223,.38);
  border-radius: 28px;
  background: rgba(255,255,255,.08);
  box-shadow: 0 28px 85px rgba(0,0,0,.30), 0 0 45px rgba(40,179,173,.08);
  backdrop-filter: blur(8px);
  overflow: hidden;
}
.hero-photo img { width: 100%; height: 100%; object-fit: contain; border-radius: 20px; background: rgba(0,0,0,.24); }
.hero-photo-main { width: 73%; height: 75%; right: 5%; top: 12%; transform: rotate(1.4deg); z-index: 3; }
.hero-photo-top { width: 31%; height: 42%; left: 0; top: 0; transform: rotate(-5deg); z-index: 5; }
.hero-photo-bottom { width: 28%; height: 40%; left: 4%; bottom: 0; transform: rotate(4deg); z-index: 6; }
.hero-line { position: absolute; width: 130px; height: 130px; right: 1%; bottom: 1%; border-right: 1px solid rgba(238,203,145,.45); border-bottom: 1px solid rgba(238,203,145,.45); border-radius: 0 0 34px 0; }

.gallery-section { padding: clamp(78px, 10vw, 140px) 22px; }
.section-heading { width: min(var(--max), 100%); margin: 0 auto 44px; }
.section-heading h2,
.contact-copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: .98;
  font-weight: 500;
  letter-spacing: -.045em;
}
.heading-rule { display: flex; align-items: center; width: 100%; height: 1px; margin-top: 24px; background: var(--line); }
.heading-rule span { width: 110px; height: 3px; background: var(--aqua); border-radius: 5px; }
.gallery {
  width: min(var(--max), 100%);
  margin: auto;
  columns: 4 250px;
  column-gap: 18px;
}
.gallery-item {
  width: 100%;
  display: inline-block;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  background: none;
  break-inside: avoid;
  cursor: zoom-in;
  text-align: initial;
}
.photo-frame {
  position: relative;
  display: block;
  padding: 5px;
  border: 1px solid rgba(12, 97, 116, .24);
  border-radius: 22px;
  background: rgba(255,255,255,.75);
  box-shadow: 0 14px 35px rgba(8,32,42,.08), 0 0 34px rgba(40,179,173,.07);
  overflow: hidden;
  transition: transform .32s cubic-bezier(.2,.7,.2,1), box-shadow .32s ease, border-color .32s ease;
}
.photo-frame::after {
  content: "";
  position: absolute;
  inset: -12px;
  z-index: -1;
  border-radius: 30px;
  background: rgba(40,179,173,.12);
  filter: blur(20px);
}
.photo-frame img {
  width: 100%;
  height: auto;
  border-radius: 17px;
}
.zoom-icon {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  color: var(--white);
  background: rgba(6,22,30,.58);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: scale(.86);
  transition: opacity .25s ease, transform .25s ease;
}
.zoom-icon svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.gallery-item:hover .photo-frame,
.gallery-item:focus-visible .photo-frame { transform: translateY(-5px); box-shadow: 0 22px 55px rgba(8,32,42,.16), 0 0 42px rgba(40,179,173,.11); border-color: rgba(12,97,116,.42); }
.gallery-item:hover .zoom-icon,
.gallery-item:focus-visible .zoom-icon { opacity: 1; transform: scale(1); }
.gallery-item:focus-visible { outline: none; }

.contact-section { padding: 0 22px clamp(80px, 10vw, 130px); }
.contact-card {
  position: relative;
  width: min(var(--max), 100%);
  margin: auto;
  padding: clamp(32px, 5vw, 66px);
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 34px;
  color: var(--white);
  background:
    radial-gradient(circle at 12% 25%, rgba(40,179,173,.17), transparent 22rem),
    linear-gradient(140deg, #071b26, #0b3442);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.contact-card::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -110px;
  bottom: -130px;
  border: 1px solid rgba(238,203,145,.24);
  border-radius: 50%;
  box-shadow: 0 0 0 45px rgba(238,203,145,.025), 0 0 0 90px rgba(238,203,145,.018);
  pointer-events: none;
}
.contact-copy .eyebrow { color: #7ee0d4; }
.contact-copy h2 { color: var(--white); }
.contact-actions { position: relative; z-index: 2; display: grid; gap: 12px; }
.contact-link {
  display: grid;
  grid-template-columns: 48px 1fr 28px;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  color: var(--white);
  text-decoration: none;
  background: rgba(255,255,255,.055);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.contact-link:hover { transform: translateX(4px); background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.22); }
.contact-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: rgba(126,224,212,.12); color: #8ae7dc; }
.contact-icon svg, .contact-arrow { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact-link small { display: block; margin-bottom: 3px; color: rgba(255,255,255,.56); font-size: .71rem; font-weight: 760; text-transform: uppercase; letter-spacing: .12em; }
.contact-link strong { font-size: clamp(.98rem, 2vw, 1.13rem); }
.contact-arrow { width: 20px; color: rgba(255,255,255,.55); }

.site-footer { padding: 25px 22px 32px; border-top: 1px solid var(--line); }
.footer-inner { width: min(var(--max), 100%); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: .87rem; font-weight: 650; }
.footer-inner a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.footer-inner a:hover { color: var(--ink); }
.footer-inner svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.mobile-dock { display: none; }

.lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 10px;
  padding: 28px;
  background: rgba(3, 14, 20, .94);
  backdrop-filter: blur(15px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-content { margin: 0; min-width: 0; height: calc(100vh - 76px); display: grid; grid-template-rows: minmax(0, 1fr) auto; align-items: center; justify-items: center; gap: 12px; }
.lightbox-content img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border: 1px solid rgba(255,255,255,.15); border-radius: 18px; box-shadow: 0 24px 80px rgba(0,0,0,.42); }
.lightbox-content figcaption { color: rgba(255,255,255,.65); font-size: .78rem; letter-spacing: .12em; }
.lightbox button { border: 1px solid rgba(255,255,255,.16); color: var(--white); background: rgba(255,255,255,.07); cursor: pointer; backdrop-filter: blur(8px); transition: background .2s ease, transform .2s ease; }
.lightbox button:hover { background: rgba(255,255,255,.13); transform: scale(1.04); }
.lightbox-nav { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; }
.lightbox-nav svg, .lightbox-close svg { width: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lightbox-close { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; }

/* El contenido siempre permanece visible. Las animaciones se ejecutan desde JavaScript
   sin depender de estilos ocultos, evitando una pantalla en blanco si JS no carga. */
.reveal { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .site-header { padding-inline: 16px; }
  .menu-toggle {
    position: relative;
    z-index: 31;
    width: 44px;
    height: 44px;
    display: grid;
    place-content: center;
    gap: 5px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 50%;
    background: rgba(4,25,34,.45);
    backdrop-filter: blur(12px);
    cursor: pointer;
  }
  .menu-toggle span { width: 19px; height: 1.5px; background: var(--white); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .main-nav {
    position: absolute;
    top: 74px;
    right: 16px;
    width: min(280px, calc(100vw - 32px));
    display: grid;
    gap: 4px;
    padding: 10px;
    border-radius: 22px;
    background: rgba(4,25,34,.93);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .main-nav a { padding: 12px 14px; border-radius: 14px; }
  .hero { min-height: auto; padding: 122px 18px 78px; }
  .hero-grid { min-height: 0; grid-template-columns: 1fr; gap: 54px; }
  .hero-copy { text-align: center; }
  .hero h1 { margin-inline: auto; font-size: clamp(3.7rem, 14vw, 6.6rem); }
  .hero-actions { justify-content: center; }
  .scroll-link { margin: 44px auto 0; }
  .hero-visual { min-height: 470px; max-width: 660px; width: 100%; margin: auto; }
  .hero-photo-main { width: 72%; height: 73%; right: 4%; }
  .hero-photo-top { width: 34%; height: 40%; }
  .hero-photo-bottom { width: 31%; height: 38%; }
  .contact-card { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .brand { font-size: .9rem; }
  .brand-mark { width: 38px; height: 38px; }
  .hero { padding-inline: 15px; }
  .hero h1 { font-size: clamp(3.15rem, 15.5vw, 4.9rem); }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 10px; }
  .button { padding: 0 13px; font-size: .84rem; }
  .hero-visual { min-height: 400px; }
  .hero-photo { padding: 5px; border-radius: 20px; }
  .hero-photo img { border-radius: 15px; }
  .hero-photo-main { width: 78%; height: 70%; right: 1%; top: 13%; }
  .hero-photo-top { width: 34%; height: 38%; left: 0; }
  .hero-photo-bottom { width: 34%; height: 37%; left: 2%; }
  .gallery-section { padding-inline: 14px; }
  .gallery { columns: 2 145px; column-gap: 10px; }
  .gallery-item { margin-bottom: 10px; }
  .photo-frame { padding: 3px; border-radius: 15px; }
  .photo-frame img { border-radius: 11px; }
  .zoom-icon { width: 32px; height: 32px; right: 9px; bottom: 9px; opacity: 1; transform: scale(1); }
  .contact-section { padding-inline: 14px; padding-bottom: 100px; }
  .contact-card { padding: 30px 18px; border-radius: 26px; }
  .contact-link { grid-template-columns: 44px 1fr 20px; gap: 11px; padding: 12px; }
  .contact-icon { width: 44px; height: 44px; }
  .contact-link strong { font-size: .94rem; }
  .site-footer { padding-bottom: 100px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .mobile-dock {
    position: fixed;
    z-index: 80;
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    padding: 7px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 18px;
    background: rgba(5,27,37,.90);
    box-shadow: 0 18px 55px rgba(0,0,0,.28);
    backdrop-filter: blur(16px);
  }
  .mobile-dock a { min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 13px; color: var(--white); text-decoration: none; font-size: .82rem; font-weight: 760; }
  .mobile-dock a:first-child { background: var(--aqua); color: var(--ink); }
  .mobile-dock svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .lightbox { grid-template-columns: 48px minmax(0,1fr) 48px; padding: 18px 8px; gap: 4px; }
  .lightbox-nav { width: 44px; height: 44px; }
  .lightbox-close { top: 12px; right: 12px; }
  .lightbox-content { height: calc(100vh - 54px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
