html { scroll-behavior: smooth; }

:root {
    --azul-main: #1a4a8e;
    --azul-dark: #0f2d5a;
    --naranja: #f35b04;
    --amarillo: #ffcc00;
    --verde: #4caf50;
    --gris-claro: #f4f7f6;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Roboto', sans-serif;
    background-color: #fff;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HERO */
.hero {
    background: linear-gradient(rgba(26, 74, 142, 0.75), rgba(15, 45, 90, 0.85)), 
                url('images/background.jpg'); 
    background-size: cover;
    background-position: center;
    color: white;
    min-height: 65vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 80px 0;
}

.hero h1 {
    font-size: clamp(2.2rem, 8vw, 4rem);
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
}

.highlight-yellow {
    color: var(--amarillo);
    border-bottom: 6px solid var(--amarillo);
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 2rem;
    color: #ffffff;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn-orange-hero {
    background-color: var(--naranja);
    color: white;
    text-decoration: none;
    font-weight: 900;
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    padding: 22px 65px;
    display: inline-block;
    transform: skewX(-10deg);
    box-shadow: 0 8px 0 #b34303;
    margin-top: 40px;
    transition: 0.2s;
}

.btn-orange-hero:hover {
    transform: skewX(-10deg) translateY(-3px);
    box-shadow: 0 11px 0 #b34303;
}

/* BARRA LOCAL */
.local-bar {
    background: var(--azul-dark);
    color: white;
    text-align: center;
    padding: 35px 0;
    border-bottom: 6px solid var(--naranja);
    position: relative;
    z-index: 10;
}

.local-bar h3 { font-size: 1.6rem; margin-bottom: 8px; }

/* SECCIÓN SERVICIOS */
.services { padding: 100px 0; background: #fff; }

.flex-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.text-side { flex: 1.2; }
.visual-side { flex: 1; position: relative; }

.image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.decoration-circle {
    position: absolute;
    width: 110%;
    height: 110%;
    background: radial-gradient(circle, rgba(26, 74, 142, 0.1) 0%, rgba(255,255,255,0) 70%);
    z-index: 1;
    border-radius: 50%;
}

.devices-img {
    position: relative;
    z-index: 2;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 30px 50px rgba(0,0,0,0.2));
}

.skew-label {
    background: var(--naranja);
    color: white;
    display: inline-block;
    padding: 12px 30px;
    transform: skewX(-15deg);
    margin-bottom: 35px;
}

.skew-label h2 {
    transform: skewX(15deg);
    font-style: italic;
    font-size: 1.4rem;
    text-transform: uppercase;
}

.check-list { list-style: none; }
.check-list li {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.check {
    color: var(--verde);
    font-size: 1.8rem;
    margin-right: 18px;
    font-weight: 900;
}

/* FOOTER */
.footer-contact {
    text-align: center;
    padding: 80px 0 40px 0;
    background-color: var(--gris-claro);
    border-top: 1px solid #ddd;
}

.contact-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    margin-top: 30px;
}

.contact-item {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: var(--azul-dark);
    text-decoration: none;
    font-weight: 900;
    transition: color 0.3s;
}

.contact-item i {
    margin-right: 10px;
    color: var(--azul-main);
}

.contact-item:hover { color: var(--naranja); }

.social-actions {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.btn-social {
    text-decoration: none;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp { background-color: #25D366; }
.telegram { background-color: #0088cc; }

.btn-social:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.copyright {
    margin-top: 60px;
    font-size: 0.9rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* AJUSTE MÓVIL ESPECÍFICO */
@media (max-width: 600px) {
    .social-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
}

/* RESPONSIVE GENERAL */
@media (max-width: 768px) {
    .flex-grid { flex-direction: column; text-align: center; }
    
    /* Arreglo de la lista: alineación a la izquierda y soporte multi-línea */
    .check-list li { 
        justify-content: flex-start; 
        text-align: left;
        font-size: 1rem; 
        align-items: flex-start;
        display: flex;
        gap: 12px;
    }

    .check {
        margin-right: 0;
        min-width: 25px;
        font-size: 1.4rem;
        line-height: 1.2;
    }

    .hero { min-height: 50vh; }
    .subtitle { font-size: 1.25rem; }
    .decoration-circle { width: 80%; height: 80%; }
}

/* WHATSAPP STICKY */
.whatsapp-sticky {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.3s;
}

.whatsapp-sticky i { font-size: 1.5rem; }
.whatsapp-sticky:hover { transform: scale(1.1); }

@media (min-width: 769px) {
    .whatsapp-sticky span { display: none; }
    .whatsapp-sticky { padding: 15px; bottom: 30px; right: 30px; }
}

@media (max-width: 768px) {
    .whatsapp-sticky { bottom: 15px; right: 15px; padding: 10px 18px; font-size: 0.9rem; }
}

/* LEGAL Y MODALES */
.legal-links { margin-top: 30px; font-size: 0.85rem; }
.legal-links a { color: #666; text-decoration: none; margin: 0 5px; }
.legal-links a:hover { color: var(--azul-main); text-decoration: underline; }

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}
.modal-overlay:target { display: flex; }
.modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    position: relative;
    text-align: left;
}
.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    text-decoration: none;
    color: #333;
}