:root {
  --ink: #0f3b47;
  --ink-soft: #1d5866;
  --paper: #fdfaf4;
  --paper-soft: #f4ecdc;
  --text: #1f2d31;
  --muted: #5d7074;
  --accent: #0e7d84;
  --accent-dark: #0a626a;
  --mint: #57b8a6;
  --coral: #e07a5f;
  --line: rgba(15, 59, 71, .16);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 24px 60px -32px rgba(15, 59, 71, .45);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: linear-gradient(180deg, #fefcf7 0%, var(--paper) 40%);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -.025em; line-height: 1.1; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.muted { color: var(--muted); }
.eyebrow {
  text-transform: uppercase; letter-spacing: .16em; font-size: .72rem;
  font-weight: 700; color: var(--accent); margin-bottom: .6rem;
}
.lead { font-size: 1.08rem; color: var(--muted); max-width: 62ch; }
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--accent);
  color: #fff; padding: .7rem 1.1rem; border-radius: 8px; transition: top .2s;
}
.skip:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(253, 250, 244, .94);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 0; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; letter-spacing: -.02em; }
.brand img { border-radius: 10px; object-fit: contain; }
.brand-sm { font-size: .95rem; }
.nav { display: flex; align-items: center; gap: 1.1rem; font-size: .92rem; }
.nav a:not(.btn):hover { color: var(--accent); }
.nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.nav-toggle, .nav-burger { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.3rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: .18s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: .55rem 1rem; font-size: .85rem; }
.btn-block { width: 100%; }

/* Hero */
.hero { position: relative; min-height: 74vh; display: grid; place-items: end start; color: #fff; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9, 34, 41, .08), rgba(6, 27, 33, .74));
}
.hero-content { position: relative; z-index: 1; padding: 8rem 0 4rem; max-width: 42rem; }
.hero h1 { margin: .4rem 0 1rem; }
.hero p { color: rgba(255, 255, 255, .9); font-size: 1.1rem; }
.hero .eyebrow { color: #f2b49f; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero .btn-ghost { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .45); color: #fff; }

/* Sections */
section { padding: 4.5rem 0; }
.section-soft { background: var(--paper-soft); }
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head h2 { margin: .2rem 0 .8rem; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.card-body { padding: 1.5rem; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); font-size: .95rem; }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

.grid-3 { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-4 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.pill {
  display: inline-block; padding: .25rem .7rem; border-radius: 999px; font-size: .75rem;
  font-weight: 600; background: var(--paper-soft); color: var(--ink-soft);
}
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1rem; }
.price { font-weight: 700; color: var(--accent); }

.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.feature h3 { margin-bottom: .35rem; font-size: 1.02rem; }
.feature p { color: var(--muted); font-size: .9rem; }
.feature-icon { font-size: 1.4rem; margin-bottom: .5rem; }

.list-checks { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 1.5rem; }
.list-checks li { display: flex; gap: .5rem; align-items: flex-start; font-size: .93rem; color: var(--muted); }
.list-checks li::before { content: "✓"; color: var(--mint); font-weight: 700; }

/* CTA band */
.cta-band {
  background: var(--ink); color: #fff; border-radius: var(--radius-lg);
  padding: 2.5rem; display: flex; flex-wrap: wrap; gap: 1.5rem;
  align-items: center; justify-content: space-between;
}
.cta-band h2 { font-size: 1.6rem; }
.cta-band p { color: rgba(255, 255, 255, .75); margin-top: .4rem; }

/* Page intro */
.page-intro { padding: 3.5rem 0 1rem; background: var(--paper); }
.crumbs { display: flex; gap: .5rem; font-size: .82rem; color: var(--muted); margin-bottom: 1.2rem; }
.crumbs a:hover { color: var(--accent); }
.page-intro h1 { margin-bottom: .8rem; }

/* Gallery */
.gallery-grid { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gallery-grid button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.gallery-grid img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform .4s ease; }
.gallery-grid button:hover img { transform: scale(1.04); }
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none; place-items: center;
  background: rgba(5, 24, 29, .93); padding: 2rem;
}
.lightbox.open { display: grid; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 82vh; border-radius: 10px; object-fit: contain; }
.lightbox-close {
  position: absolute; top: 1.2rem; right: 1.4rem; background: none; border: 0;
  color: #fff; font-size: 2rem; cursor: pointer; line-height: 1;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12);
  border: 0; color: #fff; font-size: 1.6rem; width: 46px; height: 46px; border-radius: 50%;
  cursor: pointer;
}
.lightbox-nav.prev { left: 1.2rem; }
.lightbox-nav.next { right: 1.2rem; }

/* FAQ */
.faq-list { display: grid; gap: .75rem; max-width: 56rem; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; }
.faq-item summary {
  cursor: pointer; font-weight: 600; list-style: none; display: flex;
  justify-content: space-between; gap: 1rem; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin-top: .75rem; color: var(--muted); font-size: .96rem; }

/* Rates table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--paper-soft); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
tr:last-child td { border-bottom: 0; }

/* Forms */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.8rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .35rem; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; background: #fff; color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.alert { padding: .85rem 1.1rem; border-radius: 10px; margin-bottom: 1rem; font-size: .9rem; }
.alert-success { background: #e8f8f2; color: #146146; border: 1px solid #b7e8d7; }
.alert-error { background: #fdecef; color: #8c1f3d; border: 1px solid #f5c2ce; }
.alert-info { background: #eef2fb; color: #24406e; border: 1px solid #c9d6f2; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .78); padding: 3rem 0 1.5rem; margin-top: 2rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 2fr 1fr 1fr; }
.footer-brand { color: #fff; font-weight: 700; font-size: 1.1rem; margin-bottom: .6rem; }
.site-footer .muted { color: rgba(255, 255, 255, .62); font-size: .9rem; }
.footer-title { color: #fff; font-weight: 600; margin-bottom: .7rem; font-size: .95rem; }
.footer-links { display: grid; gap: .45rem; font-size: .9rem; }
.footer-links a:hover { color: var(--mint); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 2.5rem; padding-top: 1.2rem;
  font-size: .8rem; color: rgba(255, 255, 255, .55);
}

/* Admin */
.admin-body { background: #f1eadc; }
.admin-header { background: #fff; border-bottom: 1px solid var(--line); }
.admin-header-inner { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding: .9rem 0; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .88rem; }
.admin-nav a:hover, .admin-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.admin-main { padding: 2rem 0 4rem; }
.admin-title { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.kpis { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 2rem; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.kpi span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.kpi strong { font-size: 1.9rem; color: var(--ink); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; margin-bottom: 1.5rem; }
.panel h2 { font-size: 1.05rem; margin-bottom: 1rem; }
.badge { padding: .2rem .6rem; border-radius: 999px; font-size: .74rem; font-weight: 600; }
.badge-pendiente { background: #fff4d6; color: #7a5200; }
.badge-confirmada { background: #e5f7ef; color: #146146; }
.badge-cancelada { background: #fdecef; color: #8c1f3d; }
.badge-finalizada { background: #eef1f5; color: #3c4a5c; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.filters { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; margin-bottom: 1.2rem; }
.filters .field { margin: 0; }
.danger { color: #a11d3c; }

@media (max-width: 860px) {
  .nav { display: none; }
  .nav-burger {
    display: inline-flex; padding: .45rem .8rem; border: 1px solid var(--line);
    border-radius: 8px; font-size: .85rem; cursor: pointer;
  }
  .nav-toggle:checked ~ .nav {
    display: grid; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; padding: 1rem 1.25rem; gap: .9rem;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .header-inner { position: relative; flex-wrap: wrap; }
  .hero { min-height: 62vh; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 1.8rem; }
  section { padding: 3rem 0; }
}
