:root {
  --jja-navy: #173355;
  --jja-navy-deep: #0E2138;
  --jja-accent: #F2541B;
  --jja-accent-deep: #C7420E;
  --jja-paper: #F4F5F1;
  --jja-white: #FFFFFF;
  --jja-ink: #16202B;
  --jja-ink-soft: #4A5560;
  --jja-line: #DCE0D8;

  --font-display: 'Space Grotesk', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'Roboto Mono', 'Courier New', monospace;

  --radius-s: 4px;
  --radius-m: 10px;
  --sticky-h: 56px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--jja-ink);
  background: var(--jja-paper);
  line-height: 1.5;
  padding-top: var(--sticky-h);
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
  color: var(--jja-ink-soft);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--jja-accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--jja-accent);
}

/* --- Urgency stripe: signature element --- */
.stripe {
  height: 6px;
  background: repeating-linear-gradient(-45deg,
      var(--jja-accent),
      var(--jja-accent) 14px,
      var(--jja-navy) 14px,
      var(--jja-navy) 28px);
}

/* --- Sticky top bar --- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--sticky-h);
  background: var(--jja-navy-deep);
  z-index: 100;
  display: flex;
  align-items: center;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.topbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--jja-white);
  font-size: 18px;
  text-decoration: none;
}

.topbar .brand img {
  height: 28px;
  width: auto;
}

.topbar nav {
  display: flex;
  gap: 22px;
}

.topbar nav a {
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.topbar nav a:hover {
  color: var(--jja-white);
}

.cta-group {
  display: flex;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: var(--radius-s);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn-call {
  background: var(--jja-accent);
  color: var(--jja-white);
}

.btn-call:hover {
  background: var(--jja-accent-deep);
}

.btn-whatsapp {
  background: transparent;
  border-color: rgba(255, 255, 255, .35);
  color: var(--jja-white);
}

.btn-whatsapp:hover {
  border-color: var(--jja-white);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--jja-white);
  font-size: 22px;
  cursor: pointer;
}

/* --- Hero --- */
.hero {
  background: var(--jja-navy);
  color: var(--jja-white);
  padding: 76px 0 64px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 84, 27, .18), transparent 70%);
}

.hero .container {
  position: relative;
}

.hero h1 {
  font-size: clamp(34px, 5.2vw, 58px);
  max-width: 820px;
  color: var(--jja-white);
}

.hero h1 .accent {
  color: var(--jja-accent);
}

.hero .lede {
  font-size: 18px;
  max-width: 560px;
  color: rgba(255, 255, 255, .78);
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-actions .btn {
  padding: 14px 22px;
  font-size: 14px;
}

.trust-strip {
  margin-top: 44px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding-top: 22px;
}

.trust-item {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: rgba(255, 255, 255, .7);
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-item strong {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--jja-white);
  display: block;
}

/* --- Sections --- */
.section {
  padding: 72px 0;
}

.section-head {
  max-width: 620px;
  margin-bottom: 40px;
}

.section-title {
  font-size: clamp(26px, 3.4vw, 36px);
}

/* Services hierarchy */
.services {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}

.service-card {
  background: var(--jja-white);
  border: 1px solid var(--jja-line);
  border-radius: var(--radius-m);
  padding: 30px;
  position: relative;
}

.service-card.primary {
  grid-row: span 2;
  background: linear-gradient(165deg, var(--jja-navy), var(--jja-navy-deep));
  color: var(--jja-white);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 420px;
  padding: 0;
  overflow: hidden;
}

.service-card-media {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s ease;
}

.service-card.primary:hover .service-card-media img {
  transform: scale(1.04);
}

.service-card-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.service-card.primary p {
  color: rgba(255, 255, 255, .72);
}

.service-card .rank {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--jja-accent);
  letter-spacing: .1em;
}

.service-card h3 {
  font-size: 24px;
  margin-top: 8px;
}

.service-card.primary h3 {
  font-size: 32px;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-list li {
  font-size: 14px;
  color: var(--jja-ink-soft);
  padding-left: 16px;
  position: relative;
}

.service-card.primary .service-list li {
  color: rgba(255, 255, 255, .68);
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 2px;
  background: var(--jja-accent);
}

.service-card .link {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--jja-accent);
  text-decoration: none;
  display: inline-block;
}

.service-secondary-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Zones */
.zones-band {
  background: var(--jja-navy-deep);
  color: var(--jja-white);
  padding: 56px 0;
}

.zones-band .section-title {
  color: var(--jja-white);
}

.zones-band .eyebrow {
  color: var(--jja-accent);
}

.zone-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.zone-chip {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  color: rgba(255, 255, 255, .85);
}

/* Trust / about */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.trust-card {
  background: var(--jja-white);
  border: 1px solid var(--jja-line);
  border-radius: var(--radius-m);
  padding: 26px;
}

.trust-card .num {
  font-family: var(--font-mono);
  color: var(--jja-accent);
  font-size: 13px;
  margin-bottom: 10px;
  display: block;
}

.trust-card h3 {
  font-size: 18px;
}

.trust-card p {
  font-size: 14px;
  margin: 0;
}

/* Final CTA */
.final-cta {
  background: var(--jja-white);
  border: 1px solid var(--jja-line);
  border-radius: var(--radius-m);
  padding: 44px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.final-cta h2 {
  font-size: 28px;
}

.form-short {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-short input,
.form-short textarea {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 14px;
  border: 1px solid var(--jja-line);
  border-radius: var(--radius-s);
  background: var(--jja-paper);
}

.form-short textarea {
  resize: vertical;
  min-height: 80px;
}

.form-short button {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  padding: 13px 18px;
  background: var(--jja-accent);
  color: var(--jja-white);
  border: none;
  border-radius: var(--radius-s);
  cursor: pointer;
}

.form-short button:hover {
  background: var(--jja-accent-deep);
}

.form-note {
  font-size: 12px;
  color: var(--jja-ink-soft);
}

/* Footer */
.site-footer {
  background: var(--jja-navy-deep);
  color: rgba(255, 255, 255, .7);
  padding: 48px 0 24px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  ;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--jja-accent);
  margin: 0 0 14px;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-grid a {
  text-decoration: none;
  color: inherit;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .5);
}

.footer-grid p {
  color: rgba(255, 255, 255, .7);
}

/* --- Coming soon --- */
.coming-soon-page {
  min-height: 100vh;
  background: var(--jja-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  padding-top: 24px;
}

.coming-soon-card {
  text-align: center;
  max-width: 420px;
}

.coming-soon-card img {
  width: 96px;
  margin: 0 auto 28px;
}

.coming-soon-card h1 {
  color: var(--jja-white);
  font-size: 28px;
  margin-bottom: 10px;
}

.coming-soon-card .sub {
  color: rgba(255, 255, 255, .6);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.unlock-toggle {
  margin-top: 32px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, .4);
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
}

.unlock-form {
  margin-top: 18px;
  display: none;
  gap: 10px;
}

.unlock-form.open {
  display: flex;
}

.unlock-form input {
  flex: 1;
  font-family: var(--font-mono);
  padding: 12px 14px;
  border-radius: var(--radius-s);
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .06);
  color: var(--jja-white);
  letter-spacing: .3em;
  text-align: center;
}

.unlock-form button {
  font-family: var(--font-mono);
  padding: 12px 18px;
  background: var(--jja-accent);
  border: none;
  border-radius: var(--radius-s);
  color: var(--jja-white);
  cursor: pointer;
}

.unlock-error {
  margin-top: 12px;
  color: var(--jja-accent);
  font-family: var(--font-mono);
  font-size: 12.5px;
}

/* --- Mobile --- */
@media (max-width: 860px) {
  .services {
    grid-template-columns: 1fr;
  }

  .service-card.primary {
    grid-row: auto;
    min-height: 320px;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .final-cta {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--jja-navy-deep);
  border-top: 1px solid rgba(255, 255, 255, .1);
  position: fixed;
  top: var(--sticky-h);
  left: 0;
  right: 0;
  z-index: 99;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  color: rgba(255, 255, 255, .85);
  text-decoration: none;
  padding: 14px 24px;
  font-size: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

@media (max-width: 720px) {
  .topbar nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .btn span.label {
    display: none;
  }
}

@media (min-width: 721px) {
  .mobile-nav {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* --- Inner Pages & Distinct Hero Styles --- */
@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-hero {
  background: var(--jja-navy);
  color: var(--jja-white);
  padding: 52px 0 40px;
  position: relative;
  overflow: hidden;
  animation: heroFadeIn 0.4s ease-out forwards;
}

/* Distinct Hero Theme: Reformas */
.page-hero.hero-reformas {
  background: linear-gradient(135deg, #162942 0%, #0e1e33 65%, #2a120a 100%);
  border-bottom: 3px solid var(--jja-accent);
}

.page-hero.hero-reformas .eyebrow {
  color: #ff8c61;
}

/* Distinct Hero Theme: Fontanería */
.page-hero.hero-fontaneria {
  background: linear-gradient(135deg, #092648 0%, #0e3c6e 60%, #061930 100%);
  border-bottom: 3px solid #00b4d8;
}

.page-hero.hero-fontaneria .eyebrow {
  color: #00b4d8;
}

.page-hero.hero-fontaneria .eyebrow::before {
  background: #00b4d8;
}

/* Distinct Hero Theme: Construcción */
.page-hero.hero-construccion {
  background: linear-gradient(135deg, #1b2838 0%, #111b27 70%, #291e14 100%);
  border-bottom: 3px solid #e0a96d;
}

.page-hero.hero-construccion .eyebrow {
  color: #e0a96d;
}

.page-hero.hero-construccion .eyebrow::before {
  background: #e0a96d;
}

/* Distinct Hero Theme: Zonas de Cobertura */
.page-hero.hero-zonas {
  background: linear-gradient(135deg, #11233d 0%, #1f3d66 70%, #0a1728 100%);
  border-bottom: 3px solid #f2541b;
}

.page-hero.hero-zonas .eyebrow {
  color: #f2541b;
}

/* Distinct Hero Theme: Empresa & Proyectos */
.page-hero.hero-empresa {
  background: linear-gradient(135deg, #0f2035 0%, #1a365d 70%, #0d1a2d 100%);
  border-bottom: 3px solid #64dfdf;
}

.page-hero.hero-empresa .eyebrow {
  color: #64dfdf;
}

.page-hero.hero-empresa .eyebrow::before {
  background: #64dfdf;
}

/* Distinct Hero Theme: Contacto */
.page-hero.hero-contacto {
  background: linear-gradient(135deg, #173355 0%, #192e47 50%, #802808 100%);
  border-bottom: 3px solid var(--jja-accent);
}

.page-hero h1 {
  font-size: 40px;
  color: var(--jja-white);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.page-hero .lede {
  color: rgba(255, 255, 255, .9);
  font-size: 19px;
  max-width: 760px;
  line-height: 1.45;
}

.page-hero .hero-ctas {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, .65);
  margin-bottom: 16px;
}


.breadcrumbs a {
  color: rgba(255, 255, 255, .8);
  text-decoration: none;
}

.breadcrumbs span {
  margin: 0 6px;
}

.inner-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}

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

.sidebar-card {
  background: var(--jja-white);
  border: 1px solid var(--jja-line);
  border-radius: var(--radius-m);
  padding: 24px;
  position: sticky;
  top: calc(var(--sticky-h) + 20px);
}

.sidebar-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.sidebar-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.sidebar-card li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--jja-line);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-card li:last-child {
  border-bottom: none;
}

/* FAQ Accordion */
.faq-section {
  margin-top: 48px;
}

.faq-item {
  background: var(--jja-white);
  border: 1px solid var(--jja-line);
  border-radius: var(--radius-s);
  margin-bottom: 12px;
  padding: 18px 20px;
}

.faq-item h4 {
  font-size: 17px;
  margin: 0 0 8px;
  color: var(--jja-navy);
}

.faq-item p {
  margin: 0;
  font-size: 15px;
}

/* Zone & Sub-service Grids */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 28px 0;
}

.card-link {
  display: block;
  text-decoration: none;
  background: var(--jja-white);
  border: 1px solid var(--jja-line);
  border-radius: var(--radius-m);
  padding: 24px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(23, 51, 85, .08);
  border-color: var(--jja-accent);
}

.card-link h3 {
  color: var(--jja-navy);
  font-size: 20px;
  margin-bottom: 8px;
}

.card-link p {
  font-size: 14px;
  color: var(--jja-ink-soft);
  margin: 0;
}

/* Gallery & Before-After */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.gallery-card {
  background: var(--jja-white);
  border: 1px solid var(--jja-line);
  border-radius: var(--radius-m);
  overflow: hidden;
}

.gallery-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.gallery-card .card-body {
  padding: 20px;
}

.gallery-card h4 {
  font-size: 18px;
  margin-bottom: 6px;
  color: var(--jja-navy);
}

.gallery-card p {
  font-size: 14px;
  margin: 0;
}

/* Callout Box */
.callout-box {
  background: rgba(242, 84, 27, .06);
  border-left: 4px solid var(--jja-accent);
  padding: 20px 24px;
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  margin: 28px 0;
}

.callout-box h3 {
  font-size: 18px;
  color: var(--jja-navy);
  margin-bottom: 6px;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  padding: 14px 18px;
  border-radius: var(--radius-s);
  margin-bottom: 20px;
}

/* ── Trust Signals (under hero CTA) ─────────────────────────── */
.trust-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.trust-signals li {
  font-size: 14px;
  color: rgba(255, 255, 255, .85);
  font-family: var(--font-body);
}

/* ── CTA Repeat Section ──────────────────────────────────────── */
.cta-repeat {
  background: var(--jja-navy);
  text-align: center;
}

.cta-repeat h2 {
  color: #fff;
  font-size: clamp(22px, 4vw, 32px);
  margin-bottom: 8px;
}

.cta-repeat .sub {
  color: rgba(255, 255, 255, .75);
  margin-bottom: 24px;
}

.cta-repeat .hero-ctas {
  justify-content: center;
  margin-top: 0;
}

/* ── Sticky CTA — Mobile only ────────────────────────────────── */
.sticky-cta-mobile {
  display: none;
}

@media (max-width: 768px) {
  .sticky-cta-mobile {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    gap: 0;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, .18);
  }

  .sticky-cta-mobile .btn {
    flex: 1;
    border-radius: 0;
    padding: 14px 8px;
    font-size: 15px;
    text-align: center;
    justify-content: center;
  }

  /* Añadir margen inferior al body en móvil para evitar que el footer quede tapado */
  body {
    padding-bottom: 56px;
  }
}