/* ═══════════════════════════════════
   HOME.CSS — Página principal
   ═══════════════════════════════════ */

/* ── Hero ── */
.hero {
    background-image:
        radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1.5px),
        linear-gradient(135deg, #1c1c1c 0%, #1c1c1c 50%, #124d30 100%);
    background-size: 26px 26px, 200% 200%;
    background-position: 0 0, 0% 50%;
    color: white;
    padding: 110px 0 100px;
    position: relative;
    overflow: hidden;
}
@media (prefers-reduced-motion: no-preference) {
    .hero { animation: heroGradient 14s ease-in-out infinite; }
}
@keyframes heroGradient {
    0%   { background-position: 0 0, 0% 50%; }
    50%  { background-position: 13px 13px, 100% 50%; }
    100% { background-position: 0 0, 0% 50%; }
}
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero-badge {
    display: inline-block;
    background: rgba(0,242,96,0.15);
    color: var(--accent);
    border: 1px solid rgba(0,242,96,0.4);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    animation: heroFadeUp 0.7s ease both;
}
.hero-badge i {
    display: inline-block;
    animation: heroPulse 2s ease-in-out infinite;
}
@keyframes heroPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.55; transform: scale(1.15); }
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
    animation: heroFadeUp 0.7s ease 0.12s both;
}
.hero .lead {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.82);
    max-width: 500px;
    margin: 0 auto;
    animation: heroFadeUp 0.7s ease 0.24s both;
}
.hero-cta {
    animation: heroFadeUp 0.7s ease 0.36s both;
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid rgba(255,255,255,0.15);
    flex-wrap: wrap;
    animation: heroFadeUp 0.7s ease 0.48s both;
}
.hero-stat { text-align: center; }
.hero-stat .num {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}
.hero-stat .lbl {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.65);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Secciones ── */
#planes   { padding: 80px 0; }
#servicios { background: var(--bg-light); padding: 80px 0; }
#por-que  { padding: 80px 0; background: #fff; }

/* ── Why us ── */
.why-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
}
.why-icon {
    width: 46px;
    height: 46px;
    background: rgba(0,242,96,0.10);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.why-icon i { font-size: 1.3rem; color: var(--primary); }
.why-item h6 { font-weight: 700; margin-bottom: 4px; color: var(--text); font-size: 0.95rem; }
.why-item p  { font-size: 0.875rem; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* ── Coverage map ── */
#cobertura { padding: 80px 0; background: var(--bg-light); }
#map {
    height: 480px;
    border-radius: 16px;
    border: 1.5px solid var(--border);
    box-shadow: var(--card-shadow);
    z-index: 0;
}
.map-legend {
    background: #fff;
    border-radius: 12px;
    border: 1.5px solid var(--border);
    padding: 20px;
    box-shadow: var(--card-shadow);
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.875rem;
    color: var(--text-muted);
}
.legend-item:last-child { margin-bottom: 0; }
.legend-dot { width: 16px; height: 16px; border-radius: 4px; flex-shrink: 0; }

/* ── Contact section ── */
#contacto {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 80px 0;
    color: white;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero { padding: 80px 0 70px; }
    .hero-stats { gap: 24px; }
    #planes, #servicios, #por-que, #cobertura, #contacto { padding: 60px 0; }
    #map { height: 320px; }
}
