:root{
  /* ====== Brand palette ====== */
  --brand-chocolate: #723A25; /* principal */
  --brand-beige: #ECD8C2;     /* principal */
  --brand-rose: #9D645B;      /* secundaria */
  --brand-graphite: #4B433C;  /* secundaria */

  /* ====== Typography (sans-serif) ====== */
  --font-ui: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;

  /* ====== Theme (claro premium) ====== */
  --bg: var(--brand-beige);
  --card: rgba(114,58,37,.05);
  --text: var(--brand-chocolate);
  --muted: rgba(75,67,60,.78);

  --border: rgba(114,58,37,.18);
  --shadow: 0 20px 60px rgba(23,18,16,.18);
  --radius: 16px;
  --container: 1100px;

  /* Botones (secundaria) */
  --btn-primary: var(--brand-graphite);
  --btn-primary-hover: #3e3832;
  --btn-secondary: var(--brand-rose);
  --btn-secondary-hover: #8c584f;

  /* Superficies */
  --glass-1: rgba(114,58,37,.03);
  --glass-2: rgba(114,58,37,.06);
  --glass-3: rgba(114,58,37,.10);
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin:0;
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  /* ✅ Para que el contenido no quede debajo del header fijo */
  padding-top: var(--header-offset, 88px);
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display:block; }

.container{
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.muted{ color: var(--muted); }
.page{ min-height: calc(100vh - 160px); }

/* =========================
   Botones (secundaria + hover visible)
========================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: .5rem;
  padding: .85rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-weight: 650;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease, filter .15s ease;
}

.btn:hover{
  transform: translateY(-2px);
  border-color: rgba(114,58,37,.26);
  box-shadow: 0 14px 34px rgba(23,18,16,.14);
}

/* PRIMARY -> graphite */
.btn-primary{
  background: var(--btn-primary);
  color: var(--brand-beige);
  border-color: transparent;
  box-shadow: 0 14px 34px rgba(23,18,16,.18);
}
.btn-primary:hover{
  background: var(--btn-primary-hover);
  filter: brightness(1.02);
}

/* GHOST -> rose */
.btn-ghost{
  background: var(--btn-secondary);
  color: var(--brand-beige);
  border-color: transparent;
  box-shadow: 0 12px 26px rgba(23,18,16,.14);
}
.btn-ghost:hover{
  background: var(--btn-secondary-hover);
}

/* =========================
   Header (principal chocolate)
========================= */
.site-header{
  position: fixed;        /* ✅ siempre visible */
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;          /* ✅ por encima del contenido */

  backdrop-filter: blur(10px);
  background: rgba(114,58,37,.96);
  border-bottom: 1px solid rgba(236,216,194,.20);
}




.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:.6rem;
  font-weight: 800;
  letter-spacing: .2px;
  color: var(--brand-beige);
}

.brand-mark{
  width: 28px; height: 28px;
  display:grid; place-items:center;
  border-radius: 10px;
  background: rgba(236,216,194,.14);
  color: var(--brand-beige);
  box-shadow: 0 14px 34px rgba(23,18,16,.25);
}

/* =========================
   ✅ Logo en header (reemplaza el texto "Club")
========================= */
.brand-logo{
  height: 60px;
  width: auto;
  display: block;
  filter: drop-shadow(0 10px 20px rgba(23,18,16,.25));
}

.nav{ display:flex; gap: 18px; align-items:center; }

.nav-link{
  padding: .55rem .75rem;
  border-radius: 999px;
  color: rgba(236,216,194,.86);
  border: 1px solid transparent;
}

.nav-link:hover{
  color: var(--brand-beige);
  background: rgba(236,216,194,.10);
  border-color: rgba(236,216,194,.14);
}

.nav-link.is-active{
  color: var(--brand-beige);
  border-color: rgba(236,216,194,.22);
  background: rgba(236,216,194,.12);
}

button.nav-link{
  appearance: none;
  font: inherit;
  cursor: pointer;
  background: transparent;
}

/* =========================
   CONTACTO dropdown (header oscuro)
========================= */
.nav-contact{
  position: relative;
  display: inline-flex;
  align-items: center;
}

.contact-menu{
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 16px;

  border: 1px solid rgba(236,216,194,.18);
  background: rgba(114,58,37,.98);
  box-shadow: 0 22px 70px rgba(23,18,16,.30);

  min-width: 340px;
  width: max-content;
  max-width: min(420px, calc(100vw - 40px));

  z-index: 20;
}

.contact-menu.is-open{ display:flex; }

.contact-item{
  display: flex;
  align-items: center;
  gap: 16px;
  padding: .65rem .75rem;
  border-radius: 12px;
  background: rgba(236,216,194,.08);
  border: 1px solid transparent;
  color: var(--brand-beige);
  line-height: 1.2;
}

.contact-item span:not(.contact-icon){
  white-space: nowrap;
}

.contact-icon{
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(236,216,194,.92);
  flex: 0 0 auto;
}

.contact-item:hover{
  background: rgba(236,216,194,.12);
  border-color: rgba(236,216,194,.16);
}

/* =========================
   Nav toggle
========================= */
.nav-toggle{
  display:none;
  border: 1px solid rgba(236,216,194,.22);
  background: rgba(236,216,194,.10);
  border-radius: 12px;
  padding: .55rem .6rem;
}
.nav-toggle-bar{
  display:block;
  width: 20px;
  height: 2px;
  background: var(--brand-beige);
  margin: 4px 0;
  opacity: .95;
}

/* =========================
   Footer (igual que header + premium)
========================= */
.site-footer{
  position: relative;
  border-top: 1px solid rgba(236,216,194,.20);

  /* ✅ degradado vertical (material) */
  background: linear-gradient(
    180deg,
    rgba(114,58,37,.96) 0%,
    rgba(102,50,32,.98) 55%,
    rgba(84,41,27,.98) 100%
  );

  color: var(--brand-beige);
  backdrop-filter: blur(10px);
}

/* highlight fino superior */
.site-footer::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height: 1px;
  background: rgba(236,216,194,.28);
  pointer-events:none;
}

/* brillo interior suave */
.site-footer::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 240px at 20% 0%, rgba(236,216,194,.10), transparent 55%),
    radial-gradient(900px 240px at 80% 0%, rgba(236,216,194,.08), transparent 55%);
  pointer-events:none;
}

.footer-inner{
  position: relative;
  display:flex;
  justify-content:space-between;
  gap: 24px;
  padding: 22px 0 14px;
  align-items: flex-start;
}

.footer-title{
  font-weight: 800;
  letter-spacing: .2px;
  color: var(--brand-beige);
}

.footer-desc{
  margin: 8px 0 0;
  color: rgba(236,216,194,.82);
}

.footer-links{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-link{
  appearance: none;
  font: inherit;
  cursor: pointer;

  border: 1px solid transparent;
  background: rgba(236,216,194,.10);
  color: rgba(236,216,194,.88);

  padding: .55rem .75rem;
  border-radius: 999px;

  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.footer-link:hover{
  background: rgba(236,216,194,.16);
  border-color: rgba(236,216,194,.20);
  color: var(--brand-beige);
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(23,18,16,.22);
}

.footer-bottom{
  position: relative;
  padding: 12px 0 18px;
  border-top: 1px solid rgba(236,216,194,.14);
  color: rgba(236,216,194,.78);
}

/* =========================
   MODALES (base)
========================= */
body.modal-open{ overflow: hidden; }

.modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2000; /* ✅ por encima del header fixed */
}


.modal.is-open{ display: block; }

.modal-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(23,18,16,.55);
  backdrop-filter: blur(6px);
}

.modal-dialog{
  position: relative;
  width: min(860px, calc(100% - 40px));
  max-height: min(84vh, 820px);
  overflow: auto;
  margin: 6vh auto 0;
  border-radius: 18px;
  border: 1px solid rgba(114,58,37,.18);
  background: rgba(236,216,194,.96);
  box-shadow: 0 24px 80px rgba(23,18,16,.25);
  outline: none;
}

.modal-head{
  position: sticky;
  top: 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(114,58,37,.14);
  background: rgba(236,216,194,.98);
}

.modal-head h2{
  margin: 0;
  font-size: 1.1rem;
  color: var(--brand-chocolate);
}

.modal-close{
  appearance: none;
  border: 1px solid rgba(114,58,37,.18);
  background: rgba(114,58,37,.05);
  color: var(--brand-chocolate);
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover{
  background: rgba(114,58,37,.08);
  border-color: rgba(114,58,37,.22);
}

.modal-body{
  padding: 16px;
  color: var(--brand-chocolate);
}
.modal-body h3{
  margin: 18px 0 8px;
  font-size: 1rem;
}
.modal-body p{
  margin: 0 0 10px;
  color: rgba(75,67,60,.86);
  line-height: 1.65;
}
.modal-body ul{
  margin: 0 0 12px;
  padding-left: 18px;
  color: rgba(75,67,60,.86);
}
.modal-body li{ margin: 6px 0; }

/* Cookie consent */
.modal-consent{ z-index: 60; }

.consent-dialog{
  width: min(620px, calc(100% - 40px));
  max-height: 80vh;
}

.consent-actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  padding-top: 8px;
}

.consent-link{
  appearance: none;
  background: transparent;
  border: 0;
  color: rgba(75,67,60,.86);
  cursor: pointer;
  padding: .55rem .35rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.consent-link:hover{ color: var(--brand-chocolate); }

@media (prefers-reduced-motion: reduce){
  .footer-link{ transition: none; }
}

/* =========================
   Responsive
========================= */
@media (max-width: 820px){
  .nav-toggle{ display:inline-block; }

  .nav{
    position: absolute;
    right: 20px;
    top: 64px;
    display:none;
    flex-direction:column;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(236,216,194,.18);
    background: rgba(114,58,37,.98);
    box-shadow: 0 22px 70px rgba(23,18,16,.30);
    min-width: 220px;
  }
  .nav.is-open{ display:flex; }

  .nav-contact{
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .contact-menu{
    position: static;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    display: none;
  }
  .contact-menu.is-open{ display:flex; }
  .contact-item{ width: 100%; }

  .contact-item span:not(.contact-icon){
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .footer-inner{
    flex-direction: column;
    gap: 14px;
  }
  .footer-links{ justify-content: flex-start; }

  .modal-dialog{
    margin-top: 4vh;
    max-height: 88vh;
  }
}

/* ✅ Ajuste de logo en móvil */
@media (max-width: 520px){
  .brand-logo{ height: 28px; }
}
