:root {
  --color-primary: #0b1f3a;
  --color-primary-dark: #061325;
  --color-primary-light: #16345c;
  --color-accent:  #d4a017;
  --color-accent-hover: #f0bc2d;
  --color-accent-soft: #f8e7b0;
  --color-urgent: #c1121f;
  --color-urgent-hover: #e01e2c;
  --color-success: #1b7a4e;
  --color-bg: #f4f1ea;
  --color-bg-alt: #ffffff;
  --color-text: #1a1a1a;
  --color-muted: #5c6570;
  --color-border: #e2ddd3;
  --font-display: "Montserrat", sans-serif;
  --font-body: "Montserrat", sans-serif;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(11, 31, 58, 0.12);
  --header-h: 78px;
  --whatsapp: #25d366;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* Top urgency bar */
.topbar {
  background: var(--color-urgent);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.topbar a { color: #fff; text-decoration: none; }
.topbar .pulse {
  display: inline-block;
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 50%;
  margin-right: 8px;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.hero-content .sweet-pulse {
  animation: sweet-pulse 1.4s ease-in-out infinite;
}
@keyframes sweet-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.9); }
}

/* Navbar */
.navbar {
  background: var(--color-primary);
  min-height: var(--header-h);
}
.navbar .navbar-brand {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff !important;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  width: 42px; height: 42px;
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
}
.navbar .nav-link {
  color: rgba(255,255,255,0.82) !important;
  font-weight: 600;
  padding: 0.55rem 0.85rem !important;
}
.navbar .nav-link:hover,
.navbar .nav-link.active { color: var(--color-accent) !important; }
.navbar-toggler { border-color: rgba(255,255,255,0.35); }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.btn-phone {
  background: var(--color-urgent);
  color: #fff !important;
  font-weight: 700;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.btn-phone:hover { background: var(--color-urgent-hover); color: #fff !important; }

.btn-gold {
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: 700;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
}
.btn-gold:hover { background: var(--color-accent-hover); color: var(--color-primary); }

.btn-outline-gold {
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  font-weight: 700;
  border-radius: 999px;
  padding: 0.65rem 1.3rem;
  background: transparent;
}
.btn-outline-gold:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* Hero slider */
.hero-slider .carousel-item {
  height: min(78vh, 640px);
  position: relative;
}
.hero-slide {
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(6,19,37,0.88) 0%, rgba(6,19,37,0.55) 55%, rgba(6,19,37,0.25) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  color: #fff;
}

.hero-slide,
.hero-overlay,
.hero-content {
  position: absolute !important;
  inset: 0;
}
.hero-slide   { z-index: 0; }
.hero-overlay { z-index: 1; }
.hero-content { z-index: 3; }

.kicker {
  color: var(--color-accent);
  font-family: var(--font-display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}
.hero-content h1, .hero-content h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.08;
  text-transform: uppercase;
}
.hero-content h1 span, .hero-content h4 span { color: var(--color-accent);
  font-size: clamp(1rem, 3vw, 2.6rem); }
.phone-hero {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--color-urgent);
  padding: 0.35rem 1.15rem;
  border-radius: 12px;
  margin: 1rem 0 0.4rem;
  box-shadow: 0 10px 24px rgba(193,18,31,0.4);
}
.phone-hero:hover { background: var(--color-urgent-hover); color: #fff; }
.carousel-indicators [data-bs-target] { width: 10px; height: 10px; border-radius: 50%; }

/* Sections */
.section { padding: 4.5rem 0; }
.section-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}
.section-title span { color: var(--color-accent); color: var(--color-primary); }
.section-title .gold { color: var(--color-accent); }
.lead-muted { color: var(--color-muted); max-width: 720px; }

/* Service cards */
.service-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.6rem 1.35rem 1.4rem;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--color-accent);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.service-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--color-primary);
  color: var(--color-accent);
  display: grid;
  place-items: center;
  font-size: 1.55rem;
  margin-bottom: 1rem;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}

/* Why us */
.why-box {
  background: var(--color-primary);
  color: #fff;
  border-radius: 20px;
  padding: 2.5rem;
}
.why-item i { color: var(--color-accent); font-size: 1.4rem; }

/* Contact cards */
.contact-tile {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 100%;
}
.contact-tile .media {
  height: 170px;
  background-size: cover;
  background-position: center;
}
.contact-tile .body { padding: 1.25rem 1.3rem 1.4rem; }
.contact-tile h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.15rem;
}

/* Map */
#mapa-provincia {
  height: 520px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}
.service-card p{
  font-weight: 300;
  color: #817d72;
  letter-spacing: .5px;
}
.pueblo-chip {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  margin: 0.2rem;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--color-primary);
  font-weight: 400;
}
.tdn{
  text-decoration: none;
  
}
.pueblo-chip:hover {
  background: var(--color-primary);
  color: var(--color-accent);
  border-color: var(--color-primary);
}

/* Form */
.form-card {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow);
}
.form-control, .form-select {
  border-radius: 10px;
  border-color: var(--color-border);
  padding: 0.7rem 0.9rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 0.2rem rgba(212,160,23,0.2);
}

/* Sticky call */
.sticky-call {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fab {
  width: 58px; height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}
.fab-phone { background: var(--color-urgent); }
.fab-wa { background: var(--whatsapp); }
.fab:hover { color: #fff; transform: scale(1.05); }

/* Footer */
footer.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 3rem 0 1.4rem;
}
footer.site-footer h5 {
  font-family: var(--font-display);
  color: #fff;
  text-transform: uppercase;
}
footer.site-footer a { font-weight:400;color: rgba(255,255,255,0.8); text-decoration: none; }
footer.site-footer a:hover { color: #fff; }
.footer-phone {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--color-accent) !important;
}

.social-links {
  display: flex;
  gap: 0.55rem;
  align-items: center;
}
.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.08);
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
}
.social-links a:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}
.navbar .social-links a {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.12);
}
.topbar .social-links a {
  width: 28px;
  height: 28px;
  font-size: 0.95rem;
  background: rgba(255,255,255,0.18);
}
.topbar .social-links a:hover { background: #fff; color: var(--color-urgent); }

/* Breadcrumb */
.page-hero {
  background: linear-gradient(120deg, var(--color-primary-dark), var(--color-primary-light));
  color: #fff;
  padding: 3.2rem 0 2.4rem;
}
.page-hero h1 {
  font-family: var(--font-display);
  text-transform: uppercase;
}

.leaflet-popup-content-wrapper { border-radius: 12px; }
.leaflet-popup-content { margin: 12px 14px; font-family: var(--font-body); }

@media (max-width: 991px) {
  .navbar .btn-phone { margin: 0.6rem 0 0.2rem; }
  .hero-slider .carousel-item { height: min(86vh, 720px); }
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2000;
  max-width: 720px;
  margin: 0 auto;
  background: var(--color-primary);
  color: #fff;
  border-radius: 16px;
  border: 1px solid rgba(212, 160, 23, 0.35);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  padding: 1.1rem 1.2rem 1.15rem;
}
.cookie-banner p { margin: 0 0 0.85rem; font-size: 0.95rem; color: rgba(255,255,255,0.9); }
.cookie-banner a { color: var(--color-accent); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner .btn { border-radius: 999px; font-weight: 700; }
body.cookies-open .sticky-call { bottom: 150px; }