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

:root {
  --primary: #2B7A78;
  --primary-dark: #1F5C5A;
  --primary-light: #E8F4F3;
  --secondary: #333;
  --accent: #2B7A78;
  --accent-warm: #E8F4F3;
  --white: #ffffff;
  --paper: #F7F6F3;
  --bg-light: #F7F6F3;
  --gray-100: #f1f4f2;
  --gray-200: #E2E0DB;
  --gray-300: #c5c0b8;
  --gray-400: #94a3b8;
  --gray-500: #6B6B6B;
  --gray-600: #4a4a4a;
  --ink: #333;
  --text: #333;
  --text-light: #777;
  --highlight: #E8F4F3;
  --radius: 4px;
  --radius-lg: 4px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 24px 48px rgba(0,0,0,0.10);
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font: var(--font-body);
  --transition: 0.2s ease;
  --container: 1100px;
}

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.01em;
  font-weight: 600;
  line-height: 1.2;
}

h1 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; }
h2 { font-size: clamp(1.35rem, 2.5vw, 1.85rem); font-weight: 700; }
h3 { font-size: clamp(1.05rem, 1.5vw, 1.2rem); font-weight: 700; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

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

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

section { padding: 4.5rem 0; }
@media (max-width: 768px) { section { padding: 3rem 0; } }

.section-title {
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1rem;
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}
.section-header .section-title { margin-bottom: 0.5rem; }
.section-header .section-subtitle { margin-bottom: 0; }

.tag-b {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 0;
  border-radius: 0;
  margin-bottom: 14px;
  background: none;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--primary);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  min-height: 48px;
  text-align: center;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: var(--radius);
  border: 1.5px solid var(--gray-200);
  cursor: pointer;
  transition: all var(--transition);
  min-height: 48px;
  text-align: center;
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* -- Header -- */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.logo img {
  height: 40px;
  width: auto;
  max-width: 200px;
  display: block;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-desktop a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  transition: color var(--transition);
}
.nav-desktop a:hover { color: var(--primary); }

.header-rt {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-tel {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--primary);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}
.header-cta:hover { background: var(--primary-dark); }
.header-cta svg { width: 16px; height: 16px; }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

.nav-dropdown { position: relative; }
.nav-dropdown .nav-link {
  background: none; border: none; font: inherit; cursor: pointer;
  font-size: 14px; font-weight: 500; color: var(--text-light);
  padding: 0.25rem 0; display: inline-flex; align-items: center; gap: 0.25rem;
  transition: color var(--transition);
}
.nav-dropdown .nav-link:hover { color: var(--primary); }
.nav-dropdown .chevron { font-size: 0.7rem; transition: transform var(--transition); }
.nav-dropdown.is-open .chevron { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(0.5rem);
  min-width: 200px; background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 0.5rem;
  display: none; z-index: 100;
}
.nav-dropdown.is-open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block; padding: 0.625rem 0.875rem; border-radius: var(--radius);
  font-size: 14px; font-weight: 500; color: var(--text);
  transition: background var(--transition), color var(--transition);
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a[aria-current="page"] { background: var(--bg-light); color: var(--primary); }

/* -- Mobile panel (dropdown from top) -- */
.mob-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.3); z-index: 150;
  opacity: 0; visibility: hidden; transition: all .3s;
}
.mob-overlay.on { opacity: 1; visibility: visible; }
.mob-panel {
  position: fixed; top: 64px; left: 0; right: 0;
  background: var(--white); z-index: 160;
  transform: translateY(-110%);
  transition: transform .3s ease;
  padding: 16px 28px;
  display: flex; flex-direction: column;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.mob-panel.on { transform: translateY(0); }
.mob-panel .mob-close {
  display: none;
}
.mob-panel .mob-links {
  display: flex; flex-direction: column;
}
.mob-panel .mob-links a {
  padding: 12px 0; font-size: 15px; font-weight: 500;
  color: var(--text); border-bottom: 1px solid var(--gray-200);
  transition: color var(--transition);
}
.mob-panel .mob-links a:last-child { border-bottom: none; }
.mob-panel .mob-links a:hover { color: var(--primary); }
.mob-panel .mob-foot {
  padding-top: 12px;
  display: flex; gap: 10px;
}
.mob-panel .mob-foot .mob-tel {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px; font-weight: 600; color: var(--text);
  padding: 10px 20px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  text-align: center;
}
.mob-panel .mob-foot .mob-tel:hover { border-color: var(--primary); color: var(--primary); }
.mob-panel .mob-foot .btn-primary { flex: 1; text-align: center; min-height: auto; padding: 10px 20px; }

@media(max-width:899px) {
  .hamburger { display: flex; }
  .nav-desktop, .header-cta, .header-tel { display: none; }
}

/* -- Hero -- */
.hero {
  padding: 72px 0;
  background: var(--paper);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero-text h1 {
  font-size: clamp(26px, 3.5vw, 36px);
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 14px;
}
.hero-text h1 em { font-style: normal; color: var(--primary); }
.hero-subtitle {
  font-size: 15.5px;
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.7;
  max-width: 440px;
}
.hero-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.hero-buttons .btn-primary svg,
.hero-buttons .btn-secondary svg { width: 18px; height: 18px; }

.trust-badges {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
}
.trust-badge svg { width: 16px; height: 16px; color: var(--primary); }
.trust-badge::before { content: none; }

.hero-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 2rem;
  border-radius: var(--radius);
}
.hero-card .hero-card__title {
  font-size: 1.1rem; font-weight: 700; color: var(--text);
  margin-bottom: 1.25rem; text-align: center;
}
.card-row {
  display: flex; align-items: center; gap: 0.875rem;
  padding: 0.75rem 0; border-bottom: 1px solid var(--gray-100);
}
.card-row:last-of-type { border-bottom: none; }
.card-icon {
  width: 36px; height: 36px; background: var(--primary-light);
  border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.card-icon svg { width: 18px; height: 18px; color: var(--primary); }
.card-label { display: block; font-size: 0.8rem; color: var(--text-light); font-weight: 500; }
.card-row strong { font-size: 1rem; color: var(--text); }
.card-row--success {
  background: #f0fdf4; border-radius: var(--radius);
  padding: 0.75rem; margin-top: 0.5rem; border-bottom: none;
}
.card-row--success .card-icon { background: #dcfce7; }
.card-row--success .card-icon svg { color: #16a34a; }
.card-row--success strong { color: #16a34a; font-size: 1rem; }
.hero-card .btn-primary { width: 100%; margin-top: 1.25rem; }

@media (max-width: 899px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { order: -1; }
}
@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary { width: 100%; }
}

/* -- Hero with image -- */
.hero--with-image { position: relative; overflow: hidden; }
.hero-image-bg { position: absolute; inset: 0; z-index: 0; }
.hero-image-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(247,246,243,0.95) 55%, rgba(247,246,243,0.4)); }
.hero-image-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero--with-image .container { position: relative; z-index: 1; }

/* -- Stats strip -- */
.stats-strip {
  background: var(--white);
  padding: 3rem 0;
  border-bottom: 1px solid var(--gray-200);
}
.stats-strip .stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; text-align: center;
}
.stat-item {
  display: flex; flex-direction: column; gap: 0.35rem;
  padding: 24px 20px;
  border: 1px solid var(--gray-200);
  transition: border-color var(--transition);
}
.stat-item:hover { border-color: var(--primary); }
.stat-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.stat-label { font-size: 13px; color: var(--text-light); }
@media (max-width: 768px) {
  .stats-strip .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* -- Servicios grid -- */
.servicios { background: var(--paper); }
.servicios-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.servicio-card {
  display: flex;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 20px;
  text-align: left;
  transition: border-color var(--transition);
  border-radius: var(--radius);
}
.servicio-card:hover { border-color: var(--primary); }
.servicio-card-icon {
  width: 4px;
  height: auto;
  min-height: 100%;
  border-radius: 2px;
  background: var(--primary);
  flex-shrink: 0;
}
.servicio-card-icon svg { display: none; }
.servicio-card h3 { font-size: 15px; margin-bottom: 4px; color: var(--text); }
.servicio-card p { font-size: 13px; color: var(--text-light); line-height: 1.55; }
.card-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  color: var(--primary); font-weight: 600; font-size: 13px;
  margin-top: 0.75rem;
}
.card-link::after { content: ' \2192'; transition: transform var(--transition); display: inline-block; }
.card-link:hover::after { transform: translateX(3px); }

@media (max-width: 768px) {
  .servicios-grid { grid-template-columns: 1fr; gap: 10px; }
}

/* -- Ventajas -- */
.ventajas { background: var(--white); }
.ventajas-list {
  max-width: 700px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 1rem;
}
.ventaja-item {
  display: flex; align-items: flex-start; gap: 0.875rem;
  padding: 1rem 1.25rem; background: var(--paper);
  border-radius: var(--radius); border: 1px solid var(--gray-200);
  transition: border-color var(--transition);
}
.ventaja-item:hover { border-color: var(--primary); }
.ventaja-check {
  width: 28px; height: 28px; background: var(--primary-light);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; margin-top: 0.1rem;
}
.ventaja-check svg { width: 16px; height: 16px; color: var(--primary); }
.ventaja-item h3 { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin-bottom: 0.25rem; }
.ventaja-item p { font-size: 0.9rem; color: var(--text-light); }

/* -- About -- */
.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-image {
  width: 100%; aspect-ratio: 4/3; background: var(--gray-100);
  border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--gray-200);
}
.about-image img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); display: block; }
.about-content h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; color: var(--text); margin-bottom: 1rem; }
.about-content > p { font-size: 1rem; color: var(--text-light); line-height: 1.7; margin-bottom: 1.5rem; }
.about-data-list { display: flex; flex-direction: column; gap: 0.75rem; }
.about-data-item { display: flex; align-items: center; gap: 0.75rem; font-size: 0.95rem; font-weight: 600; color: var(--text); }
.about-data-item svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; }
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* -- Proceso -- */
.proceso { background: var(--white); }
.proceso-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.proceso-step-number {
  width: 52px; height: 52px; border-radius: 50%;
  border: 2px solid var(--primary); color: var(--primary);
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; margin: 0 auto 12px;
}
.proceso-step h3 { font-size: 15px; margin-bottom: 4px; }
.proceso-step p { font-size: 13px; color: var(--text-light); }
@media (max-width: 768px) {
  .proceso-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) { .proceso-steps { grid-template-columns: 1fr; } }

/* -- Problemas -- */
.problemas { background: var(--paper); }
.problemas-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.problema-card {
  background: var(--white); border-radius: var(--radius); padding: 1.5rem;
  border: 1px solid var(--gray-200);
  transition: border-color var(--transition);
}
.problema-card:hover { border-color: var(--primary); }
.problema-card__question { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.75rem; }
.problema-card__question svg { width: 24px; height: 24px; color: var(--primary); flex-shrink: 0; margin-top: 0.1rem; }
.problema-card__question h3 { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.problema-card__answer { display: flex; align-items: flex-start; gap: 0.75rem; padding-left: 0.25rem; }
.problema-card__answer svg { width: 20px; height: 20px; color: #16a34a; flex-shrink: 0; margin-top: 0.2rem; }
.problema-card__answer p { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }
@media (max-width: 768px) { .problemas-grid { grid-template-columns: 1fr; } }

/* -- Testimonios -- */
.testimonios { background: var(--white); }
.testimonios-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 2rem;
}
.testimonio-card {
  background: var(--white); padding: 24px 20px;
  border: 1px solid var(--gray-200); border-radius: var(--radius);
}
.testimonio-stars { color: var(--primary); font-size: 14px; letter-spacing: 2px; margin-bottom: 10px; }
.testimonio-stars svg { width: 16px; height: 16px; fill: var(--primary); color: var(--primary); display: inline; }
.testimonio-card blockquote {
  font-size: 14px; color: var(--text-light); line-height: 1.65;
  margin-bottom: 12px; font-style: italic;
}
.testimonio-author { font-size: 13px; font-weight: 600; color: var(--text); }
.testimonio-location { font-size: 0.825rem; color: var(--text-light); }
@media (max-width: 768px) { .testimonios-grid { grid-template-columns: 1fr; } }

/* -- Cobertura -- */
.cobertura { background: var(--paper); }
.cobertura-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.cobertura-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 1.5rem;
  transition: border-color var(--transition);
}
.cobertura-card:hover { border-color: var(--primary); }
.cobertura-card h3 { color: var(--primary); margin-bottom: 0.5rem; }
.cobertura-card p { color: var(--text-light); font-size: 0.95rem; line-height: 1.6; }

/* -- Zonas -- */
.zonas { background: var(--white); }
.zonas-badges {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 2rem;
}
.zona-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 13px; font-weight: 500; padding: 7px 14px;
  border: 1px solid var(--gray-200); border-radius: 0; color: var(--text-light);
  background: transparent;
}
.zona-badge svg { width: 14px; height: 14px; color: var(--primary); }

/* -- FAQ -- */
.faq { background: var(--paper); }
.faq-list {
  max-width: 700px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.faq-item {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--gray-200); overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item:hover { border-color: var(--primary); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 1rem 1.25rem; font-size: 15px; font-weight: 600;
  color: var(--text); background: none; border: none; cursor: pointer;
  text-align: left; gap: 1rem; min-height: 48px; font-family: var(--font);
}
.faq-question svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--primary); transition: transform var(--transition); }
.faq-item.is-open .faq-question svg { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-item.is-open .faq-answer { max-height: 400px; }
.faq-answer p { padding: 0 1.25rem 1rem; font-size: 0.95rem; color: var(--text-light); line-height: 1.7; }

/* -- CTA section -- */
.cta-section {
  padding: 48px 0; background: var(--primary); color: var(--white); text-align: center;
}
.cta-section h2 { font-size: 24px; margin-bottom: 10px; color: var(--white); }
.cta-section > .container > p { font-size: 15px; opacity: .8; margin-bottom: 24px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-phone { display: block; font-size: 22px; font-weight: 700; color: var(--white); margin-bottom: 20px; }
.cta-phone a { color: var(--white); }
.cta-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--white); color: var(--primary);
  font-size: 1rem; font-weight: 700;
  padding: 12px 26px; border-radius: var(--radius);
  border: none; transition: all var(--transition);
}
.cta-btn:hover { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.5); }

/* -- Banner urgencias -- */
.banner-urgencias {
  background: var(--primary); color: var(--white); padding: 48px 0;
}
.banner-urgencias .container { position: relative; z-index: 1; }
.banner-urgencias-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.banner-urgencias-label { display: block; font-size: 24px; font-weight: 700; margin-bottom: 0.35rem; color: var(--white); }
.banner-urgencias-text p { margin: 0; font-size: 15px; color: rgba(255,255,255,0.85); }
.btn-urgencia {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--white); color: var(--primary); font-weight: 700;
  font-size: 1rem; padding: 12px 26px; border-radius: var(--radius);
  white-space: nowrap; transition: all var(--transition);
}
.btn-urgencia:hover { opacity: 0.9; }
@media (max-width: 600px) { .banner-urgencias-inner { flex-direction: column; text-align: center; } }

/* -- Contacto / Form -- */
.contacto { background: var(--white); }
.contacto-wrap { max-width: 880px; margin: 0 auto; }
.contacto-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.375rem; }
.form-group--full, .contacto-form > .honeypot, .contacto-form > input[type="hidden"] { grid-column: 1 / -1; }
@media (max-width: 640px) { .contacto-form { grid-template-columns: 1fr; } }
.form-group label { font-size: 0.9rem; font-weight: 700; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
  font-family: var(--font); font-size: 1rem; padding: 0.75rem 1rem;
  border: 1px solid var(--gray-200); border-radius: var(--radius);
  background: var(--white); color: var(--text);
  transition: border-color var(--transition); min-height: 48px;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.btn-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--primary); color: var(--white); font-family: var(--font);
  font-size: 1rem; font-weight: 700; padding: 0.875rem 2rem;
  border-radius: var(--radius); border: none; cursor: pointer;
  transition: all var(--transition); min-height: 48px;
}
.btn-submit:hover { background: var(--primary-dark); }
.btn-submit svg { width: 20px; height: 20px; }
.honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.form-status { padding: 0.875rem 1rem; border-radius: var(--radius); font-size: 0.95rem; font-weight: 600; display: none; align-items: center; gap: 0.625rem; }
.form-status.success, .form-status.error { display: flex; }
.form-status__icon { width: 22px; height: 22px; flex-shrink: 0; display: none; }
.form-status.success .form-status__icon--success { display: block; }
.form-status.error .form-status__icon--error { display: block; }
.form-status.success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.form-status.error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.form-status__text { flex: 1; }

/* -- Footer -- */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,.5);
  padding: 40px 0 20px;
  font-size: 14px;
}
.footer h3 { color: var(--white); font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.footer-row {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-logo { color: var(--white); font-weight: 700; font-size: 16px; }
.footer-logo img { height: 30px; width: auto; filter: brightness(0) invert(1); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: rgba(255,255,255,.5); transition: color var(--transition); }
.footer-links a:hover { color: var(--primary); }
.footer-nap { display: flex; flex-direction: column; gap: 0.875rem; }
.footer-nap__item { display: flex; align-items: flex-start; gap: 0.625rem; font-size: 0.9rem; line-height: 1.5; }
.footer-nap__item svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 0.15rem; color: var(--primary); }
.footer-nap__item a { color: rgba(255,255,255,.7); transition: color var(--transition); }
.footer-nap__item a:hover { color: var(--white); }
.footer-col ul { display: flex; flex-direction: column; gap: 6px; }
.footer-col ul a { font-size: 0.9rem; transition: color var(--transition); }
.footer-col ul a:hover { color: var(--primary-light); }
.footer-zones { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.footer-zone-tag {
  background: rgba(255,255,255,.08); padding: 0.3rem 0.65rem;
  border-radius: 0; font-size: 0.8rem; color: rgba(255,255,255,.5);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 16px;
  text-align: center; font-size: 12px; color: rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem;
}
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: rgba(255,255,255,.4); transition: color var(--transition); }
.footer-legal a:hover { color: var(--white); }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-row { flex-direction: column; text-align: center; }
}

/* -- Mobile bar -- */
.mobile-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 998;
  display: flex; box-shadow: 0 -2px 12px rgba(0,0,0,.12);
}
.mobile-bar a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.875rem 1rem; font-size: 0.95rem; font-weight: 700; min-height: 56px;
}
.mobile-bar a svg { width: 20px; height: 20px; }
.mobile-bar__call { background: var(--primary); color: var(--white); }
.mobile-bar__presupuesto { background: var(--white); color: var(--primary); border-top: 2px solid var(--primary); }
@media (min-width: 900px) { .mobile-bar { display: none; } }
@media (max-width: 899px) { body { padding-bottom: 56px; } }

/* -- Marcas -- */
.marcas { padding: 4rem 0; background: var(--white); }
.marcas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2rem; max-width: 900px; margin-left: auto; margin-right: auto; }
@media (max-width: 768px) { .marcas-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .marcas-grid { grid-template-columns: 1fr; } }
.marca-card {
  background: var(--paper); border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 1.25rem 1rem; text-align: center; font-weight: 700;
  color: var(--ink); font-size: 1rem; transition: all var(--transition);
}
.marca-card:hover { background: var(--white); border-color: var(--primary); color: var(--primary); }

/* -- Servicio intro -- */
.servicio-intro { padding: 2.5rem 0 0; }
.servicio-intro-body { max-width: 780px; }
.servicio-intro-body p { font-size: 1rem; line-height: 1.75; color: var(--text-light); margin-bottom: 1rem; }
.servicio-intro-body p:last-child { margin-bottom: 0; }
.servicio-intro-body a { color: var(--primary); text-decoration: underline; }

/* -- Comparativa -- */
.comparativa { background: var(--white); }
.comparativa .container { max-width: 1000px; }
.comparativa-table { margin-top: 2.5rem; overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--gray-200); background: var(--white); }
.comparativa table { width: 100%; border-collapse: collapse; }
.comparativa th, .comparativa td { padding: 1rem 1.25rem; text-align: left; border-bottom: 1px solid var(--gray-200); font-size: 0.95rem; }
.comparativa thead th { background: var(--ink); color: var(--white); font-weight: 700; border-bottom: none; }
.comparativa thead th:first-child { background: var(--primary); }
.comparativa tbody th { background: var(--paper); font-weight: 600; color: var(--ink); width: 28%; }
.comparativa tbody tr:hover td { background: var(--bg-light); }
.comparativa tbody tr:last-child td, .comparativa tbody tr:last-child th { border-bottom: none; }
.comparativa-conclusion { margin-top: 2rem; padding: 1.5rem 2rem; background: var(--highlight); border-left: 4px solid var(--primary); border-radius: var(--radius); font-size: 1rem; color: var(--ink); line-height: 1.7; }
.comparativa-conclusion a { color: var(--primary); text-decoration: underline; font-weight: 600; }

/* -- Related services -- */
.related-services { background: var(--bg-light); }

/* -- Cookie banner -- */
.cookie-banner {
  position: fixed; bottom: 1rem; left: 1rem; right: 1rem; z-index: 9999;
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: 1rem 1.25rem; max-width: 600px; margin: 0 auto;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.cookie-banner-text { flex: 1; min-width: 220px; }
.cookie-banner-text strong { display: block; margin-bottom: 0.25rem; }
.cookie-banner-text p { font-size: 0.9rem; color: var(--text-light); margin: 0; }
.cookie-banner-text a { color: var(--primary); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 0.5rem; }
.cookie-banner-accept {
  background: var(--primary); color: var(--white); border: none;
  padding: 0.625rem 1.25rem; border-radius: var(--radius);
  font-weight: 600; cursor: pointer; font-size: 0.95rem; min-height: 40px;
}
.cookie-banner-accept:hover { background: var(--primary-dark); }
@media (max-width: 480px) { .cookie-banner { left: 0.5rem; right: 0.5rem; bottom: 0.5rem; padding: 0.875rem; } }

/* -- Legal -- */
.legal-content { max-width: 760px; margin: 0 auto; padding: 3rem 1.25rem; }
.legal-content h1 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); font-weight: 700; margin-bottom: 2rem; color: var(--text); }
.legal-content h2 { font-size: 1.35rem; font-weight: 700; margin-top: 2rem; margin-bottom: 0.75rem; color: var(--text); }
.legal-content p { margin-bottom: 1rem; color: var(--text-light); line-height: 1.7; }

/* -- 404 -- */
.page-404 { text-align: center; padding: 6rem 1.25rem; }
.page-404 h1 { font-size: clamp(3rem, 10vw, 6rem); font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 1rem; }
.page-404 p { font-size: 1.2rem; color: var(--text-light); margin-bottom: 2rem; }

/* -- Tipos de persianas -- */
.tipos { background: var(--white); }
