/* ============================================================
   Paneles Solares Puebla, "Sunlit clean energy"
   Midnight blue + solar amber on warm cream. Trust-first.
   ============================================================ */

:root {
  /* Color */
  --navy-900: #06192e;
  --navy-800: #0a2540;
  --navy-700: #123459;
  --amber: #ffb020;
  --amber-600: #f59300;
  --amber-300: #ffd98a;
  --cream: #fbf6ec;
  --cream-200: #f3ead8;
  --ink: #0f2235;
  --muted: #5d6b7a;
  --white: #ffffff;
  --line: rgba(15, 34, 53, 0.10);
  --line-strong: rgba(15, 34, 53, 0.16);

  /* Type */
  --display: "Bricolage Grotesque", Georgia, serif;
  --body: "Hanken Grotesk", system-ui, sans-serif;

  /* Space + form */
  --maxw: 1140px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(6, 25, 46, 0.06), 0 2px 8px rgba(6, 25, 46, 0.06);
  --shadow-md: 0 10px 30px rgba(6, 25, 46, 0.10);
  --shadow-lg: 0 24px 60px rgba(6, 25, 46, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
}

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; color: var(--navy-900); margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.18rem; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
a { color: inherit; }
img { max-width: 100%; display: block; height: auto; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
section { padding-block: clamp(56px, 8vw, 104px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--body); font-weight: 700; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--amber-600);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--amber); border-radius: 2px; }

.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head p { color: var(--muted); font-size: 1.06rem; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--body); font-weight: 700; font-size: 1rem;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
}
.btn:focus-visible { outline: 3px solid var(--navy-700); outline-offset: 3px; }
.btn-primary { background: var(--amber); color: var(--navy-900); box-shadow: 0 8px 22px rgba(255, 176, 32, .38); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(255, 176, 32, .5); background: var(--amber-300); }
.btn-ghost { background: transparent; color: var(--navy-900); border-color: var(--line-strong); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--navy-900); }
.btn-lg { padding: 18px 34px; font-size: 1.06rem; }
.btn svg { width: 1.05em; height: 1.05em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 236, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.16rem; color: var(--navy-900); letter-spacing: -0.01em; }
.brand .sun { width: 34px; height: 34px; flex: none; }
.header-cta { display: inline-flex; align-items: center; gap: 14px; }
.header-phone { display: none; font-weight: 700; color: var(--navy-900); text-decoration: none; }
@media (min-width: 720px) { .header-phone { display: inline; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: clip; padding-block: clamp(48px, 7vw, 84px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(820px 520px at 78% -8%, rgba(255, 176, 32, 0.30), transparent 60%),
    radial-gradient(600px 480px at 6% 110%, rgba(18, 52, 89, 0.10), transparent 60%),
    var(--cream);
}
.hero-grid { display: grid; gap: clamp(34px, 5vw, 60px); align-items: center; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }
.hero-copy { max-width: 600px; }
.hero h1 { margin-top: .35em; }
.hero h1 .hl { color: var(--amber-600); }
.hero-sub { font-size: 1.18rem; color: #36485a; max-width: 32em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px 26px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; font-weight: 600; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .tick { color: var(--amber-600); }

.hero-media { position: relative; }
.hero-media img { width: 100%; border-radius: 22px; box-shadow: var(--shadow-lg); object-fit: cover; aspect-ratio: 4 / 5; }
.savings-badge {
  position: absolute; left: -14px; bottom: 26px;
  background: var(--navy-900); color: var(--white);
  border-radius: 18px; padding: 16px 20px; box-shadow: var(--shadow-md);
  display: flex; align-items: baseline; gap: 10px;
}
.savings-badge b { font-family: var(--display); font-size: 2rem; color: var(--amber); line-height: 1; }
.savings-badge small { font-size: .8rem; color: #c4d2e0; max-width: 9em; line-height: 1.25; }

/* ---------- Quote form ---------- */
.quote { background: var(--navy-900); color: var(--white); }
.quote .wrap { display: grid; gap: clamp(28px, 4vw, 52px); align-items: center; }
@media (min-width: 880px) { .quote .wrap { grid-template-columns: 1fr 1fr; } }
.quote h2 { color: var(--white); }
.quote .lead { color: #c6d4e2; font-size: 1.08rem; }
.quote ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.quote ul li { display: flex; gap: 11px; align-items: flex-start; color: #dbe6f1; }
.quote ul .tick { color: var(--amber); flex: none; margin-top: 3px; }
.form-card { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow-lg); }
.field { margin-bottom: 15px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font-family: var(--body); font-size: 1rem; color: var(--ink);
  padding: 13px 15px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: #fcfdff; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--amber-600); box-shadow: 0 0 0 3px rgba(255, 176, 32, .25); }
.field textarea { resize: vertical; min-height: 92px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#form-status { min-height: 1.2em; margin: 10px 0 0; font-weight: 600; font-size: .94rem; }
.form-note { font-size: .8rem; color: var(--muted); margin-top: 12px; }
.form-note a { color: var(--navy-700); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--cream-200); color: var(--amber-600); margin-bottom: 16px; }
.card .ico svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- Proceso (steps) ---------- */
.steps { counter-reset: step; display: grid; gap: 20px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 28px 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--amber-600);
  display: block; margin-bottom: 10px;
}
.step h3 { font-size: 1.06rem; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Zonas ---------- */
.zonas { background: var(--cream-200); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: var(--white); border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 17px; font-weight: 600; font-size: .94rem; }

/* ---------- Confianza band ---------- */
.trust-band { display: grid; gap: 18px; }
@media (min-width: 760px) { .trust-band { grid-template-columns: repeat(4, 1fr); } }
.trust-item { text-align: center; padding: 22px 16px; }
.trust-item .ico { margin: 0 auto 12px; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 176, 32, .16); color: var(--amber-600); }
.trust-item .ico svg { width: 26px; height: 26px; }
.trust-item strong { display: block; font-family: var(--display); font-size: 1.04rem; color: var(--navy-900); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 22px 44px 22px 2px; position: relative;
  font-family: var(--display); font-weight: 700; font-size: 1.12rem; color: var(--navy-900);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; color: var(--amber-600); font-family: var(--body); transition: transform .25s var(--ease);
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-item p { color: var(--muted); padding: 0 44px 22px 2px; margin: 0; }

/* ---------- Final CTA ---------- */
.cta-final { position: relative; overflow: clip; background: var(--navy-900); color: var(--white); text-align: center; }
.cta-final::before { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(700px 360px at 50% -30%, rgba(255, 176, 32, .35), transparent 60%); }
.cta-final .wrap { position: relative; z-index: 1; }
.cta-final h2 { color: var(--white); }
.cta-final p { color: #c6d4e2; max-width: 40em; margin-inline: auto; font-size: 1.1rem; }
.cta-final .hero-actions { justify-content: center; }
.cta-final .btn-ghost { color: var(--white); border-color: rgba(255, 255, 255, .35); }
.cta-final .btn-ghost:hover { border-color: var(--white); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #aebed0; padding-block: 52px 30px; border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-grid { display: grid; gap: 26px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer .brand { color: var(--white); margin-bottom: 12px; }
.site-footer a { color: #c6d4e2; text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-col h4 { font-family: var(--display); color: var(--white); font-size: 1rem; margin: 0 0 12px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-phone { font-family: var(--display); font-size: 1.3rem; color: var(--amber) !important; font-weight: 700; }
.disclaimer { margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; color: #8499ad; }
.disclaimer .legal { margin-top: 8px; }

/* ---------- Legal pages ---------- */
.legal-page { max-width: 760px; }
.legal-page h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.legal-page h2 { font-size: 1.3rem; margin-top: 1.6em; }
.legal-page p, .legal-page li { color: #34465a; }
.back-link { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; color: var(--navy-700); text-decoration: none; margin-bottom: 24px; }

/* ---------- Entrance animation ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; animation: rise .7s var(--ease) forwards; }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .15s; } .d3 { animation-delay: .25s; }
.d4 { animation-delay: .35s; } .d5 { animation-delay: .45s; }

/* ============================================================
   MULTI-PAGE EXTENSIONS (nav, breadcrumb, prose, testimonials)
   ============================================================ */

/* ---------- Primary nav ---------- */
.main-nav { display: none; }
@media (min-width: 900px) {
  .main-nav { display: flex; align-items: center; gap: 6px; }
  .main-nav a {
    text-decoration: none; color: var(--ink); font-weight: 600; font-size: .98rem;
    padding: 9px 14px; border-radius: 999px; transition: background .15s, color .15s;
  }
  .main-nav a:hover { background: var(--cream-200); color: var(--navy-900); }
  .main-nav a[aria-current="page"] { color: var(--amber-600); background: rgba(255, 176, 32, .14); }
}
.main-nav a:focus-visible { outline: 3px solid var(--navy-700); outline-offset: 2px; }

/* Mobile nav toggle */
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--white); color: var(--navy-900); cursor: pointer;
}
.nav-toggle:focus-visible { outline: 3px solid var(--navy-700); outline-offset: 2px; }
.nav-toggle svg { width: 22px; height: 22px; }
@media (min-width: 900px) { .nav-toggle { display: none; } }

.mobile-nav {
  display: none; border-top: 1px solid var(--line);
  background: rgba(251, 246, 236, 0.97); backdrop-filter: saturate(140%) blur(12px);
}
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 10px 22px 18px; display: grid; gap: 4px; }
.mobile-nav a {
  display: block; text-decoration: none; color: var(--navy-900); font-weight: 600;
  padding: 13px 12px; border-radius: 12px; min-height: 44px;
}
.mobile-nav a:hover { background: var(--cream-200); }
.mobile-nav a[aria-current="page"] { color: var(--amber-600); }
@media (min-width: 900px) { .mobile-nav { display: none !important; } }

.header-actions { display: inline-flex; align-items: center; gap: 12px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { background: var(--cream-200); border-bottom: 1px solid var(--line); }
.breadcrumb ol {
  list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 0; padding: 14px 0; font-size: .9rem; color: var(--muted);
}
.breadcrumb a { color: var(--navy-700); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb li:not(:last-child)::after { content: "›"; margin-left: 8px; color: var(--muted); }
.breadcrumb [aria-current="page"] { color: var(--ink); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { position: relative; overflow: clip; padding-block: clamp(40px, 6vw, 68px); }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(700px 440px at 82% -10%, rgba(255, 176, 32, 0.24), transparent 60%), var(--cream);
}
.page-hero .eyebrow { margin-bottom: 10px; }
.page-hero h1 { max-width: 16em; }
.page-hero .lead { font-size: 1.16rem; color: #36485a; max-width: 40em; margin-top: 6px; }
.page-hero .hero-actions { margin-top: 24px; }

/* ---------- Prose / article layout ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 1.6em; }
.prose h3 { font-size: 1.22rem; margin-top: 1.5em; }
.prose p, .prose li { color: #34465a; font-size: 1.05rem; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1rem; display: grid; gap: 8px; }
.prose ul li::marker { color: var(--amber-600); }
.prose a { color: var(--navy-700); font-weight: 600; }
.prose a:hover { text-decoration: underline; }
.prose figure { margin: 1.6em 0; }
.prose .lead-p { font-size: 1.18rem; color: #2b3c4d; }

.article-meta { color: var(--muted); font-size: .92rem; font-weight: 600; margin-bottom: 18px; }

/* Two-column layout for service/info pages */
.page-body { padding-block: clamp(44px, 6vw, 76px); }
.layout-2col { display: grid; gap: clamp(34px, 5vw, 56px); align-items: start; }
@media (min-width: 980px) { .layout-2col { grid-template-columns: 1fr 360px; } }
.sidebar { position: sticky; top: 88px; display: grid; gap: 20px; }

/* ---------- Media treatments ---------- */
.media-rounded { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); object-fit: cover; }
.media-wide { aspect-ratio: 16 / 7; }
.media-4x3 { aspect-ratio: 4 / 3; }
.media-banner { aspect-ratio: 16 / 5; }
figure figcaption { color: var(--muted); font-size: .86rem; margin-top: 8px; text-align: center; }

/* ---------- Feature list (what's included) ---------- */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 11px; align-items: flex-start; color: #34465a; }
.check-list .tick { color: var(--amber-600); flex: none; margin-top: 4px; }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; gap: 20px; }
@media (min-width: 760px) { .testi-grid { grid-template-columns: repeat(3, 1fr); } }
.testi-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 14px;
}
.testi-stars { color: var(--amber); letter-spacing: 2px; font-size: 1.05rem; }
.testi-card blockquote { margin: 0; color: #34465a; font-size: 1rem; line-height: 1.6; }
.testi-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testi-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: var(--navy-800); color: var(--amber); display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 1.1rem;
}
.testi-name { font-weight: 700; color: var(--navy-900); font-size: .96rem; }
.testi-loc { color: var(--muted); font-size: .85rem; }

/* ---------- Stat callouts ---------- */
.stat-row { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; text-align: center; box-shadow: var(--shadow-sm);
}
.stat b { display: block; font-family: var(--display); font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--amber-600); line-height: 1; }
.stat span { display: block; color: var(--muted); font-size: .9rem; margin-top: 8px; }

/* ---------- Inline service cards that link ---------- */
.card-link { text-decoration: none; color: inherit; display: block; }
.card-link .card { height: 100%; }
.card-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--amber-600); font-weight: 700; font-size: .95rem; }
.card-link:hover .card-more { gap: 10px; }

/* ---------- Zone / guide link cards ---------- */
.link-card {
  display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.link-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.link-card:focus-visible { outline: 3px solid var(--navy-700); outline-offset: 3px; }
.link-card h3 { margin: 0; }
.link-card p { color: var(--muted); margin: 0; font-size: .96rem; }
.link-card .card-more { margin-top: 6px; }

/* ---------- Inline lead form (interior pages) ---------- */
.inline-quote { background: var(--navy-900); color: var(--white); border-radius: var(--radius); padding: clamp(24px, 4vw, 34px); box-shadow: var(--shadow-md); }
.inline-quote h2, .inline-quote h3 { color: var(--white); }
.inline-quote .lead { color: #c6d4e2; }
.inline-quote .field label { color: #e6eef6; }
.inline-quote .field input, .inline-quote .field textarea { background: rgba(255,255,255,.97); }
.inline-quote .form-note { color: #9fb2c6; }
.inline-quote .form-note a { color: var(--amber-300); }

/* ---------- Footer sitemap expansion ---------- */
@media (min-width: 760px) { .footer-grid.footer-4 { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer-col li a { display: inline-block; padding: 2px 0; }
