/* ==========================================================================
   NAVIA PET CENTER · Sistema de diseño propio (Cinema Nature Premium)
   Verde Bosque #173D32 · Eucalipto #416D58 · Salvia #C8D9C9
   Marfil #F7F4EB · Terracota #CE8E71 · Café #3B2A22
   Titulares: Fraunces · Interfaz: DM Sans
   ========================================================================== */

:root {
  --forest: #173d32;
  --forest-950: #0b231c;
  --forest-900: #102f26;
  --forest-800: #14382d;
  --forest-700: #1a4638;
  --forest-600: #22584a;
  --eucalyptus: #416d58;
  --eucalyptus-700: #35594a;
  --eucalyptus-600: #4a7a63;
  --eucalyptus-300: #7fa08f;
  --sage: #c8d9c9;
  --sage-100: #e7efe7;
  --sage-200: #d9e5da;
  --sage-300: #b7cdb8;
  --sage-600: #6e8f73;
  --ivory: #f7f4eb;
  --ivory-100: #fbf9f3;
  --ivory-200: #f3efe2;
  --ivory-300: #eae3d2;
  --ivory-400: #ddd4be;
  --terracotta: #ce8e71;
  --terracotta-100: #f5e4db;
  --terracotta-200: #ebccbb;
  --terracotta-300: #dfac92;
  --terracotta-500: #b9755a;
  --terracotta-600: #9c5f47;
  --coffee: #3b2a22;
  --white: #ffffff;

  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 0.85rem;
  --radius-lg: 1.15rem;
  --radius-xl: 1.6rem;
  --radius-pill: 999px;

  --shadow-soft: 0 10px 40px -18px rgba(23, 61, 50, 0.25);
  --shadow-card: 0 2px 10px -4px rgba(23, 61, 50, 0.12);
  --shadow-lift: 0 18px 50px -20px rgba(23, 61, 50, 0.35);

  --header-h: 72px;
  --container: 88rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Base ──────────────────────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  background: var(--ivory-100);
  color: var(--coffee);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; object-fit: contain; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-optical-sizing: auto; line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.5rem); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25rem; }

::selection { background: var(--terracotta); color: #fff; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--eucalyptus);
  outline-offset: 2px;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--sage); border-radius: 8px; border: 2px solid var(--ivory); }
::-webkit-scrollbar-track { background: var(--ivory); }

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

/* ── Layout ────────────────────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.container-narrow { max-width: 62rem; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-sm { padding: clamp(2rem, 4vw, 3rem) 0; }
.section-alt { background: var(--ivory); }
.section-dark { background: var(--forest); color: var(--ivory); }
.section-sage { background: var(--sage-100); }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.stack { display: flex; flex-direction: column; gap: 1rem; }
.stack-sm { gap: .5rem; }
.stack-lg { gap: 2rem; }
.row { display: flex; align-items: center; gap: 1rem; }
.row-wrap { flex-wrap: wrap; }
.row-between { justify-content: space-between; }
.row-end { justify-content: flex-end; }
.row-top { align-items: flex-start; }
.center { justify-content: center; }
.middle { align-items: center; }
.grow { flex: 1 1 auto; min-width: 0; }
.full { width: 100%; }
.relative { position: relative; }
.hidden { display: none !important; }
.block { display: block; }

/* ── Tipografía ────────────────────────────────────────────────────────── */
.display { font-family: var(--font-display); }
.h1 { font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 3.25rem); line-height: 1.1; margin: 0 0 .5em; }
.h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.15; margin: 0 0 .5em; }
.h3 { font-family: var(--font-display); font-size: clamp(1.15rem, 1.6vw, 1.5rem); margin: 0 0 .4em; }
.lead { font-size: clamp(1.02rem, 1.3vw, 1.2rem); line-height: 1.7; color: var(--forest-700); }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--eucalyptus);
  margin-bottom: .75rem;
}
.script { font-family: var(--font-display); font-style: italic; color: var(--terracotta-300); }
.muted { color: rgba(59, 42, 34, .68); }
.on-dark .muted, .section-dark .muted { color: rgba(247, 244, 235, .72); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.center-text { text-align: center; }
.text-forest { color: var(--forest); }
.text-eucalyptus { color: var(--eucalyptus); }
.text-terracotta { color: var(--terracotta-600); }
.text-red { color: #a5342c; }
.text-green { color: var(--eucalyptus-700); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.italic { font-style: italic; }
.headline-scene { text-wrap: balance; }
.section-title { max-width: 46rem; margin-bottom: 2.5rem; }
.section-title.center-text { margin-left: auto; margin-right: auto; }

/* ── Botones ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .72rem 1.35rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: var(--forest);
  color: var(--ivory);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.2;
  transition: transform .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease), color .18s var(--ease);
  text-align: center;
}
.btn:hover { background: var(--forest-700); transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-secondary { background: var(--eucalyptus); }
.btn-secondary:hover { background: var(--eucalyptus-700); }

.btn-light { background: var(--ivory); color: var(--forest); }
.btn-light:hover { background: var(--white); color: var(--forest); }

.btn-outline { background: transparent; color: var(--forest); border-color: rgba(23, 61, 50, .28); }
.btn-outline:hover { background: var(--sage-100); color: var(--forest); }

.btn-ghost { background: transparent; color: var(--forest); border-color: transparent; }
.btn-ghost:hover { background: var(--sage-100); box-shadow: none; }

.btn-danger { background: #a5342c; }
.btn-danger:hover { background: #8a2a23; }

.btn-terracotta { background: var(--terracotta); color: var(--forest-950); }
.btn-terracotta:hover { background: var(--terracotta-300); color: var(--forest-950); }

.btn-sm { padding: .45rem .95rem; font-size: .85rem; }
.btn-lg { padding: .95rem 1.8rem; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-icon { padding: .55rem; border-radius: var(--radius); }

/* ── Tarjetas ──────────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid rgba(23, 61, 50, .1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.card-pad { padding: clamp(1.25rem, 2.5vw, 2rem); }
.card-hover { transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card-dark { background: var(--forest); color: var(--ivory); border-color: transparent; }
.card-sage { background: var(--sage-100); border-color: var(--sage-200); }
.card-terracotta { background: var(--terracotta-100); border-color: var(--terracotta-200); }
.card-ivory { background: var(--ivory); border-color: var(--ivory-300); }

/* ── Insignias ─────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .2rem .65rem;
  border-radius: var(--radius-pill);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .02em;
  background: var(--sage-200);
  color: var(--forest-700);
  white-space: nowrap;
}
.badge-green { background: #dcebdd; color: var(--forest-700); }
.badge-amber { background: #f7e7cd; color: #8a5a1a; }
.badge-red { background: #f6dbd8; color: #8a2a23; }
.badge-blue { background: #d9e6ef; color: #1f4a63; }
.badge-gray { background: var(--ivory-300); color: rgba(59, 42, 34, .75); }
.badge-dark { background: var(--forest); color: var(--ivory); }
.badge-terracotta { background: var(--terracotta-100); color: var(--terracotta-600); }

.dot { width: .5rem; height: .5rem; border-radius: 50%; display: inline-block; background: currentColor; }

/* ── Alertas ───────────────────────────────────────────────────────────── */
.alert {
  padding: .9rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: .95rem;
  display: flex;
  gap: .6rem;
  align-items: flex-start;
}
.alert-info { background: var(--sage-100); border-color: var(--sage-200); color: var(--forest-700); }
.alert-success { background: #e4f0e2; border-color: #cde3cb; color: var(--forest-700); }
.alert-warning { background: #f9ecd7; border-color: #f0dcbb; color: #7c521a; }
.alert-error { background: #f8e0dd; border-color: #f0c9c4; color: #8a2a23; }
.alert-dark { background: var(--forest-800); color: var(--ivory); }

/* ── Formularios ───────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.label { font-size: .85rem; font-weight: 700; color: var(--forest); }
.label .req { color: var(--terracotta-600); }
.hint { font-size: .8rem; color: rgba(59, 42, 34, .62); }
.error-msg { font-size: .82rem; color: #a5342c; font-weight: 600; }

.input,
.textarea,
.select {
  width: 100%;
  padding: .68rem .9rem;
  border: 1px solid var(--ivory-400);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--coffee);
  font-family: inherit;
  font-size: .97rem;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--eucalyptus);
  box-shadow: 0 0 0 3px rgba(65, 109, 88, .18);
}
.textarea { min-height: 7rem; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23173d32' stroke-width='2.5'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.2rem; }
.input-error, .input.is-error { border-color: var(--terracotta-500); box-shadow: 0 0 0 3px rgba(185, 117, 90, .18); }
.checkbox { display: flex; align-items: flex-start; gap: .6rem; font-size: .92rem; }
.checkbox input { width: 1.05rem; height: 1.05rem; margin-top: .2rem; accent-color: var(--eucalyptus); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; }
.form-grid .span-2 { grid-column: 1 / -1; }
.fieldset { border: 1px solid var(--ivory-300); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 0 0 1.25rem; }
.fieldset legend { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--eucalyptus); padding: 0 .4rem; }

/* ── Tablas ────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid rgba(23, 61, 50, .1); border-radius: var(--radius-lg); }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th {
  text-align: left;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--eucalyptus);
  background: var(--ivory);
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--ivory-300);
  white-space: nowrap;
}
.table td { padding: .85rem 1rem; border-bottom: 1px solid var(--ivory-200); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--ivory-100); }
.table-sm td, .table-sm th { padding: .55rem .75rem; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* ── Cabecera y pie ────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--forest);
  border-bottom: 1px solid rgba(247, 244, 235, .12);
}

/* NAVIA PHP pages */
.notice { border-radius: var(--radius); padding: .9rem 1.1rem; margin: 1rem 0; }
.notice-success { background: var(--sage-100); color: var(--forest); border: 1px solid var(--sage-300); }
.notice-error { background: var(--terracotta-100); color: #7d392d; border: 1px solid var(--terracotta-200); }
.notice-info { background: var(--ivory); color: var(--forest); border: 1px solid var(--ivory-300); }
.auth-card { max-width: 34rem; margin-inline: auto; }
.check-row { display: flex; align-items: flex-start; gap: .65rem; margin: 1.25rem 0; }
.check-row input { margin-top: .35rem; accent-color: var(--forest); }
.check-row a, .auth-card a { color: var(--eucalyptus-700); text-decoration: underline; text-underline-offset: .18em; }
.stat-number { display: block; color: var(--forest); font: 600 clamp(2rem, 4vw, 3rem)/1 var(--font-display); margin: .35rem 0 .8rem; }
.stats-grid { margin: 1.5rem 0; }
.stats-grid .card { min-width: 0; }
.site-header .inner { max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
.site-header .nav-link { color: rgba(247,244,235,.88); }
.site-header .nav-link:hover, .site-header .nav-link.active { color: var(--white); border-color: var(--terracotta); }
.menu-toggle { color: var(--ivory); border-color: rgba(247,244,235,.36); }
.mobile-menu { background: var(--forest-900); border-color: rgba(247,244,235,.18); }
.mobile-menu a { color: var(--ivory); border-color: rgba(247,244,235,.12); }
.mobile-logout { width: 100%; text-align: left; border: 0; background: transparent; padding: .7rem .5rem; color: var(--ivory); font-weight: 600; }
.social-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border: 1px solid rgba(247,244,235,.32); border-radius: 50%; transition: background .2s var(--ease), color .2s var(--ease); }
.social-icon:hover { background: rgba(200,217,201,.18); color: var(--white); }
.mobile-social { display: flex; gap: .75rem; padding: .75rem .5rem; }
.mobile-social a { border: 1px solid rgba(247,244,235,.35); border-radius: 50%; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; }
.google-login-area { margin-top: 1.5rem; }
.google-separator { display: flex; align-items: center; gap: .8rem; color: var(--eucalyptus); font-size: .8rem; margin: 1rem 0; }
.google-separator::before, .google-separator::after { content: ''; height: 1px; flex: 1; background: var(--ivory-300); }
.google-login-area .g_id_signin { display: flex; justify-content: center; }
.map-frame { position: relative; min-height: 22rem; overflow: hidden; border-radius: var(--radius-lg); background: var(--sage-100); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.home-cinema { min-height: min(760px, 78vw); position: relative; overflow: hidden; isolation: isolate; background: var(--forest-950); color: var(--ivory); }
.home-cinema-inner { min-height: inherit; position: relative; display: flex; align-items: center; padding-block: clamp(5rem, 11vw, 9rem); }
.home-cinema-photo, .home-cinema-shade { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; }
.home-cinema-photo { object-fit: contain; object-position: center; background: var(--forest-950); }
.home-cinema-shade { background: linear-gradient(90deg, rgba(9,34,26,.94) 0%, rgba(9,34,26,.84) 34%, rgba(9,34,26,.25) 72%, rgba(9,34,26,.08) 100%), linear-gradient(0deg, rgba(9,34,26,.22), transparent 50%); }
.home-cinema-copy { width: min(100%, 42rem); position: relative; z-index: 1; }
.home-cinema h1 { font-size: clamp(2.7rem, 6vw, 5.25rem); color: var(--ivory); text-wrap: balance; }
.home-cinema h1 em { color: var(--terracotta-300); font-weight: 500; }
.home-cinema .lead { color: rgba(247,244,235,.88); max-width: 36rem; margin: 1.25rem 0 2rem; }
.btn-glass { background: rgba(255,255,255,.1); color: var(--white); border-color: rgba(255,255,255,.55); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255,255,255,.18); color: var(--white); }
.home-trust { position: relative; z-index: 2; margin-top: -2.6rem; display: grid; grid-template-columns: repeat(4,1fr); background: var(--ivory-100); border: 1px solid var(--sage-200); border-radius: var(--radius-xl); box-shadow: var(--shadow-soft); padding: .9rem 1rem; }
.trust-item { min-height: 3.5rem; display: flex; align-items: center; justify-content: center; gap: .7rem; padding: .35rem .75rem; color: var(--forest); font-weight: 600; }
.trust-item + .trust-item { border-left: 1px solid var(--ivory-300); }
.trust-icon { display: grid; place-items: center; flex: 0 0 2.5rem; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--sage-100); font-size: 1.1rem; }
.service-cards { align-items: stretch; }
.service-card { overflow: hidden; padding: 0; }
.service-card > img { width: 100%; height: clamp(220px, 28vw, 340px); object-fit: contain; background: var(--ivory-100); }
.service-card-body { padding: clamp(1.25rem, 2.4vw, 2rem); }
.service-card-body p { color: var(--muted, #62564f); }
.home-booking-band { background: var(--forest); color: var(--ivory); padding: clamp(2.5rem, 5vw, 4rem) 0; }
.home-booking-band h2 { margin: .25rem 0; color: var(--ivory); }
.home-booking-band p { margin: 0; color: rgba(247,244,235,.78); }
.home-booking-band .eyebrow { color: var(--terracotta-300); }
.map-frame { position: relative; min-height: 22rem; overflow: hidden; border-radius: var(--radius-lg); background: var(--sage-100); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.login-google-error { margin-top: .75rem; color: #8a2a23; }

@media (max-width: 760px) {
  .auth-card { padding: 1.25rem; }
  .stats-grid.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-cinema { min-height: 680px; }
  .home-cinema-inner { align-items: flex-end; padding-block: 4rem 5.25rem; }
  .home-cinema-photo { object-position: 58% center; }
  .home-cinema-shade { background: linear-gradient(0deg, rgba(9,34,26,.94) 0%, rgba(9,34,26,.74) 42%, rgba(9,34,26,.12) 100%); }
  .home-trust { grid-template-columns: repeat(2, minmax(0,1fr)); margin-top: -1.5rem; padding: .55rem; }
  .trust-item { justify-content: flex-start; font-size: .88rem; }
  .trust-item + .trust-item { border-left: 0; }
  .service-card > img { height: 230px; }
  .home-booking-band .row { align-items: flex-start; }
  .home-booking-band .btn { margin-top: 1.25rem; }
}
.site-header .inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .65rem; font-family: var(--font-display); font-weight: 700; color: var(--forest); letter-spacing: .02em; }
.brand img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.brand .brand-text { font-size: 1.02rem; line-height: 1.1; }
.brand .brand-sub { display: block; font-family: var(--font-sans); font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--eucalyptus); }

.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav-link { font-size: .93rem; font-weight: 600; color: var(--forest-700); padding: .35rem 0; border-bottom: 2px solid transparent; transition: color .15s var(--ease), border-color .15s var(--ease); }
.nav-link:hover, .nav-link.active { color: var(--forest); border-color: var(--terracotta); }
.nav-actions { display: flex; align-items: center; gap: .75rem; }
.menu-toggle { display: none; background: transparent; border: 1px solid rgba(23, 61, 50, .2); border-radius: var(--radius); padding: .45rem .7rem; color: var(--forest); }

.mobile-menu { display: none; flex-direction: column; gap: .25rem; padding: .75rem 1.25rem 1.25rem; background: var(--ivory-100); border-bottom: 1px solid rgba(23, 61, 50, .1); }
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: .7rem .5rem; font-weight: 600; color: var(--forest-700); border-bottom: 1px solid var(--ivory-300); }

.site-footer { background: var(--forest); color: var(--ivory); padding: clamp(2.5rem, 5vw, 4rem) 0 2rem; margin-top: auto; }
.site-footer a { color: rgba(247, 244, 235, .82); }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--sage); font-weight: 700; margin-bottom: .9rem; font-family: var(--font-sans); }
.footer-about { max-width: 23rem; line-height: 1.75; color: rgba(247,244,235,.8); }
.footer-links { margin: 0; padding: 0; }
.footer-contact { margin: 0; padding: 0; }
.footer-contact li { display: flex; align-items: flex-start; gap: .6rem; }
.footer-contact i { color: var(--sage); flex: 0 0 auto; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(247, 244, 235, .16); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: rgba(247, 244, 235, .7); }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: radial-gradient(120% 120% at 85% 10%, #1f4a3b 0%, #173d32 48%, #0b231c 100%);
  color: var(--ivory);
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.hero h1 { color: var(--white); }
.hero .lead { color: rgba(247, 244, 235, .84); }
.hero-media { position: relative; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lift); aspect-ratio: 4 / 3; background: var(--forest-800); }
.hero-media img { width: 100%; height: 100%; object-fit: contain; background: var(--ivory-100); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 35, 28, 0) 40%, rgba(11, 35, 28, .55) 100%); pointer-events: none; }

.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(247, 244, 235, .12);
  border: 1px solid rgba(247, 244, 235, .22);
  color: var(--ivory);
  padding: .4rem .85rem;
  border-radius: var(--radius-pill);
  font-size: .82rem;
  font-weight: 600;
}
.chip-light { background: var(--sage-100); border-color: var(--sage-200); color: var(--forest-700); }

/* ── Fotos ─────────────────────────────────────────────────────────────── */
.photo { position: relative; display: block; overflow: hidden; background: var(--ivory-200); border-radius: var(--radius-lg); }
.photo img { width: 100%; height: 100%; object-fit: contain; background: var(--ivory-100); display: block; }
.photo.cover img { object-fit: cover; }
.photo-round { border-radius: 50%; }
.aspect-4-3 { aspect-ratio: 4 / 3; }
.aspect-1-1 { aspect-ratio: 1 / 1; }
.aspect-16-9 { aspect-ratio: 16 / 9; }

/* ── Métricas ──────────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.stat { background: var(--white); border: 1px solid rgba(23, 61, 50, .1); border-radius: var(--radius-lg); padding: 1.1rem 1.25rem; }
.stat-value { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; color: var(--forest); line-height: 1.1; }
.stat-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--eucalyptus); font-weight: 700; }
.stat-note { font-size: .82rem; color: rgba(59, 42, 34, .62); }

/* ── Acordeón / FAQ ────────────────────────────────────────────────────── */
.accordion { display: flex; flex-direction: column; gap: .75rem; }
.acc-item { background: var(--white); border: 1px solid rgba(23, 61, 50, .1); border-radius: var(--radius); overflow: hidden; }
.acc-head { width: 100%; display: flex; justify-content: space-between; gap: 1rem; align-items: center; background: transparent; border: 0; padding: 1rem 1.25rem; text-align: left; font-weight: 600; color: var(--forest); }
.acc-head::after { content: "+"; font-size: 1.3rem; color: var(--eucalyptus); transition: transform .2s var(--ease); }
.acc-item.open .acc-head::after { transform: rotate(45deg); }
.acc-panel { display: none; padding: 0 1.25rem 1.15rem; color: rgba(59, 42, 34, .8); }
.acc-item.open .acc-panel { display: block; }

/* ── Pasos de reserva ──────────────────────────────────────────────────── */
.wizard-steps { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.step { display: flex; align-items: center; gap: .5rem; font-size: .84rem; font-weight: 600; color: rgba(59, 42, 34, .55); background: var(--ivory); border: 1px solid var(--ivory-300); padding: .45rem .9rem; border-radius: var(--radius-pill); }
.step-num { width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--ivory-400); color: var(--forest); display: grid; place-items: center; font-size: .75rem; font-weight: 700; }
.step.active { background: var(--forest); border-color: var(--forest); color: var(--ivory); }
.step.active .step-num { background: var(--terracotta); color: var(--forest-950); }
.step.done { background: var(--sage-100); border-color: var(--sage-300); color: var(--forest-700); }
.step.done .step-num { background: var(--eucalyptus); color: var(--white); }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .6rem; }
.slot {
  padding: .6rem .5rem;
  border-radius: var(--radius);
  border: 1px solid var(--ivory-400);
  background: var(--white);
  font-weight: 600;
  font-size: .92rem;
  color: var(--forest);
  text-align: center;
  transition: all .15s var(--ease);
}
.slot:hover:not(:disabled) { border-color: var(--eucalyptus); background: var(--sage-100); }
.slot.selected { background: var(--forest); border-color: var(--forest); color: var(--ivory); }
.slot:disabled { background: var(--ivory-200); color: rgba(59, 42, 34, .4); cursor: not-allowed; border-style: dashed; }

/* ── Paneles de aplicación (admin / mi cuenta) ─────────────────────────── */
.app-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--forest); color: var(--ivory); padding: 1.25rem .9rem 2rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .brand { color: var(--ivory); padding: 0 .6rem 1.25rem; }
.sidebar .brand .brand-sub { color: var(--sage); }
.sidebar-link-icon { width: 1.1rem; height: 1.1rem; flex: 0 0 1.1rem; }
.sidebar-link-icon svg { display: block; width: 100%; height: 100%; }
.doc-heading, .doc-page-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; margin-bottom:1.5rem; }
.doc-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; }
.doc-card { display:flex; flex-direction:column; gap:1rem; padding:1.25rem; }
.doc-card-icon { width:2.75rem; height:2.75rem; display:grid; place-items:center; border-radius:1rem; color:var(--forest); background:var(--sage); }
.doc-card-icon svg { width:1.5rem; height:1.5rem; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.doc-card-copy { flex:1; }
.doc-card-copy h2 { margin:0 0 .5rem; font-family:var(--font-display); font-size:1.22rem; }
.doc-card-copy p { color:var(--muted); }
.doc-card-copy .doc-meta { font-size:.82rem; margin:.75rem 0 0; }
.doc-card-actions { display:flex; flex-wrap:wrap; gap:.55rem; }
.doc-notice { margin-top:1.25rem; color:var(--muted); font-size:.9rem; }
.doc-back { display:inline-block; margin-bottom:1.25rem; color:var(--forest); font-weight:700; }
.doc-reading-layout { display:grid; grid-template-columns:minmax(13rem, .3fr) minmax(0,1fr); gap:1.5rem; align-items:start; }
.doc-toc { position:sticky; top:1rem; max-height:calc(100vh - 2rem); overflow:auto; padding:1rem; border:1px solid var(--border); border-radius:1rem; background:var(--surface); }
.doc-toc h2 { font-size:1rem; margin:0 0 .7rem; }
.doc-toc ol { list-style:none; margin:0; padding:0; }
.doc-toc li { margin:.45rem 0; font-size:.88rem; }
.doc-toc .doc-toc-child { padding-left:.9rem; }
.doc-content { min-width:0; padding:clamp(1.1rem,3vw,2.3rem); background:var(--surface); border:1px solid var(--border); border-radius:1rem; line-height:1.7; }
.doc-content h1,.doc-content h2,.doc-content h3 { scroll-margin-top:1rem; color:var(--forest); }
.doc-content h1 { font-size:2rem; }
.doc-content h2 { margin-top:2rem; font-size:1.45rem; }
.doc-content h3 { margin-top:1.4rem; font-size:1.15rem; }
.doc-content code { padding:.08rem .28rem; border-radius:.25rem; background:var(--ivory-100); font-size:.92em; }
.doc-content pre { padding:1rem; overflow:auto; border-radius:.75rem; background:#173d32; color:#f7f4eb; }
.doc-content pre code { padding:0; background:transparent; color:inherit; }
@media (max-width: 900px) { .doc-grid { grid-template-columns:1fr; } .doc-reading-layout { grid-template-columns:1fr; } .doc-toc { position:static; max-height:none; } }
.sidebar-section { font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--sage); padding: 1rem .75rem .4rem; font-weight: 700; }
.sidebar-link {
  display: flex; align-items: center; gap: .7rem;
  padding: .62rem .75rem;
  border-radius: var(--radius);
  color: rgba(247, 244, 235, .82);
  font-size: .92rem;
  font-weight: 600;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.sidebar-link:hover { background: rgba(247, 244, 235, .1); color: var(--white); }
.sidebar-link.active { background: var(--eucalyptus); color: var(--white); }
.sidebar-link .ico { width: 1.15rem; text-align: center; opacity: .9; }

.main { min-width: 0; background: var(--ivory-100); display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem 1.75rem;
  background: var(--white);
  border-bottom: 1px solid rgba(23, 61, 50, .1);
  position: sticky; top: 0; z-index: 30;
}
.topbar h1 { font-size: 1.35rem; margin: 0; }
.content { padding: clamp(1.25rem, 3vw, 2.25rem); display: flex; flex-direction: column; gap: 1.5rem; }

.card-list { display: flex; flex-direction: column; gap: 1rem; }
.list-item { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1rem 1.25rem; background: var(--white); border: 1px solid rgba(23, 61, 50, .1); border-radius: var(--radius-lg); }
.list-item:hover { border-color: var(--sage-300); }

.tabs { display: flex; gap: .4rem; flex-wrap: wrap; border-bottom: 1px solid var(--ivory-300); padding-bottom: .5rem; }
.tab { padding: .45rem .95rem; border-radius: var(--radius-pill); font-size: .88rem; font-weight: 600; color: rgba(59, 42, 34, .7); background: transparent; border: 1px solid transparent; }
.tab:hover { background: var(--ivory-200); color: var(--forest); }
.tab.active { background: var(--forest); color: var(--ivory); }

/* ── Modal ─────────────────────────────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; padding: 1rem; background: rgba(11, 35, 28, .6); }
.modal.open { display: flex; }
.modal-box { background: var(--white); border-radius: var(--radius-lg); max-width: 40rem; width: 100%; padding: 1.75rem; box-shadow: var(--shadow-lift); max-height: 90vh; overflow-y: auto; }

/* ── Utilidades ────────────────────────────────────────────────────────── */
.divider { height: 1px; background: var(--ivory-300); border: 0; margin: 1.5rem 0; }
.avatar { width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--sage-200); color: var(--forest); display: grid; place-items: center; font-weight: 700; font-size: .9rem; flex: none; }
.empty { text-align: center; padding: 2.5rem 1rem; color: rgba(59, 42, 34, .6); background: var(--white); border: 1px dashed var(--ivory-400); border-radius: var(--radius-lg); }
.pagination { display: flex; gap: .4rem; align-items: center; justify-content: center; margin-top: 1.5rem; }
.page-link { min-width: 2.2rem; padding: .4rem .6rem; border-radius: var(--radius); border: 1px solid var(--ivory-300); background: var(--white); text-align: center; font-size: .9rem; font-weight: 600; color: var(--forest); }
.page-link:hover { background: var(--sage-100); }
.page-link.active { background: var(--forest); color: var(--ivory); border-color: var(--forest); }
.page-link.disabled { opacity: .45; pointer-events: none; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--forest); color: var(--ivory); padding: .6rem 1rem; border-radius: 0 0 var(--radius) 0; }
.skip-link:focus { left: 0; }

.toast {
  position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%);
  background: var(--forest); color: var(--ivory);
  padding: .8rem 1.4rem; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lift); font-size: .93rem; z-index: 80;
  animation: fade-up .35s var(--ease) both;
}
.toast.error { background: #8a2a23; }

@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fade-up .5s var(--ease) both; }

/* ── Asistente flotante ────────────────────────────────────────────────── */
.assistant-fab {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 55;
  width: 3.4rem; height: 3.4rem; border-radius: 50%;
  background: var(--forest); color: var(--ivory); border: 0;
  display: grid; place-items: center; box-shadow: var(--shadow-lift);
  font-size: 1.35rem;
}
.assistant-panel {
  position: fixed; right: 1.25rem; bottom: 5.2rem; z-index: 55;
  width: min(23rem, calc(100vw - 2.5rem));
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift); overflow: hidden; display: none;
  border: 1px solid rgba(23, 61, 50, .12);
}
.assistant-panel.open { display: block; animation: fade-up .3s var(--ease) both; }
.assistant-head { background: var(--forest); color: var(--ivory); padding: .9rem 1.1rem; }
.assistant-body { padding: 1rem; max-height: 20rem; overflow-y: auto; display: flex; flex-direction: column; gap: .6rem; }
.msg { padding: .6rem .85rem; border-radius: var(--radius); font-size: .9rem; max-width: 92%; }
.msg-bot { background: var(--ivory); color: var(--coffee); align-self: flex-start; }
.msg-user { background: var(--eucalyptus); color: var(--white); align-self: flex-end; }
.assistant-foot { display: flex; gap: .5rem; padding: .75rem; border-top: 1px solid var(--ivory-200); }
.suggestions { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1rem .75rem; }
.suggestion { background: var(--sage-100); border: 1px solid var(--sage-200); color: var(--forest-700); border-radius: var(--radius-pill); padding: .3rem .75rem; font-size: .8rem; font-weight: 600; }
.suggestion:hover { background: var(--sage-200); }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .nav-actions { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .content { padding: 1rem; }
  .topbar { padding: .75rem 1rem; flex-wrap: wrap; }
}

/* ==========================================================================
   Carrusel de imagenes
   ========================================================================== */
.carousel { position: relative; overflow: hidden; border-radius: var(--radius-xl); background: var(--ivory-100); margin-bottom: 2rem; }
.carousel-track { position: relative; width: 100%; height: clamp(280px, 40vw, 480px); }
.carousel-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; display: flex; align-items: center; justify-content: center; }
.carousel-slide.active { opacity: 1; z-index: 1; }
.carousel-slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(23, 61, 50, .7); color: var(--ivory); border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; z-index: 2; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.carousel-btn:hover { background: var(--forest); }
.carousel-prev { left: 1rem; }
.carousel-next { right: 1rem; }
.carousel-dots { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); display: flex; gap: .5rem; z-index: 2; }
.carousel-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(247, 244, 235, .5); border: none; cursor: pointer; padding: 0; transition: background .2s, transform .2s; }
.carousel-dot.active { background: var(--ivory); transform: scale(1.2); }
.carousel-dot:hover { background: var(--sage); }

@media (max-width: 640px) {
  .carousel-track { height: clamp(200px, 50vw, 320px); }
  .carousel-btn { width: 32px; height: 32px; font-size: 1rem; }
}
