:root {
  --bg: #f5f3ee;
  --panel: rgba(255, 255, 255, 0.76);
  --text: #111111;
  --muted: #595959;
  --line: #ddd7cd;
  --accent: #9f1717;
  --max: 1220px;
  --radius: 24px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
  --space-xs: 12px;
  --space-sm: 20px;
  --space-md: 32px;
  --space-lg: 56px;
  --space-xl: 88px;
  --space-xxl: 128px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.lightbox-open {
  overflow: hidden;
}

a {
  color: inherit;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.section {
  padding: var(--space-xxl) 0;
  border-top: 1px solid var(--line);
}

.hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 40px 0 88px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.7), transparent 36%),
    linear-gradient(180deg, #f7f5f0 0%, #f1efe8 100%);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-lg);
}

.hero__copy {
  max-width: 1060px;
}

.hero__logo {
  width: clamp(200px, 20vw, 280px);
  margin-bottom: 28px;
}

.hero h1,
.copy h2,
.contact-panel h2,
.thanks h1 {
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.96;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.6rem, 7.2vw, 5.9rem);
  margin: 0;
}

.hero__cta,
.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  text-decoration: none;
  font-size: 1rem;
  position: relative;
  padding-bottom: 5px;
}

.hero__cta::after,
.inline-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform .25s ease;
  transform-origin: left center;
}

.hero__cta:hover::after,
.inline-link:hover::after {
  transform: scaleX(.72);
}

.hero__media,
.stack img,
.gallery-two img,
.contact-visual img,
.closing__media img,
.identity__avatar,
.hero__logo,
.thanks__image-wrap img,
.thanks__logo {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero__media {
  overflow: hidden;
}

.split,
.editorial,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: var(--space-xl);
  align-items: start;
}

.copy {
  font-size: 1.125rem;
}

.copy p,
.copy li {
  margin: 0 0 1rem 0;
}

.copy h2,
.contact-panel h2,
.thanks h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin: 0 0 24px;
}

.copy ul {
  margin: 0;
  padding-left: 24px;
}

.copy--centered {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.rule {
  width: 72px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 24px;
}

.identity {
  display: grid;
  gap: var(--space-lg);
  justify-items: center;
}

.identity__avatar {
  width: min(100%, 360px);
}

.stack {
  display: grid;
  gap: 24px;
}

.gallery-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.closing {
  display: grid;
  gap: var(--space-lg);
  justify-items: center;
}

.closing__media {
  width: min(100%, 760px);
}

.section--contact {
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.45) 100%);
}

.contact-grid {
  align-items: center;
}

.contact-panel {
  background: var(--panel);
  border: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  border-radius: 28px;
  padding: 36px;
  box-shadow: var(--shadow);
}

.contact-panel > p {
  margin: 0 0 24px;
  color: var(--muted);
}

.flash {
  margin-bottom: 22px;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 0.98rem;
}

.flash--success {
  background: rgba(26, 122, 64, 0.1);
  border: 1px solid rgba(26, 122, 64, 0.22);
  color: #155935;
}

.flash--error {
  background: rgba(159, 23, 23, 0.08);
  border: 1px solid rgba(159, 23, 23, 0.18);
  color: #7d1111;
}

.form {
  display: grid;
  gap: 22px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.26);
  padding: 12px 0 14px;
  background: transparent;
  font: inherit;
  color: var(--text);
  border-radius: 0;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--text);
}

.field--hidden {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.button {
  appearance: none;
  border: none;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font: inherit;
  padding: 16px 24px;
  cursor: pointer;
  transition: transform .22s ease, opacity .22s ease, background-color .22s ease;
  width: fit-content;
}

.button:hover {
  transform: translateY(-1px);
  opacity: .94;
}

.button--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(0, 0, 0, 0.22);
  text-decoration: none;
}


.section__cta-wrap {
  display: flex;
  justify-content: flex-start;
  margin-top: 40px;
}

.section__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 0;
  text-decoration: none;
  font-size: 1rem;
  position: relative;
  padding: 0 0 5px 0;
  background: transparent;
  color: var(--text);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  width: auto;
  justify-content: flex-start;
  text-align: left;
  cursor: pointer;
  transition: opacity .25s ease;
}

.section__cta::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform .25s ease;
  transform-origin: left center;
}

.section__cta:hover {
  opacity: 1;
  transform: none;
}

.section__cta:hover::after {
  transform: scaleX(.72);
}


.site-footer {
  padding: 28px 0 48px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-inner img {
  width: 86px;
  border-radius: 16px;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
}

.thanks-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.78), transparent 40%),
    linear-gradient(180deg, #f7f5f0 0%, #f1eee6 100%);
}

.thanks {
  width: min(100%, 760px);
}

.thanks__card {
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 38px;
  text-align: center;
}

.thanks__logo {
  width: 120px;
  margin: 0 auto 22px;
}

.thanks p {
  margin: 0 auto 24px;
  max-width: 520px;
  color: var(--muted);
  font-size: 1.08rem;
}

.thanks__image-wrap {
  margin: 28px 0 32px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal.delay-1 {
  transition-delay: .12s;
}

.lightbox-trigger {
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 24px 0;
  background: rgba(0, 0, 0, 0.94);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, visibility .18s ease;
  z-index: 9999;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox__nav {
  flex: 0 0 96px;
  align-self: stretch;
  border: 0;
  background: rgba(255, 255, 255, 0);
  color: #fff;
  font-size: 64px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .2s ease;
}

.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.08);
}

.lightbox__stage {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}

.lightbox__image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 92vh;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.lightbox__close {
  position: absolute;
  top: 16px;
  right: 20px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 44px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  z-index: 10002;
}

@media (max-width: 980px) {
  .split,
  .editorial,
  .contact-grid,
  .gallery-two {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 96px 0;
  }

  .hero {
    min-height: auto;
  }

  .lightbox__nav {
    flex-basis: 76px;
    font-size: 52px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 24px), var(--max));
  }

  .section {
    padding: 72px 0;
  }

  .contact-panel,
  .thanks__card {
    padding: 24px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .lightbox {
    padding: 12px 0;
  }

  .lightbox__nav {
    flex-basis: 52px;
    font-size: 40px;
  }

  .lightbox__stage {
    padding: 0 8px;
  }

  .lightbox__image {
    max-height: 88vh;
  }

  .lightbox__close {
    top: 10px;
    right: 14px;
  }
}

.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
  z-index: 9999;

  /* 👇 CLAVE: empieza oculto */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .25s ease;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-3px);
  opacity: 0.95;
}
.scroll-top:hover,
.scroll-top-btn:hover,
.page-scroll-top:hover {
  background: #9f1717 !important;
}
.scroll-top:hover {
  transform: translateY(-3px) scale(1.05);
  background: #9f1717;
}

.video-embed {
  margin: 24px 0 32px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.video-embed iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
}
