/* ====== AticPlus — hoja de estilos ======
   Marca: SolarPulse #F9C001 · FlareRush #FF6500 · CoreCobalt #0326AA
   Tipografía: Plus Jakarta Sans
   Reconstrucción estática de aticplus.es por Zunami Corp
========================================== */

:root {
  --yellow: #f9c001;
  --orange: #ff6500;
  --blue: #0326aa;
  --blue-dark: #051744;
  --ink: #0c1b2a;
  --gray-600: #5a6573;
  --gray-400: #8b95a3;
  --gray-100: #f3f5f8;
  --gray-50: #f8fafc;
  --white: #ffffff;
  --radius: 16px;
  --radius-lg: 28px;
  --shadow: 0 18px 40px rgba(5, 23, 68, 0.10);
  --shadow-sm: 0 6px 20px rgba(5, 23, 68, 0.08);
  --maxw: 1180px;
  --ff: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--ff);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { line-height: 1.12; margin: 0; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p  { margin: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: clamp(56px, 8vw, 110px) 0; }
.center { text-align: center; }
.mt-s { margin-top: 14px; }
.mt-m { margin-top: 26px; }
.mt-l { margin-top: 44px; }
.measure { max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 16px 26px; border-radius: 999px; cursor: pointer;
  border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 10px 24px rgba(255,101,0,.32); }
.btn-primary:hover { background: #ff7a1f; }
.btn-secondary { background: transparent; color: var(--blue); border-color: rgba(3,38,170,.35); }
.btn-secondary:hover { border-color: var(--blue); background: rgba(3,38,170,.05); }
.btn-light { background: #fff; color: var(--orange); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); }
.btn .arrow { font-size: 1.2em; line-height: 0; }
.btns { display: flex; flex-wrap: wrap; gap: 14px; }
.btns.center { justify-content: center; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-100);
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a.navlink { font-weight: 500; color: var(--ink); font-size: .98rem; }
.nav a.navlink:hover { color: var(--orange); }
.nav > .btn { display: none; } /* el botón del menú solo se muestra en móvil */
.nav-cta { display: flex; align-items: center; gap: 18px; }

/* Selector de idioma (dropdown) */
.lang-dd { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 5px; font: inherit; font-weight: 600; font-size: .9rem; color: var(--blue); background: transparent; border: 0; border-radius: 999px; padding: 8px 8px; cursor: pointer; }
.lang-btn:hover { color: var(--orange); }
.lang-btn .lang-ic { width: 18px; height: 18px; flex: none; }
.lang-btn .lang-code { line-height: 1; }
.lang-btn .caret { width: 16px; height: 16px; flex: none; transition: transform .2s; }
.lang-dd.open .caret { transform: rotate(180deg); }
.lang-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 150px; background: #fff; border: 1px solid var(--gray-100); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; display: none; z-index: 120; }
.lang-dd.open .lang-menu { display: block; }
.lang-menu a { display: block; padding: 9px 12px; border-radius: 8px; font-weight: 500; color: var(--ink); }
.lang-menu a:hover { background: var(--gray-50); color: var(--orange); }
.lang-menu a.active { color: var(--blue); font-weight: 700; }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; }

@media (max-width: 900px) {
  .nav {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; gap: 4px;
    background: #fff; padding: 18px 22px 26px; border-bottom: 1px solid var(--gray-100);
    transform: translateY(-130%); transition: transform .3s ease; box-shadow: var(--shadow);
  }
  .nav.open { transform: translateY(0); }
  .nav a.navlink { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--gray-100); }
  .nav > .btn { display: flex; width: 100%; justify-content: center; margin-top: 10px; }
  .lang-dd { width: 100%; margin-top: 6px; }
  .lang-btn { width: 100%; justify-content: flex-start; }
  .lang-btn .caret { margin-left: auto; }
  .lang-menu { position: static; box-shadow: none; border: 0; padding: 4px 0 0; min-width: 0; }
  .burger { display: block; }
  .nav-cta .btn { display: none; }
}

/* ---------- Hero ---------- */
.hero { background: var(--orange); color: #fff; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding-block: clamp(40px,6vw,80px); }
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.15rem; margin-top: 18px; max-width: 30ch; color: rgba(255,255,255,.92); }
.hero-features { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.hero-features li { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; }
.tick { flex: 0 0 22px; height: 22px; border-radius: 50%; background: #fff; color: var(--orange); display: grid; place-items: center; font-size: 13px; font-weight: 800; margin-top: 2px; }
.hero-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.25); aspect-ratio: 4/5; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-img { aspect-ratio: 16/11; order: -1; }
}

/* ---------- Cards de servicios ---------- */
.section-soft { background: var(--gray-50); }
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-sm);
}
.card h3 { color: var(--blue); }
.card p { color: var(--gray-600); margin-top: 12px; }
.card.cta-card {
  background: linear-gradient(135deg, var(--blue) 0%, #0a39d8 100%); color: #fff;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
}
.card.cta-card h3 { color: #fff; font-size: 1.7rem; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Trasteros ---------- */
.units { display: grid; grid-template-columns: repeat(2,1fr); gap: 26px; }
.unit { background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.unit-img { aspect-ratio: 16/10; overflow: hidden; }
.unit-img img { width: 100%; height: 100%; object-fit: cover; }
.unit-body { padding: 26px 26px 30px; }
.unit-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.unit-head h3 { color: var(--blue); }
.badge { background: var(--yellow); color: var(--ink); font-weight: 700; font-size: .85rem; padding: 6px 12px; border-radius: 999px; }
.unit-feats { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.unit-feats li { display: flex; gap: 10px; color: var(--gray-600); }
.unit-feats .tick { background: var(--orange); color: #fff; }
.price { color: var(--orange); font-weight: 800; }
@media (max-width: 720px) { .units { grid-template-columns: 1fr; } }

/* ---------- Banda CTA ---------- */
.cta-band { background: var(--yellow); }
.cta-band-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.cta-band h2 { color: var(--blue); }
.cta-band p { color: #2a2a17; margin-top: 16px; font-size: 1.1rem; }
.cta-band-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16/11; }
.cta-band-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) { .cta-band-grid { grid-template-columns: 1fr; } }

/* ---------- Pasos ---------- */
.steps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.step { border-top: 1px solid var(--gray-100); padding: 22px 0; }
.step:first-child { border-top: 0; }
.step h3 { display: flex; gap: 12px; color: var(--ink); align-items: baseline; }
.step h3 b { color: var(--orange); }
.step p { color: var(--gray-600); margin-top: 8px; }
.steps-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/5; }
.steps-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) { .steps-grid { grid-template-columns: 1fr; } .steps-img { order: -1; aspect-ratio: 16/11; } }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: start; }
.contact-info img.photo { border-radius: var(--radius); margin-bottom: 26px; }
.contact-line { display: flex; gap: 14px; align-items: center; padding: 10px 0; }
.contact-line .ic { flex: 0 0 44px; height: 44px; border-radius: 12px; background: rgba(255,101,0,.12); display: grid; place-items: center; }
.contact-line .ic svg { width: 22px; height: 22px; }
.contact-line .label { color: var(--gray-400); font-size: .85rem; }
.contact-line .value { font-weight: 700; word-break: break-word; }
.contact-rows { display: flex; gap: 14px 28px; flex-wrap: wrap; }
.contact-rows .contact-line { flex: 1 1 220px; }
.map-full { margin-top: 44px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gray-100); }
.map-full iframe { display: block; width: 100%; height: 380px; border: 0; }
.hours { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 22px 0; }
.hours h4 { margin: 0 0 4px; color: var(--blue); font-size: 1rem; }
.hours p { color: var(--gray-600); }
.hr { height: 1px; background: var(--gray-100); margin: 22px 0; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gray-100); }
.map iframe { display: block; width: 100%; height: 220px; border: 0; }

.form-card { background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; }
.field .opt { color: var(--gray-400); font-weight: 500; }
.field input, .field textarea {
  font-family: inherit; font-size: 1rem; padding: 13px 15px; border: 1.5px solid #dde3ec;
  border-radius: 12px; color: var(--ink); background: #fff; transition: border-color .15s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--orange); }
.field textarea { resize: vertical; min-height: 110px; }
.checks { display: flex; flex-wrap: wrap; gap: 14px 22px; }
.check { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 500; }
.check input { width: 18px; height: 18px; accent-color: var(--orange); }
.check-accept { align-items: flex-start; gap: 10px; font-weight: 500; color: var(--gray-600); font-size: .92rem; }
.check-accept input { flex: 0 0 18px; margin-top: 2px; }
.check-accept a { color: var(--orange); text-decoration: underline; }
.form-note { color: var(--gray-400); font-size: .82rem; margin-top: 14px; }
.form-note a { color: var(--orange); text-decoration: underline; }
.field-error { color: #d92d20; font-size: .82rem; font-weight: 500; margin-top: 2px; }
.field input.invalid, .field textarea.invalid { border-color: #d92d20; }
.field input.invalid:focus, .field textarea.invalid:focus { border-color: #d92d20; }
.check-accept.invalid { color: #d92d20; }
.btn.is-disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 980px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } .hours { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--blue-dark); color: #cfd8e8; padding: 56px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1fr auto; gap: 64px; align-items: start; }
.footer img.flogo { height: 40px; margin-bottom: 16px; }
.footer .claim { max-width: 34ch; color: #aab6cc; }
.footer .claim b { color: #fff; }
.footer h4 { color: #fff; font-size: .95rem; margin: 0 0 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: #93a1ba; }
.footer-bottom a { color: var(--yellow); }
@media (max-width: 720px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- WhatsApp flotante ---------- */
.wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366;
  display: grid; place-items: center; box-shadow: 0 10px 26px rgba(0,0,0,.25);
  transition: transform .15s;
}
.wa:hover { transform: scale(1.07); }
.wa svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Páginas legales ---------- */
.legal { max-width: 820px; }
.legal h1 { font-size: clamp(2rem,4vw,2.6rem); color: var(--blue); }
.legal h2 { font-size: 1.4rem; color: var(--ink); margin-top: 38px; }
.legal p, .legal li { color: var(--gray-600); margin-top: 12px; }
.legal ul { padding-left: 20px; }
.back-link { color: var(--orange); font-weight: 600; }

/* Animación de entrada */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
