/* Hostal Restaurante Piedra — hoja de estilos principal
   Paleta: fondo #F5F5F5, texto #1F1F1F, acento #8A8A8A (guía de marca) */

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

:root {
  --bg: #F5F5F5;
  --text: #1F1F1F;
  --accent: #8A8A8A;
  --white: #FFFFFF;
  --line: #E0E0E0;
  --max-width: 1140px;
  --section-pad-desktop: 90px;
  --section-pad-mobile: 60px;
  --gap-desktop: 40px;
  --gap-mobile: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; display: block; }

a { color: var(--text); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: var(--section-pad-mobile) 0;
}

@media (min-width: 1025px) {
  section { padding: var(--section-pad-desktop) 0; }
}

.section-alt { background: #EFEFEF; }
.section-dark { background: #1F1F1F; color: #F5F5F5; }
.section-dark a { color: #F5F5F5; }

h1, h2, h3 {
  font-family: 'Inter', sans-serif;
  margin: 0 0 14px 0;
  font-weight: 600;
  text-wrap: balance;
}

h1 {
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(20px, 2.4vw, 25px);
  line-height: 1.3;
  font-weight: 600;
}

h3 {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 500;
}

/* Eyebrow: etiqueta corta que sitúa el bloque (lugar, oficio, fecha) */
.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
  margin-bottom: 10px;
}

p { margin: 0 0 12px 0; max-width: 65ch; }
.center p { margin-left: auto; margin-right: auto; }

ul { margin: 0 0 12px 0; padding-left: 20px; }
li { margin-bottom: 6px; }

.text-secondary { font-size: 14px; line-height: 1.5; color: var(--accent); }

.lead {
  font-size: 16px;
  max-width: 640px;
}

.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Botones */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn-primary {
  background: #1F1F1F;
  color: #F5F5F5;
  border-color: #1F1F1F;
}
.btn-primary:hover { background: #8A8A8A; border-color: #8A8A8A; transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: #1F1F1F;
  border: 1px solid #8A8A8A;
}
.btn-secondary:hover { border-color: #1F1F1F; color: #1F1F1F; transform: translateY(-1px); }

.section-dark .btn-secondary { color: #F5F5F5; border-color: #8A8A8A; }
.section-dark .btn-secondary:hover { border-color: #F5F5F5; color: #F5F5F5; }

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 767px) {
  .btn { width: 100%; text-align: center; }
  .btn-group { flex-direction: column; }
}

/* Header */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid #E2E2E2;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo img { height: 48px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.main-nav a:not(.btn) {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}

.main-nav a:not(.btn):hover { color: var(--accent); }

.main-nav .btn { white-space: nowrap; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
}

@media (max-width: 1180px) {
  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid #E2E2E2;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
  }

  .main-nav.open { display: flex; }

  .main-nav a {
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid #E9E9E9;
  }

  .main-nav .btn { margin-top: 12px; width: 100%; }
}

/* Footer */
.site-footer {
  background: #1F1F1F;
  color: #F5F5F5;
  padding: 50px 0 24px;
}

.site-footer a { color: #F5F5F5; text-decoration: none; }
.site-footer a:hover { color: #8A8A8A; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-desktop);
  margin-bottom: 32px;
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: var(--gap-mobile); }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-grid h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8A8A8A;
  margin-bottom: 12px;
}

.footer-grid ul { list-style: none; padding: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 14px; }

.footer-bottom {
  border-top: 1px solid #3A3A3A;
  padding-top: 20px;
  font-size: 12px;
  color: #8A8A8A;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a { color: #8A8A8A; }

/* Grid helpers */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-desktop);
  align-items: center;
}

@media (max-width: 1024px) {
  .grid-2 { grid-template-columns: 1fr; gap: var(--gap-mobile); }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

.gallery-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

/* Tablas de precios */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
  font-size: 15px;
  background: var(--white);
}

.price-table th, .price-table td {
  border: 1px solid #E0E0E0;
  padding: 12px;
  text-align: center;
}

.price-table th {
  background: #EFEFEF;
  font-weight: 600;
}

.price-table td:first-child { text-align: left; font-weight: 500; }

.table-wrap { overflow-x: auto; }

/* WhatsApp flotante */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  z-index: 200;
  transition: transform 0.18s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

@media (max-width: 600px) {
  .whatsapp-float { right: 16px; bottom: 16px; width: 50px; height: 50px; }
}

/* Mapa */
.map-frame iframe { width: 100%; height: 380px; border: 0; display: block; }

/* Logo grande de sección hero */
.hero-title { max-width: 760px; margin: 0 auto; }
.hero-title h1 { text-align: center; }
.hero-title .lead { margin-left: auto; margin-right: auto; text-align: center; }
.hero-title .eyebrow { text-align: center; }
.hero-title .stat-strip { text-align: left; }

/* Marco "piedra cortada": borde fino, sin radio */
.img-frame { border: 1px solid var(--line); overflow: hidden; }
.img-frame img { display: block; transition: transform 0.5s ease; }
.img-frame:hover img { transform: scale(1.04); }

.gallery-grid .gallery-item { overflow: hidden; border: 1px solid var(--line); }
.gallery-grid .gallery-item img { border: none; transition: transform 0.5s ease; }
.gallery-grid .gallery-item:hover img { transform: scale(1.06); }

/* Aparición suave al entrar en viewport */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .img-frame img, .gallery-grid a img, .btn { transition: none; }
}

/* Tarjetas de tipo de habitación */
.room-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-desktop);
}

@media (max-width: 900px) {
  .room-grid { grid-template-columns: 1fr; gap: var(--gap-mobile); }
}

.room-card { border: 1px solid var(--line); background: var(--white); }
.room-card .img-frame { border: none; border-bottom: 1px solid var(--line); }
.room-card .img-frame img { height: 200px; width: 100%; object-fit: cover; }
.room-card .room-body { padding: 20px; }
.room-card h3 { margin-bottom: 4px; }
.room-card .room-price {
  display: block;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 10px;
}
.room-card .room-price strong { color: var(--text); font-size: 16px; }
.room-card p { font-size: 14px; margin-bottom: 0; }

/* Ficha de servicios: pares clave/valor, estilo "hoja de datos" */
.spec-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}

.spec-list .spec {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.spec-list .spec:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 20px; }
.spec-list .spec:nth-child(even) { padding-left: 20px; }

.spec-list .spec-label { color: var(--accent); }
.spec-list .spec-value { font-weight: 500; text-align: right; }

@media (max-width: 700px) {
  .spec-list { grid-template-columns: 1fr; }
  .spec-list .spec:nth-child(odd) { border-right: none; padding-right: 4px; }
  .spec-list .spec:nth-child(even) { padding-left: 4px; }
}

/* Rejilla de distancias: 4 en fila + la última a ancho completo */
.distance-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid #3A3A3A;
  border-left: 1px solid #3A3A3A;
}

.distance-grid .stat {
  border-right: 1px solid #3A3A3A;
  border-bottom: 1px solid #3A3A3A;
  padding: 16px 18px;
  text-align: left;
}

.distance-grid .stat.full-width { grid-column: 1 / -1; text-align: center; }

.distance-grid .stat-value { display: block; font-weight: 600; font-size: 18px; }
.distance-grid .stat-label { display: block; font-size: 13px; color: var(--accent); margin-top: 2px; }

@media (max-width: 700px) {
  .distance-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Rejilla de argumentos ("por qué Piedra") */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.feature-grid .feature {
  background: var(--white);
  padding: 32px 28px;
}

.feature .feature-index {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.feature h3 { margin-bottom: 8px; }
.feature p { margin-bottom: 0; font-size: 15px; }

@media (max-width: 767px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* Tira de datos reales bajo un hero: hechos, no adornos */
.stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: 32px;
}

.stat-strip .stat {
  flex: 1 1 160px;
  padding: 18px 20px 0;
  border-left: 1px solid var(--line);
}

.stat-strip .stat:first-child { border-left: none; }

.stat-strip .stat .stat-value {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
}

.stat-strip .stat .stat-label {
  display: block;
  font-size: 13px;
  color: var(--accent);
  margin-top: 2px;
}

@media (max-width: 600px) {
  .stat-strip .stat { flex: 1 1 50%; border-left: none; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
  .stat-strip .stat:nth-child(odd) { border-left: none; }
}

/* Cita destacada: para el único relato con fecha real de la casa */
blockquote.pull-quote {
  margin: 32px 0;
  padding: 0 0 0 24px;
  border-left: 3px solid var(--text);
  font-size: 19px;
  line-height: 1.5;
  font-weight: 500;
  max-width: 60ch;
}

blockquote.pull-quote cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-size: 13px;
  font-weight: 400;
  color: var(--accent);
}

/* Accesibilidad: foco visible en todos los elementos interactivos */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

/* Utilidades */
.mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.wordmark-piedra { font-family: 'Sora', sans-serif; font-weight: 600; }

.badge-price {
  display: inline-block;
  background: #1F1F1F;
  color: #F5F5F5;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
}

.legal-content h2 { margin-top: 32px; }
.legal-content hr { border: none; border-top: 1px solid #E0E0E0; margin: 24px 0; }

/* FAQ */
.faq-list h2 { margin-bottom: 20px; }

.faq-list details {
  border-bottom: 1px solid #E0E0E0;
  padding: 16px 0;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 15px;
  list-style: none;
  position: relative;
  padding-right: 28px;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 18px;
  color: var(--accent);
}

.faq-list details[open] summary::after { content: '−'; }

.faq-list details p {
  margin-top: 12px;
  margin-bottom: 0;
  color: var(--text);
}
