/* ============================================
   Roofing Experts Services — QuoteRoof Styles
   Colores oficiales: #CB2C2E rojo + #1A1A1A oscuro + #D4AF37 dorado
   ============================================ */

/* Fuentes SELF-HOSTED (variable, subset latin — cubre español). Antes venían de
   fonts.googleapis.com y la cadena cross-origin castigaba el FCP móvil (sprint
   2026-08-07). Mismo origen = sin DNS/TLS extra. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('fonts/inter-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url('fonts/archivo-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --color-primary: #CB2C2E;
  --color-primary-dark: #A6171A;
  --color-primary-light: #E84A4C;
  --color-dark: #1A1A1A;
  --color-darker: #0F0F0F;
  --color-gold: #D4AF37;
  --color-gold-dark: #B8941F;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F7F7F8;
  --color-bg-dark: #1A1A1A;
  --color-text: #1A1A1A;
  --color-text-muted: #6B6B6B;
  --color-border: #E5E5E5;
  --color-success: #16A34A;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --font-display: 'Archivo', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ HEADER ============ */
.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  height: 48px;
  width: auto;
}

/* Brillo dorado que barre el LOGO (mismo gesto que el wordmark), enmascarado a la forma del logo */
.logo-shine {
  position: relative;
  display: inline-flex;
  line-height: 0;
}
.logo-shine::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg,
    transparent 38%,
    rgba(255, 224, 150, 0.95) 50%,
    rgba(212, 175, 55, 0.55) 57%,
    transparent 64%);
  background-size: 250% 100%;
  -webkit-mask: url(logo.png) left center / contain no-repeat;
          mask: url(logo.png) left center / contain no-repeat;
  animation: logo-shine 4.5s linear infinite;
  pointer-events: none;
}
@keyframes logo-shine {
  0%   { background-position: 130% 0; }
  100% { background-position: -130% 0; }
}

/* Brand lockup: logo de Roofing Experts + wordmark "QuoteRoof" juntos a la izquierda */
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 23px;
  letter-spacing: -0.5px;
  line-height: 1;
  /* texto con degradado rojo→dorado y un brillo que barre de un lado a otro */
  background: linear-gradient(100deg,
    var(--color-primary) 0%,
    var(--color-primary) 32%,
    #ffffff 45%,
    var(--color-gold) 55%,
    var(--color-primary) 70%,
    var(--color-primary) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: wordmark-shine 4.5s linear infinite;
}

.brand-wordmark sup {
  font-size: 11px;
  -webkit-text-fill-color: var(--color-primary);
  color: var(--color-primary);
  margin-left: 1px;
}

@keyframes wordmark-shine {
  0%   { background-position: 130% 0; }
  100% { background-position: -130% 0; }
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-phone {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 15px;
  animation: phone-sway 3.4s ease-in-out infinite;
  will-change: transform;
}

@keyframes phone-sway {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-4px); }
  75%      { transform: translateX(4px); }
}

.badge-trust {
  background: var(--color-gold);
  color: var(--color-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}

/* ============ HERO ============ */
.hero {
  background: linear-gradient(135deg, #0A0A0A 0%, #1A1A1A 50%, #261111 100%);
  color: white;
  padding: 100px 0 140px;
  position: relative;
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  align-items: center;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(203, 44, 46, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(203, 44, 46, 0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  opacity: 0.5;
  pointer-events: none;
}

.hero-bg-glow {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(203, 44, 46, 0.35) 0%, rgba(203, 44, 46, 0.10) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: glow-pulse 6s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  text-align: center;
  margin: 0 auto;
}

.hero-text {
  width: 100%;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 1;
}

.hero-scroll-arrow {
  font-size: 18px;
  animation: scroll-bounce 1.8s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.kicker {
  display: inline-block;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(203, 44, 46, 0.2) 100%);
  color: var(--color-gold);
  border: 1px solid rgba(212, 175, 55, 0.5);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 6.5vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, #FF4D50 0%, #CB2C2E 50%, #D4AF37 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero .lead {
  font-size: 19px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.55;
}

.hero .lead strong {
  color: var(--color-gold);
  font-weight: 700;
}

.hero .lead em {
  font-style: normal;
  color: var(--color-primary-light);
  font-weight: 600;
}

.hero-trust {
  display: flex;
  gap: 32px;
  margin-top: 28px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  flex-wrap: wrap;
  justify-content: center;
}

.hero-trust span {
  font-weight: 500;
}

/* ============ HERO VISUAL CARD ============ */
.hero-card {
  background: white;
  color: var(--color-text);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-2deg);
  transition: transform 0.3s ease;
}

.hero-card:hover {
  transform: rotate(0) scale(1.02);
}

.hero-card-header {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--color-text-muted);
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
}

.hero-stat span {
  font-size: 22px;
}

.hero-stat.highlight-stat {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(203, 44, 46, 0.3);
}

.hero-arrow {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 22px;
  margin: 4px 0;
}

/* ============ BUTTONS ============ */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  padding: 16px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  letter-spacing: 0.3px;
  gap: 8px;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 4px 14px rgba(203, 44, 46, 0.3);
  position: relative;
  isolation: isolate;
}

/* Borde animado: una luz dorada que recorre el contorno del botón */
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(110deg,
    transparent 25%,
    var(--color-gold) 44%,
    #ffffff 50%,
    var(--color-gold) 56%,
    transparent 75%);
  background-size: 300% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  animation: btn-border-sweep 3.5s linear infinite;
  pointer-events: none;
  z-index: 1;
}

.btn-primary:disabled::after { display: none; }

@keyframes btn-border-sweep {
  0%   { background-position: 150% 0; }
  100% { background-position: -150% 0; }
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(203, 44, 46, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  background: var(--color-text-muted);
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-secondary {
  background: white;
  color: var(--color-text);
  border: 2px solid var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-hero {
  font-size: 18px;
  padding: 18px 36px;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* ============ HOW IT WORKS ============ */
.how-it-works {
  padding: 100px 0;
  background: var(--color-bg-alt);
  text-align: center;
}

.section-kicker {
  display: inline-block;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.how-it-works h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 56px;
  letter-spacing: -0.5px;
}

.how-it-works h2 em {
  font-style: normal;
  color: var(--color-primary);
}

.step-icon {
  font-size: 36px;
  margin: 0 0 12px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step {
  background: white;
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  border-top: 4px solid var(--color-primary);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  margin-bottom: 20px;
}

.step h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 12px;
}

.step p {
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ============ WHY BAND (KPIs) ============ */
.why-band {
  background: var(--color-dark);
  color: white;
  padding: 50px 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  text-align: center;
}

.why-num {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  color: var(--color-gold);
  letter-spacing: -1px;
  line-height: 1;
}

.why-label {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ============ CTA BAND ============ */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.cta-band > .container {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.cta-band p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 580px;
  margin: 0 auto 32px;
}

.cta-band .btn-primary {
  background: white;
  color: var(--color-primary);
  border: 2px solid white;
}

.cta-band .btn-primary:hover {
  background: var(--color-dark);
  color: white;
  border-color: var(--color-dark);
}

/* ============ FAB STICKY ============ */
.fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 16px 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(203, 44, 46, 0.45), 0 2px 6px rgba(0, 0, 0, 0.15);
  z-index: 80;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
  animation: fab-bounce-in 0.6s ease 1.2s both;
}

.fab:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 32px rgba(203, 44, 46, 0.55), 0 2px 6px rgba(0, 0, 0, 0.2);
}

.fab:active {
  transform: translateY(0) scale(1);
}

.fab-icon {
  font-size: 18px;
}

@keyframes fab-bounce-in {
  0% { opacity: 0; transform: translateY(60px) scale(0.6); }
  60% { opacity: 1; transform: translateY(-8px) scale(1.05); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============ MODAL ============ */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal[aria-hidden="false"] {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: white;
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.3s ease;
}

.modal-result {
  max-width: 900px;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--color-bg-alt);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--color-primary);
  color: white;
}

.modal h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

.modal-subtitle {
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

/* ============ FORM ============ */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--color-text);
}

.form-group .req {
  color: var(--color-primary);
}

.form-group .optional {
  color: var(--color-text-muted);
  font-weight: 400;
  font-size: 12px;
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: var(--font-body);
  transition: border-color 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.form-disclaimer {
  font-size: 12px;
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
  padding: 12px 14px;
  border-radius: var(--radius);
  margin-top: 16px;
  line-height: 1.5;
}

.form-disclaimer strong {
  color: var(--color-text);
}

/* ============ SELECTOR 1/2 PISOS ============ */
.stories-chips {
  display: flex;
  gap: 10px;
}
.stories-chip {
  flex: 1;
  padding: 12px 14px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s;
}
.stories-chip:hover { border-color: var(--color-primary); }
.stories-chip.sel {
  border-color: var(--color-primary);
  background: rgba(200, 32, 43, 0.07);
  color: var(--color-primary);
}

/* ============ LOADING ============ */
.modal-loading {
  text-align: center;
  max-width: 420px;
}

.spinner {
  width: 64px;
  height: 64px;
  border: 6px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  margin: 0 auto 24px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.modal-loading h2 {
  margin-bottom: 12px;
}

#loadingStep {
  color: var(--color-text-muted);
  margin-bottom: 20px;
  min-height: 22px;
}

.progress-bar {
  height: 8px;
  background: var(--color-bg-alt);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-gold) 100%);
  width: 0%;
  transition: width 0.5s ease;
  border-radius: 999px;
}

/* ============ RESULT ============ */
.result-header {
  text-align: center;
  padding: 16px 0 24px;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 24px;
}

.result-header h2 {
  color: var(--color-text-muted);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.result-price {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 72px);
  font-weight: 900;
  color: var(--color-primary);
  letter-spacing: -2px;
  line-height: 1;
}

.result-name {
  margin-top: 12px;
  color: var(--color-text-muted);
  font-size: 16px;
}

.result-marketnote {
  margin: 16px auto 0;
  max-width: 540px;
  background: rgba(212, 175, 55, 0.10);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 10px;
  padding: 10px 16px;
  color: var(--color-text);
  font-size: 13.5px;
  line-height: 1.5;
}

.result-table small {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 12px;
}

/* ===== Montaje IA + zoom de imágenes ===== */
.img-zoom-wrap { position: relative; }
.img-zoom-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 17px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.img-zoom-btn:hover { background: var(--color-primary); transform: scale(1.08); }
#resultMapImage, #montageImage { cursor: zoom-in; display: block; width: 100%; border-radius: 10px; }

.btn-montage {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 13px 18px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #1a1a1a, #333);
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-montage:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); }

.montage-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--color-bg-alt);
  border-radius: 10px;
  font-size: 14px;
  color: var(--color-text-muted);
}
.spinner-sm { width: 24px; height: 24px; border-width: 3px; margin: 0; flex-shrink: 0; }

.montage-wrap { margin-top: 14px; }
.montage-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent, #D4AF37);
}
.montage-error {
  margin-top: 12px;
  padding: 12px 14px;
  background: #fff3f3;
  border: 1px solid var(--color-primary);
  border-radius: 9px;
  font-size: 13.5px;
  color: var(--color-text);
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  padding: 24px;
  cursor: zoom-out;
}
.lightbox[aria-hidden="false"] { display: flex; }
.lightbox img {
  max-width: 95vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.6);
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}
.lightbox-close:hover { background: var(--color-primary); }

/* Encabezado de marca solo visible al imprimir/guardar PDF */
.print-brand { display: none; }

/* ============ PRINT / PDF ============
   Al "Imprimir / Guardar PDF" desde el resultado, imprimimos SOLO el
   presupuesto, limpio y con marca — no la landing completa. */
@media print {
  @page { margin: 14mm; }

  /* Ocultar todo el sitio y los otros modales */
  .site-header, .hero, .how-it-works, .why-band, .cta-band,
  .fab, .site-footer, #quoteModal, #loadingModal, #errorModal,
  .hero-scroll-hint { display: none !important; }

  body { background: #fff !important; }

  /* El modal de resultado pasa a documento estático */
  #resultModal[aria-hidden="false"] { position: static !important; display: block !important; padding: 0 !important; }
  #resultModal .modal-backdrop { display: none !important; }
  #resultModal .modal-content {
    position: static !important;
    box-shadow: none !important;
    max-width: 100% !important;
    width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
    border-radius: 0 !important;
    padding: 0 !important;
    animation: none !important;
    transform: none !important;
  }
  .modal-close, .result-actions, .result-cta h3,
  #montageBtn, #montageLoading, #montageError, .img-zoom-btn, #lightbox { display: none !important; }

  /* Encabezado de marca */
  .print-brand {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--color-primary);
  }
  .print-brand img { height: 38px; width: auto; }
  .print-brand span { font-size: 11px; color: #555; text-align: right; }

  /* Layout en una columna para PDF */
  .result-grid { display: block !important; }
  .result-image-container, .result-details { width: 100% !important; max-width: 100% !important; }
  #resultMapImage { max-width: 360px; display: block; margin: 0 auto 10px; }
  .result-price { color: #CB2C2E !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .result-marketnote, .result-disclaimer, .result-cta {
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
    page-break-inside: avoid;
  }
  .result-cta { margin-top: 12px; }
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}

.result-image-container h3,
.result-details h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 14px;
}

.result-image-container img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: block;
}

.result-image-caption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--color-text-muted);
  text-align: center;
}

.result-table {
  width: 100%;
  border-collapse: collapse;
}

.result-table tr {
  border-bottom: 1px solid var(--color-border);
}

.result-table th, .result-table td {
  text-align: left;
  padding: 10px 0;
  font-size: 14px;
}

.result-table th {
  color: var(--color-text-muted);
  font-weight: 500;
}

.result-table td {
  text-align: right;
  font-weight: 600;
}

.result-table .total-row {
  border-top: 2px solid var(--color-dark);
  border-bottom: none;
}

.result-table .total-row th {
  color: var(--color-text);
  font-weight: 700;
  font-size: 15px;
  padding-top: 14px;
}

.result-table .total-row td {
  color: var(--color-primary);
  font-size: 22px;
  font-family: var(--font-display);
  padding-top: 14px;
}

/* Market Price (total) que ve el cliente — sin desglose ×$10/×$13 */
.result-marketbox {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius);
  background: rgba(200, 32, 43, 0.05);
}
.result-marketbox-label {
  font-weight: 700;
  font-size: 15px;
  color: var(--color-text);
}
.result-marketbox-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  color: var(--color-primary);
}

.result-cta {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-darker) 100%);
  color: white;
  padding: 24px;
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
}

.result-cta h3 {
  font-family: var(--font-display);
  margin-bottom: 10px;
  font-size: 20px;
}

.result-cta p {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
}

.result-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.result-disclaimer {
  font-size: 12px;
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
  padding: 14px 16px;
  border-radius: var(--radius);
  line-height: 1.5;
}

.result-disclaimer strong {
  color: var(--color-text);
}

/* ============ ERROR ============ */
.modal-error {
  text-align: center;
  max-width: 480px;
}

.error-icon {
  font-size: 56px;
  margin-bottom: 16px;
}

.modal-error p {
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--color-dark);
  color: white;
  padding: 60px 0 0;
  margin-top: 80px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  height: 40px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-bottom: 8px;
}

.footer-section h4 {
  font-family: var(--font-display);
  margin-bottom: 14px;
  font-size: 16px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  padding: 4px 0;
}

.footer-socials-title {
  margin-top: 20px;
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.footer-socials a:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.footer-socials svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-credit {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-credit:hover,
.footer-credit:focus-visible {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.75);
}

/* Accesibilidad: respetar a quien prefiere menos movimiento */
@media (prefers-reduced-motion: reduce) {
  .brand-wordmark,
  .logo-shine::after,
  .header-phone,
  .btn-primary::after,
  .hero-bg-glow,
  .hero-scroll-arrow {
    animation: none !important;
  }
  .brand-wordmark {
    -webkit-text-fill-color: var(--color-primary);
    color: var(--color-primary);
  }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 880px) {
  .hero {
    padding: 60px 0 80px;
    min-height: auto;
  }
  .hero-trust {
    gap: 16px;
  }
  .hero-scroll-hint {
    display: none;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .result-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .header-nav {
    gap: 8px;
  }
  .brand-wordmark {
    font-size: 18px;
  }
  .header-phone, .badge-trust {
    display: none;
  }
  .modal-content {
    padding: 28px 20px;
  }
  .fab {
    padding: 14px 18px;
    font-size: 14px;
    bottom: 16px;
    right: 16px;
  }
  .fab-text {
    display: none;
  }
  .fab-icon {
    font-size: 22px;
  }
}

@media (max-width: 540px) {
  .fab {
    padding: 14px;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    justify-content: center;
  }
}

/* ============ PRINT (for PDF) ============ */
@media print {
  .site-header, .site-footer, .how-it-works, .modal-close, .result-actions, .result-cta {
    display: none !important;
  }
  .modal {
    position: static;
    display: block !important;
    padding: 0;
  }
  .modal-backdrop {
    display: none;
  }
  .modal-content {
    box-shadow: none;
    max-width: 100%;
    page-break-inside: avoid;
  }
}

/* Google Places Autocomplete dropdown — debe quedar siempre sobre el modal */
.pac-container {
  z-index: 10000 !important;
  border-radius: 12px;
  margin-top: 4px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
  font-family: 'Inter', sans-serif;
}
.pac-item {
  padding: 10px 14px;
  cursor: pointer;
}
.pac-item:hover {
  background: #fdecec;
}

/* Google PlaceAutocompleteElement (New API 2025+) — wrapper y estilos */
.address-wrapper {
  width: 100%;
  color-scheme: light;
}
.address-wrapper gmp-place-autocomplete {
  width: 100%;
  display: block;
  color-scheme: light only;
  background: #fff;
  border-radius: 12px;
  --gmpx-color-surface: #ffffff;
  --gmpx-color-on-surface: #1a1a1a;
  --gmpx-color-on-surface-variant: #5f6368;
  --gmpx-color-primary: #CB2C2E;
  --gmpx-color-outline: #e0e0e0;
  --gmpx-font-family-base: 'Inter', sans-serif;
}
.address-wrapper gmp-place-autocomplete input {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  border: 1.5px solid #e0e0e0;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  background: #fff;
  color: #1a1a1a;
  box-sizing: border-box;
}
.address-wrapper gmp-place-autocomplete input:focus {
  outline: none;
  border-color: #CB2C2E;
  box-shadow: 0 0 0 3px rgba(203, 44, 46, 0.12);
}
