/**
 * LIRE ENERGY - Complete Stylesheet
 * Energy Consulting & Efficiency Services
 * Modern, clean, professional, and fully responsive CSS
 */

/* ==========================================================================
   1. CSS VARIABLES & DESIGN SYSTEM
   ========================================================================== */
:root {
  /* Brand Colors */
  --color-green-dark: #2D8C3C;
  --color-green: #4CAF50;
  --color-green-light: #8BC34A;
  --color-green-surface: color-mix(in srgb, var(--color-green) 8%, var(--color-white));
  --color-green-border: color-mix(in srgb, var(--color-green) 18%, var(--color-white));
  --color-blue: #1976D2;
  --color-blue-dark: #0D47A1;
  --color-blue-light: #42A5F5;
  --color-orange: #FF9800;
  --color-orange-dark: #F57C00;
  --color-yellow: #FFC107;

  /* Neutrals & Surfaces */
  --color-bg: #FFFFFF;
  --color-bg-light: #F5F7FA;
  --color-bg-dark: #1B2A4A;
  --color-charcoal: #2C3E50;
  --color-text: #4A5568;
  --color-text-muted: #718096;
  --color-border: #E2E8F0;
  --color-white: #FFFFFF;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-headings: 'Poppins', sans-serif;

  /* Transitions & Animation Timing */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;

  /* Layout Constraints */
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--color-white);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  line-height: 1.7;
  font-weight: 400;
  background-color: var(--color-bg);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-headings);
  color: var(--color-charcoal);
  font-weight: 600;
  line-height: 1.3;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

h4 {
  font-size: 1.1rem;
}

p {
  margin-bottom: 1rem;
}

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

/* Honeypot anti-spam field */
.honeypot,
input[name="_gotcha"] {
  display: none !important;
}

/* ==========================================================================
   3. LAYOUT & UTILITY CLASSES
   ========================================================================== */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background-color: var(--color-bg-light);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.eyebrow {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--color-blue);
  margin-bottom: 0.85rem;
  font-weight: 600;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-blue);
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 1rem;
  line-height: 1.25;
  font-weight: 600;
  color: var(--color-charcoal);
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.lead {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #3A475A;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-blue);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  margin-top: auto;
  transition: var(--transition-fast);
  cursor: pointer;
}

.link-arrow:hover {
  color: var(--color-orange);
  border-color: var(--color-orange);
  transform: translateX(4px);
}

/* ==========================================================================
   4. HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: color-mix(in srgb, var(--color-white) 95%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition-fast);
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.home-page .site-header {
  background-color: var(--color-white);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.brand-logo {
  height: 80px;
  width: auto;
  max-width: 175px;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.brand-link:hover .brand-logo {
  transform: scale(1.02);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.25rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-charcoal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding: 0.5rem 0;
  display: inline-block;
  transition: var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-orange);
  transition: var(--transition-smooth);
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-blue);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: transparent;
  border: none;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-charcoal);
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   5. HERO SECTION
   ========================================================================== */
.hero {
  min-height: clamp(35rem, 72svh, 46rem);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
  background-color: var(--color-bg-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-bg picture {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.hero-bg picture.is-active {
  opacity: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: none;
  backface-visibility: hidden;
}

.hero::before {
  display: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--color-bg-dark) 88%, transparent) 0%,
    color-mix(in srgb, var(--color-bg-dark) 58%, transparent) 46%,
    color-mix(in srgb, var(--color-bg-dark) 8%, transparent) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  color: var(--color-white);
}

.hero-title {
  color: var(--color-white);
  max-width: 16ch;
  margin-bottom: 1.25rem;
  font-size: clamp(3rem, 4.6vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.hero-subtitle {
  color: var(--color-white);
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-eyebrow {
  margin-bottom: 1.5rem;
  color: var(--color-white);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ==========================================================================
   5.1. TRUST STRIP (DISTINTIVO MULTIMARCA & CREDIBILIDAD)
   ========================================================================== */
.trust-strip {
  background-color: var(--color-bg-light);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 0;
}

.trust-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--color-charcoal);
  font-weight: 500;
}

.trust-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(45, 140, 60, 0.12);
  color: var(--color-green-dark);
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.trust-item strong {
  color: var(--color-blue-dark);
  font-weight: 600;
}

/* ==========================================================================
   6. BUTTONS & UI CONTROLS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-size: 0.85rem;
  font-family: var(--font-primary);
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  border-radius: 6px;
  transition: var(--transition-smooth);
  border: 2px solid transparent;
  text-decoration: none;
  text-align: center;
  line-height: 1.2;
}

.btn-primary {
  background-color: var(--color-orange);
  color: var(--color-white);
  border-color: var(--color-orange);
}

.btn-primary:hover {
  background-color: var(--color-orange-dark);
  border-color: var(--color-orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 152, 0, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline-white {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--color-white);
  background-color: transparent;
}

.btn-outline-white:hover {
  background-color: var(--color-white);
  color: var(--color-charcoal);
  border-color: var(--color-white);
}

.btn-cta-white {
  background-color: var(--color-white);
  color: var(--color-blue-dark);
  border-color: var(--color-white);
  font-weight: 600;
}

.btn-cta-white:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.btn-cta-white:active {
  transform: translateY(0);
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  background-color: var(--color-orange);
  color: var(--color-white);
  border-color: var(--color-orange);
}

.btn-submit:hover {
  background-color: var(--color-orange-dark);
  border-color: var(--color-orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 152, 0, 0.3);
}

.btn-submit:active {
  transform: translateY(0);
}

/* ==========================================================================
   7. SERVICES SECTION (EDITORIAL ARQUITECTÓNICO)
   ========================================================================== */
.section-header-editorial {
  max-width: 820px;
  margin-bottom: 3.5rem;
}

.section-header-editorial .eyebrow {
  margin-bottom: 0.75rem;
}

.section-header-editorial .section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.services-intro,
.advantages-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  margin-bottom: 3rem;
}

.services-intro .section-header-editorial,
.advantages-intro .section-header-editorial {
  margin-bottom: 0;
}

.services-intro-image,
.advantages-intro-image {
  overflow: hidden;
  border-radius: 1rem;
  background-color: var(--color-bg-light);
}

.services-intro-image img,
.advantages-intro-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* Services V2: open modules with optional technical detail. */
.services-catalog-intro {
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  margin-bottom: 3.5rem;
}

.services-catalog-intro .services-intro-image img {
  aspect-ratio: 16 / 9;
  object-position: center 40%;
}

.services-audience {
  margin: 1.25rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.services-catalog { padding-bottom: 0; }

.services-catalog-band {
  padding: 0 0 clamp(2.75rem, 5vw, 4rem);
}

.services-catalog-band .catalog-service {
  padding: 1.5rem;
  border: 1px solid var(--color-green-border);
  border-radius: 1rem;
  background: var(--color-green-surface);
}

.catalog-service .service-symbol { width: 72px; height: 72px; margin-bottom: 1rem; }

.services-catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 1.5rem;
}

.catalog-service {
  position: relative;
  min-width: 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--color-border);
  scroll-margin-top: 6.75rem;
}

.catalog-service h2 {
  margin-bottom: 0.65rem;
  color: var(--color-charcoal);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.catalog-service-lead {
  margin-bottom: 1rem;
  color: var(--color-text);
  font-size: 0.9rem;
  line-height: 1.65;
}

.service-detail summary {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  width: 44px;
  border-radius: 50%;
  color: var(--color-blue-dark);
  font-size: 0.85rem;
  cursor: pointer;
  list-style: none;
}

.service-detail summary::-webkit-details-marker { display: none; }
.service-detail summary::after { content: '+'; font-size: 1.2rem; }
.service-detail[open] summary::after { content: '−'; }

.service-detail-content {
  padding: 0.4rem 0 0.75rem;
  color: var(--color-text);
  font-size: 0.85rem;
  line-height: 1.7;
}

.service-detail-content p { margin-bottom: 0.75rem; }
.service-detail-content ul { padding-left: 1.1rem; margin: 0; }
.service-detail-content li + li { margin-top: 0.4rem; }
.service-detail-content li::marker { color: var(--color-green-dark); }

.catalog-service-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  max-width: 100%;
  margin-top: 1rem;
  color: var(--color-blue);
  font-size: 0.85rem;
  font-weight: 600;
}

.catalog-service-link span { font-size: 1.2rem; }
.catalog-service-link:hover { color: var(--color-blue-dark); }
.service-detail summary:hover {
  color: var(--color-blue);
  background-color: var(--color-bg-light);
}

.catalog-service-link:focus-visible,
.service-detail summary:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .services-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 2.5rem; }
  .services-catalog-intro { gap: 2rem; }
}

@media (max-width: 768px) {
  .services-catalog-intro { grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 2.5rem; }
  .services-catalog-grid { gap: 1rem; }
  .services-catalog-band .catalog-service { padding: 1rem; }
  .catalog-service .service-symbol { width: 56px; height: 56px; }
  .service-detail summary { right: .35rem; }
  .catalog-service { padding-top: 1.25rem; }
  .service-detail summary { top: .5rem; }
  .catalog-service h2 { font-size: 1rem; }
  .catalog-service-lead, .service-detail-content { font-size: 0.8rem; }
  .service-detail summary, .catalog-service-link { font-size: 0.8rem; }
}

/* --- Metodología Operativa (Segura Palomar Style) --- */
.section-tight {
  padding: 3.5rem 0 1rem;
}

/* ==========================================================================
   8. ABOUT SECTION
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "content image"
    "stats image";
  column-gap: 4rem;
  align-items: center;
}

.about-content {
  grid-area: content;
  align-self: end;
}

.about-content .section-tag,
.about-content .section-title {
  text-align: left;
}

.about-content p {
  color: var(--color-text);
  margin-bottom: 0;
  line-height: 1.8;
}

.about-stats {
  grid-area: stats;
  align-self: start;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border);
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-headings);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-blue);
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

.about-image {
  grid-area: image;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--color-border);
}

.about-image img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  max-height: 480px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.about-image:hover img {
  transform: scale(1.03);
}

/* ==========================================================================
   9. ADVANTAGES SECTION
   ========================================================================== */
/* Advantages and workflow V2: short, open modules and shared iconography. */
.benefits-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem; padding-top: 1rem; }
.benefit-symbol { display: block; width: 80px; height: 80px; color: var(--color-blue); flex-shrink: 0; }
.benefit { padding: 1.75rem 1.5rem; border-radius: 1rem; background: var(--color-green-surface); border: 1px solid var(--color-green-border); }
.benefit .benefit-symbol { margin-bottom: 1.25rem; }
.benefit h2, .workflow-step h2 { font-size: 1.12rem; line-height: 1.4; margin-bottom: .65rem; }
.benefit p, .workflow-step p { font-size: .94rem; line-height: 1.75; color: var(--color-text); margin: 0; }
.workflow-heading { max-width: 760px; margin-bottom: 2.5rem; }
.workflow-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: center; }
.workflow-image { margin: 0; overflow: hidden; border-radius: 1rem; background: var(--color-bg-light); }
.workflow-image img { display: block; width: 100%; aspect-ratio: 6 / 5; object-fit: cover; }
.workflow-image figcaption { padding: 1.25rem 1.5rem; font-size: .88rem; line-height: 1.6; color: var(--color-blue-dark); }
.workflow-steps { list-style: none; margin: 0; padding: 2rem; border-radius: 1rem; background: var(--color-green-surface); border: 1px solid var(--color-green-border); }
.workflow-step { display: flex; align-items: flex-start; gap: 1.25rem; padding: 1.5rem 0; }
.workflow-step:first-child { padding-top: 0; }
.workflow-step:last-child { padding-bottom: 0; }
.workflow-step + .workflow-step { border-top: 1px solid var(--color-green-border); }
.workflow-label { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .12em; color: var(--color-green-dark); margin-bottom: .4rem; }
@media (max-width: 1100px) {
  .benefits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
  .workflow-layout { gap: 2rem; }
}
@media (max-width: 768px) {
  .workflow-layout { grid-template-columns: 1fr; }
  .workflow-image img { aspect-ratio: 16 / 9; }
  .benefit-symbol { width: 64px; height: 64px; }
  .benefits-grid { gap: 1.75rem 1.25rem; }
  .benefit h2 { font-size: 1rem; }
  .benefit p { font-size: .88rem; line-height: 1.65; }
  .benefit .benefit-symbol { margin-bottom: .75rem; }
  .workflow-steps { padding: 1.5rem; }
  .workflow-step { gap: 1rem; }
  .workflow-image figcaption { padding: 1rem; }
}
@media (max-width: 600px) {
  .benefits-grid { grid-template-columns: 1fr; }
  .benefit { display: grid; grid-template-columns: 56px 1fr; column-gap: 1rem; padding: 1.25rem; }
  .benefit .benefit-symbol { grid-row: span 2; width: 56px; height: 56px; }
  .workflow-step .benefit-symbol { width: 48px; height: 48px; }
}

/* ==========================================================================
   10. PREGUNTAS FRECUENTES (FAQ INTERACTIVO & ACCESIBLE)
   ========================================================================== */
.faq-container {
  max-width: 920px;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-item:hover {
  border-color: #CBD5E1;
  box-shadow: 0 4px 16px rgba(13, 27, 42, 0.04);
}

.faq-item.active {
  border-color: var(--color-blue);
  box-shadow: 0 8px 24px rgba(25, 118, 210, 0.08);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.35rem 1.75rem;
  background: transparent;
  border: none;
  font-family: var(--font-headings);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-charcoal);
  text-align: left;
  cursor: pointer;
  transition: var(--transition-fast);
  line-height: 1.45;
}

.faq-question:hover {
  color: var(--color-blue);
}

.faq-item.active .faq-question {
  color: var(--color-blue);
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--color-bg-light);
  color: var(--color-charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s ease, color 0.2s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background-color: var(--color-blue);
  color: var(--color-white);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-inner {
  padding: 0 1.75rem 1.5rem 1.75rem;
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.75;
  border-top: 1px dashed rgba(226, 232, 240, 0.8);
  margin-top: 0.25rem;
  padding-top: 1.25rem;
}

.faq-answer-inner p {
  margin: 0;
}

.faq-answer-inner strong {
  color: var(--color-charcoal);
}

.faq-cta-box {
  margin-top: 3.5rem;
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.faq-cta-content h4 {
  font-size: 1.2rem;
  color: var(--color-charcoal);
  margin-bottom: 0.35rem;
}

.faq-cta-content p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* ==========================================================================
   11. CALL TO ACTION BANNER (FOTOGRAFÍA PANORÁMICA & OVERLAY)
   ========================================================================== */
.cta-banner {
  position: relative;
  overflow: hidden;
  padding: 6.5rem 0;
  color: var(--color-white);
  text-align: center;
  background-color: var(--color-blue-dark);
}

.cta-banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.cta-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cta-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 71, 161, 0.88), rgba(27, 42, 74, 0.92));
  z-index: 2;
}

.cta-banner-content {
  position: relative;
  z-index: 3;
  max-width: 760px;
  margin: 0 auto;
}

.eyebrow-light {
  color: var(--color-orange);
  margin-bottom: 0.75rem;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.cta-banner h2 {
  color: var(--color-white);
  margin-bottom: 1rem;
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 700;
  line-height: 1.25;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 650px;
  margin: 0 auto 2.25rem;
  font-size: 1.12rem;
  line-height: 1.75;
}

/* ==========================================================================
   11. CONTACT SECTION & FORM
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info .section-tag,
.contact-info .section-title {
  text-align: left;
}

.contact-details {
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item svg {
  width: 24px;
  height: 24px;
  color: var(--color-blue);
  stroke: var(--color-blue);
  fill: none;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.contact-item strong {
  display: block;
  font-weight: 600;
  color: var(--color-charcoal);
  margin-bottom: 0.25rem;
}

.contact-item a,
.contact-item span {
  color: var(--color-text);
  font-size: 0.95rem;
  text-decoration: none;
}

.contact-item a:hover {
  color: var(--color-blue);
}

.contact-form-wrap {
  background-color: var(--color-white);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--color-border);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-charcoal);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: var(--font-primary);
  color: var(--color-charcoal);
  background-color: var(--color-white);
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-status {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  text-align: center;
  display: none;
}

.form-status.success {
  display: block;
  background-color: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #A5D6A7;
}

.form-status.error {
  display: block;
  background-color: #FFEBEE;
  color: #C62828;
  border: 1px solid #EF9A9A;
}

/* ==========================================================================
   12. FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.8);
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-logo {
  height: auto;
  width: 200px;
  max-width: 100%;
  margin-bottom: 1.25rem;
  background: var(--color-white);
  padding: 6px 14px;
  border-radius: 8px;
  display: inline-block;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  object-fit: contain;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer-grid h4 {
  color: var(--color-white);
  font-family: var(--font-headings);
  font-size: 1rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: var(--transition-fast);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--color-orange);
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-contact a:hover {
  color: var(--color-orange);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-legal a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* Contacto flotante por WhatsApp */
.whatsapp-float {
  position: fixed;
  right: calc(1.5rem + env(safe-area-inset-right, 0px));
  bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  z-index: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-width: 3.5rem;
  min-height: 3.5rem;
  padding: 0.85rem 1.25rem;
  border: 2px solid var(--color-white);
  border-radius: 999px;
  background-color: var(--color-green-dark);
  color: var(--color-white);
  box-shadow: 0 4px 18px color-mix(in srgb, var(--color-bg-dark) 25%, transparent);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float svg {
  flex-shrink: 0;
}

.whatsapp-float:hover {
  background-color: var(--color-charcoal);
  box-shadow: 0 6px 22px color-mix(in srgb, var(--color-bg-dark) 35%, transparent);
}

.whatsapp-float:focus-visible {
  outline: 3px solid var(--color-blue);
  outline-offset: 4px;
}

/* Espacio para que el botón no tape los últimos enlaces del pie. */
.site-footer {
  padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 600px) {
  .whatsapp-float {
    right: calc(1rem + env(safe-area-inset-right, 0px));
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    width: 3.5rem;
    height: 3.5rem;
    padding: 0.75rem;
  }

  .whatsapp-float-label {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float {
    transition: none;
  }
}

@media print {
  .whatsapp-float {
    display: none;
  }
}

/* ==========================================================================
   13. SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   14. RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Tablet Landscape / Small Desktop (<= 1024px) */
@media (max-width: 1024px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Menú desplegable en tablet y móvil. */
@media (max-width: 1024px) {
  .site-header {
    position: sticky;
  }

  .brand-logo {
    height: 64px;
  }

  .nav-menu {
    display: none;
  }

  .nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    padding: 2rem;
    max-height: calc(100vh - 97px);
    max-height: calc(100dvh - 97px);
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--color-border);
    gap: 0;
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }

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

  .nav-link {
    padding: 0.75rem 0;
    width: 100%;
    display: block;
  }

  .mobile-toggle {
    display: flex;
  }

}

/* Mobile & Small Tablets (<= 768px) */
@media (max-width: 768px) {
  .hero {
    min-height: 34rem;
    align-items: flex-end;
    padding: 15rem 0 2rem;
  }

  .hero-bg {
    height: 65%;
    /* Fade the photo itself so its lower edge never forms a visible seam. */
    -webkit-mask-image: linear-gradient(to bottom, var(--color-white) 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, var(--color-white) 60%, transparent 100%);
  }

  .hero-bg img,
  .hero:hover .hero-bg img {
    object-position: 60% center;
    filter: none;
    transform: none;
    transition: none;
  }

  .hero::before {
    display: none;
  }

  .hero-overlay {
    background: linear-gradient(180deg,
      transparent 0%,
      color-mix(in srgb, var(--color-bg-dark) 8%, transparent) 30%,
      color-mix(in srgb, var(--color-bg-dark) 82%, transparent) 58%,
      var(--color-bg-dark) 100%);
  }

  .hero-title {
    max-width: 20ch;
    font-size: clamp(1.85rem, 7.8vw, 2.4rem);
    margin-bottom: 0.9rem;
    text-wrap: balance;
  }

  .hero-subtitle {
    max-width: 36ch;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 1.4rem;
    color: var(--color-white);
  }

  .services-intro,
  .advantages-intro {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  .services-intro .lead,
  .advantages-intro .lead {
    font-size: 1rem;
    line-height: 1.65;
  }







  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-grid {
    grid-template-areas:
      "content"
      "image"
      "stats";
    gap: 1.5rem;
  }

  .about-image img {
    height: clamp(230px, 61vw, 260px);
    min-height: 0;
    max-height: none;
    object-position: center 40%;
  }

  .about-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 0;
    padding-top: 1.5rem;
  }

  .about-stats .stat-number {
    font-size: clamp(1.5rem, 6vw, 1.9rem);
  }

  .about-stats .stat-label {
    font-size: 0.75rem;
    line-height: 1.45;
  }



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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .faq-cta-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.75rem 1.5rem;
  }

  .trust-strip-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

/* Small Screens & Smartphones (<= 600px) */
@media (max-width: 600px) {
  .hero {
    min-height: 33rem;
    padding: 14rem 0 1.75rem;
  }

  .hero-actions .btn-primary {
    width: 100%;
  }

  .hero-actions .btn-outline-white {
    width: auto;
    min-height: 44px;
    padding: 0.6rem 0;
    border-color: transparent;
    gap: 0.5rem;
    background: transparent;
    color: var(--color-white);
  }

  .hero-actions .btn-outline-white:hover {
    text-decoration: underline;
    text-underline-offset: 0.25rem;
  }

  .trust-strip {
    padding: 0.85rem 0;
  }

  .trust-strip-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .trust-item {
    align-items: flex-start;
    gap: 0.4rem;
    font-size: 0.75rem;
    line-height: 1.45;
  }

  .trust-check {
    width: 17px;
    height: 17px;
  }

  .section {
    padding: 2.75rem 0;
  }

  .section-header-editorial {
    margin-bottom: 2rem;
  }



  .faq-question {
    padding: 1.15rem 1.25rem;
    font-size: 0.98rem;
  }

  .faq-answer-inner {
    padding: 0 1.25rem 1.25rem 1.25rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .contact-form-wrap {
    padding: 1.5rem;
  }
}

/* Páginas independientes */
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 1rem;
  z-index: 1100;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--color-blue-dark);
  color: var(--color-white);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.inner-page main > .section:first-child {
  padding-top: clamp(2.75rem, 6vw, 5rem);
}



.inner-page h1.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.2;
}

.home-overview {
  padding: clamp(3.5rem, 6vw, 5.5rem) 0 2rem;
}

.home-services-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
}

.home-services-heading .section-title {
  margin-bottom: 0;
  font-size: clamp(2rem, 3vw, 2.65rem);
  letter-spacing: -0.035em;
}

.home-all-services {
  display: inline-flex;
  gap: 1rem;
  align-items: center;
  padding-bottom: 0.4rem;
  color: var(--color-blue-dark);
  font-size: 0.9rem;
  white-space: nowrap;
}

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

.home-service {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 1.75rem 0.5rem;
  border-left: 1px solid var(--color-border);
  color: var(--color-text);
}

.home-service:first-child {
  border-left: 0;
  padding-left: 0;
}

.home-service:last-child {
  padding-right: 0;
}

.service-symbol {
  display: block;
  width: 88px;
  height: 88px;
  margin-bottom: 1.5rem;
  color: var(--color-blue-dark);
  transition: transform 0.25s ease;
}

.home-service h3 {
  margin-bottom: 0.75rem;
  color: var(--color-charcoal);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.home-service p {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  line-height: 1.75;
}

.home-service-arrow {
  margin-top: auto;
  color: var(--color-blue);
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.25s ease;
}

.home-service:hover h3,
.home-all-services:hover {
  color: var(--color-blue);
}

.home-service:hover .service-symbol {
  transform: translateY(-4px);
}

.home-service:hover .home-service-arrow {
  transform: translate(3px, -3px);
}

.home-service:focus-visible,
.home-all-services:focus-visible,
.nav-link:focus-visible {
  outline: 3px solid var(--color-blue);
  outline-offset: 6px;
}

.home-service-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--color-border);
}

.home-service-contact p {
  margin: 0;
  font-size: 0.95rem;
}

.home-service-contact strong {
  color: var(--color-charcoal);
  font-weight: 600;
}

.home-service-contact .link-arrow {
  margin: 0;
  font-size: 0.75rem;
}

@media (max-width: 1024px) {
  .home-services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 0; }
  .home-service:nth-child(odd) { border-left: 0; padding-left: 0; }
  .home-service:nth-child(even) { padding-right: 0; }
}

.page-contact {
  padding: 3rem 0;
  background: var(--color-blue-dark);
  color: var(--color-white);
}

.page-contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.page-contact h2 {
  color: var(--color-white);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.page-contact p {
  margin: 0;
}

.page-contact .btn {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .page-contact-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
}

/* Pilot V2: mobile composition and motion preferences. */
@media (max-width: 768px) {
  .hero-title { font-size: clamp(2.1rem, 7.7vw, 3rem); max-width: 18ch; }
  .hero-eyebrow { margin-bottom: 0.8rem; font-size: 0.6rem; letter-spacing: 0.12em; }
  .hero-subtitle { margin-bottom: 1.5rem; }
  .hero-actions { gap: 0.6rem 1rem; }

  .home-services-heading { align-items: flex-start; flex-direction: column; gap: 1rem; margin-bottom: 2.25rem; }
  .home-services-heading .section-title { font-size: 1.8rem; }
  .home-service { padding: 0 1rem 0; }
  .service-symbol { width: 64px; height: 64px; margin-bottom: 1rem; }
  .home-service h3 { font-size: 1rem; }
  .home-service p { font-size: 0.8rem; line-height: 1.65; }
  .home-service-contact { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg picture { transition: none; }
  .service-symbol, .home-service-arrow { transition: none; }
  .home-service:hover .service-symbol, .home-service:hover .home-service-arrow { transform: none; }
}

/* Keep the introduction and trust strip together within the first viewport.
   Let content grow on very short screens instead of clipping text or links. */
.home-cover {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 48px - 2rem - 1px);
  min-height: calc(100dvh - 48px - 2rem - 1px);
}
.home-cover .hero {
  flex: 1 0 auto;
  min-height: 0;
  padding: 3rem 0;
}
.home-cover .trust-strip { flex: 0 0 auto; }
@media (max-width: 1024px) {
  .home-cover {
    min-height: calc(100vh - 42px - 2rem - 1px);
    min-height: calc(100dvh - 42px - 2rem - 1px);
  }
}
@media (max-width: 768px) {
  /* A phone needs a compact composition rather than a stretched viewport. */
  .home-cover { min-height: 0; }
  .home-cover .hero {
    flex: none;
    min-height: clamp(28rem, 66svh, 35rem);
    padding: 11rem 0 1.5rem;
  }
  .home-cover .hero-bg { height: 75%; }
  .home-page .home-overview { padding-top: 2.5rem; }
  .home-page .whatsapp-float { bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); }

}
@media (max-width: 768px) and (max-height: 700px) {
  .home-cover .hero { min-height: 0; padding-top: 4rem; padding-bottom: 1rem; }
  .home-cover .hero-title { font-size: 2rem; }
  .home-cover .hero-subtitle { margin-bottom: 1rem; }
}

/* Keep WhatsApp above the trust strip on the full-screen introduction. */
@media (min-width: 769px) {
  .home-page .whatsapp-float { bottom: calc(6.5rem + env(safe-area-inset-bottom, 0px)); }
}

/* Service detail pilot: shared shell, brief content and a single final CTA. */
.service-page-link { color: var(--color-blue-dark); }
.service-page-link span { white-space: nowrap; font-size: .9em; }
.service-page-link:hover { text-decoration: underline; text-underline-offset: .2em; }
.service-page-link:focus-visible { outline: 2px solid var(--color-blue); outline-offset: 4px; }
.service-breadcrumb { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; font-size: .85rem; color: var(--color-text-muted); }
.service-breadcrumb a { color: var(--color-blue); text-decoration: underline; text-underline-offset: .2em; }
.service-page-intro .services-intro { margin-bottom: 0; }
.service-page-note { margin: 1.25rem 0 0; color: var(--color-green-dark); font-weight: 500; font-size: .92rem; }
.service-scope { background: var(--color-green-surface); }
.service-three-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; margin-top: 2.5rem; }
.service-three-columns h3 { font-size: 1.1rem; margin-bottom: .6rem; }
.service-three-columns p { font-size: .94rem; margin: 0; }
.service-three-columns .benefit-symbol { margin-bottom: 1rem; }
.service-review-steps { padding-left: 0; list-style: none; counter-reset: review-step; }
.service-review-steps li { counter-increment: review-step; border-top: 1px solid var(--color-border); padding-top: 1.25rem; }
.service-review-steps li::before { content: '0' counter(review-step); display: block; color: var(--color-green-dark); font-family: var(--font-headings); font-weight: 600; margin-bottom: .65rem; }
.service-questions { background: var(--color-bg-light); }
.service-questions-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 4rem; }
.service-faq details { border-bottom: 1px solid var(--color-border); padding: 1.15rem 0; }
.service-faq details:first-child { padding-top: 0; }
.service-faq summary { cursor: pointer; font-weight: 600; color: var(--color-charcoal); padding: .25rem 0; }
.service-faq summary:focus-visible { outline: 2px solid var(--color-blue); outline-offset: 4px; }
.service-faq p { padding-top: .75rem; font-size: .94rem; }
@media (max-width: 768px) {
  .service-three-columns { grid-template-columns: 1fr; gap: 1.75rem; margin-top: 1.75rem; }
  .service-questions-layout { grid-template-columns: 1fr; gap: 2rem; }
  .service-breadcrumb { margin-bottom: 1.5rem; }
}

/* White-to-photo introduction, preserving the complete horizontal scenes. */
.home-cover .hero-brand-layout {
  padding: 3rem 0;
  background: var(--color-white);
  overflow: hidden;
}
.hero-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 32%, var(--color-white) 58%);
  mask-image: linear-gradient(90deg, transparent 32%, var(--color-white) 58%);
}
.hero-brand-layout .hero-bg {
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: var(--color-white);
  mask-image: none;
  -webkit-mask-image: none;
}
.hero-brand-layout .hero-bg img { object-fit: contain; object-position: right center; }
.hero-brand-layout .hero-content {
  width: 45%;
  max-width: 480px;
  padding-right: 1.5rem;
  color: var(--color-text);
}
.hero-brand-logo { width: 340px; max-width: 100%; height: auto; margin-bottom: 1.75rem; }
.hero-brand-layout .hero-eyebrow { color: var(--color-blue); font-size: .63rem; letter-spacing: .14em; margin-bottom: 1rem; }
.hero-brand-layout .hero-title {
  color: var(--color-charcoal);
  font-size: clamp(2rem, 3.2vw, 3rem);
  max-width: 18ch;
  line-height: 1.18;
  letter-spacing: -.035em;
  margin-bottom: 1.75rem;
}
.hero-brand-layout .hero-actions { gap: 1rem 1.5rem; }
.hero-services-link { display: inline-flex; align-items: center; gap: .65rem; min-height: 44px; color: var(--color-blue-dark); font-weight: 600; font-size: .9rem; }
.hero-services-link:hover { text-decoration: underline; text-underline-offset: .25em; }
.hero-services-link:focus-visible { outline: 2px solid var(--color-blue); outline-offset: 4px; }
@media (max-width: 1024px) and (min-width: 769px) {
  .hero-brand-layout .hero-content { width: 48%; padding-right: 1.75rem; }

}
@media (max-width: 768px) {
  .home-cover .hero-brand-layout { display: block; padding: 1.75rem 0 clamp(8rem, 42vw, 12rem); min-height: 0; }
  .hero-brand-layout > .container { order: 0; }
  .hero-brand-layout .hero-content { width: 100%; max-width: none; padding: 0; }
  .hero-brand-logo { width: 240px; margin-bottom: 1.25rem; }
  .hero-brand-layout .hero-eyebrow { font-size: .58rem; margin-bottom: .75rem; }
  .hero-brand-layout .hero-title { max-width: 21ch; font-size: clamp(1.8rem, 6.7vw, 2.4rem); margin-bottom: 1.25rem; }
  .hero-brand-layout .hero-actions { display: flex; flex-direction: row; flex-wrap: wrap; gap: .75rem; align-items: stretch; position: relative; top: calc(clamp(8rem, 42vw, 12rem) - 1.75rem); }
  .hero-brand-layout .hero-actions .btn-primary,
  .hero-brand-layout .hero-services-link {
    width: auto;
    height: 48px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 .75rem;
    font-size: .8rem;
    letter-spacing: 0;
    line-height: 1.2;
    white-space: nowrap;
  }
  .hero-brand-layout .hero-services-link {
    background: var(--color-white);
    border: 2px solid var(--color-blue-dark);
    border-radius: 6px;
    gap: .4rem;
  }
  .hero-brand-layout .hero-services-link:hover { background: var(--color-bg-light); text-decoration: none; }
  .hero-brand-layout .hero-visual {
    inset: auto 0 0;
    height: auto;
    aspect-ratio: 3 / 2;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, var(--color-white) 35%);
    mask-image: linear-gradient(180deg, transparent 0%, var(--color-white) 35%);
  }
  .hero-brand-layout .hero-bg img { object-position: center; }
}
@media (max-width: 768px) and (max-height: 700px) {
  .home-cover .hero-brand-layout { padding-top: 1rem; }

  .hero-brand-logo { width: 190px; margin-bottom: .75rem; }
  .hero-brand-layout .hero-title { font-size: 1.5rem; margin-bottom: 1rem; }

}

/* Homepage identity lives in the hero; inner pages retain the header logo. */
.home-page .site-header .brand-link { display: none; }
.home-page .header-container { justify-content: flex-end; min-height: 80px; }
@media (max-width: 1024px) {
  .home-page .header-container { min-height: 74px; }
}

/* Blend the homepage navigation into the introduction, without a hard divider. */
.home-page .site-header {
  position: fixed;
  inset: 0 0 auto;
  background: linear-gradient(180deg, var(--color-white) 0%, color-mix(in srgb, var(--color-white) 90%, transparent) 60%, transparent 100%);
  border-bottom: 0;
}
.home-page .site-header.scrolled { background: var(--color-white); }
.home-page .home-cover { min-height: 100vh; min-height: 100dvh; }
.home-page .hero-brand-layout { padding-top: 5rem; }
@media (max-width: 768px) {
  .home-page .home-cover { min-height: 0; }
  .home-cover .hero-brand-layout { padding-top: calc(60px + .75rem); }
}
@media (max-width: 768px) and (max-height: 700px) {
  .home-cover .hero-brand-layout { padding-top: calc(60px + .5rem); }
}

@media (max-width: 1024px) {
  .home-page .nav-menu.active { max-height: calc(100dvh - 74px); }
}

/* Mobile homepage: compact navigation, leaving more room for the brand. */
@media (max-width: 768px) {
  .home-page .header-container { min-height: 60px; padding: .75rem 0; }
  .home-page .nav-menu.active { max-height: calc(100dvh - 60px); }
}
