/* ============================================================
   Catering Rey — NUEVO ESTILO VISUAL
   Dirección: Atelier mediterráneo contemporáneo
   Hueso + tinta + verde bosque. Tipografía Fraunces + Manrope.
   No altera contenido HTML, solo apariencia.
   ============================================================ */

:root {
  --color-black: #0e0e0e;
  --color-cream: #f2ede4;
  --color-white: #fbfaf7;
  --color-beige: #d5cdc0;
  --color-gold: #1f4b45;
  --color-gold-dark: #163832;
  --color-gray: #5a554e;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --section-space: clamp(5.5rem, 11vw, 9.5rem);
}

::selection {
  background: rgba(31, 75, 69, 0.22);
  color: #0e0e0e;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.03rem;
  line-height: 1.75;
  letter-spacing: 0.005em;
  color: var(--color-black);
  background:
    linear-gradient(135deg, rgba(31, 75, 69, 0.04) 0%, transparent 42%),
    linear-gradient(180deg, #f7f3ec 0%, #f2ede4 100%);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

/* ---------- Tipografía de secciones ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1.35rem;
}

.section-title {
  font-size: clamp(2.7rem, 6vw, 4.8rem);
  font-weight: 400;
  max-width: 13ch;
  letter-spacing: -0.03em;
}

.section-lead {
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--color-gray);
  max-width: 44ch;
}

.gold-line {
  width: 56px;
  height: 2px;
  border-radius: 0;
  background: var(--color-gold);
  margin: 1.6rem 0;
  opacity: 0.9;
}

.section--cream {
  background:
    radial-gradient(circle at 0% 100%, rgba(31, 75, 69, 0.05), transparent 45%),
    var(--color-cream);
}

.section--white {
  background: var(--color-white);
}

/* ---------- Slideshow / presentación (fondo oscuro cinematográfico) ---------- */
.slideshow-section {
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(61, 107, 99, 0.25), transparent 55%),
    #0f1c1a;
}

/* ---------- Sello: contraste claro frente a presentación ---------- */
.section--black {
  background:
    linear-gradient(180deg, #fbfaf7 0%, #f2ede4 100%);
  color: var(--color-black);
}

.section--black .eyebrow {
  color: var(--color-gold);
}

.section--black .section-title {
  color: var(--color-black);
}

.section--black .detail-item {
  border-top: 2px solid rgba(31, 75, 69, 0.2);
}

.section--black .detail-num {
  color: var(--color-gold);
  font-style: italic;
}

.section--black .detail-title {
  color: var(--color-black);
}

.section--black .detail-text {
  color: var(--color-gray);
}

/* CTA band sí permanece oscura */
.section--black.cta-band {
  background:
    radial-gradient(ellipse 70% 80% at 50% 120%, rgba(61, 107, 99, 0.25), transparent 55%),
    #0f1c1a;
  color: #f4f0e9;
}

.section--black.cta-band .eyebrow {
  color: #9fc0b8;
}

.section--black.cta-band .section-title {
  color: #f4f0e9;
}

/* ---------- Botones ---------- */
.btn {
  min-height: 52px;
  padding: 0.95rem 2rem;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition:
    background 0.4s var(--ease-premium),
    color 0.4s var(--ease-premium),
    border-color 0.4s var(--ease-premium),
    transform 0.4s var(--ease-premium),
    box-shadow 0.4s var(--ease-premium);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: #f7f3ec;
}

.btn-primary:hover {
  background: var(--color-gold-dark);
  border-color: var(--color-gold-dark);
  color: #f7f3ec;
  box-shadow: 0 12px 30px rgba(31, 75, 69, 0.28);
}

.btn-secondary {
  background: rgba(247, 243, 236, 0.08);
  color: #f7f3ec;
  border-color: rgba(247, 243, 236, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(247, 243, 236, 0.16);
  border-color: #f7f3ec;
}

.btn-outline {
  background: transparent;
  color: var(--color-black);
  border-color: var(--color-black);
}

.btn-outline:hover {
  background: var(--color-black);
  color: #f7f3ec;
}

.btn-dark {
  background: var(--color-black);
  color: #f7f3ec;
  border-color: var(--color-black);
}

.btn-dark:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
}

.btn-sm {
  min-height: 44px;
  padding: 0.7rem 1.4rem;
  font-size: 0.66rem;
}

/* ---------- Header ---------- */
.site-header.is-scrolled,
.site-header.is-solid {
  background: rgba(251, 250, 247, 0.86);
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  box-shadow: 0 1px 0 rgba(14, 14, 14, 0.06);
}

.brand {
  color: #f7f3ec;
}

.site-header.is-scrolled .brand,
.site-header.is-solid .brand,
body:not(.is-home) .brand {
  color: var(--color-black);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-transform: none;
}

.brand-tag {
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  opacity: 0.65;
}

.nav-link {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(247, 243, 236, 0.9);
}

.site-header.is-scrolled .nav-link,
.site-header.is-solid .nav-link,
body:not(.is-home) .nav-link {
  color: var(--color-black);
}

.nav-link::after {
  height: 2px;
  background: var(--color-gold);
  bottom: -2px;
}

.header-cta.btn-primary {
  color: #f7f3ec;
}

.nav-toggle-bar {
  background: #f7f3ec;
  height: 2px;
}

.site-header.is-scrolled .nav-toggle-bar,
.site-header.is-solid .nav-toggle-bar,
body:not(.is-home) .nav-toggle-bar {
  background: var(--color-black);
}

.nav-mobile {
  background: rgba(251, 250, 247, 0.97);
}

.nav-mobile-link {
  font-weight: 600;
  letter-spacing: 0.14em;
}

.nav-mobile-link.is-active {
  color: var(--color-gold);
}

/* ---------- Hero ---------- */
.hero-overlay {
  background:
    linear-gradient(105deg, rgba(14, 14, 14, 0.72) 0%, rgba(14, 14, 14, 0.28) 48%, rgba(15, 28, 26, 0.55) 100%),
    linear-gradient(180deg, rgba(14, 14, 14, 0.25) 0%, rgba(14, 14, 14, 0.15) 40%, rgba(14, 14, 14, 0.78) 100%);
}

.hero-media,
.hero-media img,
.hero-overlay {
  transform: none !important;
  animation: none !important;
  transition: none !important;
  opacity: 1 !important;
  filter: none;
}

.hero.is-ready .hero-media img {
  transform: none !important;
}

.hero-content,
.hero .btn-group,
.hero .scroll-indicator {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

.hero-content {
  padding: calc(var(--header-h) + 4rem) 0 6.5rem;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.hero-brand {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #9fc0b8;
  margin-bottom: 1.4rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 9vw, 7rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.94;
  max-width: 11ch;
  color: #fbfaf7;
  margin-bottom: 1.4rem;
  text-align: center;
  margin-inline: auto;
}

.hero-text {
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.7;
  max-width: 34ch;
  color: rgba(251, 250, 247, 0.82);
  margin-bottom: 2.4rem;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* El hueco entre botones queda en el centro exacto de la pantalla */
.hero .btn-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  column-gap: 1.25rem;
  width: 100%;
  max-width: none;
  justify-content: stretch;
  padding-inline: 1.25rem;
  box-sizing: border-box;
}

.hero .btn-group .btn:first-child {
  justify-self: end;
}

.hero .btn-group .btn:last-child {
  justify-self: start;
}

.scroll-indicator {
  color: rgba(251, 250, 247, 0.7);
  font-weight: 500;
  letter-spacing: 0.24em;
}

.scroll-indicator-line {
  background: linear-gradient(to bottom, #9fc0b8, transparent);
}

/* ---------- Esencia ---------- */
.esencia-grid {
  gap: clamp(2.5rem, 7vw, 6.5rem);
  align-items: center;
}

.esencia-copy .section-title {
  max-width: 11ch;
  font-style: italic;
  font-weight: 400;
}

.esencia-media--logo,
.esencia-media {
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(14, 14, 14, 0.12);
}

.esencia-media--logo {
  aspect-ratio: 4 / 5;
  padding: 0;
  background: #e8e2d8;
}

.esencia-media--logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: normal;
  filter: none;
}

/* ---------- Sello / detalles (fondo claro) ---------- */
.details-grid {
  margin-top: clamp(3rem, 6vw, 5rem);
  gap: 1.75rem 2rem;
}

.detail-item {
  border-top: 2px solid rgba(31, 75, 69, 0.18);
  padding-top: 1.75rem;
}

.detail-num {
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 7vw, 5.8rem);
  font-weight: 300;
  font-style: italic;
  color: var(--color-gold);
  line-height: 0.9;
  margin-bottom: 1.1rem;
  opacity: 1;
}

.detail-title {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-black);
  margin-bottom: 0.9rem;
}

.detail-text {
  color: var(--color-gray);
  font-size: 0.96rem;
  line-height: 1.7;
  font-weight: 400;
}

/* ---------- Proceso: fondo sage, distinto del sello ---------- */
.section--process {
  background:
    radial-gradient(circle at 0% 100%, rgba(31, 75, 69, 0.05), transparent 45%),
    var(--color-cream);
  color: var(--color-black);
  position: relative;
  overflow-x: clip;
}

.section--process > .container,
.section--process .process-wrap {
  width: min(100% - 5rem, 840px);
  margin-inline: auto;
  padding-inline: 1rem;
  box-sizing: border-box;
}

.process-track {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  margin-inline: auto;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 100%;
  width: 100%;
  gap: 1rem 1.25rem;
  padding-inline: 0.5rem;
  box-sizing: border-box;
}

.process-track::before {
  content: "";
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(31, 75, 69, 0.35), transparent);
  height: 2px;
  top: 30px;
  left: 14%;
  right: 14%;
}

.process-step {
  text-align: center;
  position: relative;
  min-width: 0;
  padding-inline: 0.4rem;
  box-sizing: border-box;
}

.process-num {
  width: 58px;
  height: 58px;
  margin: 0 auto 1.25rem;
  border: 2px solid var(--color-gold);
  border-radius: 0;
  background: #f7f3ec;
  color: var(--color-gold);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  font-weight: 500;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 24px rgba(31, 75, 69, 0.1);
}

.process-title {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
  padding-inline: 0.1rem;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.process-text {
  color: var(--color-gray);
  font-size: 0.86rem;
  line-height: 1.6;
  max-width: 18ch;
  margin-inline: auto;
  padding-inline: 0.15rem;
  overflow-wrap: break-word;
}

body.page-interior .section--process:first-child {
  padding-top: calc(var(--header-h) + clamp(2.5rem, 5vw, 4rem));
}

.section--process::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  opacity: 0.55;
}

.section--process .eyebrow {
  color: var(--color-gold);
}

.section--process .section-title {
  color: var(--color-black);
}

.section--process .process-track::before {
  background: linear-gradient(90deg, transparent, rgba(31, 75, 69, 0.35), transparent);
}

.section--process .process-text {
  color: var(--color-gray);
}

/* Sello: hueso más claro, para contrastar con proceso sage */
.section--black:not(.slideshow-section):not(.cta-band) {
  background:
    linear-gradient(180deg, #fcfbf8 0%, #f7f3ec 100%);
  border-top: 1px solid rgba(31, 75, 69, 0.08);
  border-bottom: 1px solid rgba(31, 75, 69, 0.08);
}

/* ---------- Slideshow / presentación (siempre oscura) ---------- */
.slideshow-section,
.section--black.slideshow-section {
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(61, 107, 99, 0.28), transparent 55%),
    #0f1c1a !important;
  color: #f4f0e9;
}

.slideshow-section .eyebrow {
  color: #9fc0b8;
}

.slideshow-section .section-title,
.slideshow-section .slideshow-dossier-title {
  color: #f4f0e9;
}

.slideshow-section .section-lead {
  color: rgba(244, 240, 233, 0.72);
}

.slideshow-dossier-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  text-transform: none;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.slideshow-viewport {
  aspect-ratio: 16 / 9.2;
  max-height: min(78vh, 800px);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(159, 192, 184, 0.15);
}

.slideshow-nav {
  border: 1px solid rgba(244, 240, 233, 0.3);
  background: transparent;
  color: #f4f0e9;
  border-radius: 0;
}

.slideshow-nav:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: #f7f3ec;
}

.slideshow-dot {
  width: 8px;
  height: 8px;
  border-radius: 0;
  background: rgba(244, 240, 233, 0.25);
}

.slideshow-dot.is-active {
  background: #9fc0b8;
  transform: scale(1.2);
}

.slideshow-play {
  color: #9fc0b8;
}

.slideshow-play.is-paused {
  color: #f4f0e9;
}

.slideshow-counter {
  color: rgba(244, 240, 233, 0.6);
}

/* ---------- Páginas interiores ---------- */
.page-hero {
  padding: calc(var(--header-h) + 5.5rem) 0 4.25rem;
  background:
    linear-gradient(160deg, rgba(31, 75, 69, 0.08), transparent 55%),
    linear-gradient(180deg, #fbfaf7, #f2ede4);
  border-bottom: 2px solid rgba(31, 75, 69, 0.12);
  text-align: left;
}

.page-hero .container {
  text-align: left;
}

.page-hero .section-title,
.page-hero .section-title--center,
.page-hero .section-lead--center,
.page-hero .gold-line--center {
  margin-inline: 0;
  text-align: left;
}

.page-hero .gold-line--center {
  margin-left: 0;
}

.page-hero .section-title {
  max-width: 16ch;
  font-style: italic;
}

/* ---------- Galería ---------- */
.gallery-cats {
  background: transparent;
  border-bottom: 1px solid rgba(31, 75, 69, 0.12);
}

.gallery-cat-link {
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--color-gray);
  border-bottom-width: 2px;
}

.gallery-cat-link:hover {
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
}

.gallery-category-intro .section-title {
  font-style: italic;
}

.gallery-grid {
  gap: 1.5rem;
}

.gallery-figure {
  background: #ebe5db;
  padding: 0.65rem;
}

.gallery-figure img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.7s var(--ease-premium), opacity 0.4s ease;
}

.gallery-figure:hover img {
  transform: scale(1.01);
  filter: none;
  opacity: 0.95;
}

/* ---------- WhatsApp / presupuesto ---------- */
.whatsapp-contacts {
  gap: 1.25rem;
}

.whatsapp-card {
  border: 1px solid rgba(31, 75, 69, 0.15);
  border-top: 3px solid var(--color-gold);
  padding: 2.4rem 1.5rem 2rem;
  background: var(--color-white);
  transition: transform 0.4s var(--ease-premium), box-shadow 0.4s var(--ease-premium);
}

.whatsapp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(14, 14, 14, 0.08);
  border-top-color: var(--color-gold);
}

.whatsapp-card-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.1rem, 3.5vw, 2.9rem);
  letter-spacing: -0.02em;
  color: var(--color-black);
}

.whatsapp-card-phone {
  color: var(--color-gray);
  font-weight: 500;
}

.whatsapp-card-phone:hover {
  color: var(--color-gold);
}

/* ---------- Footer ---------- */
.site-footer {
  background:
    radial-gradient(ellipse 60% 40% at 0% 0%, rgba(61, 107, 99, 0.2), transparent 50%),
    #0f1c1a;
  color: #f4f0e9;
  padding-top: 5.5rem;
  border-top: none;
}

/* ---------- Footer (columnas como antes, bloque centrado) ---------- */
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  justify-content: center;
  text-align: center;
  max-width: 900px;
  margin-inline: auto;
  padding-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-transform: none;
  color: #f4f0e9;
}

.footer-logo-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  display: block;
}

.footer-logo-link:hover .footer-brand-name {
  color: #9fc0b8;
}

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  font-weight: 300;
  color: rgba(244, 240, 233, 0.65);
  max-width: 16ch;
  margin-inline: auto;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-heading {
  font-family: var(--font-body);
  color: #9fc0b8;
  letter-spacing: 0.2em;
  font-size: 0.66rem;
  font-weight: 700;
  text-align: center;
}

.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  text-align: center;
}

.footer-links a,
.footer-contact a {
  color: rgba(244, 240, 233, 0.72);
  font-weight: 400;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #9fc0b8;
  padding-left: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(244, 240, 233, 0.1);
  color: rgba(244, 240, 233, 0.4);
  text-align: center;
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-align: center;
}

.footer-credit {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.footer-credit a {
  color: #9fc0b8;
  transition: color 0.25s ease;
}

.footer-credit a:hover {
  color: #f4f0e9;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 640px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

/* ---------- Mobile dock ---------- */
.mobile-dock {
  background: rgba(15, 28, 26, 0.94);
  border: 1px solid rgba(159, 192, 184, 0.35);
  border-radius: 0;
  padding: 0.4rem;
}

.mobile-dock-btn {
  border-radius: 0;
  font-weight: 600;
}

.mobile-dock-btn--accent {
  background: var(--color-gold);
  color: #f7f3ec;
}

.mobile-dock-btn--accent:hover {
  background: var(--color-gold-dark);
  color: #f7f3ec;
}

/* ---------- Utilidades varias ---------- */
.media-frame {
  background: #e5ddd1;
  box-shadow: 0 24px 60px rgba(14, 14, 14, 0.1);
}

.cta-band {
  background:
    radial-gradient(ellipse 70% 80% at 50% 120%, rgba(61, 107, 99, 0.25), transparent 55%),
    #0f1c1a;
}

.cta-band .section-title {
  font-style: italic;
}

.contact-note {
  color: var(--color-gray);
}

.focus-visible,
a:focus-visible,
button:focus-visible {
  outline-color: var(--color-gold);
}

/* Legal */
.legal-placeholder {
  background: rgba(31, 75, 69, 0.08);
  border-left: 3px solid var(--color-gold);
}
