:root {
  /* Real brand colors, sampled from Company Fontaneros' own Google Business logo */
  --navy: #09194D;
  --navy-2: #122559;
  --blue: #2568D8;
  --blue-light: #59B4F2;
  --teal: #4FADAA;
  --gold: #E3A94F;
  --purple: #5A46E3;
  --pink: #B651BB;

  --white: #ffffff;
  --concrete: #EEF1F5;
  --concrete-dark: #DCE2EA;
  --steel: #5B6472;
  --text: #10182B;
  --text-muted: #5B6472;
  --text-inverse: #F3F6FA;

  --font-head: 'Space Grotesk', 'Arial', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  --container: 1240px;
  --section-pad: clamp(4.5rem, 8vw, 8rem);

  --radius-sm: 6px;
  --radius-md: 12px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--concrete);
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

section { position: relative; }

.section-pad { padding-block: var(--section-pad); }

h1, h2, h3, .h1, .h2, .h3 {
  font-family: var(--font-head);
  letter-spacing: -0.01em;
  line-height: 1.06;
  font-weight: 600;
}

.h1, h1 { font-size: clamp(2.5rem, 5.8vw, 4.6rem); font-weight: 600; }
.h2, h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 600; }
.h3, h3 { font-size: clamp(1.15rem, 1.9vw, 1.5rem); font-weight: 600; }

.lede {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 46ch;
  line-height: 1.6;
}

.section-head { display: flex; flex-direction: column; gap: 0.9rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { align-items: center; text-align: center; margin-inline: auto; }

/* ===== Brand ring mark (CSS conic-gradient, no raster asset needed) ===== */
.brand-mark {
  --mark-size: 40px;
  position: relative;
  width: var(--mark-size);
  height: var(--mark-size);
  flex-shrink: 0;
  border-radius: 50%;
  background: conic-gradient(from 200deg,
    var(--gold) 0deg 68deg, transparent 68deg 84deg,
    var(--blue-light) 84deg 152deg, transparent 152deg 168deg,
    var(--teal) 168deg 236deg, transparent 236deg 252deg,
    var(--purple) 252deg 320deg, transparent 320deg 332deg,
    var(--pink) 332deg 348deg, transparent 348deg 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 5px));
}
.brand-mark::after {
  content: 'CF';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: calc(var(--mark-size) * 0.4);
  letter-spacing: -0.04em;
  color: var(--navy);
  -webkit-mask: none;
  mask: none;
}
.brand-mark.is-light::after { color: var(--white); }
.brand-mark.is-large { --mark-size: 84px; }

/* Real logo photo (replaces the CSS-recreated ring above) */
img.brand-mark {
  width: var(--mark-size);
  height: var(--mark-size);
  object-fit: contain;
  background: none;
  -webkit-mask: none;
  mask: none;
  border-radius: 0;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  padding-block: 0.9rem;
  background: rgba(9, 25, 77, 0.0);
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}

.site-header.is-scrolled {
  background: rgba(9, 25, 77, 0.94);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  padding-block: 0.6rem;
}

.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand { display: flex; align-items: center; gap: 0.7rem; }

.brand-word {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
  line-height: 1.1;
}
.brand-word span { display: block; font-size: 0.64rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-light); }

.main-nav ul { display: flex; gap: 1.6rem; }

/* ===== Services dropdown (desktop: hover flyout / mobile drawer: static nested list) ===== */
.has-dropdown { position: relative; }
.has-dropdown > a { display: inline-flex; align-items: center; gap: 0.3rem; }
.has-dropdown > a .caret { width: 10px; height: 10px; transition: transform 0.2s ease; }
.has-dropdown:hover > a .caret,
.has-dropdown:focus-within > a .caret { transform: rotate(180deg); }

.dropdown-menu { list-style: none; margin: 0; padding: 0; }

.main-nav .has-dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 260px;
  background: var(--navy-2);
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 36px rgba(9,25,77,0.4);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 60;
}
.main-nav .has-dropdown:hover .dropdown-menu,
.main-nav .has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.main-nav .dropdown-menu a {
  display: block;
  padding: 0.65rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--text-inverse);
  opacity: 0.82;
  border-radius: 4px;
  white-space: nowrap;
}
.main-nav .dropdown-menu a:hover { opacity: 1; color: var(--blue-light); background: rgba(243,246,250,0.08); }

.mobile-drawer .dropdown-menu {
  padding-left: 1.1rem;
  margin: 0.4rem 0 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.mobile-drawer .dropdown-menu a { font-size: 0.85em; opacity: 0.75; }

.main-nav a {
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-inverse);
  opacity: 0.85;
  transition: opacity 0.2s ease, color 0.2s ease;
  position: relative;
}
.main-nav a:hover { opacity: 1; color: var(--blue-light); }
.main-nav a.is-active { opacity: 1; color: var(--blue-light); }
.main-nav a:focus-visible, .footer-nav a:focus-visible, .mobile-drawer a:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 4px;
  border-radius: 2px;
}

.header-cta { display: flex; align-items: center; gap: 0.9rem; }

.phone-pill {
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--text-inverse); font-family: var(--font-head); font-size: 0.92rem;
}
.phone-pill svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--blue-light); }

.nav-toggle { display: none; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: clamp(7.5rem, 14vw, 10rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
  color: var(--white);
  isolation: isolate;
}

.hero-media { position: absolute; inset: 0; z-index: -3; overflow: hidden; background: var(--navy); }
.hero-slide { position: absolute; inset: 0; opacity: 0; animation: heroSlide 20s infinite; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; animation: heroKenburns 20s infinite; }
.hero-slide:nth-child(1) { animation-delay: 0s; } .hero-slide:nth-child(1) img { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 5s; } .hero-slide:nth-child(2) img { animation-delay: 5s; }
.hero-slide:nth-child(3) { animation-delay: 10s; } .hero-slide:nth-child(3) img { animation-delay: 10s; }
.hero-slide:nth-child(4) { animation-delay: 15s; } .hero-slide:nth-child(4) img { animation-delay: 15s; }

@keyframes heroSlide { 0%, 2% { opacity: 0; } 4%, 22% { opacity: 1; } 27%, 100% { opacity: 0; } }
@keyframes heroKenburns { 0% { transform: scale(1.02); } 100% { transform: scale(1.14); } }

.hero-media::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(9,25,77,0.62) 0%, rgba(9,25,77,0.3) 32%, rgba(9,25,77,0.92) 100%),
    linear-gradient(90deg, rgba(9,25,77,0.8) 0%, rgba(9,25,77,0.15) 58%);
}

.hero-topscrim {
  position: absolute; inset: 0 0 auto 0; height: 180px;
  background: linear-gradient(180deg, rgba(9,25,77,0.85) 0%, rgba(9,25,77,0) 100%);
  z-index: -1; pointer-events: none;
}

.hero-orb {
  position: absolute; right: -8%; top: 10%; width: 52%; height: 90%;
  z-index: -1; opacity: 0.55;
  background: radial-gradient(circle at 60% 40%, rgba(89,180,242,0.5), transparent 55%),
              radial-gradient(circle at 30% 70%, rgba(90,70,227,0.45), transparent 55%);
  filter: blur(10px);
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide, .hero-slide img { animation: none; opacity: 1; }
  .hero-slide:not(:first-child) { display: none; }
}

.hero-content { max-width: 760px; }
.hero h1 { margin-bottom: 1.3rem; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--blue-light), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { color: rgba(243,246,250,0.88); max-width: 52ch; margin-bottom: 2.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.6rem; }

.trust-strip { display: flex; flex-wrap: wrap; gap: 1.8rem 2.6rem; padding-top: 1.8rem; border-top: 1px solid rgba(243,246,250,0.18); }
.trust-item { display: flex; align-items: center; gap: 0.7rem; }
.trust-item strong { font-family: var(--font-head); font-size: 1.4rem; letter-spacing: -0.01em; display: block; }
.trust-item span { font-size: 0.78rem; color: rgba(243,246,250,0.72); text-transform: uppercase; letter-spacing: 0.08em; }
.trust-stars { color: var(--gold); font-size: 1rem; letter-spacing: 0.1em; }

.scroll-cue {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: rgba(243,246,250,0.7); font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  font-family: var(--font-head);
}
.scroll-cue .line { width: 1px; height: 34px; background: linear-gradient(to bottom, rgba(243,246,250,0.9), transparent); animation: scrollcue 1.8s ease-in-out infinite; }
@keyframes scrollcue { 0% { transform: scaleY(0.3); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0.3); transform-origin: bottom; } }

/* ===== Marquee strip ===== */
.marquee-strip { background: var(--navy); color: var(--text-inverse); overflow: hidden; padding-block: 0.85rem; border-top: 1px solid rgba(255,255,255,0.08); border-bottom: 3px solid var(--blue-light); }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; gap: 3rem; }
.marquee-track span { font-family: var(--font-head); font-size: 0.85rem; letter-spacing: 0.02em; display: flex; align-items: center; gap: 3rem; white-space: nowrap; opacity: 0.88; }
.marquee-track span::after { content: '\2726'; color: var(--blue-light); margin-left: 3rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== Services ===== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--concrete-dark); border: 1px solid var(--concrete-dark); }
.service-card { background: var(--concrete); padding: 2.6rem 2.2rem; display: flex; flex-direction: column; gap: 1.1rem; transition: background 0.3s ease, transform 0.3s ease; position: relative; overflow: hidden; }
.service-card:hover { background: var(--white); transform: translateY(-3px); }
.service-card h3 { color: var(--text); }
.service-card p { color: var(--text-muted); font-size: 0.98rem; line-height: 1.6; }
.service-icon { width: 40px; height: 40px; color: var(--blue); }

.service-card.has-photo { padding: 0; gap: 0; }
.service-card.has-photo:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(9,25,77,0.14); }
.service-card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.service-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(.2,.7,.2,1); }
.service-card.has-photo:hover .service-card-media img { transform: scale(1.06); }
.service-card-media.is-icon { display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 30% 20%, rgba(89,180,242,0.35), transparent 60%), linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); }
.service-card-media.is-icon svg { width: 30%; height: 30%; color: var(--white); }
.service-card-body { padding: 1.6rem 1.7rem 1.9rem; display: flex; flex-direction: column; gap: 0.6rem; }

.service-card.is-extra { display: none; }
.services-grid.is-expanded .service-card.is-extra { display: flex; animation: fadeInUp 0.55s cubic-bezier(.2,.7,.2,1) both; }

.services-more { text-align: center; margin-top: 2.6rem; display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
.services-more-link { font-size: 0.88rem; color: var(--text-muted); }
.services-more-link a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.btn-toggle svg { transition: transform 0.3s ease; }
.btn-toggle.is-open svg { transform: rotate(180deg); }

.section-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.section-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.2; }
.section-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,25,77,0.86) 0%, rgba(9,25,77,0.96) 100%); }
.why .container, .contact .container { position: relative; z-index: 1; }

/* ===== Why / stats ===== */
.why { background: var(--navy); color: var(--text-inverse); }
.why .section-head .lede { color: rgba(243,246,250,0.72); }

.why-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.why-points { display: flex; flex-direction: column; gap: 1.6rem; }
.why-point { display: flex; gap: 1.1rem; align-items: flex-start; }
.why-point svg { width: 26px; height: 26px; color: var(--blue-light); flex-shrink: 0; margin-top: 0.2rem; }
.why-point h4 { font-family: var(--font-head); font-size: 1.05rem; letter-spacing: -0.01em; margin-bottom: 0.3rem; }
.why-point p { color: rgba(243,246,250,0.68); font-size: 0.95rem; }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid rgba(243,246,250,0.16); }
.stat-cell { padding: 2.2rem 1.2rem; text-align: center; border-right: 1px solid rgba(243,246,250,0.16); }
.stat-cell:last-child { border-right: none; }
.stat-cell strong { display: block; font-family: var(--font-head); font-size: clamp(2.2rem, 4vw, 3rem); color: var(--blue-light); line-height: 1; margin-bottom: 0.6rem; }
.stat-cell span { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(243,246,250,0.65); }

/* ===== Gallery ===== */
.gallery { background: var(--concrete); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 0.6rem; }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius-sm); cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(.2,.7,.2,1); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(9,25,77,0.85) 100%); opacity: 0; transition: opacity 0.3s ease; }
.gallery-item:hover::after { opacity: 1; }
.gallery-cap { position: absolute; left: 1.1rem; bottom: 1rem; right: 1rem; color: var(--white); font-family: var(--font-head); font-size: 0.85rem; opacity: 0; transform: translateY(8px); transition: opacity 0.3s ease, transform 0.3s ease; }
.gallery-item:hover .gallery-cap { opacity: 1; transform: translateY(0); }
.gallery-item.span-2 { grid-column: span 2; }
.gallery-item.span-2-row { grid-row: span 2; }

/* ===== Reviews ===== */
.reviews { background: var(--white); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.review-card { background: var(--white); border: 1px solid var(--concrete-dark); border-radius: var(--radius-md); box-shadow: 0 1px 2px rgba(9,25,77,0.06), 0 6px 18px rgba(9,25,77,0.05); padding: 1.6rem 1.7rem 1.5rem; display: flex; flex-direction: column; gap: 0.7rem; }
.review-head { display: flex; align-items: center; gap: 0.8rem; }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--white); font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; }
.review-who { flex-grow: 1; min-width: 0; }
.review-who strong { display: block; font-family: var(--font-body); font-size: 0.92rem; font-weight: 700; color: #202124; letter-spacing: 0; }
.review-who span { font-size: 0.76rem; color: var(--text-muted); }
.review-google-link { flex-shrink: 0; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background 0.2s ease; }
.review-google-link:hover { background: var(--concrete); }
.review-google-link svg { width: 18px; height: 18px; }
.review-stars-row { display: flex; align-items: center; gap: 0.55rem; }
.review-stars-row .stars { display: flex; gap: 2px; }
.review-stars-row .stars svg { width: 15px; height: 15px; color: #FBBC04; }
.review-stars-row time { font-size: 0.76rem; color: var(--text-muted); }
.review-card p.review-text { color: #3c4043; font-size: 0.93rem; line-height: 1.6; flex-grow: 1; }
.review-reply { font-size: 0.82rem; color: var(--text-muted); border-top: 1px solid var(--concrete-dark); padding-top: 0.7rem; margin-top: 0.2rem; }
.review-reply strong { color: var(--text); }
.review-source-link { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.78rem; font-weight: 700; color: #1a73e8; margin-top: 0.2rem; }
.review-source-link svg { width: 13px; height: 13px; }
.review-source-link:hover { text-decoration: underline; }

.reviews-foot { margin-top: 2.2rem; display: flex; align-items: center; gap: 1rem; justify-content: center; color: var(--text-muted); font-size: 0.92rem; }
.reviews-foot strong { color: var(--text); }

/* ===== Location ===== */
.zone-card { background: var(--white); border: 1px solid var(--concrete-dark); display: flex; flex-direction: column; }
.zone-map { height: 320px; width: 100%; filter: grayscale(0.2) contrast(1.05); border: 0; }
.zone-body { padding: 1.8rem 1.9rem 2rem; display: flex; flex-direction: column; gap: 0.7rem; }
.zone-body h3 { display: flex; align-items: center; gap: 0.6rem; }
.zone-body address { font-style: normal; color: var(--text-muted); font-size: 0.95rem; }
.zone-links { display: flex; gap: 1.2rem; margin-top: 0.5rem; flex-wrap: wrap; }
.zone-links a { font-size: 0.88rem; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 0.4rem; border-bottom: 2px solid var(--blue); padding-bottom: 2px; }
.zone-links svg { width: 15px; height: 15px; color: var(--blue); }

/* ===== Contact / CTA ===== */
.contact { background: var(--navy); color: var(--text-inverse); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); }
.contact-info { display: flex; flex-direction: column; gap: 1.8rem; }
.contact-info .lede { color: rgba(243,246,250,0.72); }
.contact-line { display: flex; align-items: center; gap: 0.9rem; }
.contact-line svg { width: 22px; height: 22px; color: var(--blue-light); flex-shrink: 0; }
.contact-line a, .contact-line span { font-size: 1.05rem; }
.contact-line strong { font-family: var(--font-head); letter-spacing: 0.02em; display: block; font-size: 0.72rem; text-transform: uppercase; color: rgba(243,246,250,0.55); margin-bottom: 0.15rem; }

.contact-form-wrap { background: var(--navy-2); padding: clamp(1.8rem, 3vw, 2.6rem); border: 1px solid rgba(243,246,250,0.1); border-radius: var(--radius-md); }
.form-row { display: flex; flex-direction: column; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(243,246,250,0.6); font-family: var(--font-head); }
.field input, .field textarea, .field select { background: rgba(243,246,250,0.05); border: 1px solid rgba(243,246,250,0.18); color: var(--white); padding: 0.85rem 1rem; border-radius: var(--radius-sm); font-size: 0.95rem; transition: border-color 0.2s ease, background 0.2s ease; }
.field input::placeholder, .field textarea::placeholder { color: rgba(243,246,250,0.35); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue-light); background: rgba(243,246,250,0.08); }
.field textarea { resize: vertical; min-height: 110px; }
.field-check { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.82rem; color: rgba(243,246,250,0.6); }
.field-check input { width: 16px; height: 16px; margin-top: 0.2rem; accent-color: var(--blue); }

/* ===== Footer ===== */
.site-footer { background: var(--navy-2); color: rgba(243,246,250,0.6); padding-block: 2.6rem; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 0.7rem; }
.footer-brand span { font-family: var(--font-head); color: var(--text-inverse); letter-spacing: -0.01em; font-size: 0.95rem; }
.footer-nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer-nav a { font-size: 0.85rem; }
.footer-nav a:hover { color: var(--blue-light); }
.footer-legal { font-size: 0.78rem; text-align: right; }
.footer-legal a { color: rgba(243,246,250,0.8); text-decoration: underline; text-underline-offset: 2px; }

/* ===== Responsive ===== */
@media (max-width: 1180px) {
  .main-nav, .header-cta .phone-pill { display: none; }
  .nav-toggle { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border: 1px solid rgba(243,246,250,0.3); border-radius: var(--radius-sm); color: var(--white); }
  .nav-toggle svg { width: 20px; height: 20px; }
}

@media (max-width: 980px) {
  .hero { align-items: flex-start; min-height: 100svh; padding-bottom: 3rem; }
  .scroll-cue { display: none; }
  .why-grid, .contact-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .gallery-item.span-2 { grid-column: span 2; }
  .reviews-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .stat-cell { border-right: none; border-bottom: 1px solid rgba(243,246,250,0.16); }
  .stat-cell:last-child { border-bottom: none; }
  .footer-legal { text-align: left; }
}

@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; }
  .hero-orb { display: none; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .site-header .header-cta .btn-primary { display: none; }
  .site-header { background: rgba(9,25,77,0.94); backdrop-filter: blur(6px); }
  .brand-word { font-size: 0.88rem; }
  .header-cta { gap: 0.6rem; }
}

/* ===================================================== */
/* ===== Sub-page banner ===== */
/* ===================================================== */
.page-hero { position: relative; padding-top: clamp(8rem, 16vw, 11rem); padding-bottom: clamp(3.5rem, 8vw, 5.5rem); background: var(--navy); color: var(--white); overflow: hidden; isolation: isolate; }
.page-hero-media { position: absolute; inset: 0; z-index: -2; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.3; }
.page-hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,25,77,0.65) 0%, rgba(9,25,77,0.95) 100%); }
.page-hero-orb { position: absolute; right: -10%; top: -10%; width: 46%; height: 80%; z-index: -1; opacity: 0.5; background: radial-gradient(circle, rgba(89,180,242,0.5), transparent 60%); filter: blur(14px); }
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-head); font-size: 0.78rem; letter-spacing: 0.04em; color: rgba(243,246,250,0.55); margin-bottom: 1.2rem; }
.breadcrumb a { color: rgba(243,246,250,0.8); }
.breadcrumb a:hover { color: var(--blue-light); }
.page-hero h1 { max-width: 20ch; }
.page-hero .lede { color: rgba(243,246,250,0.78); margin-top: 1rem; }
.page-hero-stats { display: flex; flex-wrap: wrap; gap: 2.2rem; margin-top: 2rem; }
.page-hero-stats .trust-item strong { color: var(--white); }

/* ===== Service detail blocks ===== */
.service-detail-list { display: flex; flex-direction: column; }
.service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--concrete-dark); }
.service-detail:last-child { border-bottom: none; }
.service-detail.is-reversed .service-detail-media { order: 2; }
.service-detail-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-md); }
.service-detail-media img { width: 100%; height: 100%; object-fit: cover; }
.service-detail-body h2 { margin-bottom: 1rem; }
.service-detail-body p { color: var(--text-muted); font-size: 1.02rem; line-height: 1.7; margin-bottom: 1.4rem; }
.service-detail-list-items { display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 1.6rem; }
.service-detail-list-items li { display: flex; align-items: center; gap: 0.7rem; font-size: 0.95rem; }
.service-detail-list-items svg { width: 18px; height: 18px; color: var(--blue); flex-shrink: 0; }

/* ===== Process steps ===== */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.process-step { text-align: left; position: relative; padding-top: 1rem; }
.process-step::before { content: ''; position: absolute; top: 0; left: 0; width: 40px; height: 3px; background: var(--blue); }
.process-step h4 { font-family: var(--font-head); font-size: 1.02rem; margin-bottom: 0.5rem; }
.process-step p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.55; }

/* ===== Before / after ===== */
.ba-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.ba-card { background: var(--white); border: 1px solid var(--concrete-dark); border-radius: var(--radius-md); overflow: hidden; }
.ba-card img { width: 100%; height: auto; object-fit: cover; }
.ba-card-body { padding: 1.3rem 1.5rem 1.6rem; }
.ba-card-body h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.ba-card-body p { color: var(--text-muted); font-size: 0.92rem; }

/* ===== Lightbox ===== */
.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(9,25,77,0.94); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox-img-wrap { max-width: min(90vw, 1100px); max-height: 85vh; position: relative; }
.lightbox-img-wrap img { max-width: 100%; max-height: 85vh; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox-cap { color: var(--text-inverse); text-align: center; margin-top: 1rem; font-family: var(--font-head); font-size: 0.85rem; }
.lightbox-close, .lightbox-prev, .lightbox-next { position: absolute; width: 46px; height: 46px; border-radius: 50%; background: rgba(243,246,250,0.1); border: 1px solid rgba(243,246,250,0.25); color: var(--white); display: flex; align-items: center; justify-content: center; transition: background 0.2s ease; }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--blue); border-color: var(--blue); }
.lightbox-close { top: -1rem; right: -1rem; }
.lightbox-prev { left: clamp(-3rem, -6vw, -1rem); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: clamp(-3rem, -6vw, -1rem); top: 50%; transform: translateY(-50%); }
.lightbox-close svg, .lightbox-prev svg, .lightbox-next svg { width: 20px; height: 20px; }

/* ===== Filter tabs (galería) ===== */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 2.4rem; }
.filter-tab { font-family: var(--font-head); font-size: 0.82rem; padding: 0.6rem 1.2rem; border: 1px solid var(--concrete-dark); border-radius: 999px; color: var(--text-muted); transition: all 0.2s ease; }
.filter-tab:hover { border-color: var(--blue); color: var(--blue); }
.filter-tab.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ===== Opiniones page extras ===== */
.rating-hero { display: flex; align-items: center; gap: 2.5rem; flex-wrap: wrap; background: var(--white); border: 1px solid var(--concrete-dark); border-radius: var(--radius-md); padding: 2.2rem 2.4rem; margin-bottom: 3rem; }
.rating-big { font-family: var(--font-head); font-size: 4rem; line-height: 1; color: var(--blue); }
.rating-side { display: flex; flex-direction: column; gap: 0.3rem; }
.rating-side .review-stars { font-size: 1.2rem; color: var(--gold); }
.rating-side span { color: var(--text-muted); font-size: 0.9rem; }
.rating-sources { display: flex; gap: 1.2rem; margin-left: auto; flex-wrap: wrap; }
.rating-source-card { text-align: center; padding: 0.9rem 1.3rem; border: 1px solid var(--concrete-dark); border-radius: var(--radius-sm); }
.rating-source-card strong { display: block; font-family: var(--font-head); font-size: 1.3rem; color: var(--blue); }
.rating-source-card span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }

/* ===== FAQ / accordion ===== */
.faq-list { max-width: 820px; margin-inline: auto; }
.accordion-item { border-bottom: 1px solid var(--concrete-dark); }
.accordion-trigger { width: 100%; display: flex; justify-content: space-between; align-items: center; padding-block: 1.3rem; font-family: var(--font-head); font-size: 1rem; text-align: left; }
.accordion-trigger svg { width: 18px; height: 18px; color: var(--blue); transition: transform 0.3s ease; flex-shrink: 0; margin-left: 1rem; }
.accordion-item.is-open .accordion-trigger svg { transform: rotate(45deg); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.accordion-panel p { padding-bottom: 1.3rem; color: var(--text-muted); font-size: 0.95rem; }

[data-counter] { font-variant-numeric: tabular-nums; }

/* ===== Related services strip ===== */
.related-services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; }
.related-service-card { display: flex; flex-direction: column; gap: 0.6rem; border: 1px solid var(--concrete-dark); border-radius: var(--radius-md); overflow: hidden; background: var(--white); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.related-service-card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(9,25,77,0.08); }
.related-service-media { aspect-ratio: 4/3; overflow: hidden; }
.related-service-media img { width: 100%; height: 100%; object-fit: cover; }
.related-service-card span { padding: 0 0.9rem 0.9rem; font-family: var(--font-head); font-size: 0.82rem; line-height: 1.25; }

@media (max-width: 980px) {
  .related-services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-detail { grid-template-columns: 1fr; }
  .service-detail.is-reversed .service-detail-media { order: 0; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .ba-grid { grid-template-columns: 1fr; }
  .rating-hero { flex-direction: column; align-items: flex-start; }
  .rating-sources { margin-left: 0; }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
  .lightbox-close { top: 1rem; right: 1rem; }
}

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

/* ===== Legal content ===== */
.legal-content { max-width: 70ch; }
.legal-content p { color: var(--text-muted); font-size: 1rem; line-height: 1.75; margin-bottom: 1.2rem; }
.legal-content h2 { font-size: 1.4rem; font-weight: 700; margin: 2.4rem 0 1rem; color: var(--text); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content ul { margin: 0 0 1.2rem; padding-left: 1.3rem; color: var(--text-muted); }
.legal-content li { margin-bottom: 0.5rem; line-height: 1.6; }
.legal-content a { color: var(--blue); text-decoration: underline; }
.legal-content strong { color: var(--text); }
.legal-updated { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 2.4rem; }
