/* ============================================================
   palaciodeversalles.eu — style.css?v=1
   Tipografía: Cinzel + Raleway
   Paleta: azul real #2C4A6E / oro #C9993A / crema #FAF7F2
   Anti-footprint: clases únicas vs resto de la red
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Raleway:wght@300;400;500;600;700&display=swap');

:root {
  --azul:     #2C4A6E;
  --azul-dk:  #1A2F46;
  --azul-lt:  #3D6494;
  --oro:      #C9993A;
  --oro-lt:   #DDB05A;
  --crema:    #FAF7F2;
  --crema-2:  #F0EAE0;
  --arena:    #D8CCBA;
  --texto:    #1A1208;
  --texto-2:  #3D3020;
  --blanco:   #FFFFFF;
  --sombra:   rgba(44,74,110,.13);
  --radio:    5px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Raleway', sans-serif;
  font-size: 1rem; line-height: 1.85;
  color: var(--texto); background: var(--crema);
}
a { color: var(--azul); text-decoration: none; transition: color .2s; }
a:hover { color: var(--azul-lt); text-decoration: underline; }

/* ── CABECERA ── */
.cab-sitio {
  background: var(--azul);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 14px rgba(0,0,0,.32);
}
.cab-interior {
  max-width: 1120px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center;
  justify-content: space-between; height: 64px;
}
.logo-sitio {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem; font-weight: 700;
  color: var(--crema); letter-spacing: .04em;
  text-decoration: none; line-height: 1;
}
.logo-sitio .logo-dest { color: var(--oro-lt); }
.logo-sitio:hover { text-decoration: none; color: var(--crema); }

.nav-palacio {
  display: flex; align-items: center; gap: 1.6rem;
}
.nav-palacio a {
  font-size: .78rem; font-weight: 600;
  color: rgba(255,255,255,.72);
  letter-spacing: .05em; text-decoration: none;
  transition: color .2s; text-transform: uppercase;
}
.nav-palacio a:hover { color: var(--oro-lt); text-decoration: none; }
.nav-palacio .btn-entrada {
  background: var(--oro) !important; color: var(--azul-dk) !important;
  padding: .4rem 1.1rem !important; border-radius: var(--radio) !important;
  font-weight: 700 !important; font-size: .75rem !important;
  letter-spacing: .06em !important; transition: background .2s !important;
  text-decoration: none !important; text-transform: uppercase !important;
}
.nav-palacio .btn-entrada:hover {
  background: var(--oro-lt) !important; color: var(--azul-dk) !important;
  text-decoration: none !important;
}
.menu-btn {
  display: none; background: none; border: none;
  cursor: pointer; flex-direction: column; gap: 5px; padding: 5px;
}
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--crema); border-radius: 2px; }

/* ── HERO PRINCIPAL (con foto) ── */
.hero-principal {
  position: relative; width: 100%;
  height: 72vh; min-height: 430px;
  overflow: hidden; display: flex; align-items: flex-end;
}
.hero-principal img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
}
.hero-velado {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(26,47,70,.92) 0%,
    rgba(26,47,70,.22) 55%,
    transparent 100%);
}
.hero-copia {
  position: relative; z-index: 2;
  width: 100%; max-width: 1120px;
  margin: 0 auto; padding: 0 1.5rem 3.2rem;
}
.hero-copia h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.9rem, 5vw, 3.6rem);
  font-weight: 700; color: var(--blanco);
  line-height: 1.15; margin-bottom: .5rem;
  text-shadow: 0 2px 18px rgba(0,0,0,.55);
}
.hero-subtexto {
  font-size: .98rem; font-weight: 300;
  color: rgba(255,255,255,.82); max-width: 560px;
  margin-bottom: 1.8rem;
}

/* ── HERO ENTRADAS (con foto) ── */
.hero-entradas {
  position: relative; width: 100%;
  height: 52vh; min-height: 360px;
  overflow: hidden; display: flex; align-items: flex-end;
}
.hero-entradas img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 35%;
}
.hero-entradas .hero-velado {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(26,47,70,.92) 0%,
    rgba(26,47,70,.25) 55%,
    rgba(26,47,70,.05) 100%);
}
.hero-entradas .caja-pagina {
  position: relative; z-index: 2; padding-bottom: 2.8rem;
}
.hero-entradas h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--blanco); margin-bottom: .7rem; font-weight: 700;
}
.hero-entradas p { color: rgba(255,255,255,.82); }
.hero-entradas .btn-dorado { margin-top: 1.2rem; }

/* ── BOTONES ── */
.btn-dorado {
  display: inline-block;
  background: var(--oro); color: var(--azul-dk) !important;
  font-family: 'Raleway', sans-serif;
  font-weight: 700; font-size: .86rem;
  letter-spacing: .07em; text-transform: uppercase;
  padding: .9rem 2.2rem; border-radius: var(--radio);
  transition: background .2s, transform .15s;
  text-decoration: none !important; cursor: pointer;
}
.btn-dorado:hover {
  background: var(--oro-lt); transform: translateY(-1px);
  color: var(--azul-dk) !important; text-decoration: none !important;
}
.btn-contorno {
  display: inline-block;
  background: transparent;
  border: 2px solid var(--oro); color: var(--oro) !important;
  font-family: 'Raleway', sans-serif;
  font-weight: 700; font-size: .86rem;
  letter-spacing: .07em; text-transform: uppercase;
  padding: .85rem 2rem; border-radius: var(--radio);
  transition: background .2s, color .2s, transform .15s;
  text-decoration: none !important; cursor: pointer;
}
.btn-contorno:hover {
  background: var(--oro); color: var(--azul-dk) !important;
  transform: translateY(-1px); text-decoration: none !important;
}

/* ── LAYOUT ── */
.caja-pagina { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }

/* ── BLOQUES CONTENIDO ── */
.bloque-articulo {
  padding: 3rem 0; border-bottom: 1px solid var(--arena);
}
.bloque-articulo:last-child { border-bottom: none; }

.bloque-articulo h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  font-weight: 600; color: var(--azul);
  margin-bottom: 1.2rem; padding-bottom: .5rem;
  border-bottom: 2px solid var(--oro); display: inline-block;
}
.bloque-articulo h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem; color: var(--oro);
  margin: 1.4rem 0 .7rem;
}
.bloque-articulo p { margin-bottom: 1rem; color: var(--texto-2); }
.bloque-articulo p:last-child { margin-bottom: 0; }
.bloque-articulo strong { color: var(--texto); font-weight: 700; }

.foto-bloque {
  width: 100%; height: 270px;
  object-fit: cover; border-radius: var(--radio);
  margin: 1.4rem 0; box-shadow: 0 4px 18px var(--sombra); display: block;
}

.zona-widget { margin: 1.6rem 0; }

/* ── LISTAS ── */
.lista-viñeta {
  list-style: none; margin: 1rem 0 1.2rem; padding: 0;
}
.lista-viñeta li {
  padding: .35rem 0 .35rem 1.8rem;
  position: relative; color: var(--texto-2);
}
.lista-viñeta li::before {
  content: '▶'; position: absolute; left: 0;
  color: var(--oro); font-size: .72rem; line-height: 2;
}

.lista-orden {
  list-style: none; counter-reset: lo;
  margin: 1rem 0 1.2rem; padding: 0;
}
.lista-orden li {
  counter-increment: lo;
  padding: .45rem 0 .45rem 2.6rem;
  position: relative; color: var(--texto-2);
}
.lista-orden li::before {
  content: counter(lo);
  position: absolute; left: 0; top: .6rem;
  background: var(--azul); color: var(--crema);
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 700;
}

/* ── TABLAS ── */
.tabla-envol { overflow-x: auto; margin: 1rem 0 1.2rem; }
.tabla-datos {
  width: 100%; border-collapse: collapse; font-size: .93rem;
}
.tabla-datos th {
  background: var(--azul); color: var(--crema);
  padding: .75rem 1rem; text-align: left;
  font-weight: 700; font-size: .78rem;
  letter-spacing: .05em; text-transform: uppercase;
}
.tabla-datos td {
  padding: .65rem 1rem; border-bottom: 1px solid var(--arena);
  color: var(--texto-2); vertical-align: top;
}
.tabla-datos tr:last-child td { border-bottom: none; }
.tabla-datos tr:nth-child(even) td { background: var(--crema-2); }
.celda-precio { font-weight: 700; color: var(--azul); white-space: nowrap; }

@media (max-width: 600px) {
  .tabla-datos thead { display: none; }
  .tabla-datos tr {
    display: block; background: var(--crema-2);
    border: 1px solid var(--arena);
    border-radius: var(--radio); margin-bottom: .7rem; padding: .8rem;
  }
  .tabla-datos td { display: block; border: none; padding: .2rem 0; }
  .tabla-datos td::before {
    content: attr(data-label) ': ';
    font-weight: 700; color: var(--texto);
    font-size: .76rem; text-transform: uppercase; letter-spacing: .03em;
  }
}

/* ── CAJA SOCIO ── */
.caja-socio {
  background: var(--crema-2);
  border: 1px solid var(--arena);
  border-left: 4px solid var(--oro);
  border-radius: var(--radio);
  padding: 1.5rem 1.8rem; margin: 1.5rem 0;
}
.caja-socio h3 { margin: 0 0 .8rem; font-size: 1.1rem; color: var(--azul); }
.caja-socio ul { list-style: none; padding: 0; margin: .7rem 0 1.2rem; }
.caja-socio ul li { padding: .3rem 0 .3rem 1.6rem; position: relative; color: var(--texto-2); font-size: .94rem; }
.caja-socio ul li::before { content: '✓'; position: absolute; left: 0; color: var(--oro); font-weight: 700; }

/* Tiqets box - same weight as GYG but outlined */
.caja-tiqets {
  background: var(--blanco);
  border: 2px solid var(--oro);
  border-radius: var(--radio);
  padding: 1.5rem 1.8rem; margin: 1.5rem 0;
}
.caja-tiqets h3 { margin: 0 0 .8rem; font-size: 1.1rem; color: var(--azul); }
.caja-tiqets ul { list-style: none; padding: 0; margin: .7rem 0 1.2rem; }
.caja-tiqets ul li { padding: .3rem 0 .3rem 1.6rem; position: relative; color: var(--texto-2); font-size: .94rem; }
.caja-tiqets ul li::before { content: '✓'; position: absolute; left: 0; color: var(--oro); font-weight: 700; }

/* ── INFO BOX ── */
.caja-info {
  background: var(--blanco); border: 1px solid var(--arena);
  border-radius: var(--radio); padding: 1.4rem; margin: 1rem 0;
  box-shadow: 0 2px 8px var(--sombra);
}
.caja-info h4 {
  font-family: 'Cinzel', serif; color: var(--azul);
  font-size: .9rem; letter-spacing: .04em; margin-bottom: .7rem;
}
.caja-info dl { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; }
.caja-info dt { font-weight: 700; color: var(--texto); font-size: .88rem; }
.caja-info dd { color: var(--texto-2); font-size: .88rem; }

/* ── FAQ ACORDEÓN v2.2 ── */
.lista-faq { margin: 1.5rem 0; }

.entrada-faq {
  background: var(--blanco);
  border: 1px solid var(--arena);
  border-radius: 6px; margin-bottom: .9rem; overflow: hidden;
  transition: box-shadow .22s, border-color .22s;
}
.entrada-faq:hover { box-shadow: 0 2px 10px var(--sombra); }
.entrada-faq.activa {
  border-color: var(--oro);
  box-shadow: 0 3px 14px rgba(44,74,110,.14);
}

.disparador-faq {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 1.2rem;
  padding: 1.1rem 1.4rem;
  cursor: pointer; user-select: none;
  transition: background .18s;
}
.disparador-faq:hover { background: var(--crema-2); }
.entrada-faq.activa .disparador-faq { background: var(--crema-2); }

h2.pregunta-faq {
  font-family: 'Raleway', sans-serif;
  font-size: .98rem; font-weight: 700;
  color: var(--texto); margin: 0;
  border: none !important; padding: 0 !important;
  display: inline !important; line-height: 1.6;
}

.icono-faq {
  flex-shrink: 0; width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--crema-2); border: 1.5px solid var(--arena);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 300;
  color: var(--oro); line-height: 1;
  transition: transform .25s, background .2s, border-color .2s;
  margin-top: .05rem;
}
.entrada-faq.activa .icono-faq {
  transform: rotate(45deg);
  background: var(--oro); border-color: var(--oro);
  color: var(--blanco);
}

.respuesta-faq {
  display: none; padding: 0 1.4rem 1.4rem;
  border-top: 1px solid var(--arena);
}
.entrada-faq.activa .respuesta-faq { display: block; }
.respuesta-faq p { margin-top: 1rem; color: var(--texto-2); font-size: .96rem; line-height: 1.8; }

/* ── HERO INTERNO ── */
.hero-interno {
  background: var(--crema-2); padding: 2.4rem 0 2rem;
  border-bottom: 1px solid var(--arena);
}
.hero-interno h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  color: var(--azul); margin-bottom: .6rem; font-weight: 700;
}
.hero-interno p { color: var(--texto-2); max-width: 660px; }

/* MIGAS DE PAN */
.migas { font-size: .8rem; color: var(--texto-2); padding: .7rem 0; margin-bottom: .5rem; }
.migas a { color: var(--oro); }
.migas a:hover { color: var(--azul); text-decoration: none; }
.migas .sep { margin: 0 .4rem; color: var(--arena); }

/* Migas sobre fondo oscuro */
.hero-entradas .migas { color: rgba(255,255,255,.72); }
.hero-entradas .migas a { color: var(--oro-lt); }
.hero-entradas .migas a:hover { color: var(--blanco); text-decoration: none; }
.hero-entradas .migas .sep { color: rgba(255,255,255,.45); }

/* ── PÁGINAS LEGALES ── */
.cuerpo-legal h2 {
  font-family: 'Cinzel', serif; font-size: 1.35rem; color: var(--azul);
  margin: 2rem 0 .75rem; padding-bottom: .4rem;
  border-bottom: 1px solid var(--arena);
}
.cuerpo-legal h3 { font-size: 1.05rem; font-weight: 700; color: var(--oro); margin: 1.4rem 0 .5rem; }
.cuerpo-legal p { color: var(--texto-2); margin-bottom: 1rem; }
.cuerpo-legal ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.cuerpo-legal ul li { color: var(--texto-2); margin-bottom: .35rem; }

/* ── PIE DE PÁGINA ── */
.pie-sitio {
  background: var(--azul-dk); color: rgba(255,255,255,.68);
  padding: 3rem 0 2rem; margin-top: 4rem;
}
.rejilla-pie {
  max-width: 1120px; margin: 0 auto; padding: 0 1.5rem;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem;
}
.marca-pie {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem; color: var(--oro); margin-bottom: .8rem; font-weight: 700;
}
.pie-sitio p { font-size: .86rem; line-height: 1.65; margin-bottom: .5rem; }
.pie-sitio a { color: rgba(255,255,255,.5); font-size: .86rem; transition: color .2s; }
.pie-sitio a:hover { color: var(--oro); text-decoration: none; }
.pie-sitio h4 { color: var(--blanco); font-size: .78rem; letter-spacing: .07em; margin-bottom: .75rem; text-transform: uppercase; }
.pie-sitio ul { list-style: none; }
.pie-sitio ul li { margin-bottom: .4rem; }
.pie-sitio ul a { color: rgba(255,255,255,.55); font-size: .86rem; }
.pie-sitio ul a:hover { color: var(--oro); }

.fondo-pie {
  max-width: 1120px; margin: 1.8rem auto 0;
  padding: 1.4rem 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .78rem; color: rgba(255,255,255,.38); font-style: italic;
}

/* ── RESPONSIVO ── */
@media (max-width: 768px) {
  .nav-palacio { display: none; flex-direction: column; gap: 0; }
  .nav-palacio.nav-abierta {
    display: flex; position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--azul); padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,.15);
    box-shadow: 0 6px 16px rgba(0,0,0,.3); z-index: 99;
  }
  .nav-palacio.nav-abierta a {
    padding: .65rem 0; border-bottom: 1px solid rgba(255,255,255,.12);
    font-size: .9rem; color: rgba(255,255,255,.82);
  }
  .nav-palacio.nav-abierta .btn-entrada { margin-top: .5rem; display: inline-block; }
  .menu-btn { display: flex; }
  .cab-sitio { position: relative; }
  .rejilla-pie { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-principal { height: 60vw; min-height: 300px; }
  .hero-entradas { height: 55vw; min-height: 320px; }
  .bloque-articulo { padding: 2.2rem 0; }
  .foto-bloque { height: 200px; }
}
@media (max-width: 480px) {
  .cab-interior, .caja-pagina { padding: 0 1rem; }
  .hero-copia { padding: 0 1rem 2rem; }
}
