/* =========================================================
   Hotel Cabaleón · Blog (artículos y página del blog)
   Mismo lenguaje que index.html: azul noche, dorado, marfil,
   Cormorant Garamond para títulos e Inter para el texto.
   Sin librerías: carga rápido, lo que también ayuda al SEO.
   ========================================================= */
:root {
    --ink: #0A212E;
    --ink-soft: #16323F;
    --brass: #C9A063;
    --brass-deep: #A8834A;
    --bone: #F7F5F0;
    --sand: #EDE7DD;
    --moss: #4E6B4F;
    --graphite: #20292E;
    --line: rgba(10, 33, 46, 0.13);
    --line-light: rgba(255, 255, 255, 0.16);
    --display: "Cormorant Garamond", Georgia, serif;
    --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bone); color: var(--graphite); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
.envoltura { width: min(100% - 2rem, 72rem); margin-inline: auto; }
.columna { width: min(100% - 2rem, 46rem); margin-inline: auto; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

/* ---------- Detalles comunes ---------- */
.ceja { display: inline-flex; align-items: center; gap: 0.9rem; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.34em; text-transform: uppercase; color: var(--brass); }
.ceja::before { content: ""; width: 32px; height: 1px; background: currentColor; opacity: 0.65; }
.ceja.centrada::after { content: ""; width: 32px; height: 1px; background: currentColor; opacity: 0.65; }
.boton {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; padding: 1rem 1.9rem;
    font-size: 0.66rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none;
    border: 1px solid transparent; border-radius: 2px; transition: background-color .4s, color .4s, border-color .4s;
}
.boton svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.boton-dorado { background: var(--brass); color: var(--ink); }
.boton-dorado:hover { background: #fff; }
.boton-tinta { background: var(--ink); color: #fff; }
.boton-tinta:hover { background: var(--brass); color: var(--ink); }
.boton-claro { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.boton-claro:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- Encabezado ---------- */
.cabecera { position: sticky; top: 0; z-index: 50; background: rgba(247, 245, 240, 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.cabecera .envoltura { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 76px; }
.cabecera-logo img { width: auto; height: 54px; }
.cabecera nav { display: flex; align-items: center; gap: 2rem; }
.cabecera nav a.enlace { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none; color: var(--ink); transition: color .3s; }
.cabecera nav a.enlace:hover, .cabecera nav a.enlace[aria-current] { color: var(--brass-deep); }
.cabecera .boton { padding: 0.85rem 1.4rem; font-size: 0.6rem; }
@media (max-width: 760px) {
    .cabecera .envoltura { height: 66px; }
    .cabecera-logo img { height: 46px; }
    .cabecera nav { gap: 1.1rem; }
    .cabecera nav a.solo-amplio { display: none; }
}

/* ---------- Portada del artículo ---------- */
.portada { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.portada-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.42; }
.portada::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 33, 46, 0.35) 0%, rgba(10, 33, 46, 0.55) 55%, rgba(10, 33, 46, 0.95) 100%); }
.portada .columna { position: relative; z-index: 1; padding-block: clamp(3.5rem, 11vw, 7.5rem) clamp(2.5rem, 7vw, 4.5rem); text-align: center; }
.migas { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 1.6rem; padding: 0; list-style: none; font-size: 0.66rem; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.6); }
.migas li + li::before { content: "/"; margin-right: 0.5rem; color: var(--brass); }
.migas a { text-decoration: none; }
.migas a:hover { color: #fff; }
.portada h1 { margin-top: 1.1rem; font-family: var(--display); font-weight: 300; font-size: clamp(2.3rem, 1.6rem + 3.2vw, 4rem); line-height: 1.06; letter-spacing: -0.01em; }
.portada .bajada { max-width: 38rem; margin: 1.25rem auto 0; font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem); line-height: 1.7; font-weight: 300; color: rgba(255, 255, 255, 0.78); }
.datos-articulo { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.4rem; margin-top: 1.6rem; font-size: 0.6rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.datos-articulo span { display: inline-flex; align-items: center; gap: 0.45rem; }
.datos-articulo span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brass); }

/* ---------- Cuerpo del artículo ---------- */
.foto-principal { width: min(100% - 2rem, 60rem); margin: clamp(-2rem, -3vw, -1rem) auto 0; position: relative; z-index: 2; }
.foto-principal img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; box-shadow: 0 40px 80px -50px rgba(10, 33, 46, 0.7); }
.foto-principal figcaption { margin-top: 0.75rem; font-size: 0.74rem; color: rgba(32, 41, 46, 0.55); text-align: center; }
.articulo { padding-block: clamp(2.5rem, 6vw, 4rem) clamp(3rem, 7vw, 5rem); font-size: clamp(1rem, 0.97rem + 0.15vw, 1.075rem); line-height: 1.85; color: rgba(32, 41, 46, 0.86); }
.articulo > * + * { margin-top: 1.15rem; }
.articulo .entrada { font-family: var(--display); font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.6rem); line-height: 1.55; color: var(--ink); }
.articulo h2 { margin-top: 3rem; padding-top: 1.75rem; border-top: 1px solid var(--line); font-family: var(--display); font-weight: 400; font-size: clamp(1.75rem, 1.5rem + 1vw, 2.3rem); line-height: 1.15; color: var(--ink); scroll-margin-top: 96px; }
.articulo h3 { margin-top: 1.9rem; font-family: var(--display); font-weight: 500; font-size: clamp(1.3rem, 1.2rem + 0.4vw, 1.5rem); line-height: 1.25; color: var(--ink); }
.articulo strong { font-weight: 600; color: var(--ink); }
.articulo a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--brass); transition: color .3s; }
.articulo a:hover { color: var(--brass-deep); }
.articulo ul, .articulo ol { padding-left: 0; list-style: none; }
.articulo ul li, .articulo ol li { position: relative; padding-left: 1.6rem; }
.articulo ul li + li, .articulo ol li + li { margin-top: 0.5rem; }
.articulo ul li::before { content: ""; position: absolute; left: 0; top: 0.92em; width: 0.8rem; height: 1px; background: var(--brass); }
.articulo ol { counter-reset: paso; }
.articulo ol li { counter-increment: paso; }
.articulo ol li::before { content: counter(paso, decimal-leading-zero); position: absolute; left: 0; top: 0; font-family: var(--display); font-style: italic; color: var(--brass-deep); }
.articulo ol li { padding-left: 2.1rem; }

/* Índice y resumen */
.indice { padding: 1.4rem 1.6rem; background: #fff; border: 1px solid var(--line); }
.indice p { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--brass-deep); }
.indice ol { margin-top: 0.75rem; font-size: 0.95rem; line-height: 1.6; }
.indice ol li + li { margin-top: 0.3rem; }
.indice a { border-bottom: 0; }
.resumen { padding: 1.5rem 1.7rem; background: var(--sand); border-left: 2px solid var(--brass); }
.resumen p.titulo-caja { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--brass-deep); }
.resumen ul { margin-top: 0.7rem; font-size: 0.97rem; line-height: 1.65; }

/* Tabla de datos */
.tabla { width: 100%; border-collapse: collapse; font-size: 0.95rem; line-height: 1.5; background: #fff; border: 1px solid var(--line); }
.tabla th, .tabla td { padding: 0.8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.tabla th { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass-deep); background: var(--bone); }
.tabla tr:last-child td { border-bottom: 0; }
.tabla-envoltura { overflow-x: auto; }

/* Cita / consejo */
.consejo { padding: 1.3rem 1.5rem; border: 1px solid rgba(201, 160, 99, 0.45); background: #fff; font-size: 0.97rem; }
.consejo strong { color: var(--brass-deep); }

/* Llamado a reservar */
.llamado { margin-top: 3rem !important; padding: clamp(1.75rem, 5vw, 2.75rem); text-align: center; color: #fff;
    background: radial-gradient(120% 120% at 50% 20%, #17333F 0%, #0A212E 60%, #061620 100%); }
.llamado h2 { margin: 0; padding: 0; border: 0; color: #fff; }
.llamado p { margin-top: 0.75rem; font-size: 0.95rem; line-height: 1.7; color: rgba(255, 255, 255, 0.72); }
.llamado .acciones { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 1.5rem; }
.llamado a { border-bottom: 0; }
.llamado .boton-dorado { color: var(--ink); }

/* Preguntas frecuentes */
.preguntas { margin-top: 1.25rem; border-top: 1px solid var(--line); }
.preguntas details { border-bottom: 1px solid var(--line); }
.preguntas summary { position: relative; padding: 1.15rem 2.5rem 1.15rem 0; cursor: pointer; list-style: none; font-family: var(--display); font-size: 1.3rem; line-height: 1.3; color: var(--ink); }
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after { content: "+"; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-weight: 300; font-size: 1.5rem; color: var(--brass-deep); transition: transform .3s; }
.preguntas details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.preguntas details p { padding-bottom: 1.2rem; font-size: 0.98rem; line-height: 1.75; }

/* Firma */
.firma { display: flex; align-items: center; gap: 1rem; margin-top: 2.5rem !important; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.85rem; line-height: 1.5; }
.firma img { width: 54px; height: auto; }
.firma strong { display: block; font-family: var(--display); font-size: 1.15rem; font-weight: 500; }

/* ---------- Tarjetas de artículos (relacionados y página del blog) ---------- */
.seccion-tarjetas { padding-block: clamp(3rem, 7vw, 5rem); background: #fff; border-top: 1px solid var(--line); }
.seccion-tarjetas .cabeza { text-align: center; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.seccion-tarjetas .cabeza h2 { margin-top: 0.75rem; font-family: var(--display); font-weight: 300; font-size: clamp(2rem, 1.6rem + 1.6vw, 2.9rem); line-height: 1.1; color: var(--ink); }
.tarjetas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 1.25rem; }
.tarjeta { display: flex; flex-direction: column; text-decoration: none; background: var(--bone); border: 1px solid var(--line); transition: border-color .5s, box-shadow .5s; }
.tarjeta:hover { border-color: rgba(201, 160, 99, 0.6); box-shadow: 0 30px 60px -45px rgba(10, 33, 46, 0.55); }
.tarjeta-foto { position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
.tarjeta-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.16, 1, .3, 1); }
.tarjeta:hover .tarjeta-foto img { transform: scale(1.04); }
.tarjeta-categoria { position: absolute; top: 0.85rem; left: 0.85rem; padding: 0.35rem 0.7rem; background: rgba(255, 255, 255, 0.95); color: var(--ink); font-size: 0.55rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.tarjeta-cuerpo { display: flex; flex-direction: column; flex: 1; gap: 0.55rem; padding: 1.3rem 1.4rem 1.5rem; }
.tarjeta-meta { font-size: 0.56rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass-deep); }
.tarjeta h2, .tarjeta h3 { font-family: var(--display); font-weight: 500; font-size: 1.4rem; line-height: 1.2; color: var(--ink); }
.tarjeta p { font-size: 0.88rem; line-height: 1.65; color: rgba(32, 41, 46, 0.7); }
.tarjeta-leer { margin-top: auto; padding-top: 0.5rem; align-self: flex-start; border-bottom: 1px solid var(--brass); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink); }

/* Página del blog: encabezado */
.blog-portada { background: radial-gradient(90% 90% at 50% 20%, #17333F 0%, #0A212E 60%, #061620 100%); color: #fff; text-align: center; padding-block: clamp(3.5rem, 9vw, 6rem); }
.blog-portada h1 { margin-top: 1rem; font-family: var(--display); font-weight: 300; font-size: clamp(2.6rem, 2rem + 3vw, 4.4rem); line-height: 1.05; }
.blog-portada p { max-width: 40rem; margin: 1.1rem auto 0; font-size: 1.05rem; line-height: 1.7; font-weight: 300; color: rgba(255, 255, 255, 0.72); }
.blog-portada .migas { margin-bottom: 1.4rem; }

/* ---------- Pie de página ---------- */
.pie { background: var(--ink); color: rgba(255, 255, 255, 0.7); padding-top: clamp(3rem, 7vw, 4.5rem); font-size: 0.88rem; line-height: 1.7; }
.pie .envoltura { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.pie img { width: 120px; height: auto; margin-bottom: 1rem; }
.pie h2 { margin-bottom: 0.9rem; font-size: 0.6rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--brass); }
.pie ul { padding: 0; list-style: none; }
.pie ul li + li { margin-top: 0.35rem; }
.pie a { text-decoration: none; transition: color .3s; }
.pie a:hover { color: var(--brass); }
.pie-legal { margin-top: 2.5rem; padding-block: 1.5rem; border-top: 1px solid var(--line-light); font-size: 0.7rem; letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.38); text-align: center; }
.pie-legal .envoltura { display: block; }
@media (max-width: 760px) { .pie .envoltura { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- WhatsApp flotante ---------- */
.whatsapp-flotante {
    position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60; display: flex; align-items: center; justify-content: center;
    width: 3.6rem; height: 3.6rem; border-radius: 50%; color: #fff; text-decoration: none;
    background: radial-gradient(140% 160% at 20% 10%, #20475A 0%, #0A212E 60%);
    box-shadow: 0 18px 40px -16px rgba(10, 33, 46, 0.8), inset 0 0 0 1px rgba(201, 160, 99, 0.7), 0 0 0 5px rgba(201, 160, 99, 0.12);
}
.whatsapp-flotante svg { width: 1.45rem; height: 1.45rem; }
.whatsapp-flotante::after { content: ""; position: absolute; top: 0.35rem; right: 0.35rem; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #3BD16F; box-shadow: 0 0 0 2px #0A212E; }
@media (max-width: 760px) { .whatsapp-flotante { left: 1rem; right: auto; bottom: 1rem; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media print { .cabecera, .whatsapp-flotante, .llamado, .seccion-tarjetas, .pie { display: none; } .portada { background: none; color: #000; } .portada-foto, .portada::after { display: none; } }

/* ---------- Sello del Registro Nacional de Turismo ---------- */
.sello-rnt {
    display: inline-flex; flex-direction: column; align-items: center; gap: 0.15rem; margin-top: 1.25rem;
    padding: 0.75rem 1.4rem 0.8rem; text-align: center; color: var(--ink);
    background: linear-gradient(135deg, #FBF7EF 0%, #F1E8D8 100%);
    border: 1px solid rgba(201, 160, 99, 0.75); border-radius: 2px;
    box-shadow: 0 18px 40px -26px rgba(0, 0, 0, 0.55), inset 0 0 0 3px rgba(255, 255, 255, 0.55);
}
.sello-rnt-titulo { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.02em; line-height: 1.2; color: rgba(10, 33, 46, 0.85); }
.sello-rnt-num { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 1.45rem; font-weight: 700; line-height: 1.1; letter-spacing: 0.01em; }
.sello-rnt-estrella { width: 1.05rem; height: 1.05rem; fill: var(--brass); }
