:root {
  --bg: #050816;
  --bg-alt: #0b1020;
  --bg-soft: #111827;
  --card-bg: #111827;
  --card-alt-bg: #0f172a;
  --accent: #22c55e;
  --accent-soft: rgba(34, 197, 94, 0.16);
  --accent-strong: #4ade80;
  --primary: #22c55e;
  --primary-contrast: #020617;
  --text-main: #e5e7eb;
  --text-soft: #9ca3af;
  --text-muted: #6b7280;
  --border-subtle: #1f2937;
  --danger: #f97373;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.9);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-full: 999px;
  --header-height: 112px;
  --transition-fast: 0.18s ease-out;
  --transition-slow: 0.28s ease-out;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 17px;
  line-height: 1.6;
  background: radial-gradient(circle at top, #1d283a 0, #020617 48%, #020617 100%);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-height);
  padding-bottom: 72px; /* Espacio para barra CTA fija */
}

a {
  color: var(--accent-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: linear-gradient(
      to bottom,
      rgba(2, 6, 23, 0.94),
      rgba(2, 6, 23, 0.92),
      rgba(2, 6, 23, 0.9)
    );
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: #f9fafb;
}

.brand-logo {
  display: block;
  height: 55px;
  width: auto;
  flex-shrink: 0;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  padding: 4px 9px;
  border-radius: 999px;
  background: radial-gradient(circle at 0 0, #4ade80, #22c55e 35%, #16a34a 100%);
  color: #020617;
  font-weight: 800;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.9rem;
}

.main-nav a {
  color: var(--text-soft);
  text-decoration: none;
  padding: 6px 0;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, #22c55e, #4ade80);
  transition: width var(--transition-fast);
}

.main-nav a:hover::after {
  width: 100%;
}

.header-ctas {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: rgba(15, 23, 42, 0.9);
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  width: 60%;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 16px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--transition-fast),
    color var(--transition-fast), transform var(--transition-fast),
    box-shadow var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--accent-strong) 45%,
    #bbf7d0 100%
  );
  color: var(--primary-contrast);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(16, 185, 129, 0.45);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.85);
  color: #e5e7eb;
}

.btn-outline:hover {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 1);
  text-decoration: none;
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-main);
  border-color: rgba(51, 65, 85, 0.9);
}

.btn-secondary:hover {
  background: rgba(15, 23, 42, 1);
  border-color: rgba(75, 85, 99, 1);
  text-decoration: none;
}

.btn-call,
.btn-whatsapp {
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.15;
}

.btn-call-line {
  display: block;
}

.btn-lg {
  padding: 10px 20px;
  font-size: 0.95rem;
}

.btn-full {
  width: 100%;
}

/* Hero */

.hero {
  padding: 48px 16px 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: center;
}

.hero-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hero-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.hero-text h1 {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  letter-spacing: 0.02em;
  line-height: 1.3;
  margin: 4px 0 14px;
}

.hero-subtitle {
  margin: 0 0 18px;
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--text-soft);
  max-width: 34rem;
}

.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  color: var(--text-soft);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  font-size: 1.02rem;
  line-height: 1.55;
}

.hero-bullets li::before {
  content: "●";
  color: var(--accent-strong);
  margin-right: 8px;
  font-size: 0.68rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.hero-note {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* Contact card */

.contact-card {
  background: radial-gradient(circle at top left, #0ea5e9 0, #0b1120 45%, #020617 100%);
  border-radius: 26px;
  padding: 18px 18px 20px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  box-shadow: var(--shadow-soft);
}

.contact-card h2 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.contact-intro {
  margin: 0 0 12px;
  font-size: 0.86rem;
  color: #e5e7eb;
}

.contact-channels {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  gap: 6px;
}

.contact-channels li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(30, 64, 175, 0.7);
}

.channel-label {
  font-size: 0.82rem;
  color: var(--text-soft);
}

.channel-action {
  font-size: 0.82rem;
  font-weight: 600;
  color: #bae6fd;
}

.channel-action:hover {
  text-decoration: none;
  color: #e0f2fe;
}

/* Generic sections */

.section {
  padding: 36px 20px;
}

.section-alt {
  background: radial-gradient(circle at top left, #0f172a, #020617 65%);
}

.section h2 {
  font-size: 1.45rem;
  line-height: 1.35;
  margin: 0 0 16px;
}

.section p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-soft);
  margin: 0 0 12px;
}

.section-note {
  margin-top: 14px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.section-legal {
  margin-top: 14px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* Trust block */

.trust {
  padding: 20px 20px 32px;
}

.trust h2 {
  font-size: 1.2rem;
  line-height: 1.4;
  margin-bottom: 10px;
}

.trust p {
  margin: 4px 0 10px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-soft);
}

.trust-legal {
  margin-top: 12px;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Services */

.grid-services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.card {
  background: radial-gradient(circle at top, #111827, #020617);
  border-radius: 18px;
  padding: 18px 18px 20px;
  border: 1px solid rgba(31, 41, 55, 0.95);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 197, 94, 0.65);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.95);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  line-height: 1.35;
}

.card p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--text-soft);
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.step {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 16px;
  padding: 18px 18px 20px;
  border: 1px solid rgba(31, 41, 55, 0.95);
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.4;
}

.step p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--text-soft);
}

/* Coverage */

.grid-coverage {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 32px;
  margin-top: 12px;
}

.grid-coverage ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-soft);
}

.grid-coverage li::before {
  content: "▹";
  color: var(--accent-strong);
  margin-right: 6px;
  font-size: 0.8rem;
}

/* FAQ */

.faq-list {
  margin: 8px 0 0;
}

.faq-item {
  padding: 14px 0;
  border-bottom: 1px solid rgba(31, 41, 55, 0.85);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item dt {
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.4;
  margin-bottom: 6px;
}

.faq-item dd {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.02rem;
  line-height: 1.65;
}

/* Contact section */

.section-contact {
  background: radial-gradient(circle at top, #0f172a, #020617 60%);
}

.section-contact .guide-cta-card {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 28px;
  align-items: flex-start;
}

.contact-priority {
  margin-top: 4px;
  font-size: 0.95rem;
}

.contact-options {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  font-size: 0.86rem;
  color: var(--text-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.contact-options li::before {
  content: "●";
  color: var(--accent-strong);
  margin-right: 6px;
  font-size: 0.68rem;
}

.contact-cta-buttons {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.message-snippet {
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px dashed rgba(148, 163, 184, 0.7);
  font-size: 0.82rem;
  color: var(--text-soft);
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  background: #020617;
  padding: 12px 16px 14px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 6px;
}

.footer-brand {
  margin: 0;
  color: #e5e7eb;
  font-weight: 500;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links a {
  color: #a5b4fc;
  white-space: nowrap;
}

.footer-note,
.footer-address,
.footer-copy {
  margin: 0 0 4px;
  max-width: 52rem;
  line-height: 1.4;
}

.footer-copy {
  margin-top: 6px;
  margin-bottom: 0;
  padding-top: 6px;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
}

/* CTA bar fija (Llamar / WhatsApp siempre visibles) */

.cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 55;
  padding: 10px 16px 12px;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.96));
  border-top: 1px solid rgba(34, 197, 94, 0.4);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
  transition: bottom var(--transition-slow);
}

/* Cuando el banner de cookies está visible, el CTA se desplaza hacia arriba para no solaparse */
body.cookie-banner-visible .cta-bar {
  bottom: 72px;
}

body.cookie-banner-visible {
  padding-bottom: 140px; /* CTA + banner cookies en desktop */
}

.cta-bar-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
}

.cta-bar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  flex: 1;
  min-width: 140px;
  border: none;
  cursor: pointer;
}

.cta-bar-btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.cta-bar-call {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-strong) 50%, #bbf7d0 100%);
  color: var(--primary-contrast);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.cta-bar-call:hover {
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.5);
}

.cta-bar-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

.cta-bar-whatsapp:hover {
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.45);
}

.cta-bar-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.cta-bar-label {
  line-height: 1.2;
}

@media (max-width: 640px) {
  .cta-bar {
    padding: 10px 12px 14px;
  }

  .cta-bar-inner {
    flex-direction: column;
    gap: 8px;
  }

  .cta-bar-btn {
    width: 100%;
    min-width: 0;
    padding: 14px 16px;
    font-size: 0.95rem;
  }

  body.cookie-banner-visible .cta-bar {
    bottom: 88px;
  }

  body {
    padding-bottom: 100px; /* Más espacio en móvil (CTA apilada) */
  }

  body.cookie-banner-visible {
    padding-bottom: 180px; /* CTA + banner cookies en móvil */
  }
}

/* Cookie banner (RGPD) */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 12px 16px;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.95));
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  font-size: 0.9rem;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
}

.cookie-banner-text {
  margin: 0;
  color: var(--text-soft);
  flex: 1;
  min-width: 200px;
}

.cookie-banner-text a {
  color: var(--accent-strong);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-banner-btn {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.cookie-banner-accept {
  background: var(--accent);
  color: var(--primary-contrast);
}

.cookie-banner-accept:hover {
  background: var(--accent-strong);
}

.cookie-banner-reject {
  background: transparent;
  color: var(--text-soft);
  border: 1px solid var(--border-subtle);
}

.cookie-banner-reject:hover {
  color: var(--text-main);
  border-color: var(--text-muted);
}

@media (max-width: 640px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-banner-actions {
    justify-content: flex-end;
  }
}

/* Legal pages layout */

.legal-page {
  padding: 36px 16px 40px;
}

.legal-header {
  margin-bottom: 24px;
  max-width: 1200px;
}

.legal-header h1 {
  margin: 0 0 12px;
  font-size: 1.75rem;
  line-height: 1.35;
}

.legal-header p {
  margin: 0 0 14px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-soft);
}

.legal-header p:last-child {
  margin-bottom: 0;
}

.legal-content {
  max-width: 1200px;
}

.legal-content h2 {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 1.25rem;
  line-height: 1.4;
}

.legal-content h3 {
  margin-top: 24px;
  margin-bottom: 10px;
  font-size: 1.1rem;
  line-height: 1.4;
}

.legal-content p {
  margin: 0 0 16px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-soft);
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 16px;
  padding-left: 1.4rem;
}

.legal-content li {
  margin-bottom: 10px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-soft);
}

.legal-content li:last-child {
  margin-bottom: 0;
}

.legal-content ul ul,
.legal-content ol ul,
.legal-content ul ol,
.legal-content ol ol {
  margin: 10px 0;
}

.legal-meta {
  margin: 10px 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Guide pages */
.guide-page .legal-header {
  margin-bottom: 24px;
}

.guide-figure {
  margin: 20px auto 24px;
  max-width: 560px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.guide-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.guide-figure figcaption {
  padding: 10px 14px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.9);
}

.guide-hr {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 32px 0;
}

.guide-blockquote {
  margin: 20px 0;
  padding: 16px 20px 16px 22px;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--text-soft);
  font-size: 1.02rem;
  line-height: 1.65;
}

.guide-blockquote p {
  margin: 0;
  font-style: italic;
}

.guide-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px !important;
}

.guide-cta .btn {
  margin: 0;
}

.guide-cta-card {
  background: radial-gradient(circle at top left, rgba(220, 38, 38, 0.15) 0, rgba(15, 23, 42, 0.95) 45%, rgba(2, 6, 23, 0.98) 100%);
  border-radius: var(--radius-lg);
  padding: 24px 20px 26px;
  margin: 28px 0;
  border: 1px solid rgba(220, 38, 38, 0.3);
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.guide-cta-card:hover {
  transform: translateY(-2px);
  border-color: rgba(220, 38, 38, 0.5);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.95);
}

.guide-cta-title {
  margin: 0 0 12px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.01em;
}

.guide-cta-phone {
  font-size: 1.2rem;
  margin: 0 0 20px;
  color: var(--text-main);
}

.guide-cta-phone strong {
  color: var(--accent-strong);
  font-size: 1.3rem;
  font-weight: 700;
}

.guide-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.guide-cta-buttons .btn {
  margin: 0;
}

.guide-cta-note {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.legal-content code {
  font-size: 0.98em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-subtle);
}

.guide-keywords {
  margin-top: 28px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Tables (e.g. guide semáforo) */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 14px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-soft);
}

.legal-content table th,
.legal-content table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-content table th {
  font-weight: 600;
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.9);
}

.legal-content table tr:last-child td {
  border-bottom: none;
}

.legal-content table tbody tr:hover {
  background: rgba(15, 23, 42, 0.5);
}

/* Responsive */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr);
  }

  .hero-image {
    max-width: 420px;
    margin: 0 auto;
  }

  .contact-card {
    order: -1;
  }

  .grid-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid-coverage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .container {
    padding: 0 20px;
  }

  .header-content {
    gap: 8px;
  }

  .main-nav {
    position: absolute;
    top: 54px;
    left: 0;
    right: 0;
    padding: 10px 16px 12px;
    background: rgba(2, 6, 23, 0.98);
    border-bottom: 1px solid rgba(31, 41, 55, 0.9);
    display: none;
  }

  .main-nav.nav-open {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  /* On mobile, keep the phone CTA always visible and prioritized */
  .header-ctas {
    margin-left: auto;
  }

  .header-ctas .btn-primary,
  .header-ctas .btn-whatsapp {
    padding: 6px 10px;
    font-size: 0.78rem;
    white-space: normal;
    line-height: 1.2;
    text-align: center;
  }

  .nav-toggle {
    display: inline-flex;
    flex-shrink: 0;
  }

  .hero {
    padding-top: 30px;
  }

  .hero-bullets {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid-services {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid-coverage {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer {
    padding-top: 10px;
  }

  /* Readability: slightly larger base on mobile for comfortable reading */
  body {
    font-size: 18px;
  }

  .legal-header h1 {
    font-size: 1.55rem;
    line-height: 1.35;
  }

  .legal-content h2 {
    font-size: 1.2rem;
    margin-top: 28px;
    margin-bottom: 10px;
  }

  .legal-content h3 {
    font-size: 1.08rem;
    margin-top: 22px;
    margin-bottom: 8px;
  }

  .legal-content p,
  .legal-content li {
    font-size: 1.02rem;
    line-height: 1.7;
  }

  .legal-content li {
    margin-bottom: 12px;
  }

  .hero-subtitle {
    font-size: 1.08rem;
  }

  .hero-bullets {
    font-size: 1rem;
    gap: 12px 0;
  }

  .card p,
  .step p {
    font-size: 1rem;
  }

  .section p {
    font-size: 1.02rem;
  }
}

/* Hub home: landing without map */

.hub-home-inner {
  max-width: 960px;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.hub-hero {
  margin-bottom: 2.75rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.hub-eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.hub-hero-title {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4.2vw, 2.35rem);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #f9fafb;
}

.hub-hero-lead {
  margin: 0 0 1.35rem;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--text-soft);
  max-width: 38rem;
}

.hub-services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.hub-services li {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  background: var(--accent-soft);
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: var(--radius-full);
}

.hub-cities-section {
  margin-top: 0;
}

.hub-section-head {
  margin-bottom: 1.35rem;
}

.hub-section-head h2 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 650;
  color: #f9fafb;
}

.hub-section-sub {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 40rem;
}

.hub-cities-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .hub-cities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .hub-cities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
  }
}

.hub-city-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.2rem 1.25rem 1.25rem;
  background: linear-gradient(
    165deg,
    rgba(17, 24, 39, 0.95) 0%,
    rgba(15, 23, 42, 0.88) 100%
  );
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.hub-city-card:hover {
  border-color: rgba(34, 197, 94, 0.35);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.95);
}

.hub-city-name {
  margin: 0 0 0.2rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #f9fafb;
}

.hub-city-meta {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hub-city-blurb {
  margin: 0 0 1.1rem;
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-soft);
}

.hub-city-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.hub-city-actions .btn {
  font-size: 0.9rem;
  padding: 0.45rem 1rem;
}

.hub-city-actions .btn-block {
  flex: 1;
  min-width: 8rem;
  text-align: center;
  justify-content: center;
}

.hub-home-footnote {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.92rem;
  color: var(--text-muted);
}

.hub-home-footnote a {
  color: var(--accent-strong);
}

