/* =========================================================
   Mahema Eventos y Caterings — hoja de estilos
   Colores y tipografías en :root para cambiarlos fácilmente
   ========================================================= */
:root {
  --verde: #2f3a2b;        /* principal: verde oliva oscuro */
  --verde-2: #47553f;
  --terracota: #a3532b;    /* acento */
  --terracota-osc: #87431f;
  --oro: #c9a46a;          /* detalles decorativos */
  --crema: #f8f4ec;
  --crema-2: #efe7d8;
  --tinta: #24201b;
  --gris: #5d564c;
  --blanco: #fffdf9;

  --f-titulo: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --f-texto: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radio: 14px;
  --sombra: 0 18px 40px -18px rgba(36, 32, 27, .35);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--f-texto);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--tinta);
  background: var(--crema);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--terracota-osc); }
h1, h2, h3 { font-family: var(--f-titulo); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; color: var(--verde); }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.narrow { max-width: 820px; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--verde); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 3px solid var(--terracota); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--terracota-osc); margin-bottom: .9rem; display: inline-flex; align-items: center; gap: .7rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--oro); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.6rem; border-radius: 999px; border: 2px solid var(--terracota);
  background: var(--terracota); color: #fff; font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer; font-family: inherit;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--terracota-osc); border-color: var(--terracota-osc); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--verde); border-color: var(--verde); }
.btn-ghost:hover { background: var(--verde); color: #fff; border-color: var(--verde); }
.btn-small { padding: .55rem 1.1rem; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-whatsapp { background: #1f7a4d; border-color: #1f7a4d; margin-top: .5rem; }
.btn-whatsapp:hover { background: #17603c; border-color: #17603c; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 244, 236, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--crema-2); box-shadow: 0 6px 20px -16px rgba(0,0,0,.4); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--verde); }
.logo-mark {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--verde); color: var(--crema); font-family: var(--f-titulo); font-size: 1.6rem; font-weight: 600;
  box-shadow: inset 0 0 0 3px var(--verde), inset 0 0 0 4px var(--oro);
}
.logo-img { width: 56px; height: 56px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px #f57a00; flex: none; }
.footer-logo-img { width: 88px; height: 88px; border-radius: 50%; background: #fff; margin-bottom: 1rem; }
.logo-text { font-family: var(--f-titulo); font-size: 1.55rem; font-weight: 600; line-height: 1; display: flex; flex-direction: column; }
.logo-text small { font-family: var(--f-texto); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gris); margin-top: .3rem; font-weight: 600; }

.nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: .6rem; cursor: pointer; }
.nav-toggle span { width: 26px; height: 2px; background: var(--verde); transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav { position: fixed; inset: 76px 0 auto 0; background: var(--crema); border-bottom: 1px solid var(--crema-2);
  max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.nav.open { max-height: 480px; }
.nav ul { list-style: none; margin: 0; padding: 1rem 1.25rem 1.5rem; display: flex; flex-direction: column; gap: .25rem; }
.nav a:not(.btn) { display: block; padding: .7rem 0; color: var(--tinta); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--crema-2); }
.nav a:not(.btn):hover { color: var(--terracota-osc); }
.nav .btn { margin-top: .8rem; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .nav { position: static; max-height: none; overflow: visible; background: none; border: 0; }
  .nav ul { flex-direction: row; align-items: center; gap: 1.8rem; padding: 0; }
  .nav a:not(.btn) { padding: .3rem 0; border: 0; font-size: .96rem; position: relative; }
  .nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px; background: var(--terracota); transition: right .25s; }
  .nav a:not(.btn):hover::after { right: 0; }
  .nav .btn { margin: 0; }
}

/* ---------- Hero ---------- */
.hero { padding: 3rem 0 4.5rem; overflow: hidden; }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
.lead { font-size: 1.15rem; color: var(--gris); max-width: 34em; }
.hero h1 em { font-style: italic; color: var(--terracota); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 2rem; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; color: var(--verde-2); font-weight: 600; font-size: .92rem; }
.hero-points li::before { content: "✦"; color: var(--oro); margin-right: .45rem; }

.hero-media { position: relative; padding: 0 0 2.5rem 0; }
.frame { margin: 0; border-radius: 200px 200px var(--radio) var(--radio); overflow: hidden; box-shadow: var(--sombra); background: var(--crema-2); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame-main { aspect-ratio: 4 / 5; width: 82%; margin-left: auto; }
.frame-small { position: absolute; left: 0; bottom: 0; width: 44%; aspect-ratio: 1; border-radius: 50%; border: 8px solid var(--crema); }
.sprig { position: absolute; top: -10px; left: 4%; width: 70px; fill: none; stroke: var(--oro); stroke-width: 2; stroke-linecap: round; opacity: .9; }

@media (min-width: 960px) {
  .hero { padding: 4.5rem 0 6rem; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 4rem; }
}

/* ---------- Secciones ---------- */
.section { padding: 5rem 0; }
.section-tint { background: var(--crema-2); }
.section-dark { background: var(--verde); color: #e9e4d8; }
.section-dark h2, .section-dark h3 { color: var(--crema); }
.section-dark .eyebrow { color: var(--oro); }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head p:last-child { color: var(--gris); }
.section-dark .section-head p:last-child { color: #d3ccbd; }
@media (min-width: 960px) { .section { padding: 7rem 0; } }

/* ---------- Servicios ---------- */
.services { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .services { grid-template-columns: repeat(4, 1fr); } }
.service { background: var(--blanco); border-radius: var(--radio); overflow: hidden; box-shadow: 0 1px 0 var(--crema-2); transition: transform .25s, box-shadow .25s; }
.service:hover { transform: translateY(-6px); box-shadow: var(--sombra); }
.service img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: var(--crema-2); }
.service-body { padding: 1.4rem 1.4rem 1.6rem; }
.service-body p { color: var(--gris); font-size: .98rem; margin: 0; }

.extras { margin-top: 3rem; padding: 2rem; border: 1px solid var(--oro); border-radius: var(--radio); }
.extras h3 { font-size: 1.5rem; }
.extras ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem 2rem; }
@media (min-width: 640px) { .extras ul { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .extras ul { grid-template-columns: repeat(3, 1fr); } }
.extras li::before { content: "✓"; color: var(--terracota); font-weight: 700; margin-right: .6rem; }

/* ---------- Nosotros ---------- */
.about { display: grid; gap: 3rem; align-items: center; }
.about-media { margin: 0; border-radius: var(--radio) 160px var(--radio) var(--radio); overflow: hidden; box-shadow: var(--sombra); aspect-ratio: 9 / 10; background: var(--crema); }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-copy p { color: var(--gris); }
.values { display: grid; gap: 1rem; margin: 2rem 0 0; }
.values div { border-left: 2px solid var(--oro); padding-left: 1rem; }
.values dt { font-family: var(--f-titulo); font-size: 1.35rem; font-weight: 600; color: var(--verde); }
.values dd { margin: 0; color: var(--gris); font-size: .95rem; }
@media (min-width: 960px) {
  .about { grid-template-columns: .9fr 1.1fr; gap: 5rem; }
  .values { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Galería ---------- */
.gallery { list-style: none; padding: 0; margin: 0; columns: 2 160px; column-gap: 1rem; }
.gallery li { break-inside: avoid; margin-bottom: 1rem; }
.gallery a { display: block; border-radius: 10px; overflow: hidden; background: var(--crema-2); }
.gallery img { width: 100%; transition: transform .4s ease, filter .4s; }
.gallery a:hover img { transform: scale(1.04); filter: saturate(1.1); }
@media (min-width: 768px) { .gallery { columns: 3; } }
@media (min-width: 1100px) { .gallery { columns: 4; } }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(20, 18, 15, .92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 6px; }
.lightbox button { position: fixed; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; transition: background .2s; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ---------- Pasos ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 2rem; counter-reset: s; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { border-top: 1px solid rgba(201, 164, 106, .5); padding-top: 1.4rem; }
.step-n { font-family: var(--f-titulo); font-size: 3rem; color: var(--oro); line-height: 1; display: block; margin-bottom: .6rem; }
.steps h3 { font-size: 1.45rem; }
.steps p { color: #d3ccbd; font-size: .98rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--crema-2); }
.faq summary { list-style: none; cursor: pointer; padding: 1.3rem 2.5rem 1.3rem 0; font-weight: 600; font-size: 1.08rem; position: relative; color: var(--verde); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--terracota); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: var(--terracota-osc); }
.faq details p { color: var(--gris); padding-bottom: 1.2rem; margin: 0; }

/* ---------- Contacto ---------- */
.contact { display: grid; gap: 3rem; }
@media (min-width: 960px) { .contact { grid-template-columns: .85fr 1.15fr; gap: 5rem; align-items: start; } }
.contact-copy > p { color: var(--gris); }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .8rem; }
.contact-list li { display: flex; align-items: center; gap: .9rem; }
.contact-list a { color: var(--tinta); text-decoration: none; font-weight: 500; }
.contact-list a:hover { color: var(--terracota-osc); text-decoration: underline; }
.ci { width: 40px; height: 40px; border-radius: 50%; background: var(--blanco); display: grid; place-items: center; color: var(--terracota); flex: none; }

.form { background: var(--blanco); padding: 2rem; border-radius: var(--radio); box-shadow: var(--sombra); display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field-row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-weight: 600; font-size: .92rem; color: var(--verde); }
.opt { font-weight: 400; color: var(--gris); }
input, select, textarea {
  font: inherit; font-size: 1rem; color: var(--tinta); background: var(--crema);
  border: 1.5px solid #d9cfbd; border-radius: 10px; padding: .8rem .9rem; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--terracota); box-shadow: 0 0 0 3px rgba(163, 83, 43, .18); }
.field.error input, .field.error select { border-color: #b3261e; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; color: var(--gris); }
.check input { width: 20px; height: 20px; margin-top: .15rem; flex: none; accent-color: var(--terracota); }
.form-note { font-size: .88rem; color: var(--gris); margin: 0; text-align: center; }
.form-note.err { color: #b3261e; font-weight: 600; }

/* ---------- Pie ---------- */
.site-footer { background: var(--tinta); color: #cfc7b8; padding: 3.5rem 0 2rem; font-size: .95rem; }
.footer-inner { display: grid; gap: 2rem; }
.footer-logo { font-family: var(--f-titulo); font-size: 1.8rem; color: var(--crema); margin: 0 0 .3rem; }
.footer-logo span { font-size: 1.1rem; color: var(--oro); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; }
.site-footer a { color: #e9e2d4; text-decoration: none; }
.site-footer a:hover { color: var(--oro); text-decoration: underline; }
.copy { font-size: .85rem; color: #9c9384; margin: 0; }
@media (min-width: 960px) { .footer-inner { grid-template-columns: 1fr auto; align-items: center; } .copy { grid-column: 1 / -1; border-top: 1px solid #3a352e; padding-top: 1.5rem; } }

/* ---------- Botón flotante WhatsApp ---------- */
.wa-float { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: #1f7a4d; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(0,0,0,.45); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Páginas legales ---------- */
.legal { padding: 3rem 0 5rem; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.legal h2 { font-size: 1.7rem; margin-top: 2rem; }
.legal p, .legal li { color: var(--gris); }

/* ---------- Animación al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
