/* ELECCOM — estilos. Mobile-first. Sin dependencias. */
:root {
  --red: #e4121a;
  --red-hot: #ff2a31;
  --black: #000;
  --ink: #0b0b0d;
  --panel: #111114;
  --panel-2: #17171b;
  --line: rgba(255, 255, 255, 0.09);
  --line-light: #e7e7ea;
  --white: #fff;
  --soft: #f5f5f6;
  --muted: #6b6b73;
  --muted-dark: #a3a3ab;
  --radius: 18px;
  --maxw: 1180px;
  --font: "Inter", "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--white);
  line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--red-hot); outline-offset: 3px; border-radius: 6px; }
.skip-link {
  position: absolute; left: 12px; top: -60px; background: var(--red); color: #fff; padding: 10px 16px;
  border-radius: 10px; z-index: 200; font-weight: 600; transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer;
  padding: 14px 24px; border-radius: 999px; font-weight: 650; font-size: 0.98rem; border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
  line-height: 1.2; text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 28px -10px rgba(228, 18, 26, 0.75); }
.btn-red:hover { background: var(--red-hot); box-shadow: 0 12px 32px -10px rgba(255, 42, 49, 0.85); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.07); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #26262b; }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; background: rgba(0, 0, 0, 0.78);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line); transition: background 0.3s;
}
.site-header.is-scrolled { background: rgba(0, 0, 0, 0.94); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand img { height: 38px; width: auto; }
.nav-desktop { display: none; }
.nav-list { display: flex; gap: 4px; align-items: center; }
.nav-list a { color: #d9d9de; padding: 8px 12px; border-radius: 999px; font-size: 0.93rem; font-weight: 500; transition: color 0.2s, background 0.2s; }
.nav-list a:hover, .nav-list a[aria-current="true"] { color: #fff; background: rgba(255, 255, 255, 0.08); }
.header-cta { display: none; }
.menu-toggle {
  width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: transparent;
  color: #fff; display: grid; place-items: center; cursor: pointer;
}
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
.mobile-nav {
  position: fixed; inset: 68px 0 0 0; background: #000; padding: 24px 20px 40px; overflow-y: auto;
  transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
}
.mobile-nav.is-open { opacity: 1; transform: none; visibility: visible; }
.mobile-nav a.m-link { display: block; padding: 16px 4px; font-size: 1.3rem; font-weight: 600; color: #fff; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { width: 100%; margin-top: 24px; }

/* ---------- Secciones ---------- */
section { position: relative; }
.section { padding: 84px 0; }
.on-dark { background: var(--black); color: #fff; }
.on-soft { background: var(--soft); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 700; color: var(--red); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--red); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.85rem, 4.6vw, 2.9rem); line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.06rem; }
.on-dark .section-head p { color: var(--muted-dark); }

/* ---------- Hero ---------- */
.hero { background: var(--black); color: #fff; padding: 128px 0 72px; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2; opacity: 0.55;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse 80% 70% at 70% 45%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 45%, #000 20%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; width: 640px; height: 640px; right: -180px; top: 40px; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(228, 18, 26, 0.34), transparent 65%); filter: blur(10px);
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.82rem; color: #d4d4da; background: rgba(255, 255, 255, 0.04); margin-bottom: 24px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red-hot); box-shadow: 0 0 0 4px rgba(255, 42, 49, 0.2); }
.hero h1 { font-size: clamp(2.5rem, 8.2vw, 4.7rem); line-height: 1.03; letter-spacing: -0.035em; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--red-hot); white-space: nowrap; }
.hero-sub { margin-top: 24px; font-size: clamp(1.02rem, 2.3vw, 1.2rem); color: #c3c3cb; max-width: 580px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 36px; color: var(--muted-dark); font-size: 0.9rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .icon { color: var(--red-hot); width: 1.1em; height: 1.1em; }
.hero-visual { position: relative; display: grid; place-items: center; min-height: 340px; }
.hero-visual .iso-wrap {
  position: relative; width: min(78%, 360px); aspect-ratio: 1.23;
  animation: floaty 7s ease-in-out infinite;
}
.hero-visual .iso-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .ring {
  position: absolute; inset: 4% 6%; border: 1px dashed rgba(255, 255, 255, 0.14); border-radius: 50%; animation: spin 60s linear infinite;
}
.hero-visual .ring.r2 { inset: -2% 0; border-color: rgba(228, 18, 26, 0.28); animation-duration: 90s; animation-direction: reverse; }
.chip-float {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; font-size: 0.82rem; font-weight: 600;
  border-radius: 999px; background: rgba(17, 17, 20, 0.88); border: 1px solid var(--line); backdrop-filter: blur(8px); color: #fff;
}
.chip-float .icon { color: var(--red-hot); width: 1.05em; height: 1.05em; }
.chip-float.c1 { top: 6%; left: 0; } .chip-float.c2 { top: 14%; right: 0; } .chip-float.c3 { bottom: 12%; left: 2%; } .chip-float.c4 { bottom: 4%; right: 4%; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Selector de servicios ---------- */
.chooser { display: grid; gap: 18px; }
.choice {
  display: flex; flex-direction: column; gap: 14px; padding: 30px; border-radius: 22px; border: 1px solid var(--line-light); background: #fff;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.choice:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.35); border-color: var(--ink); }
.choice.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.choice.dark p { color: var(--muted-dark); }
.choice .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(228, 18, 26, 0.1); color: var(--red); font-size: 1.4rem; }
.choice.dark .ico { background: rgba(255, 42, 49, 0.14); color: var(--red-hot); }
.choice h3 { font-size: 1.4rem; letter-spacing: -0.01em; }
.choice p { color: var(--muted); }
.choice .go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--red); }
.choice.dark .go { color: var(--red-hot); }
.choice .go .icon { transition: transform 0.25s; }
.choice:hover .go .icon { transform: translateX(4px); }

/* ---------- Tarjetas de servicio ---------- */
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line-light); transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.card::after {
  content: ""; position: absolute; left: 26px; right: 26px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: 0 26px 50px -30px rgba(0, 0, 0, 0.4); border-color: #cfcfd5; }
.card:hover::after { transform: scaleX(1); }
.card .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 1.2rem; transition: background 0.3s; }
.card:hover .ico { background: var(--red); }
.card h3 { font-size: 1.08rem; line-height: 1.3; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 0.95rem; flex: 1; }
.card .link { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: 0.9rem; color: var(--red); margin-top: 4px; }
.card .link .icon { width: 1em; height: 1em; transition: transform 0.25s; }
.card .link:hover .icon { transform: translateX(4px); }
.on-dark .card { background: var(--panel); border-color: var(--line); color: #fff; }
.on-dark .card:hover { border-color: rgba(255, 255, 255, 0.22); box-shadow: 0 26px 50px -30px rgba(228, 18, 26, 0.45); }
.on-dark .card .ico { background: rgba(255, 42, 49, 0.14); color: var(--red-hot); }
.on-dark .card:hover .ico { background: var(--red); color: #fff; }
.on-dark .card p { color: var(--muted-dark); }
.on-dark .card .link { color: var(--red-hot); }
.section-cta { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.pillars { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.pillars li {
  display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04); font-weight: 600; font-size: 0.92rem;
}
.pillars .icon { color: var(--red-hot); width: 1.1em; height: 1.1em; }

/* ---------- Por qué elegir ---------- */
.values { display: grid; gap: 16px; }
.value { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line-light); }
.value .ico { color: var(--red); font-size: 1.6rem; margin-bottom: 16px; }
.value h3 { font-size: 1.1rem; margin-bottom: 8px; letter-spacing: -0.01em; }
.value p { color: var(--muted); font-size: 0.96rem; }

/* ---------- Sobre ---------- */
.about-grid { display: grid; gap: 44px; align-items: center; }
.about-text p { color: #c9c9d0; font-size: 1.06rem; margin-top: 18px; }
.about-text h2 { font-size: clamp(1.85rem, 4.6vw, 2.9rem); line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; }
.about-art { position: relative; display: grid; place-items: center; }
.about-art::before { content: ""; position: absolute; inset: 8%; background: radial-gradient(circle, rgba(228, 18, 26, 0.3), transparent 65%); filter: blur(24px); }
.about-art img { position: relative; width: min(70%, 340px); }
.about-list { margin-top: 26px; display: grid; gap: 12px; }
.about-list li { display: flex; gap: 12px; align-items: flex-start; color: #e3e3e8; }
.about-list .icon { color: var(--red-hot); margin-top: 3px; }

/* ---------- Zona ---------- */
.zone-grid { display: grid; gap: 28px; align-items: start; }
.zone-main { padding: 34px; border-radius: 22px; background: var(--ink); color: #fff; }
.zone-main .pin { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--red); font-size: 1.4rem; margin-bottom: 18px; }
.zone-main h3 { font-size: 1.6rem; letter-spacing: -0.02em; }
.zone-main p { color: var(--muted-dark); margin-top: 10px; }
.towns { display: flex; flex-wrap: wrap; gap: 10px; }
.towns li { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line-light); font-weight: 600; transition: border-color 0.25s, transform 0.25s var(--ease); }
.towns li:hover { border-color: var(--red); transform: translateY(-2px); }
.towns .icon { color: var(--red); width: 1.05em; height: 1.05em; }
.zone-note { margin-top: 20px; color: var(--muted); font-size: 0.96rem; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; gap: 40px; align-items: start; }
.contact-info h2 { font-size: clamp(1.85rem, 4.6vw, 2.9rem); line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; }
.contact-info > p { margin-top: 16px; color: var(--muted-dark); font-size: 1.06rem; }
.contact-methods { margin-top: 30px; display: grid; gap: 12px; }
.method {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel);
  transition: border-color 0.25s, transform 0.25s var(--ease), background 0.25s;
}
.method:hover { border-color: var(--red); transform: translateY(-2px); background: var(--panel-2); }
.method .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--red); color: #fff; font-size: 1.25rem; }
.method small { display: block; color: var(--muted-dark); font-size: 0.8rem; }
.method strong { font-size: 1.05rem; }
.form-box { background: #fff; color: var(--ink); border-radius: 24px; padding: 28px; }
.form-box h3 { font-size: 1.35rem; letter-spacing: -0.01em; }
.form-box > p { color: var(--muted); font-size: 0.95rem; margin: 6px 0 22px; }
.field { display: grid; gap: 6px; margin-bottom: 2px; }
.field label { font-weight: 600; font-size: 0.9rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1.5px solid #d9d9de; background: #fff; font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(228, 18, 26, 0.14); }
.err { display: block; color: #b3000a; font-size: 0.85rem; line-height: 1.3; min-height: 1.3em; margin-bottom: 8px; }
.field [aria-invalid="true"] { border-color: #b3000a; }
.row-2 { display: grid; gap: 0 16px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.88rem; color: var(--muted); margin-bottom: 18px; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--red); flex: none; }
.consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-box .btn { width: 100%; }
.form-status { margin-top: 18px; padding: 16px 18px; border-radius: 14px; font-size: 0.95rem; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #effaf1; border: 1px solid #b6e4c0; color: #0f5a22; }
.form-status.info { background: #fff6e8; border: 1px solid #f2d6a2; color: #6a4300; }
.form-status.error { background: #fdeceb; border: 1px solid #f3b9b6; color: #7a0b06; }
.form-status a { text-decoration: underline; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: #000; color: #fff; padding: 64px 0 28px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 36px; }
.footer-brand img { height: 44px; width: auto; margin-bottom: 16px; }
.footer-brand p { color: var(--muted-dark); max-width: 340px; font-size: 0.95rem; }
.footer-col h4 { margin: 0 0 14px; font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase; color: #fff; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: var(--muted-dark); font-size: 0.95rem; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; color: var(--muted-dark); font-size: 0.85rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-bottom a:hover { color: #fff; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 90; display: inline-flex; align-items: center; gap: 10px; padding: 14px 18px;
  border-radius: 999px; background: #25d366; color: #04210f; font-weight: 700; box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.55);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.wa-float:hover { transform: translateY(-3px) scale(1.02); }
.wa-float .icon { width: 1.4em; height: 1.4em; stroke-width: 2; }
.wa-float span { display: none; }

/* ---------- Páginas legales ---------- */
.legal { padding: 120px 0 80px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); letter-spacing: -0.02em; margin-bottom: 8px; }
.legal h2 { font-size: 1.3rem; margin: 36px 0 10px; }
.legal p, .legal li { color: #3b3b42; }
.legal ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; margin: 10px 0; }
.legal .notice { margin: 20px 0 8px; padding: 16px 18px; border-radius: 14px; background: #fff6e8; border: 1px solid #f2d6a2; color: #6a4300; font-size: 0.95rem; }
.legal mark { background: #ffe9a8; padding: 1px 5px; border-radius: 4px; font-weight: 600; color: #3a2a00; }
.legal a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.back-link { display: inline-flex; gap: 8px; align-items: center; color: var(--red); font-weight: 650; margin-bottom: 24px; }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .row-2 { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .chooser { grid-template-columns: repeat(2, 1fr); }
  .wa-float span { display: inline; }
}
@media (min-width: 960px) {
  .container { padding: 0 32px; }
  .section { padding: 112px 0; }
  .nav-desktop { display: block; }
  .header-cta { display: inline-flex; }
  .menu-toggle, .mobile-nav { display: none; }
  .header-inner { height: 74px; }
  .brand img { height: 42px; }
  .hero { padding: 160px 0 100px; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
  .hero-visual { min-height: 480px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .values { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1.1fr 0.9fr; gap: 80px; }
  .zone-grid { grid-template-columns: 0.8fr 1.2fr; gap: 48px; }
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 64px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .form-box { padding: 38px; }
  .wa-float { right: 28px; bottom: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
