:root {
    --primary: #1e3a5f;
    --secondary: #2c5282;
    --accent: #3182ce;
    --accent-hover: #2b6cb0;
    --light: #f7fafc;
    --dark: #1a202c;
    --text-muted: #718096;
    --success: #2f855a;
    --warning: #ed8936;
    --danger: #e53e3e;
}
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        #servicios, #contacto, section[id] {
            scroll-margin-top: 140px;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            color: var(--dark);
            overflow-x: hidden;
        }

        /* Header & Nav */
        .top-bar {
            background: #111827;
            color: #e5e7eb;
            font-size: 0.8rem;
            padding: 0.45rem 1rem;
            text-align: center;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }
        .top-bar a {
            color: #60a5fa;
            font-weight: 700;
            text-decoration: none;
            margin-left: 0.4rem;
        }
        .top-bar a:hover {
            text-decoration: underline;
        }

        header {
            background: white;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
        }

        nav {
            max-width: 1200px;
            margin: 0 auto;
            padding: 1rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: relative;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 1rem;
            text-decoration: none;
        }

        .logo img {
            height: 60px;
            width: auto;
        }

        .logo-text {
            color: var(--primary);
            font-weight: 700;
            font-size: 1.5rem;
        }

        /* ── FIX: menú móvil usando clase CSS, no inline styles ── */
        .nav-links {
            display: flex;
            gap: 2rem;
            list-style: none;
        }

        .nav-links a {
            text-decoration: none;
            color: var(--dark);
            font-weight: 500;
            transition: color 0.3s;
        }

        .nav-links a:hover {
            color: var(--accent);
        }

        .mobile-menu {
            display: none;
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            padding: 0.25rem 0.5rem;
        }

        /* Estado abierto del menú móvil */
        @media (max-width: 768px) {
            .nav-links {
                display: none;
                position: absolute;
                top: 100%;
                left: 0;
                right: 0;
                background: white;
                flex-direction: column;
                padding: 1rem;
                box-shadow: 0 4px 6px rgba(0,0,0,0.1);
                gap: 0;
            }

            .nav-links.is-open {
                display: flex;
            }

            .nav-links li {
                border-bottom: 1px solid #e2e8f0;
            }

            .nav-links li:last-child {
                border-bottom: none;
            }

            .nav-links a {
                display: block;
                padding: 0.75rem 0;
            }

            .mobile-menu {
                display: block;
            }
        }

        /* Hero Section */
        .hero {
            margin-top: 130px;
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            color: white;
            padding: 4rem 2rem;
            position: relative;
            overflow: hidden;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 50%;
            height: 100%;
            background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='80' cy='20' r='40' fill='rgba(255,255,255,0.05)'/%3E%3Ccircle cx='20' cy='80' r='30' fill='rgba(255,255,255,0.05)'/%3E%3C/svg%3E");
            background-size: cover;
        }

        .hero-container {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
            position: relative;
            z-index: 1;
        }

        .hero-content h1 {
            font-size: 3rem;
            margin-bottom: 1rem;
            line-height: 1.2;
        }

        .hero-content .highlight {
            color: #63b3ed;
            font-weight: 700;
        }

        .hero-content p {
            font-size: 1.25rem;
            margin-bottom: 2rem;
            opacity: 1;
        }

        .hero-badges {
            display: flex;
            gap: 1rem;
            margin-bottom: 2rem;
            flex-wrap: wrap;
        }

        .badge {
            background: rgba(255,255,255,0.25);
            border: 1px solid rgba(255,255,255,0.4);
            padding: 0.5rem 1rem;
            border-radius: 50px;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: #ffffff;
        }

        .cta-group {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .btn {
            padding: 1rem 2rem;
            border-radius: 8px;
            text-decoration: none;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            transition: transform 0.3s, box-shadow 0.3s;
            border: none;
            cursor: pointer;
            font-size: 1rem;
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        }

        .btn-primary {
            background: var(--accent);
            color: white;
            padding: 0.75rem 1.5rem;
            border-radius: 8px;
            text-decoration: none;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            border: none;
            cursor: pointer;
            transition: background 0.2s, transform 0.2s;
        }
        .btn-primary:hover {
            background: var(--accent-hover);
            transform: translateY(-2px);
        }

        .btn-success {
            background: var(--success);
            color: white;
            padding: 0.75rem 1.5rem;
            border-radius: 8px;
            text-decoration: none;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            transition: background 0.2s;
        }
        .btn-success:hover {
            background: #276749;
        }

        .btn-secondary {
            background: white;
            color: var(--primary);
            padding: 0.75rem 1.5rem;
            border-radius: 8px;
            text-decoration: none;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            border: 1px solid var(--border-color, #e2e8f0);
            cursor: pointer;
        }

        .btn-whatsapp {
            background: #25D366;
            color: white;
            position: fixed;
            bottom: 30px;
            right: 30px;
            z-index: 999;
            border-radius: 50%;
            width: 60px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 12px rgba(0,0,0,0.3);
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
            70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
            100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
        }

        /* Trust Bar */
        .trust-bar {
            background: var(--light);
            padding: 2rem;
            border-bottom: 1px solid #e2e8f0;
        }

        .trust-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-around;
            text-align: center;
            flex-wrap: wrap;
            gap: 2rem;
        }

        .trust-item h3,
        .trust-item .stat-number {
            color: var(--primary);
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }

        .trust-item p {
            color: #4a5568;
            font-weight: 500;
        }

        /* Services Section */
        .services {
            padding: 5rem 2rem;
            background: white;
        }

        .section-header {
            text-align: center;
            max-width: 800px;
            margin: 0 auto 3rem;
        }

        .section-header h2 {
            font-size: 2.5rem;
            color: var(--primary);
            margin-bottom: 1rem;
        }

        .section-header p {
            color: #4a5568;
            font-size: 1.2rem;
        }

        .services-grid {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
        }

        .service-card {
            background: white;
            border-radius: 12px;
            padding: 2rem;
            box-shadow: 0 4px 6px rgba(0,0,0,0.05);
            border: 1px solid #e2e8f0;
            transition: transform 0.3s, box-shadow 0.3s;
        }

        .service-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        }

        .service-icon {
            width: 60px;
            height: 60px;
            background: var(--primary);
            color: white;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            margin-bottom: 1rem;
        }

        .service-card h3 {
            color: var(--primary);
            margin-bottom: 0.5rem;
            font-size: 1.3rem;
        }

        .service-card p {
            color: #4a5568;
            margin-bottom: 1rem;
        }

        .service-features {
            list-style: none;
            margin-top: 1rem;
        }

        .service-features li {
            padding: 0.3rem 0;
            color: #4a5568;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.9rem;
        }

        .service-features li::before {
            content: "✓";
            color: var(--success);
            font-weight: bold;
        }

        .service-link {
            display: inline-block;
            margin-top: 1.2rem;
            color: var(--accent);
            font-weight: 600;
            font-size: 0.95rem;
            text-decoration: none;
            transition: color 0.2s, gap 0.2s;
        }
        .service-link:hover {
            color: var(--primary);
            text-decoration: underline;
        }

        /* Coverage Section */
        .coverage {
            background: var(--primary);
            color: white;
            padding: 4rem 2rem;
        }

        .coverage-container {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
        }

        .coverage-content h2 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
        }

        .coverage-list {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
            margin-top: 2rem;
        }

        .coverage-item {
            background: rgba(255,255,255,0.1);
            padding: 1rem;
            border-radius: 8px;
            backdrop-filter: blur(10px);
        }

        .coverage-item strong {
            display: block;
            margin-bottom: 0.3rem;
        }

        .coverage-item small {
            opacity: 0.9;
        }

        /* Why Us */
        .why-us {
            padding: 5rem 2rem;
            background: var(--light);
        }

        .features-grid {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
        }

        .feature-box {
            text-align: center;
            padding: 2rem;
        }

        .feature-icon {
            width: 80px;
            height: 80px;
            background: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1rem;
            font-size: 2rem;
            box-shadow: 0 4px 6px rgba(0,0,0,0.05);
            color: var(--primary);
        }

        /* Contact Section */
        .contact {
            padding: 5rem 2rem;
            background: white;
        }

        .contact-container {
            max-width: 1000px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
        }

        .contact-info h3 {
            color: var(--primary);
            margin-bottom: 1rem;
            font-size: 1.5rem;
        }

        .contact-detail {
            display: flex;
            align-items: flex-start;
            gap: 1rem;
            margin-bottom: 1.5rem;
        }

        .contact-icon {
            color: var(--accent);
            font-size: 1.2rem;
            margin-top: 0.2rem;
        }

        .contact-form {
            background: var(--light);
            padding: 2rem;
            border-radius: 12px;
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            color: var(--dark);
            font-weight: 500;
        }

        .form-group input,
        .form-group textarea,
        .form-group select {
            width: 100%;
            padding: 0.75rem;
            border: 1px solid #cbd5e0;
            border-radius: 6px;
            font-family: inherit;
            transition: border-color 0.3s;
        }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--accent);
        }

        /* Footer */
        footer {
            background: var(--dark);
            color: white;
            padding: 3rem 2rem 1rem;
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 3rem;
            margin-bottom: 2rem;
        }

        .footer-section h4 {
            color: #63b3ed;
            margin-bottom: 1rem;
        }

        .footer-section a {
            color: #cbd5e0;
            text-decoration: none;
            display: block;
            margin-bottom: 0.5rem;
            transition: color 0.3s;
        }

        .footer-section a:hover {
            color: white;
        }

        .footer-bottom {
            text-align: center;
            padding-top: 2rem;
            border-top: 1px solid #4a5568;
            color: #a0aec0;
        }

        /* Social Buttons */
        .social-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.65rem 1.2rem;
            border-radius: 8px;
            text-decoration: none;
            font-weight: 600;
            font-size: 0.95rem;
            transition: transform 0.2s, box-shadow 0.2s;
            flex: 1;
            justify-content: center;
        }
        .social-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(0,0,0,0.15);
        }
        .social-ig {
            background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
            color: white;
        }
        .social-fb {
            background: #1558b0;
            color: white;
        }

        /* Responsive */
        @media (max-width: 480px) {
            .hero h1 {
                font-size: 1.6rem;
            }
            .hero p {
                font-size: 0.95rem;
            }
            .section-header h2 {
                font-size: 1.5rem;
            }
            .services-grid {
                grid-template-columns: 1fr;
            }
        }

        /* ── Barra Móvil Fija de Contacto (Mobile Sticky CTA Bar) ── */
        .mobile-sticky-bar {
            display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: white;
            box-shadow: 0 -3px 12px rgba(0,0,0,0.15);
            padding: 0.6rem 1rem;
            z-index: 9998;
            gap: 0.75rem;
        }
        .mobile-sticky-bar a {
            flex: 1;
            padding: 0.75rem;
            border-radius: 6px;
            font-weight: 700;
            font-size: 0.9rem;
            text-align: center;
            text-decoration: none;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.4rem;
        }
        .mobile-sticky-call {
            background: var(--primary);
            color: white;
        }
        .mobile-sticky-wa {
            background: #25D366;
            color: white;
        }

        @media (max-width: 768px) {
            .mobile-sticky-bar {
                display: flex;
            }
            .btn-whatsapp {
                bottom: 75px !important;
            }
            body {
                padding-bottom: 60px;
            }
            .hero-container,
            .coverage-container,
            .contact-container {
                grid-template-columns: 1fr;
            }
            
            .hero-content h1 {
                font-size: 2rem;
            }
            
            .coverage-list {
                grid-template-columns: 1fr;
            }
            
            .btn {
                width: 100%;
                justify-content: center;
            }
        }
