/* CA Attic Solutions — LP Attic Insulation
   Custom CSS (lo que Tailwind no cubre limpio). Diseño base = Stitch/Figma 279:2017. */

/* Hero: foto de fondo + overlay dark-navy (legibilidad del texto blanco) */
.hero-bg {
  position: relative;
  background-image:
    linear-gradient(100deg, rgba(7,30,90,0.92) 0%, rgba(7,30,90,0.80) 45%, rgba(29,62,142,0.55) 100%),
    url('assets/hero-attic.png');
  background-size: cover;
  background-position: center;
}

.material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

/* Logo en footer oscuro: pastilla blanca para que el logo a color se lea */
.footer-logo {
  background: #ffffff;
  padding: 10px 14px;
  border-radius: 10px;
  display: inline-block;
}
.footer-logo img { height: 56px; width: auto; display: block; }

/* ---- Modales legales (Privacy / Terms) ---- */
.legal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(7,30,90,0.55);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.legal-overlay.open { display: flex; }
.legal-modal {
  background: #fff; max-width: 720px; width: 100%; max-height: 82vh;
  overflow-y: auto; border-radius: 16px; padding: 32px 32px 40px;
  box-shadow: 0 20px 60px rgba(7,30,90,0.30);
}
.legal-modal h3 { color: #072e8a; font-weight: 800; font-size: 24px; margin-bottom: 16px; }
.legal-modal h4 { color: #072e8a; font-weight: 700; margin: 18px 0 6px; }
.legal-modal p { color: #444652; font-size: 15px; line-height: 1.6; margin-bottom: 10px; }
.legal-close {
  float: right; background: #ae1b3f; color: #fff; border: none;
  border-radius: 8px; padding: 8px 16px; font-weight: 700; cursor: pointer;
}

/* ---- Consent banner ---- */
.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  background: #072e8a; color: #fff;
  display: flex; gap: 16px; align-items: center; justify-content: center;
  flex-wrap: wrap; padding: 14px 20px; font-size: 14px;
}
.consent a { color: #b6c4ff; text-decoration: underline; cursor: pointer; }
.consent button {
  background: #ae1b3f; color: #fff; border: none; border-radius: 8px;
  padding: 8px 20px; font-weight: 700; cursor: pointer;
}
.consent.hide { display: none; }

/* Estado de éxito del formulario */
.form-success {
  background: #e8f5ee; border: 1px solid #2D8A4E; color: #1f6e3d;
  border-radius: 12px; padding: 24px; text-align: center; font-weight: 600;
}
.form-error-msg { color: #ba1a1a; font-size: 13px; margin-top: 8px; text-align: center; }

/* ============ Efectos modernos (sutiles) ============ */

/* Scroll-reveal — JS-gated: sin JS, todo visible (no oculta contenido) */
.js-reveal .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js-reveal .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Hover: elevación en cards + zoom suave en fotos */
.lift { transition: transform .35s ease, box-shadow .35s ease; }
.lift:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(7,30,90,0.16); }
.img-zoom { overflow: hidden; }
.img-zoom img { transition: transform .6s cubic-bezier(.2,.7,.2,1); display: block; }
.img-zoom:hover img { transform: scale(1.06); }

/* CTAs: sheen (brillo que cruza) al hover */
.sheen { position: relative; overflow: hidden; }
.sheen::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg); transition: left .6s ease;
}
.sheen:hover::after { left: 130%; }

/* Glow suave pulsante en el badge "Up to 30%" */
.badge-glow { animation: badgeGlow 2.8s ease-in-out infinite; }
@keyframes badgeGlow {
  0%,100% { box-shadow: 0 10px 30px rgba(174,27,63,0.35); }
  50% { box-shadow: 0 10px 44px rgba(174,27,63,0.65); }
}

/* Subrayado animado de "Expert" en el hero */
.accent-underline { position: relative; }
.accent-underline::after {
  content: ""; position: absolute; left: 0; bottom: 4px; height: 6px; width: 100%;
  background: rgba(255,218,220,0.55); border-radius: 4px; transform: scaleX(0);
  transform-origin: left; animation: underlineIn 1.1s .35s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes underlineIn { to { transform: scaleX(1); } }

/* ============ Footer — firma QA Digital ============ */
.qa-credit { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.qa-credit img { height: 38px; width: auto; filter: brightness(0) invert(1); opacity: 0.92; }
.qa-credit span { font-size: 12px; letter-spacing: 0.04em; color: #c5c5d4; }
.qa-credit a { color: #ffffff; font-weight: 700; text-decoration: none; }
.qa-credit a:hover { text-decoration: underline; }

/* ============ Lead form — fix: inputs heredaban text-white del hero (texto invisible) ============ */
#lead-form input { color: #191c1d; }
#lead-form input::placeholder { color: #9ca3af; }
