/* JYA Fotovoltaica — estilos. Sin fuentes ni recursos externos (RGPD-friendly). */
:root {
  --ink: #0d1b30;
  --ink-2: #3d4b5c;
  --muted: #6b7787;
  --line: #e3e7ec;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  /* Colores corporativos (logo JYA) */
  --brand: #0d2748;      /* azul marino "JYA" */
  --brand-2: #214c91;    /* azul panel */
  --blue-3: #306baf;
  --orange: #dc7a31;     /* naranja "FOTOVOLTAICA" */
  --sun: #f1a93b;        /* sol */
  --sun-2: #f6c745;
  --green: #306433;      /* franja verde */
  --green-2: #5c9246;
  --sun-soft: #fff3e3;
  --wa: #1fa855;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(18, 32, 47, .08);
  --max: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--brand-2); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); margin-bottom: .8em; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 46ch; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 100; }

/* Botones */
.btn { display: inline-flex; align-items: center; gap: .55em; padding: .9em 1.4em; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 6px 18px rgba(220, 122, 49, .35); }
.btn-primary:hover { background: #e88a40; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { border-color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-call { background: #fff; color: var(--brand); border-color: #cfd6de; margin-left: 6px; }
.btn svg { width: 20px; height: 20px; }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.1rem; letter-spacing: -.01em; }
.logo-mark { width: auto; height: 40px; }
.logo-text { font-weight: 800; letter-spacing: .01em; line-height: 1.05; font-size: 1.05rem; color: var(--brand); }
.logo-text b { color: var(--orange); font-weight: 700; display: block; font-size: .78rem; letter-spacing: .12em; }
.footer-logo { background: #fff; border-radius: 14px; padding: 12px 16px; display: inline-block; margin-bottom: 16px; }
.footer-logo img { height: 92px; width: auto; }
.logo small { display: block; font-weight: 600; font-size: .72rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-top: -3px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--brand); }
.nav .btn { padding: .6em 1.1em; font-size: .92rem; color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* Hero */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--brand) url("/assets/hero.jpg") center 55% / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(13,39,72,.96) 0%, rgba(13,39,72,.88) 42%, rgba(13,39,72,.35) 75%, rgba(13,39,72,.15) 100%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--green) 0%, var(--green-2) 35%, var(--blue-3) 70%, var(--brand-2) 100%); }
.hero .wrap { display: grid; grid-template-columns: 1fr; padding-top: 96px; padding-bottom: 104px; position: relative; z-index: 1; }
.hero .wrap > div { max-width: 640px; }
.hero h1 span { color: var(--sun-2); }
.hero .eyebrow { color: var(--sun-2); }
.hero .lead { color: rgba(255,255,255,.85); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 26px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: rgba(255,255,255,.9); font-size: .98rem; }
.hero-points li { display: flex; gap: 10px; align-items: center; }
.hero-points svg { width: 20px; height: 20px; flex: none; color: var(--sun-2); }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; padding: 10px 16px; border-radius: 12px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); font-size: .9rem; color: rgba(255,255,255,.92); }
.hero-badge svg { width: 22px; height: 22px; color: var(--sun-2); flex: none; }

/* Secciones */
section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head p { color: var(--ink-2); font-size: 1.08rem; }

/* Tarjetas de servicios */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--sun-soft); display: grid; place-items: center; margin-bottom: 16px; color: var(--orange); }
.card-icon svg { width: 26px; height: 26px; }
.card p { color: var(--ink-2); font-size: .97rem; margin: 0; }

/* Proceso */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
.steps li { position: relative; padding: 22px 18px 20px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 14px; }
.steps h3 { font-size: 1.02rem; }
.steps p { font-size: .93rem; color: var(--ink-2); margin: 0; }
.note { margin-top: 22px; font-size: .92rem; color: var(--muted); }

/* Zonas */
.zones { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.zone-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.zone-list li { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-weight: 700; }
.zone-list li span { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); flex: none; }
.zone-map { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 18px; }

/* Formulario */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.contact-aside { position: sticky; top: 100px; }
.contact-aside ul { padding-left: 1.1em; color: var(--ink-2); }
.contact-aside li { margin-bottom: .4em; }
.wa-box { margin-top: 28px; padding: 20px; border-radius: var(--radius); background: #ecf8f0; border: 1px solid #cdebd8; }
.wa-box p { margin: 0 0 12px; font-size: .97rem; color: var(--ink-2); }
form.lead-form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px; box-shadow: var(--shadow); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label, .field legend { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.field .opt { font-weight: 500; color: var(--muted); }
input[type=text], input[type=tel], input[type=email], select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid #cfd6de; border-radius: 10px; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(33,76,145,.15); }
.field.invalid input, .field.invalid select { border-color: #c0392b; }
.err { display: none; color: #b03024; font-size: .85rem; margin-top: 4px; }
.field.invalid .err { display: block; }
fieldset { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1.5px solid #cfd6de; border-radius: 999px; font-weight: 600; font-size: .92rem; cursor: pointer; margin: 0; }
.chips input { accent-color: var(--brand); margin: 0; }
.chips label:has(input:checked) { border-color: var(--brand-2); background: #eaf1fb; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-2); margin-bottom: 12px; line-height: 1.45; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.check.invalid { color: #b03024; }
.legal-small { font-size: .8rem; color: var(--muted); line-height: 1.5; margin-top: 14px; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; padding: 14px 16px; border-radius: 10px; font-weight: 600; display: none; }
.form-status.ok { display: block; background: #e9f4e6; color: var(--green); }
.form-status.ko { display: block; background: #fdecea; color: #8e2a1f; }
.lead-form .btn-primary { width: 100%; justify-content: center; font-size: 1.05rem; padding: 1em; }
.lead-form .btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--orange); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--ink-2); }

/* Banda CTA */
.cta-band { background: linear-gradient(110deg, var(--brand) 0%, var(--brand-2) 100%); color: #fff; padding: 64px 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.cta-band p { margin: 6px 0 0; color: rgba(255,255,255,.75); }

/* Pie */
.site-footer { background: #091c35; color: rgba(255,255,255,.75); padding: 56px 0 28px; font-size: .94rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .logo { color: #fff; margin-bottom: 14px; }
.site-footer .logo small { color: rgba(255,255,255,.6); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: transform .15s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }

/* Páginas legales */
.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.legal h2 { font-size: 1.3rem; margin-top: 1.8em; }
.legal table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1em 0; }
.legal th, .legal td { text-align: left; border-bottom: 1px solid var(--line); padding: 10px 8px; vertical-align: top; }
.pending { background: #fff3cd; padding: 0 .3em; border-radius: 4px; font-weight: 600; }
.updated { color: var(--muted); font-size: .9rem; }

/* Por qué JYA (valores) */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value { padding: 26px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--brand-2); }
.value:nth-child(3n+2) { border-top-color: var(--orange); }
.value:nth-child(3n) { border-top-color: var(--green-2); }
.value h3 { margin-bottom: .35em; }
.value p { color: var(--ink-2); margin: 0; font-size: .97rem; }
.value .big { display: block; font-size: 1.9rem; font-weight: 800; color: var(--brand); line-height: 1; margin-bottom: 10px; letter-spacing: -.02em; }

/* Qué incluye */
.includes { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.includes figure { margin: 0; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); position: relative; }
.includes figure img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.includes figcaption { position: absolute; left: 14px; bottom: 14px; background: rgba(13,39,72,.85); color: #fff; font-size: .85rem; padding: 6px 12px; border-radius: 8px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--green-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center/14px no-repeat; }
.brands { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.brands strong { color: var(--ink); }

/* Galería */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery figure { margin: 0; position: relative; border-radius: 12px; overflow: hidden; background: #dfe6ef; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .4s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px; font-size: .85rem; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(13,39,72,.85)); }

/* Responsive */
@media (max-width: 1020px) {
  .cards, .values { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:last-child { grid-column: span 2; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }
  .zones, .contact, .includes { grid-template-columns: 1fr; }
  .hero { background-image: url("/assets/hero-900.jpg"); }
  .hero::before { background: linear-gradient(180deg, rgba(13,39,72,.93) 0%, rgba(13,39,72,.86) 100%); }
  .hero .wrap { padding-top: 48px; padding-bottom: 60px; }
  .contact-aside { position: static; }
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 22px 18px; border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; justify-content: center; border: 0; }
  .site-footer .cols { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  .cards, .steps, .grid-2, .zone-list, .values { grid-template-columns: 1fr; }
  .steps li:last-child { grid-column: auto; }
  form.lead-form { padding: 22px 18px; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
