/* Paleta unica: crema · oro · tinta. No existe version oscura a proposito. */
/* Layout: secciones a todo el ancho, columnas de contenido de 1100px maximo */

:root {
  --bg:        #F8F5EF;
  --surface:   #EEEAE0;
  --surface-2: #E4DED0;
  --gold:      #8A6A0A;
  --gold-hi:   #6A4E06;
  --gold-dim:  rgba(138, 106, 10, 0.07);
  --gold-rule: rgba(138, 106, 10, 0.2);
  --fg:        #16120A;
  --fg-muted:  #5C5248;
  --fg-subtle: #D4CCBC;
  color-scheme: only light;

  --display: 'Cormorant Garamond', Georgia, serif;
  --sans:    'Jost', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.7;
}

/* ── NAV ───────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0; right: 0;
  z-index: 202;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2.5rem;
  border-bottom: 1px solid transparent;
  transition: background .35s, border-color .35s;
}

.nav.scrolled {
  background: rgba(248,245,239,.9);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-color: var(--gold-rule);
}

.nav.menu-open {
  background: #F8F5EF;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-color: var(--gold-rule);
}

.nav-brand {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.25rem;
  font-weight: 400;
  color:#403027;
  font-weight:500;
  text-decoration: none;
  letter-spacing: .05em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.2rem;
}

.nav-links a {
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #403027;
  font-weight:400;
  text-decoration: none;
  transition: color .2s;
}

.nav-links a:hover { color: var(--gold) }

/* Hamburger button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 201;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--gold);
  transition: transform .3s, opacity .3s;
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg) }
.nav-toggle.open span:nth-child(2) { opacity: 0 }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg) }

/* ── HERO ──────────────────────────────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 55% at 50% 38%, rgba(200,168,72,.07) 0%, transparent 68%);
  pointer-events: none;
}

.monogram {
  width: clamp(130px, 28vw, 175px);
  height: clamp(130px, 28vw, 175px);
  color: var(--gold);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: rise .95s .05s ease forwards;
}

.hero-name {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(4rem, 11vw, 7.8rem);
  line-height: .95;
  letter-spacing: -.015em;
  color: var(--fg);
  text-wrap: balance;
  opacity: 0;
  animation: rise .95s .22s ease forwards;
}

.hero-surname {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(.78rem, 2.1vw, .95rem);
  letter-spacing: .44em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: .65rem;
  opacity: 0;
  animation: rise .95s .38s ease forwards;
}

.hero-rule {
  width: 48px;
  height: 1px;
  background: var(--gold-rule);
  margin: 2rem auto;
  opacity: 0;
  animation: rise .95s .52s ease forwards;
}

.hero-tagline {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--fg-muted);
  opacity: 0;
  animation: rise .95s .64s ease forwards;
}

.hero-sub {
  margin-top: .4rem;
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--fg-muted);
  opacity: 0;
  animation: rise .95s .74s ease forwards;
}

.btn {
  display: inline-block;
  margin-top: 2.5rem;
  padding: .82rem 2.4rem;
  border: 1px solid var(--gold);
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 400;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  transition: background .22s, color .22s;
  opacity: 0;
  animation: rise .95s .87s ease forwards;
}

.btn:hover { background: var(--gold); color: var(--bg) }
.btn:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px }

/* ── RULE ──────────────────────────────────────────────── */
.rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-rule) 25%, var(--gold-rule) 75%, transparent);
}

/* ── SHARED SECTION ────────────────────────────────────── */
.inner { max-width: 1100px; margin: 0 auto; padding-inline: 1.5rem }

.eyebrow {
  font-size: .68rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
}

.section-title {
  font-family: var(--display);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 300;
  line-height: 1.1;
  text-wrap: balance;
  margin-top: .55rem;
}

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

/* ── SERVICES ──────────────────────────────────────────── */
.services-wrap { padding: 7rem 0 }

.services-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: 3.5rem;
}

.services-lead {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--fg-muted);
  line-height: 1.85;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--gold-rule);
  border: 1px solid var(--gold-rule);
}

.service-card {
  position: relative;
  min-width: 0;
  overflow: hidden;

  padding: 1.85rem 1.6rem;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* Un poco más de presencia visual */
  isolation: isolate;

  transition:
    transform 0.4s ease,
    background-size 0.6s ease;
}

/* Overlay sobre la fotografía */
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transition: background 0.4s ease;
}

/* Contenido por encima del overlay */
.service-card > * {
  position: relative;
  z-index: 1;
}
.service-card:hover .s-desc{
    display: block;
}
/* Hover */
.service-card:hover {
  transform: scale(1.06);
}

.service-card:hover::before {
  background:
    linear-gradient(
      180deg,
      rgba(250, 247, 241, 0.62) 0%,
      rgba(250, 247, 241, 0.45) 45%,
      rgba(250, 247, 241, 0.68) 100%
    );
}


/* Imagen de fondo individual */
.service-card:nth-child(1) { background-image: url('../imgs/experiencia/s1.jpg') }
.service-card:nth-child(2) { background-image: url('../imgs/experiencia/s2.jpg') }
.service-card:nth-child(3) { background-image: url('../imgs/experiencia/s3.jpg') }
.service-card:nth-child(4) { background-image: url('../imgs/experiencia/s4.jpg') }
.service-card:nth-child(5) { background-image: url('../imgs/experiencia/s5.jpg') }
.service-card:nth-child(6) { background-image: url('../imgs/experiencia/s6.jpg') }
.service-card:nth-child(7) { background-image: url('../imgs/experiencia/s7.jpg') }
.service-card:nth-child(8) { background-image: url('../imgs/experiencia/s8.jpg') }
.service-card:nth-child(9) { background-image: url('../imgs/experiencia/s9.jpg') }
.service-card:nth-child(10) { background-image: url('../imgs/experiencia/s10.jpg') }

.service-card:hover .s-num { color: var(--gold-rule) }

.s-name {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 400;
  position: absolute; 
  bottom: 0; left: 0; 
  right: 0; 
  padding: .15rem 1rem; 
  background: rgba(64,48,39,.4); 
  margin: 0;
  line-height: 1.2;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .85);
  color:white;
  height: 4.2rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical
}

.s-desc {
  font-size: .82rem;
  opacity: 0;
  color: white;
  line-height: 1.65;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .85);
  font-weight: 600;
}


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

.services-cta-text {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--fg-muted);
}

.services-cta .btn { margin-top: 1.4rem }

/* ── ABOUT ─────────────────────────────────────────────── */
.about-wrap {
  background: var(--surface);
  border-top: 1px solid var(--gold-rule);
  border-bottom: 1px solid var(--gold-rule);
  padding: 7rem 0;
}

.about-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding-inline: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 5rem;
  align-items: center;
}

.about-visual {
  position: relative;
  aspect-ratio: 3/4;
  max-height: 520px;
}

.about-frame {
  position: absolute;
  inset: 0;
  background: url(../imgs/nuestra-esencia.jpg) no-repeat center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about-frame-border {
  position: absolute;
  inset: 1.25rem;
  border: 1px solid var(--gold-rule);
  pointer-events: none;
  z-index: 1;
}

.about-bg-v {
  font-family: var(--display);
  font-style: italic;
  font-size: min(22rem, 60vw);
  color: var(--gold);
  opacity: .055;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.about-ornament {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 1px;
  background: var(--gold-rule);
  z-index: 2;
}

.about-text .eyebrow { margin-bottom: 1.1rem }

.about-body {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  line-height: 1.85;
  color: var(--fg);
  margin: 1.5rem 0 1.2rem;
}

.about-sub {
  font-size: .88rem;
  line-height: 1.8;
  color: var(--fg-muted);
}

.signature {
  font-family: var(--display);
  font-style: italic;
  font-size: 2.3rem;
  color: var(--gold);
  display: block;
  margin-top: 2rem;
}

/* ── GALLERY ───────────────────────────────────────────── */
.gallery-wrap { padding: 7rem 0 }

.gallery-header {
  max-width: 1100px;
  margin: 0 auto;
  padding-inline: 1.5rem;
  margin-bottom: 2.5rem;
}

.gallery-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding-inline: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 220px 220px;
  gap: 2px;
}
.gallery-cell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gallery-cell {
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: background .25s;
}

.gallery-cell:first-child { grid-row: span 2 }

.gallery-cell::after {
  content: '';
  position: absolute;
  inset: 1rem;
  border: 1px solid var(--gold-rule);
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}

.gallery-cell:hover { background: var(--surface-2) }
.gallery-cell:hover::after { opacity: 1 }

.gallery-ph {
  text-align: center;
  color: var(--fg-subtle);
}

.gallery-ph svg { display: block; margin: 0 auto .5rem }
.gallery-ph span {
  font-size: .58rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fg-muted);
  opacity: .5;
}

.gallery-note {
  max-width: 1100px;
  margin: 1.5rem auto 0;
  padding-inline: 1.5rem;
  font-family: var(--display);
  font-style: italic;
  font-size: .88rem;
  color: var(--fg-muted);
}

/* ── CONTACT ───────────────────────────────────────────── */
.contact-wrap {
  background: var(--surface);
  border-top: 1px solid var(--gold-rule);
  padding: 7rem 0;
}

.contact-header {
  max-width: 1100px;
  margin: 0 auto;
  padding-inline: 1.5rem;
  margin-bottom: 3rem;
}

.contact-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding-inline: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gold-rule);
  border: 1px solid var(--gold-rule);
}

.contact-cell {
  background: var(--surface);
  padding: 2rem 1.6rem;
  transition: background .22s;
  min-width: 0;
}

.contact-cell:hover { background: var(--gold-dim) }

.c-label {
  font-size: .68rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: .8rem;
}

.c-val {
  font-family: var(--display);
  font-size: 1.1rem;
  color: var(--fg);
  display: block;
  line-height: 1.55;
}

/* ── CTA BAND ──────────────────────────────────────────── */
.cta-band {
  text-align: center;
  padding: 7rem 1.5rem;
  border-top: 1px solid var(--gold-rule);
}

.cta-band .section-title {
  max-width: 20ch;
  margin: .7rem auto 2.5rem;
}

/* ── FOOTER ────────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 2.5rem 1.5rem calc(2.5rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--fg-subtle);
  background: var(--bg);
}

.footer-logo {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--gold);
  display: block;
  margin-bottom: .5rem;
}

.footer-copy {
  font-size: .65rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* ── REVEAL ────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .72s ease, transform .72s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── KEYFRAMES ─────────────────────────────────────────── */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px) }
  to   { opacity: 1; transform: translateY(0) }
}

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 800px) {
  .services-header { grid-template-columns: 1fr }
  .services-grid { grid-template-columns: 1fr }
  .about-grid      { grid-template-columns: 1fr }
  .about-visual    { display: none }
  .gallery-grid    {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 180px 180px;
  }
  .gallery-cell:first-child { grid-row: span 1; grid-column: 1 / -1 }
  .contact-grid { grid-template-columns: 1fr }
  .nav { padding: 1.25rem 1.25rem }

  /* Hamburger visible, links ocultos por defecto */
  .nav-toggle { display: flex }
  .nav-links {
    position: fixed;
    top: 0; left: 0; right: 0;
    bottom: 0;
    background: #F8F5EF;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.4rem;
    transform: translateX(100%);
    transition: transform .35s ease;
    z-index: 200;
  }
  .nav-links.open { transform: translateX(0) }
  .nav-links a {
    font-size: .88rem;
    letter-spacing: .3em;
  }
}

@media (max-width: 480px) {
  .services-grid {
  grid-template-columns: 1fr;
  gap: 2px;
}
.service-card {
  min-height: 220px;
}
  .contact-grid  { grid-template-columns: 1fr }
  .gallery-grid  { grid-template-columns: 1fr; grid-template-rows: auto; padding-inline: 0 }
  .gallery-cell  { height: 160px }
  .gallery-cell:first-child { height: 260px }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none }
}
/* ── VIDEO SLIDER ──────────────────────────────────────── */
.videos-wrap { padding: 7rem 0 }

.videos-header {
  max-width: 1100px;
  margin: 0 auto;
  padding-inline: 1.5rem;
  margin-bottom: 2.5rem;
}

.videos-slider-outer {
  max-width: 1100px;
  margin: 0 auto;
  padding-inline: 1.5rem;
}

.videos-pista {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}
.videos-pista::-webkit-scrollbar { display: none }

.video-item {
  flex: 0 0 clamp(160px, 38vw, 220px);
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--gold-rule);
  transition: border-color .22s;
}
.video-item:hover { border-color: var(--gold) }

.video-thumb {
  position: relative;
  aspect-ratio: 9/16;
  overflow: hidden;
  background: var(--surface-2);
  cursor: pointer;
}

.video-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
.video-item:hover .video-thumb img { transform: scale(1.04) }

.video-thumb video {
  display: none;
  width: 100%; height: 100%;
  object-fit: cover;
}

.video-item.playing .video-thumb img  { display: none }
.video-item.playing .video-thumb video { display: block }
.video-item.playing .v-play  { display: none }
.video-item.playing .v-stop  { display: none }

.v-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(22,18,10,.22);
  transition: background .22s;
}
.video-item:hover .v-play { background: rgba(22,18,10,.36) }
.v-play svg { width: 48px; height: 48px }

.v-stop {
  display: none;
  position: absolute;
  top: .6rem; right: .6rem;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(22,18,10,.55);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--bg);
  font-size: .7rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background .2s;
}
.v-stop:hover { background: rgba(22,18,10,.85) }

.video-caption {
  padding: .65rem 1rem .8rem;
  font-family: var(--display);
  font-style: italic;
  font-size: 1rem;
  color: var(--fg);
  line-height: 1.3;
  border-top: 1px solid var(--gold-rule);
}

.videos-nav {
  display: flex;
  gap: .5rem;
  justify-content: center;
  margin-top: 1.2rem;
}
.vbtn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--gold-rule);
  background: var(--surface);
  color: var(--fg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s, color .2s;
}
.vbtn:hover { background: var(--gold); border-color: var(--gold); color: var(--bg) }
.vbtn svg { width: 15px; height: 15px }

@media (max-width: 800px) {
  .video-item { flex: 0 0 clamp(150px, 55vw, 200px) }
}
@media (max-width: 480px) {
  .video-item { flex: 0 0 clamp(140px, 68vw, 185px) }
}

.footer-social{display:flex;justify-content:center;align-items:center;gap:1.25rem;margin:1.25rem 0 .75rem;padding:0}
.footer-social a{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid currentColor;border-radius:50%;color:inherit;opacity:.75;transition:opacity .25s,transform .25s}
.footer-social a:hover,.footer-social a:focus-visible{opacity:1;transform:translateY(-2px)}
.footer-social svg{width:20px;height:20px}
@media (max-width:480px){.footer-social{gap:1rem}}