/* ================================================================
   PROGRAMADORINFORMATICOENJAEN.ES — CSS Global
   JJuarez · Programador Informático en Jaén
   ================================================================ */

/* ---------------------------------------------------------------
   1. VARIABLES
   --------------------------------------------------------------- */
:root {
  --primary:       #1e3a5f;
  --primary-dark:  #152b47;
  --primary-light: #2a4f7c;
  --accent:        #2563eb;
  --accent-dark:   #1d4ed8;
  --accent-light:  #dbeafe;
  --accent-xlight: #eff6ff;
  --text:          #1e293b;
  --text-light:    #475569;
  --text-muted:    #94a3b8;
  --text-lighter:  #94a3b8;
  --bg:            #ffffff;
  --bg-alt:        #f8fafc;
  --bg-dark:       #0f172a;
  --border:        #e2e8f0;
  --border-light:  #f1f5f9;
  --success:       #25D366;
  --success-dark:  #1aab53;
  --radius:        8px;
  --radius-lg:     16px;
  --radius-xl:     24px;
  --shadow-sm:     0 1px 2px rgba(0,0,0,0.05);
  --shadow:        0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:     0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.05);
  --shadow-lg:     0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --shadow-xl:     0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);
  --transition:    0.2s ease;
  --container:     1200px;
}

/* ---------------------------------------------------------------
   2. RESET & BASE
   --------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, svg { max-width: 100%; height: auto; display: block; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--accent-dark); }

ul, ol { list-style: none; }

button { font-family: inherit; cursor: pointer; }

/* ---------------------------------------------------------------
   3. LAYOUT
   --------------------------------------------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 80px 0; }

.section-header { margin-bottom: 52px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-subtitle { margin: 0 auto; }

/* ---------------------------------------------------------------
   4. TYPOGRAPHY
   --------------------------------------------------------------- */
h1, h2, h3, h4 { color: var(--primary); line-height: 1.2; font-weight: 700; }

h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); margin-bottom: 16px; }
h3 { font-size: clamp(1.05rem, 2vw, 1.3rem); margin-bottom: 10px; }
h4 { font-size: 1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: 1.15rem;
  color: var(--text-light);
  line-height: 1.75;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-light);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1.08rem;
  color: var(--text-light);
  max-width: 660px;
  line-height: 1.7;
  margin-top: 8px;
}

.text-center { text-align: center; }
.text-accent  { color: var(--accent); }
.text-white   { color: #fff !important; }

/* ---------------------------------------------------------------
   5. BUTTONS
   --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  border: 2px solid transparent;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37,99,235,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

.btn-white {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}
.btn-white:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  color: #fff;
}

.btn-whatsapp {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
}
.btn-whatsapp:hover {
  background: var(--success-dark);
  border-color: var(--success-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37,211,102,0.35);
}

.btn-phone {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-phone:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-lg svg { width: 20px; height: 20px; }
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.cta-group.centered { justify-content: center; }

/* ---------------------------------------------------------------
   6. HEADER
   --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 1px 0 var(--border);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

/* Top bar */
.header-topbar {
  background: var(--primary);
  padding: 7px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.8);
}
.header-topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.topbar-item {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color var(--transition);
}
.topbar-item:hover { color: #fff; }
.topbar-item svg { width: 13px; height: 13px; flex-shrink: 0; }

/* Main header */
.header-main {
  padding: 14px 0;
}
.header-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Logo */
.site-logo { text-decoration: none; flex-shrink: 0; }
.logo-mark {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1;
}
.logo-mark span { color: var(--accent); }
.logo-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-top: 2px;
  display: block;
  font-weight: 400;
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.site-nav > a {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}
.site-nav > a:hover {
  color: var(--accent);
  background: var(--accent-xlight);
}

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: var(--radius);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.nav-dropdown > a:hover {
  color: var(--accent);
  background: var(--accent-xlight);
}
.nav-dropdown > a svg { width: 14px; height: 14px; transition: transform 0.2s; }
.nav-dropdown:hover > a svg { transform: rotate(180deg); }

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 8px;
  min-width: 240px;
  z-index: 200;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 9px 14px;
  font-size: 0.88rem;
  color: var(--text);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.dropdown-menu a:hover {
  background: var(--accent-xlight);
  color: var(--accent);
}

/* Header CTA phone */
.header-phone {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  flex-shrink: 0;
  transition: color var(--transition);
}
.header-phone:hover { color: var(--accent); }
.header-phone svg { width: 16px; height: 16px; color: var(--accent); }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 7px;
  color: var(--primary);
  line-height: 0;
}
.menu-toggle svg { width: 22px; height: 22px; }

/* Mobile menu */
.mobile-menu {
  display: none;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 8px 0 16px;
}
.mobile-menu.active { display: block; }
.mobile-menu a {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 11px 20px;
  border-radius: 0;
  transition: all var(--transition);
  text-decoration: none;
}
.mobile-menu a:hover {
  color: var(--accent);
  background: var(--accent-xlight);
}
.mobile-menu-separator {
  height: 1px;
  background: var(--border);
  margin: 8px 20px;
}
.mobile-menu-cta {
  padding: 12px 20px 4px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 1024px) {
  .site-nav, .nav-dropdown { display: none; }
  .header-phone { display: none; }
  .menu-toggle { display: flex; }
}
@media (max-width: 640px) {
  .topbar-right { display: none; }
  .topbar-left { gap: 12px; }
}

/* ---------------------------------------------------------------
   7. HERO
   --------------------------------------------------------------- */
.hero {
  background: linear-gradient(150deg, #0d1f38 0%, var(--primary) 45%, #1e4476 100%);
  padding: 88px 0 80px;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 85% 40%, rgba(37,99,235,0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 75%, rgba(14,165,233,0.14) 0%, transparent 45%);
  pointer-events: none;
}
/* Grid pattern overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 840px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 24px;
  padding: 6px 16px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}
.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  flex-shrink: 0;
  animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.4); }
}

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.12;
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: normal;
  color: #93c5fd;
}

.hero-lead {
  font-size: 1.12rem;
  color: rgba(255,255,255,0.78);
  max-width: 680px;
  line-height: 1.75;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

.hero-feats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.hero-feat {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
}
.hero-feat svg { width: 15px; height: 15px; color: #93c5fd; flex-shrink: 0; }

@media (max-width: 640px) {
  .hero { padding: 60px 0; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .hero h1 { font-size: 1.85rem; }
}

/* ---------------------------------------------------------------
   8. PROBLEMS SECTION
   --------------------------------------------------------------- */
.problems { background: var(--bg-alt); }

.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.problem-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: all var(--transition);
}
.problem-card:hover {
  border-color: rgba(239,68,68,0.4);
  box-shadow: var(--shadow-md);
}
.problem-icon {
  width: 36px;
  height: 36px;
  background: #fef2f2;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  line-height: 1;
}
.problem-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.45;
}

.problems-footer {
  margin-top: 36px;
  background: var(--accent-light);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.problems-footer p {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
}

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

/* ---------------------------------------------------------------
   9. SERVICES SECTION
   --------------------------------------------------------------- */
.services { background: var(--bg); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: var(--bg);
  transition: all 0.25s;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
  border-color: rgba(37,99,235,0.25);
}
.service-card:hover::after { transform: scaleX(1); }

.service-icon {
  font-size: 2.2rem;
  margin-bottom: 18px;
  line-height: 1;
}
.service-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  line-height: 1.3;
}
.service-desc {
  font-size: 0.87rem;
  color: var(--text-light);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 18px;
}
.service-link {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
}
.service-link svg { width: 15px; height: 15px; transition: transform 0.2s; }
.service-card:hover .service-link svg { transform: translateX(3px); }

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

/* ---------------------------------------------------------------
   10. WHY SECTION
   --------------------------------------------------------------- */
.why { background: var(--bg-alt); }

.why-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: start;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
}
.why-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.why-item-icon {
  width: 42px;
  height: 42px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
.why-item-icon svg { width: 20px; height: 20px; }
.why-item-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.why-item-text {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.55;
}

.why-box {
  background: var(--primary);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  color: #fff;
  position: sticky;
  top: 100px;
}
.why-box-title {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.why-box-text {
  color: rgba(255,255,255,0.75);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 24px;
}
.why-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}
.why-stat {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
}
.why-stat-num {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  color: #93c5fd;
  line-height: 1;
  margin-bottom: 4px;
}
.why-stat-label {
  display: block;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
}

@media (max-width: 1024px) { .why-layout { grid-template-columns: 1fr; } .why-box { position: static; } }

/* ---------------------------------------------------------------
   11. SECTORS
   --------------------------------------------------------------- */
.sectors { background: var(--bg); }

.sectors-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.sector-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 28px;
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
  transition: all var(--transition);
  cursor: default;
}
.sector-tag:hover {
  background: var(--accent-light);
  border-color: rgba(37,99,235,0.4);
  color: var(--accent-dark);
}
.sector-tag .sector-emoji { font-size: 1rem; }

.sectors-note {
  margin-top: 32px;
  padding: 24px 28px;
  background: var(--accent-xlight);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--accent);
  font-size: 0.95rem;
  color: var(--primary);
  font-weight: 500;
}

/* ---------------------------------------------------------------
   12. REVIEWS
   --------------------------------------------------------------- */
.reviews { background: var(--bg-alt); }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 14px;
  color: #f59e0b;
}
.review-stars svg { width: 18px; height: 18px; }
.review-text {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 20px;
  font-style: italic;
}
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 42px;
  height: 42px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
}
.review-name { font-size: 0.9rem; font-weight: 700; color: var(--primary); }
.review-biz  { font-size: 0.78rem; color: var(--text-muted); }

.review-placeholder {
  border: 2px dashed var(--border);
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 28px;
  border-radius: var(--radius-lg);
  gap: 10px;
}
.review-placeholder p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}
.review-placeholder svg { width: 36px; height: 36px; color: var(--border); }

.reviews-footer {
  margin-top: 32px;
  text-align: center;
}
.reviews-footer p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

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

/* ---------------------------------------------------------------
   13. LOCAL COVERAGE
   --------------------------------------------------------------- */
.local { background: var(--bg); }

.towns-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 8px;
}
.town-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  text-align: center;
  transition: all var(--transition);
  line-height: 1.3;
}
.town-card svg { width: 16px; height: 16px; color: var(--text-muted); margin-bottom: 5px; }
.town-card:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}
.town-card:hover svg { color: var(--accent); }

.local-note {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-light);
}
.local-note svg { width: 16px; height: 16px; color: var(--success); }

@media (max-width: 900px) { .towns-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .towns-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------------------------------------------------------------
   14. FAQ
   --------------------------------------------------------------- */
.faq { background: var(--bg-alt); }

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item.open { box-shadow: var(--shadow-md); border-color: rgba(37,99,235,0.25); }

.faq-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--primary);
  transition: background var(--transition);
}
.faq-btn:hover { background: var(--bg-alt); }
.faq-toggle {
  width: 26px;
  height: 26px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  transition: all 0.25s;
}
.faq-toggle svg { width: 14px; height: 14px; transition: transform 0.25s; }
.faq-item.open .faq-toggle { background: var(--accent); color: #fff; }
.faq-item.open .faq-toggle svg { transform: rotate(45deg); }

.faq-body {
  display: none;
  padding: 0 24px 20px;
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.7;
}
.faq-item.open .faq-body { display: block; }

/* ---------------------------------------------------------------
   15. CTA BAND
   --------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 72px 0;
}
.cta-band-alt {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
}
.cta-band-inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.cta-band-inner h2 { color: #fff; margin-bottom: 14px; }
.cta-band-inner p {
  color: rgba(255,255,255,0.8);
  font-size: 1.08rem;
  margin-bottom: 36px;
}

/* ---------------------------------------------------------------
   16. FOOTER
   --------------------------------------------------------------- */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.65);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand .logo-mark {
  color: #fff;
  font-size: 1.3rem;
  display: block;
  margin-bottom: 14px;
}
.footer-brand .logo-mark span { color: #93c5fd; }
.footer-brand p {
  font-size: 0.87rem;
  line-height: 1.65;
  margin-bottom: 22px;
  color: rgba(255,255,255,0.55);
}
.footer-contacts { display: flex; flex-direction: column; gap: 10px; }
.footer-contact {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-contact:hover { color: #fff; }
.footer-contact svg { width: 15px; height: 15px; color: #93c5fd; flex-shrink: 0; }

.footer-col-title {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover { color: #fff; }

.footer-bottom {
  padding: 18px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  margin: 0;
}
.footer-legal {
  display: flex;
  gap: 18px;
}
.footer-legal a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-legal a:hover { color: rgba(255,255,255,0.7); }

@media (max-width: 992px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
}

/* ---------------------------------------------------------------
   17. WHATSAPP FLOAT
   --------------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 58px;
  height: 58px;
  background: var(--success);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  z-index: 999;
  transition: all 0.25s;
  text-decoration: none;
}
.whatsapp-float:hover {
  background: var(--success-dark);
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37,211,102,0.55);
  color: #fff;
}
.whatsapp-float svg { width: 30px; height: 30px; }

.whatsapp-label {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-dark);
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  box-shadow: var(--shadow-md);
}
.whatsapp-float:hover .whatsapp-label { opacity: 1; }

/* ---------------------------------------------------------------
   18. BREADCRUMB
   --------------------------------------------------------------- */
.breadcrumb {
  padding: 13px 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 0.83rem;
  color: var(--text-muted);
}
.breadcrumb-list a { color: var(--text-light); }
.breadcrumb-list a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--border); }

/* ---------------------------------------------------------------
   19. UTILITIES
   --------------------------------------------------------------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.mb-4  { margin-bottom: 4px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

/* ---------------------------------------------------------------
   20. INNER PAGE COMPONENTS
   --------------------------------------------------------------- */

/* Page hero (shorter than home hero) */
.page-hero {
  background: linear-gradient(135deg, #0d1f38 0%, var(--primary) 100%);
  padding: 56px 0 50px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; max-width: 820px; }
.page-hero h1 { color: #fff; margin-bottom: 16px; font-size: clamp(1.65rem, 3.8vw, 2.5rem); line-height: 1.15; }
.page-hero .lead { color: rgba(255,255,255,0.8); margin-bottom: 28px; font-size: 1.08rem; }
.page-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 640px) {
  .page-hero { padding: 44px 0; }
  .page-hero-cta .btn { flex: 1; justify-content: center; min-width: 140px; }
}

/* Feature boxes grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  transition: all var(--transition);
}
.feature-box:hover { box-shadow: var(--shadow-md); border-color: rgba(37,99,235,0.3); transform: translateY(-3px); }
.feature-box-icon { font-size: 1.9rem; margin-bottom: 12px; }
.feature-box h3 { font-size: 0.97rem; margin-bottom: 8px; color: var(--primary); }
.feature-box p { font-size: 0.87rem; color: var(--text-light); margin: 0; line-height: 1.55; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* Process steps */
.process-steps { display: flex; flex-direction: column; gap: 22px; }
.process-step { display: flex; gap: 18px; align-items: flex-start; }
.step-num {
  width: 44px; height: 44px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.05rem;
  flex-shrink: 0;
}
.step-content { padding-top: 2px; }
.step-content h3 { font-size: 0.97rem; margin-bottom: 5px; color: var(--primary); }
.step-content p { font-size: 0.88rem; color: var(--text-light); margin: 0; line-height: 1.55; }

/* Two-column content layout */
.content-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.content-cols.cols-60-40 { grid-template-columns: 1.4fr 1fr; }
.content-cols.cols-40-60 { grid-template-columns: 1fr 1.4fr; }
@media (max-width: 900px) { .content-cols, .content-cols.cols-60-40, .content-cols.cols-40-60 { grid-template-columns: 1fr; gap: 36px; } }

/* Checklist */
.checklist { display: flex; flex-direction: column; gap: 10px; }
.checklist-item { display: flex; align-items: flex-start; gap: 10px; font-size: 0.92rem; color: var(--text); }
.checklist-item svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: 1px; }

/* Info / highlight box */
.info-box {
  background: var(--accent-light);
  border: 1px solid rgba(37,99,235,0.25);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.info-box p { margin: 0; font-size: 0.95rem; color: var(--primary); line-height: 1.6; }

.warning-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius);
  padding: 18px 22px;
}
.warning-box p { margin: 0; font-size: 0.92rem; color: #92400e; }

/* Related services */
.related-services { background: var(--bg-alt); }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.related-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-decoration: none;
  display: block;
  transition: all var(--transition);
}
.related-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.related-card-icon { font-size: 1.5rem; margin-bottom: 8px; }
.related-card-title { font-size: 0.88rem; font-weight: 600; color: var(--primary); line-height: 1.3; margin: 0; }
@media (max-width: 900px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }

/* Stat band */
.stat-band { background: var(--primary); padding: 48px 0; }
.stat-band-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-band-item-num { font-size: 2.2rem; font-weight: 800; color: #93c5fd; display: block; }
.stat-band-item-label { font-size: 0.88rem; color: rgba(255,255,255,0.7); margin-top: 4px; display: block; }
@media (max-width: 760px) { .stat-band-grid { grid-template-columns: repeat(2, 1fr); } }

/* Nearby towns (local pages) */
.nearby-towns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.nearby-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 24px;
  font-size: 0.85rem; color: var(--text); font-weight: 500;
  text-decoration: none;
  transition: all var(--transition);
}
.nearby-link:hover { background: var(--accent-light); border-color: var(--accent); color: var(--accent); }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 0.88rem; font-weight: 600; color: var(--primary); }
.form-label span { color: #dc2626; }
.form-input, .form-select, .form-textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.form-textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.82rem; color: var(--text-muted); }
.form-privacy { font-size: 0.82rem; color: var(--text-muted); }
.form-privacy a { color: var(--accent); }

/* Contact page specific */
.contact-methods { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.contact-method {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--transition);
}
.contact-method:hover { border-color: var(--accent); background: var(--accent-xlight); }
.contact-method-icon {
  width: 48px; height: 48px;
  background: var(--accent-light);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-method-icon svg { width: 22px; height: 22px; color: var(--accent); }
.contact-method-icon.green { background: #dcfce7; }
.contact-method-icon.green svg { color: var(--success); }
.contact-method-label { font-size: 0.78rem; color: var(--text-muted); display: block; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.contact-method-value { font-size: 1rem; font-weight: 700; color: var(--primary); }

/* ---------------------------------------------------------------
   21. PRINT
   --------------------------------------------------------------- */
@media print {
  .site-header, .whatsapp-float, .mobile-menu, .hero-cta { display: none; }
  body { color: #000; font-size: 12pt; }
  h2, h3 { page-break-after: avoid; }
}

/* ---------------------------------------------------------------
   22. MISSING CLASSES (referenced in HTML)
   --------------------------------------------------------------- */

/* form-control — alias para inputs/selects/textareas */
.form-control {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
  display: block;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
textarea.form-control { min-height: 130px; resize: vertical; }
select.form-control { appearance: auto; cursor: pointer; }

/* contact-method-note */
.contact-method-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 3px;
  display: block;
}

/* contact-layout — grid responsivo para la página de contacto */
.contact-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 48px;
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
}

/* reviews-highlight — caja central de reseñas */
.reviews-highlight {
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
}

/* ---------------------------------------------------------------
   23. MOBILE — TABLET (≤ 768px)
   --------------------------------------------------------------- */
@media (max-width: 768px) {

  /* Reducir padding vertical de secciones */
  section { padding: 52px 0; }
  .cta-band { padding: 52px 0; }
  .hero { padding: 56px 0; }

  /* Problems footer apilado */
  .problems-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 20px;
  }

  /* Contact layout → columna única */
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Why box sin sticky */
  .why-box { position: static; margin-top: 8px; }

  /* Stat band 2 cols */
  .stat-band-grid { grid-template-columns: repeat(2, 1fr); }

  /* Reviews highlight padding reducido */
  .reviews-highlight { padding: 36px 28px; }

  /* Page hero CTAs apilados */
  .page-hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .page-hero-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---------------------------------------------------------------
   24. MOBILE — SMALL (≤ 560px)
   --------------------------------------------------------------- */
@media (max-width: 560px) {

  /* Contenedor con menos padding lateral */
  .container { padding: 0 14px; }

  /* Secciones aún más compactas */
  section { padding: 44px 0; }
  .cta-band { padding: 44px 0; }
  .hero { padding: 48px 0 44px; }

  /* Ocultar email en topbar para ganar espacio */
  .topbar-left .topbar-item:nth-child(3) { display: none; }

  /* Botones en CTA groups → ancho completo */
  .cta-group .btn { width: 100%; justify-content: center; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }

  /* Botón large más compacto */
  .btn-lg { padding: 14px 22px; font-size: 0.97rem; }

  /* H1 de page hero más pequeño */
  .page-hero h1 { font-size: 1.45rem; }

  /* Feature grid → 1 col */
  .feature-grid { grid-template-columns: 1fr; }

  /* Related grid → 1 col */
  .related-grid { grid-template-columns: 1fr; }

  /* Reviews highlight → padding mínimo */
  .reviews-highlight { padding: 28px 20px; }

  /* Reducir gap en why-list */
  .why-list { gap: 16px; }
  .why-box { padding: 28px 22px; }

  /* Reducir padding del footer */
  .site-footer { padding: 48px 0 0; }
  .footer-grid { padding-bottom: 36px; gap: 24px; }

  /* FAQ btn con menos padding */
  .faq-btn { padding: 16px 18px; font-size: 0.92rem; }
  .faq-body { padding: 0 18px 18px; }

  /* Section header */
  .section-header { margin-bottom: 36px; }
  .section-subtitle { font-size: 0.97rem; }

  /* Problems footer CTA full-width */
  .problems-footer .cta-group { width: 100%; }
  .problems-footer .cta-group .btn { flex: 1; }

  /* Towns grid ya tiene 2 cols, ok */

  /* Contact methods más compactos */
  .contact-method { padding: 14px 16px; gap: 12px; }
  .contact-method-icon { width: 40px; height: 40px; }
  .contact-method-value { font-size: 0.92rem; }

  /* Checklist */
  .checklist-item { font-size: 0.88rem; }

  /* Info y warning box */
  .info-box, .warning-box { padding: 16px 18px; }
}
