/* ========================================
   CASASENPUEBLOS.ES — Estilo memorable
   ======================================== */

:root {
  --terra: #c45c26;
  --terra-dark: #9a4519;
  --cream: #faf6f1;
  --sand: #f0e6d8;
  --ink: #1a1512;
  --ink-soft: #3d342c;
  --olive: #5c6b4a;
  --sky: #7ba3b0;
  --gold: #d4a017;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 12px 40px rgba(26, 21, 18, 0.12);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 241, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 21, 18, 0.06);
}

.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, 92%);
  margin: 0 auto;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.15rem;
}

.logo-icon { font-size: 1.5rem; }
.logo-text span { color: var(--terra); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover { color: var(--terra); }

.btn-nav {
  background: var(--terra) !important;
  color: white !important;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s, background 0.2s;
}
.btn-nav:hover {
  background: var(--terra-dark) !important;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ---------- HERO ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  width: min(1120px, 92%);
  margin: 0 auto;
  padding: 4rem 0 5rem;
  position: relative;
}

.hero-bg {
  position: absolute;
  inset: -20% -10% auto;
  height: 120%;
  background: radial-gradient(ellipse at 70% 30%, rgba(196, 92, 38, 0.08), transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(92, 107, 74, 0.06), transparent 50%);
  pointer-events: none;
  z-index: -1;
}

.badge {
  display: inline-block;
  background: var(--sand);
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.highlight {
  color: var(--terra);
  position: relative;
}
.highlight::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0.1em;
  height: 0.25em;
  background: rgba(196, 92, 38, 0.25);
  z-index: -1;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 480px;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--terra);
  color: white;
}
.btn-primary:hover {
  background: var(--terra-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196, 92, 38, 0.3);
}

.btn-secondary {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-secondary:hover {
  background: var(--ink);
  color: white;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.4);
  color: white;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.15);
}

.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }

.hero-stats {
  display: flex;
  gap: 2.5rem;
}
.stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--terra);
}
.stat span {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.house-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  width: 260px;
  text-align: center;
}

.house-card.floating {
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.house-img {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.house-info .tag {
  display: inline-block;
  background: var(--sand);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
  color: var(--terra);
}

.house-info p { color: var(--ink-soft); font-size: 0.95rem; }
.house-info strong { font-size: 1.2rem; }

/* ---------- SECTIONS ---------- */
.section {
  padding: 5rem 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(26, 21, 18, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.problem-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.problem-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}
.problem-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* STEPS */
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.step {
  background: white;
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
  width: 200px;
  box-shadow: 0 4px 20px rgba(26, 21, 18, 0.06);
}

.step-num {
  width: 42px;
  height: 42px;
  background: var(--terra);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.step h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.step p { font-size: 0.9rem; color: var(--ink-soft); }

.step-arrow {
  font-size: 1.5rem;
  color: var(--terra);
  align-self: center;
  margin-top: -1rem;
}

/* FEATURES */
.feature-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.5rem;
}

.feature-card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(26, 21, 18, 0.06);
  transition: all 0.25s;
  display: block;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--terra);
}

.feature-card.big {
  grid-row: span 2;
  background: linear-gradient(145deg, #fff 0%, #faf0e8 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-icon { font-size: 2.8rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.feature-card p { color: var(--ink-soft); margin-bottom: 1rem; }
.feature-card .link {
  color: var(--terra);
  font-weight: 600;
  font-size: 0.95rem;
}

/* CTA FINAL */
.cta-final {
  padding-bottom: 6rem;
}

.cta-box {
  background: linear-gradient(135deg, var(--terra) 0%, #a84a1a 100%);
  color: white;
  border-radius: 24px;
  padding: 3.5rem 2.5rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(196, 92, 38, 0.35);
}

.cta-box h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 0.75rem;
}

.cta-box p {
  opacity: 0.9;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.cta-box .btn-primary {
  background: white;
  color: var(--terra);
}
.cta-box .btn-primary:hover {
  background: var(--sand);
  transform: translateY(-2px);
}

/* FOOTER */
.footer {
  background: var(--ink);
  color: #e8e0d8;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer .logo-text { color: white; }
.footer .logo-text span { color: var(--terra); }

.footer-tag {
  margin-top: 1rem;
  font-size: 0.9rem;
  opacity: 0.7;
  line-height: 1.5;
}

.footer h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  color: white;
}

.footer a {
  display: block;
  font-size: 0.95rem;
  opacity: 0.75;
  margin-bottom: 0.5rem;
  transition: opacity 0.2s;
}
.footer a:hover { opacity: 1; }

.footer p { font-size: 0.95rem; opacity: 0.75; margin-bottom: 0.4rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.5;
}

/* ---------- PÁGINAS INTERNAS ---------- */
.page-header {
  background: linear-gradient(135deg, var(--sand) 0%, #e8d9c8 100%);
  padding: 3.5rem 0 3rem;
  text-align: center;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 0.75rem;
}

.page-header p {
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* Iconos de entorno (montaña, mar, playa, río, ciudad, estación de esquí) */
.env-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.env-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--white);
  border: 1px solid rgba(196, 92, 38, 0.22);
  color: var(--ink-soft);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(26, 21, 18, 0.07);
}

.env-badge .env-icon {
  font-size: 1rem;
  line-height: 1;
}

/* Migas de pan */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0 auto 0.9rem;
  max-width: 720px;
}
.breadcrumbs a {
  color: var(--ink-soft);
  text-decoration: none;
}
.breadcrumbs a:hover { color: var(--terra); }
.breadcrumbs span[aria-current] { color: var(--ink); font-weight: 600; }

/* Preguntas frecuentes */
.faq-block { margin-top: 1.75rem; }
.faq-item {
  background: var(--white);
  border-radius: 12px;
  margin-bottom: 0.6rem;
  box-shadow: 0 2px 8px rgba(26, 21, 18, 0.06);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 1rem 2.75rem 1rem 1.25rem;
  font-weight: 700;
  font-family: var(--font-display);
  list-style: none;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 1.25rem;
  top: 1rem;
  color: var(--terra);
  font-size: 1.2rem;
  font-weight: 700;
}
.faq-item[open] summary::after { content: '–'; }
.faq-item p {
  padding: 0 1.25rem 1.1rem;
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Pueblos cercanos */
.related-pueblos { margin-top: 1.75rem; }
.related-pueblos .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.related-pueblos a.chip {
  background: var(--white);
  border: 1px solid #e8dfd4;
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  font-size: 0.85rem;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.related-pueblos a.chip:hover { border-color: var(--terra); color: var(--terra); }

/* LISTINGS */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
  padding: 3rem 0;
}

.listing-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(26, 21, 18, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}
.listing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.listing-img {
  height: 180px;
  background: linear-gradient(135deg, #d4c4b0, #b8a48c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
}

.listing-img .lock {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.55);
  color: white;
  font-size: 0.8rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-weight: 600;
}

.listing-body {
  padding: 1.4rem;
}

.listing-body .tag {
  display: inline-block;
  background: var(--sand);
  color: var(--terra);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}

.listing-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.listing-body .meta {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.listing-body .price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--terra);
}

.listing-body .btn-sm {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1.1rem;
  background: var(--terra);
  color: white;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}
.listing-body .btn-sm:hover {
  background: var(--terra-dark);
}

/* SUBASTAS */
.auction-calendar {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0 4rem;
}

.auction-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  border-left: 5px solid var(--gold);
  box-shadow: 0 4px 16px rgba(26, 21, 18, 0.06);
}

.auction-card .date {
  font-weight: 700;
  color: var(--gold);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.auction-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.auction-card p {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.auction-card .status {
  display: inline-block;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}

.auction-card .status.soon {
  background: #fff3e0;
  color: #e65100;
}

/* TRANSPORTE */
.transport-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem 0;
}

.transport-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

.t-feature {
  background: white;
  padding: 1.25rem;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.t-feature strong { display: block; margin-bottom: 0.3rem; }

/* FORM / ACCESO */
.access-box {
  max-width: 520px;
  margin: 3rem auto;
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.access-box h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.access-box .sub {
  text-align: center;
  color: var(--ink-soft);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e0d6cc;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--cream);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--terra);
}

.form-group textarea { min-height: 100px; resize: vertical; }

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
.checkbox-group input { margin-top: 0.2rem; }

.btn-block {
  width: 100%;
  padding: 1rem;
  font-size: 1.05rem;
}

.contract-note {
  background: #fff8e7;
  border: 1px solid #f0d78c;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  margin-top: 1.5rem;
  color: #5c4a1a;
}

/* PUEBLOS */
.pueblos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  padding: 3rem 0;
}

.pueblo-card {
  background: white;
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 3px 14px rgba(0,0,0,0.05);
  transition: all 0.25s;
}
.pueblo-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.pueblo-card .emoji { font-size: 2.2rem; margin-bottom: 0.6rem; }
.pueblo-card h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.pueblo-card span { font-size: 0.85rem; color: var(--ink-soft); }

/* CÓMO FUNCIONA */
.contract-steps {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.contract-step {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  align-items: flex-start;
}

.contract-step .num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--terra);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.contract-step h3 { margin-bottom: 0.4rem; }
.contract-step p { color: var(--ink-soft); }

.anti-bridge {
  background: #1a1512;
  color: white;
  border-radius: 20px;
  padding: 2.5rem;
  margin: 3rem 0;
}
.anti-bridge h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--gold);
}
.anti-bridge ul {
  list-style: none;
  padding: 0;
}
.anti-bridge li {
  padding: 0.6rem 0;
  padding-left: 1.8rem;
  position: relative;
  opacity: 0.9;
}
.anti-bridge li::before {
  content: '🔒';
  position: absolute;
  left: 0;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card.big { grid-row: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); margin: 0.5rem 0; }
  .transport-hero { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--cream);
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.08);
  }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 1rem; }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: #1a1512;
  color: #f0e6d8;
  padding: 1.25rem 1.5rem;
  display: none;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.25);
}
.cookie-banner.show { display: block; }
.cookie-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}
.cookie-inner p { font-size: 0.9rem; opacity: 0.9; max-width: 640px; margin: 0; }
.cookie-inner a { color: #e8b88a; text-decoration: underline; }
.cookie-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.cookie-actions button {
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  font-size: 0.9rem;
}
.cookie-accept { background: var(--terra); color: white; }
.cookie-reject { background: transparent; color: #f0e6d8; border: 1px solid rgba(255,255,255,0.3) !important; }

/* Floating action buttons */
.fab-bar {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.fab {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--terra);
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(196,92,38,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}
.fab:hover { transform: scale(1.08); }
.fab-share { background: #1a1512; }
.fab-pwa { background: var(--olive); }

/* Direct pueblo chips on region pages */
.pueblo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0 2rem;
}
.pueblo-chips a {
  background: white;
  border: 1.5px solid #e0d6cc;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s;
}
.pueblo-chips a:hover {
  border-color: var(--terra);
  color: var(--terra);
  background: #fff8f3;
}

/* Formulario registro: caja centrada y limpia */
.access-box {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
.access-box h2,
.access-box .sub {
  text-align: center;
}
.access-box .form-group label {
  display: block;
  text-align: left;
}
.access-box .btn-block {
  width: 100%;
  margin-top: 0.5rem;
}

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: block;
  flex-shrink: 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  position: relative;
  z-index: 2;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}


/* Manifiesto confianza */
.manifesto {
  background: linear-gradient(180deg, #faf6f1 0%, #f3ebe3 100%);
  padding: 4rem 0;
  border-top: 1px solid rgba(0,0,0,0.04);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.manifesto-inner {
  max-width: 680px;
  margin: 0 auto;
}
.manifesto-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--terra, #c45c26);
  margin-bottom: 0.75rem;
}
.manifesto-title {
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.25;
  color: var(--ink, #1a1512);
  margin-bottom: 1rem;
}
.manifesto-lead {
  font-size: 1.15rem;
  color: var(--ink, #1a1512);
  font-weight: 500;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.manifesto-subtitle {
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.35rem;
  color: var(--ink, #1a1512);
  margin: 2.5rem 0 1rem;
}
.manifesto-body p {
  color: var(--ink-soft, #5c5248);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 1.02rem;
}
.manifesto-highlight {
  color: var(--ink, #1a1512) !important;
  font-weight: 600;
  font-size: 1.1rem !important;
  margin: 1.5rem 0 !important;
}
.manifesto-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* ===== Modal: pueblo más bonito cerca de ti ===== */
.pc-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(26,21,18,0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0; visibility: hidden;
  transition: opacity .2s ease;
}
.pc-overlay.is-open { opacity: 1; visibility: visible; }
.pc-box {
  background: #fff; border-radius: 20px; max-width: 460px; width: 100%;
  max-height: 90vh; overflow-y: auto; position: relative;
  box-shadow: 0 30px 70px rgba(0,0,0,0.35);
  transform: translateY(12px); transition: transform .2s ease;
}
.pc-overlay.is-open .pc-box { transform: translateY(0); }
.pc-close {
  position: absolute; top: 0.75rem; right: 0.75rem; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,0.9); color: var(--ink); font-size: 1rem;
  cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.pc-loading { padding: 3rem 2rem; text-align: center; color: var(--ink-soft); }
.pc-spinner {
  width: 40px; height: 40px; margin: 0 auto 1rem;
  border: 4px solid #eee; border-top-color: var(--terra);
  border-radius: 50%; animation: pc-spin 0.8s linear infinite;
}
@keyframes pc-spin { to { transform: rotate(360deg); } }
.pc-fallback { padding: 2.25rem 1.75rem; text-align: center; }
.pc-fallback h3 { font-family: var(--font-display); margin-bottom: 0.5rem; color: var(--ink); }
.pc-fallback p { color: var(--ink-soft); margin-bottom: 1.25rem; font-size: 0.95rem; }
.pc-select {
  width: 100%; padding: 0.85rem 1rem; border-radius: 12px;
  border: 2px solid #e2e8f0; font-size: 1rem; font-family: inherit; background: #fff;
}
.pc-hero {
  height: 150px; display: flex; align-items: center; justify-content: center;
  border-radius: 20px 20px 0 0;
}
.pc-hero-emoji { font-size: 3.5rem; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.15)); }
.pc-body { padding: 1.5rem 1.75rem 1.75rem; }
.pc-badge {
  display: inline-block; background: rgba(196,92,38,0.1); color: var(--terra);
  font-size: 0.78rem; font-weight: 700; padding: 0.3rem 0.7rem; border-radius: 999px;
  margin-bottom: 0.6rem; letter-spacing: 0.02em;
}
.pc-body h3 { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); margin-bottom: 0.5rem; }
.pc-destaque { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.55; margin-bottom: 1.1rem; }
.pc-map { border-radius: 14px; overflow: hidden; margin-bottom: 1.25rem; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.pc-map iframe { width: 100%; height: 180px; border: 0; display: block; }
.pc-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.pc-btn {
  flex: 1 1 auto; text-align: center; padding: 0.8rem 1rem; border-radius: 12px;
  font-weight: 700; font-size: 0.9rem; text-decoration: none; transition: all .2s ease;
}
.pc-btn-primary { background: var(--terra); color: #fff; }
.pc-btn-primary:hover { background: var(--terra-dark); }
.pc-btn-secondary { background: var(--cream); color: var(--ink); border: 1.5px solid #e2e8f0; }
.pc-btn-secondary:hover { border-color: var(--terra); color: var(--terra); }
.pc-link {
  display: block; width: 100%; background: none; border: 0; text-align: center;
  color: var(--ink-soft); font-size: 0.85rem; padding: 0.5rem 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.pc-link:hover { color: var(--terra); }

.pc-launch {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--ink); color: #fff; border: 0; border-radius: 999px;
  padding: 0.95rem 1.6rem; font-size: 1rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15); transition: all .2s ease;
}
.pc-launch:hover { background: var(--terra); transform: translateY(-2px); }

/* ===== INFO LOCAL: qué ver / hacer / comer / dormir ===== */
.local-info-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:0.9rem;margin:1rem 0 0.25rem;}
.local-info-card{background:white;border-radius:14px;padding:1.1rem 1rem;box-shadow:0 4px 16px rgba(26,21,18,0.07);text-align:center;text-decoration:none;color:var(--ink);transition:transform .2s,box-shadow .2s;display:block;border:1px solid transparent;}
.local-info-card:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:var(--terra);}
.local-info-icon{font-size:1.6rem;margin-bottom:0.4rem;display:block;}
.local-info-card strong{display:block;font-size:0.92rem;margin-bottom:0.15rem;}
.local-info-card span{font-size:0.78rem;color:var(--ink-soft);}
@media (max-width:640px){.local-info-grid{grid-template-columns:repeat(2,1fr);}}

/* ===== TERRENOS badge en fichas de pueblo ===== */
.terreno-callout{background:linear-gradient(135deg,#eef2e6 0%,#e4ead9 100%);border:1px solid #cdd9bb;border-radius:14px;padding:1.1rem 1.3rem;margin:1.5rem 0;display:flex;align-items:center;gap:0.85rem;flex-wrap:wrap;}
.terreno-callout .ti{font-size:1.6rem;}
.terreno-callout p{margin:0;font-size:0.92rem;color:var(--ink-soft);flex:1;min-width:200px;}
.terreno-callout a{color:var(--olive);font-weight:700;white-space:nowrap;}

/* ===== ORGANIZA UN EVENTO ===== */
.evento-block{background:white;border-radius:var(--radius);padding:1.75rem;box-shadow:var(--shadow);margin-top:1.5rem;}
.evento-block h2{font-family:var(--font-display);font-size:1.25rem;margin-bottom:0.5rem;}
.evento-block>p{font-size:0.92rem;color:var(--ink-soft);margin-bottom:0.5rem;}
.evento-ayto{font-size:0.85rem;color:var(--ink-soft);margin-bottom:1.1rem;}
.evento-ayto a{color:var(--terra);font-weight:600;}
.evento-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:0.85rem;}
.evento-card{border:1px solid var(--sand);border-radius:12px;padding:0.95rem 1rem;background:var(--cream);}
.evento-card .ev-title{font-weight:700;font-size:0.9rem;margin-bottom:0.15rem;}
.evento-card .ev-sub{font-size:0.78rem;color:var(--ink-soft);margin-bottom:0.6rem;display:block;}
.evento-card a.ev-btn{display:inline-flex;align-items:center;gap:0.4rem;background:#25D366;color:white;font-weight:700;font-size:0.82rem;padding:0.45rem 0.8rem;border-radius:999px;text-decoration:none;}
.evento-card a.ev-btn:hover{background:#1ebe57;}
@media (max-width:640px){.evento-grid{grid-template-columns:1fr;}}

/* ===== FAQ cool redesign ===== */
.faq-block--cool {
  margin-top: 2.25rem;
  padding: 1.75rem 1.5rem 1.5rem;
  background: linear-gradient(165deg, #faf8f5 0%, #f3efe8 100%);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 20px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.04);
}
.faq-header { margin-bottom: 1.25rem; }
.faq-kicker {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra, #b08a28);
  margin-bottom: 0.4rem;
}
.faq-title {
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
  color: var(--ink, #1a1a1a);
}
.faq-intro {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft, #666);
  line-height: 1.45;
}
.faq-grid { display: flex; flex-direction: column; gap: 0.65rem; }
.faq-item--cool {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.faq-item--cool[open] {
  border-color: rgba(176, 138, 40, 0.35);
  box-shadow: 0 4px 16px rgba(176, 138, 40, 0.08);
}
.faq-item--cool summary {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink, #1a1a1a);
}
.faq-item--cool summary::-webkit-details-marker { display: none; }
.faq-item--cool summary::after {
  content: '+';
  margin-left: auto;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--terra, #b08a28);
  flex-shrink: 0;
}
.faq-item--cool[open] summary::after { content: '–'; }
.faq-q-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: rgba(176, 138, 40, 0.12);
  color: var(--terra, #b08a28);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.faq-q-text { flex: 1; line-height: 1.35; }
.faq-a {
  padding: 0 1.15rem 1.1rem 3.9rem;
}
.faq-a p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-soft, #555);
}
@media (max-width: 600px) {
  .faq-block--cool { padding: 1.35rem 1rem 1.15rem; border-radius: 16px; }
  .faq-a { padding-left: 1.15rem; }
  .faq-title { font-size: 1.2rem; }
}
