   :root {
            --azul: #2E6DB4;
            --azul-oscuro: #1A4A7A;
            --azul-claro: #4A90D9;
            --azul-electrico:#007BFF;
            --rojo: #B5202A;
            --rojo-oscuro: #8C1820;
            --negro: #1A1A2E;
            --gris-oscuro: #2D2D44;
            --gris: #6B7280;
            --gris-claro: #F0F2F5;
            --blanco: #FFFFFF;
            --gris-900: #141829;
            --gris-800: #1E2340;
            --gris-700: #333860;
            --gris-500: #656A90;
            --gris-400: #8E93B4;
            --gris-300: #B5B9D4;
            --gris-100: #EDEEF5;
            --gradiente-hero: linear-gradient(135deg, #1A1A2E 0%, #1A4A7A 50%, #2E6DB4 100%);
            --gradiente-rojo: linear-gradient(135deg, #B5202A, #D4343E);
            --gradiente-azul: linear-gradient(135deg, #2E6DB4, #4A90D9);
            --sombra: 0 20px 60px rgba(26, 26, 46, 0.15);
            --sombra-hover: 0 30px 80px rgba(26, 26, 46, 0.25);
        }

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

        html { scroll-behavior: smooth; }
        .freeprivacypolicy-com---nb-interstitial{
            top: 50vh!important;
        }

        body {
            font-family: 'DM Sans', sans-serif;
            color: var(--negro);
            background: var(--blanco);
            overflow-x: hidden;
        }

        /* ===== NAVBAR ===== */
        .navbar {
            position: fixed;
            top: 0;
            width: 100%;
            z-index: 1000;
            padding: 16px 0;
            transition: all 0.4s ease;
            background: transparent;
        }

        .navbar.scrolled {
            background: rgba(255,255,255,0.97);
            backdrop-filter: blur(20px);
            box-shadow: 0 2px 30px rgba(0,0,0,0.08);
            padding: 10px 0;
        }

        .navbar .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }


        .navbar.scrolled .logo img { 
            height: 40px; 
            content: url('https://dpes.es/wp-content/uploads/2026/03/LOGO2X02Negroretina-400x95-03-e1772635432116.png');
        }
        .links {
            color: var(--azul-electrico);
            text-decoration: none;
            font-size: 12px;
        }

        .nav-links {
            display: flex;
            gap: 32px;
            align-items: center;
            list-style: none;
        }

        .nav-links a {
            text-decoration: none;
            color: rgba(255,255,255,0.85);
            font-weight: 500;
            font-size: 0.95rem;
            transition: color 0.3s;
            letter-spacing: 0.02em;
        }

        .navbar.scrolled .nav-links a { color: var(--negro); }
        .nav-links a:hover { color: var(--azul-electrico); }

        .nav-cta {
            background: var(--gradiente-rojo) !important;
            color: var(--blanco) !important;
            padding: 10px 24px !important;
            border-radius: 50px !important;
            font-weight: 600 !important;
            transition: transform 0.3s, box-shadow 0.3s !important;
        }
        .nav-links li{
                list-style: none;
            }

        .mobile-menu-btn {
            display: none;
            flex-direction: column;
            gap: 4px;
            background: none;
            border: none;
            cursor: pointer;
            padding: 8px;
            position: fixed;
            bottom: 0;
            right: 20px;
            z-index: 1001;
        }

        .mobile-menu-btn span {
            width: 24px;
            height: 2px;
            background: var(--negro);
            transition: all 0.3s;
        }

        .navbar.scrolled .mobile-menu-btn span {
            background: var(--negro);
        }

        .mobile-menu-btn.active span:nth-child(1) {
            transform: rotate(45deg) translate(5px, 5px);
        }

        .mobile-menu-btn.active span:nth-child(2) {
            opacity: 0;
        }

        .mobile-menu-btn.active span:nth-child(3) {
            transform: rotate(-45deg) translate(7px, -6px);
        }

        .nav-cta:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(181, 32, 42, 0.4);
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 24px;
        }

        /* ===== HERO ===== */
        .hero, .hero1 {
            min-height: 100vh;
            background: var(--gradiente-hero);
            display: flex;
            align-items: center;
            position: relative;
            overflow: hidden;
        }

        .hero::before, .hero1::before {
            content: '';
            position: absolute;
            top:-6%;
            right: 6%;
            width: 800px;
            height: 800px;
            /*background-image: url('https://dpes.es/wp-content/uploads/2026/03/SAP-partner-logo-certified-300-blanco.png');*/
            background-size: 135px;
            background-position: center;
            background-repeat: no-repeat;
            border-radius: 50%;
            will-change: transform, opacity;
            animation: heroPulse 5s ease-in-out infinite;
        }

        @keyframes heroPulse {
            0%, 100% { transform: scale(1); opacity: 0.7; }
            50% { transform: scale(1.10); opacity: 1; }
        }

        /* Accesibilidad para usuarios sensibles a animaciones */
        @media (prefers-reduced-motion: reduce) {
            .hero::before, .hero1::before,
            .hero::after, .hero1::after {
                animation: none;
            }
        }

        /* Ocultar logo animado en tablet y móvil */
        @media (max-width: 768px) {
            .hero::before, .hero1::before {
                display: none !important;
                content: none !important;
                background-image: none !important;
                width: 0 !important;
                height: 0 !important;
                animation: none;
            }
        }
        .rgpd-group {
    margin-bottom: 2rem;
}

        /* Grid pattern overlay */
        .hero-grid {
            position: absolute;
            inset: 0;
            background-image: 
                linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
            background-size: 60px 60px;
            pointer-events: none;
        }

        .hero-content {
            position: relative;
            z-index: 2;
            max-width: 720px;
        }

        .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(255,255,255,0.1);
            border: 1px solid rgba(255,255,255,0.15);
            padding: 8px 20px;
            border-radius: 50px;
            color: rgba(255,255,255,0.9);
            font-size: 0.85rem;
            font-weight: 500;
            margin-bottom: 28px;
            backdrop-filter: blur(10px);
            animation: fadeInUp 0.8s ease forwards;
        }

        .hero-badge .dot {
            width: 8px;
            height: 8px;
            background: #4ADE80;
            border-radius: 50%;
            animation: blink 2s infinite;
        }

        @keyframes blink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.3; }
        }

        .hero h1 {
            font-family: 'Outfit', sans-serif;
            font-size: clamp(2.8rem, 5.5vw, 4.2rem);
            font-weight: 800;
            color: var(--blanco);
            line-height: 1.1;
            margin-bottom: 24px;
            animation: fadeInUp 0.8s 0.15s ease both;
        }

        .hero h1 span {
            background: var(--gradiente-rojo);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .hero p {
            font-size: 1.2rem;
            color: rgba(255,255,255,0.75);
            line-height: 1.7;
            margin-bottom: 40px;
            max-width: 560px;
            animation: fadeInUp 0.8s 0.3s ease both;
        }

        .hero-buttons {
            display: flex;
            gap: 16px;
            flex-wrap: wrap;
            animation: fadeInUp 0.8s 0.45s ease both;
            text-align: center;
        }

        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(30px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 16px 32px;
            border-radius: 50px;
            font-family: 'DM Sans', sans-serif;
            font-weight: 600;
            font-size: 1rem;
            text-decoration: none;
            border: none;
            cursor: pointer;
            transition: all 0.35s ease;
            letter-spacing: 0.01em;
        }

        .btn-primary {
            background: var(--gradiente-rojo);
            color: var(--blanco);
            box-shadow: 0 8px 30px rgba(181, 32, 42, 0.35);
            text-align: center;
        }

        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 14px 40px rgba(181, 32, 42, 0.5);
        }

        .btn-secondary {
            background: rgba(255,255,255,0.1);
            color: var(--blanco);
            border: 1px solid rgba(255,255,255,0.25);
            backdrop-filter: blur(10px);
        }

        .btn-secondary:hover {
            background: rgba(255,255,255,0.2);
            transform: translateY(-3px);
        }

        .btn-azul {
            background: var(--gradiente-azul);
            color: var(--blanco);
            box-shadow: 0 8px 30px rgba(46, 109, 180, 0.35);
        }

        .btn-azul:hover {
            transform: translateY(-3px);
            box-shadow: 0 14px 40px rgba(46, 109, 180, 0.5);
        }

        /* ===== STATS BAR ===== */
        .stats-bar {
            background: var(--blanco);
            padding: 0;
            position: relative;
            z-index: 10;
            margin-top: -60px;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            background: var(--blanco);
            border-radius: 20px;
            box-shadow: var(--sombra);
            overflow: hidden;
        }

        .stat-item {
            padding: 40px 32px;
            text-align: center;
            border-right: 1px solid rgba(0,0,0,0.06);
            transition: background 0.3s;
        }

        .stat-item:last-child { border-right: none; }
        .stat-item:hover { background: var(--gris-claro); }

        .stat-number {
            font-family: 'Outfit', sans-serif;
            font-size: 2.5rem;
            font-weight: 800;
            color: var(--azul);
            margin-bottom: 6px;
        }

        .stat-number .accent { color: var(--rojo); }

        .stat-label {
            font-size: 0.9rem;
            color: var(--gris);
            font-weight: 500;
        }

        /* ===== SECCIONES ===== */
        .section {
            padding: 100px 0;
        }

        .section-dark {
            background: var(--negro);
            color: var(--blanco);
        }

        .section-light {
            background: var(--gris-claro);
        }

        .section-header {
            text-align: center;
            margin-bottom: 64px;
        }

        .section-tag {
            display: inline-block;
            font-family: 'Outfit', sans-serif;
            font-size: 0.8rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.15em;
            color: var(--rojo);
            margin-bottom: 16px;
            background: rgba(181, 32, 42, 0.08);
            padding: 6px 16px;
            border-radius: 50px;
        }

        .section-dark .section-tag {
            background: rgba(181, 32, 42, 0.25);
            color: #FF6B6B;
        }

        .section-header h2 {
            font-family: 'Outfit', sans-serif;
            font-size: clamp(2rem, 4vw, 2.8rem);
            font-weight: 800;
            line-height: 1.15;
            margin-bottom: 20px;
        }

        .section-header p {
            font-size: 1.1rem;
            color: var(--gris);
            max-width: 620px;
            margin: 0 auto;
            line-height: 1.7;
        }

        .section-dark .section-header p { color: rgba(255,255,255,0.6); }

        /* NAV BAR */
         .navbar .logo img { 
                height: 75px !important; 
                content: url('https://dpes.es/wp-content/uploads/2023/03/LOGO2X02blancoretina-400x95-03-e1772635432116.png') !important;
                transition: height 0.3s;
            }
            .navbar.scrolled .logo img { 
                height: 55px !important; 
                content: url('https://dpes.es/wp-content/uploads/2026/03/LOGO2X02Negroretina-400x95-03-e1772635432116.png') !important;
            }

        /* ===== SERVICIOS AMS ===== */
        .services-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 28px;
        }

        .service-card {
            background: var(--blanco);
            border-radius: 20px;
            padding: 40px 32px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.06);
            border: 1px solid rgba(0,0,0,0.04);
            transition: all 0.4s ease;
            position: relative;
            overflow: hidden;
        }

        .service-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: var(--gradiente-azul);
            transform: scaleX(0);
            transition: transform 0.4s ease;
        }

        .service-card:hover::before { transform: scaleX(1); }

        .service-card:hover {
            transform: translateY(-8px);
            box-shadow: var(--sombra-hover);
        }

        .service-icon {
            width: 56px;
            height: 56px;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
            font-size: 1.5rem;
        }

        .icon-azul { background: rgba(46, 109, 180, 0.1); color: var(--azul); }
        .icon-rojo { background: rgba(181, 32, 42, 0.1); color: var(--rojo); }

        .service-card h3 {
            font-family: 'Outfit', sans-serif;
            font-size: 1.3rem;
            font-weight: 700;
            margin-bottom: 12px;
            color: var(--negro);
        }

        .service-card p {
            color: var(--gris);
            line-height: 1.65;
            font-size: 0.95rem;
        }

        /* ===== OFERTA GRATUITA HIGHLIGHT ===== */
        .offer-section {
            padding: 100px 0;
            position: relative;
            overflow: hidden;
        }

        .offer-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 40px;
        }

        .offer-card {
            border-radius: 24px;
            padding: 48px 40px;
            position: relative;
            overflow: hidden;
            transition: transform 0.4s;
        }

        .offer-card:hover { transform: translateY(-6px); }

        .offer-card-ams {
            background: var(--gradiente-hero);
            color: var(--blanco);
        }

        .offer-card-s4 {
            background: linear-gradient(135deg, #8C1820 0%, #B5202A 50%, #D4343E 100%);
            color: var(--blanco);
        }

        .offer-card::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -30%;
            width: 300px;
            height: 300px;
            background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
            border-radius: 50%;
        }

        .offer-free-tag {
            display: inline-block;
            background: rgba(255,255,255,0.2);
            border: 1px solid rgba(255,255,255,0.3);
            padding: 6px 18px;
            border-radius: 50px;
            font-size: 0.8rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            margin-bottom: 24px;
            backdrop-filter: blur(5px);
        }

        .offer-card h3 {
            font-family: 'Outfit', sans-serif;
            font-size: 1.8rem;
            font-weight: 800;
            margin-bottom: 16px;
            line-height: 1.2;
        }

        .offer-card p {
            font-size: 1.05rem;
            line-height: 1.7;
            opacity: 0.85;
            margin-bottom: 32px;
        }

        .offer-features {
            list-style: none;
            margin-bottom: 36px;
        }

        .offer-features li {
            padding: 8px 0;
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 0.95rem;
            opacity: 0.9;
        }

        .offer-features li::before {
            content: '✓';
            display: flex;
            align-items: center;
            justify-content: center;
            width: 24px;
            height: 24px;
            background: rgba(255,255,255,0.2);
            border-radius: 50%;
            font-size: 0.75rem;
            font-weight: 700;
            flex-shrink: 0;
        }

        .btn-white {
            background: var(--blanco);
            color: var(--negro);
            font-weight: 700;
            box-shadow: 0 8px 30px rgba(0,0,0,0.15);
        }

        .btn-white:hover {
            transform: translateY(-3px);
            box-shadow: 0 14px 40px rgba(0,0,0,0.25);
        }

        /* ===== PROCESO ===== */
        .process-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 24px;
            position: relative;
        }

        .process-grid::before {
            content: '';
            position: absolute;
            top: 50px;
            left: 12.5%;
            right: 12.5%;
            height: 2px;
            background: linear-gradient(90deg, var(--azul), var(--rojo));
            opacity: 0.2;
        }

        .process-step {
            text-align: center;
            position: relative;
        }

        .process-number {
            width: 64px;
            height: 64px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: 'Outfit', sans-serif;
            font-size: 1.5rem;
            font-weight: 800;
            margin: 0 auto 20px;
            position: relative;
            z-index: 2;
        }

        .process-step:nth-child(odd) .process-number {
            background: var(--gradiente-azul);
            color: var(--blanco);
        }

        .process-step:nth-child(even) .process-number {
            background: var(--gradiente-rojo);
            color: var(--blanco);
        }

        .process-step h4 {
            font-family: 'Outfit', sans-serif;
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 8px;
            color: var(--blanco);
        }

        .process-step p {
            font-size: 0.9rem;
            color: rgba(255,255,255,0.55);
            line-height: 1.6;
        }

        /* ===== FORMULARIO ===== */
        .form-section {
            padding: 100px 0;
            background: var(--gris-claro);
            position: relative;
        }

        .form-wrapper {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            align-items: center;
        }

        .form-info h2 {
            font-family: 'Outfit', sans-serif;
            font-size: 2.4rem;
            font-weight: 800;
            margin-bottom: 20px;
            line-height: 1.15;
        }

        .form-info h2 span { color: var(--rojo); }

        .form-info p {
            color: var(--gris);
            font-size: 1.05rem;
            line-height: 1.7;
            margin-bottom: 32px;
        }

        .form-benefits {
            list-style: none;
        }

        .form-benefits li {
            display: flex;
            align-items: flex-start;
            gap: 14px;
            padding: 12px 0;
            font-size: 0.95rem;
            color: var(--gris-oscuro);
        }

        .benefit-icon {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            font-size: 1rem;
        }

        .form-card {
            background: var(--blanco);
            border-radius: 24px;
            padding: 44px;
            box-shadow: var(--sombra);
        }

        /* === WHATSAPP FLOAT BUTTON === */

        .whatsapp-float {
            position: fixed;
            left: 20px;
            bottom: 20px;
            width: 45px;
            height: 45px;
            background: #25D366;
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
            z-index: 1000;
            transition: all 0.3s ease;
            text-decoration: none;
        }

        .whatsapp-float:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
            background: #128C7E;
        }

        .whatsapp-float svg {
            width: 22px;
            height: 22px;
        }

        /* Responsive para móvil */
        @media (max-width: 768px) {
            .whatsapp-float {
                left: 15px;
                bottom: 15px;
                width: 50px;
                height: 50px;
            }
            
            .whatsapp-float svg {
                width: 22px;
                height: 22px;
            }
        }

        /* === READING PROGRESS BAR === */
        .reading-progress {
            position: fixed;
            top: 80px;
            left: 0;
            width: 0%;
            height: 6px;
            background: var(--gradiente-azul);
            z-index: 1001;
            transition: width 0.1s ease;
        }

        .form-card h3 {
            font-family: 'Outfit', sans-serif;
            font-size: 1.4rem;
            font-weight: 700;
            margin-bottom: 8px;
        }

        .form-card .form-subtitle {
            color: var(--gris);
            font-size: 0.9rem;
            margin-bottom: 28px;
        }

        .form-group {
            margin-bottom: 18px;
        }

        .form-group label {
            display: block;
            font-size: 0.85rem;
            font-weight: 400;
            margin-bottom: 6px;
            color: var(--gris-300);
        }

        .form-group input:not([type="checkbox"]),
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 14px 18px;
            border: 2px solid rgba(0,0,0,0.08);
            border-radius: 12px;
            font-family: 'DM Sans', sans-serif;
            font-size: 0.95rem;
            transition: border-color 0.3s, box-shadow 0.3s;
            outline: none;
            background: var(--gris-claro);
        }

        .form-group input:not([type="checkbox"]):focus,
        .form-group select:focus,
        .form-group textarea:focus {
            border-color: var(--azul);
            box-shadow: 0 0 0 4px rgba(46, 109, 180, 0.1);
            background: var(--blanco);
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 14px;
        }

        .form-submit {
            width: 100%;
            padding: 16px;
            border: none;
            border-radius: 14px;
            background: var(--gradiente-rojo);
            color: var(--blanco);
            font-family: 'DM Sans', sans-serif;
            font-size: 1rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.35s;
            margin-top: 8px;
            box-shadow: 0 8px 25px rgba(181, 32, 42, 0.3);
        }

        .form-submit:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 35px rgba(181, 32, 42, 0.45);
        }

        .form-privacy {
            text-align: center;
            font-size: 0.78rem;
            color: var(--gris);
            margin-top: 14px;
        }

        /* ===== FOOTER ===== */
        .footer {
            background: var(--negro);
            color: rgba(255,255,255,0.6);
            padding: 60px 0 30px;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr;
            gap: 48px;
            margin-bottom: 48px;
        }
        .footer-link-dpes {
            color: var(--blanco);
            text-decoration: none;
            font-weight: 700;
        }

        .footer-brand p {
            font-size: 0.9rem;
            line-height: 1.7;
            margin-top: 16px;
            max-width: 300px;
        }

        .footer-brand .slogan {
            font-style: italic;
            color: var(--gris-300);
            margin-top: 8px;
            font-size: 0.85rem;
        }

        .footer h4 {
            font-family: 'Outfit', sans-serif;
            color: var(--blanco);
            font-size: 1rem;
            font-weight: 700;
            margin-bottom: 20px;
        }

        .footer ul { list-style: none; }

        .footer ul li { margin-bottom: 10px; }

        .footer ul a {
            color: rgba(255,255,255,0.55);
            text-decoration: none;
            font-size: 0.9rem;
            transition: color 0.3s;
        }

        .footer ul a:hover { color: var(--blanco); }

        .footer-contact li {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 0.9rem;
        }

        .footer-bottom {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 2rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            margin-top: 2rem;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .footer-legal {
            display: flex;
            gap: 1.5rem;
            align-items: center;
        }

        .footer-legal a {
            color: var(--gris-400);
            text-decoration: none;
            font-size: 0.85rem;
            transition: color 0.3s ease;
        }

        .footer-legal a:hover {
            color: var(--blanco);
        }

        .footer-social {
            display: flex;
            gap: 12px;
        }

        .footer-social a {
            width: 38px;
            height: 38px;
            border-radius: 10px;
            background: rgba(255,255,255,0.08);
            display: flex;
            align-items: center;
            justify-content: center;
            color: rgba(255,255,255,0.6);
            text-decoration: none;
            transition: all 0.3s;
            font-size: 0.85rem;
        }

        .footer-social a:hover {
            background: var(--azul);
            color: var(--blanco);
        }

        /* ===== MODAL ===== */
        .modal-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.6);
            backdrop-filter: blur(8px);
            z-index: 2000;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .modal-overlay.active { display: flex; }

        .modal {
            background: var(--blanco);
            border-radius: 24px;
            padding: 48px;
            max-width: 520px;
            width: 100%;
            position: relative;
            animation: modalIn 0.4s ease;
        }

        @keyframes modalIn {
            from { opacity: 0; transform: translateY(20px) scale(0.95); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }

        .modal-close {
            position: absolute;
            top: 16px;
            right: 16px;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            border: none;
            background: var(--gris-claro);
            cursor: pointer;
            font-size: 1.2rem;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.3s;
        }

        .modal-close:hover { background: #ddd; }

        .modal h3 {
            font-family: 'Outfit', sans-serif;
            font-size: 1.5rem;
            font-weight: 800;
            margin-bottom: 8px;
        }

        .modal .form-subtitle {
            color: var(--gris);
            font-size: 0.9rem;
            margin-bottom: 24px;
        }

        /* ===== RESPONSIVE ===== */
        @media (max-width: 1024px) {
            .nav-links {
                gap: 14px;
                padding: 4px 0;
            }
            .nav-links li {
                list-style: none;
                position: relative;
                padding: 30px 20px;
                width: 100%;
                text-align: center;
            }
            .nav-links a {
                font-size: 0.95rem;
                margin: 4px 0;
                font-weight: 500;
                letter-spacing: 0.01em;
                position: relative;
                transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
            }
            .nav-links a:hover {
                background: linear-gradient(90deg, rgba(181,32,42,0.08), rgba(181,32,42,0.12));
                padding-left: 24px;
                transform: translateX(8px);
                color: var(--azul-electrico);
            }
            .nav-links a::before {
                content: '';
                position: absolute;
                left: 0;
                top: 50%;
                transform: translateY(-50%);
                width: 4px;
                height: 4px;
                background: var(--rojo);
                border-radius: 50%;
                opacity: 0;
                transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
            }
            .nav-links a:hover::before {
                opacity: 1;
                transform: translateY(-50%) scale(1.5);
                background: var(--azul-electrico);
            }
            .stats-grid { grid-template-columns: 1fr 1fr; }
            .services-grid { grid-template-columns: 1fr; }
            .form-row { grid-template-columns: 1fr; }
            .footer-grid { grid-template-columns: 1fr; }
            .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
            
        
        }

        @media (max-width:768px) {

            .hero::before {display: none;opacity: 0;}
            .hero1::before {display: none;opacity: 0;}
            .mobile-menu-btn { 
                display: flex; 
                position: fixed;
                bottom: 10px;
                right: 20px;
                z-index: 1001;
                width: 56px;
                height: 56px;
                border-radius: 50%;
                justify-content: center;
                align-items: center;
            }
            .mobile-menu-btn span {
                width: 24px;
                height: 2px;
                background: var(--negro);
                transition: all 0.3s;
            }
            .navbar {
                background: rgba(255,255,255,0.97) !important;
                backdrop-filter: blur(20px) !important;
                box-shadow: 0 2px 30px rgba(0,0,0,0.08) !important;
                padding: 12px 0 !important;
            }
            .navbar.scrolled {
                background: rgba(255,255,255,0.97) !important;
                backdrop-filter: blur(20px) !important;
                box-shadow: 0 2px 30px rgba(0,0,0,0.08) !important;
                padding: 12px 0 !important;
            }
            .navbar .logo img { 
                height: 65px !important;  
                content: url('https://dpes.es/wp-content/uploads/2026/03/LOGO2X02Negroretina-400x95-03-e1772635432116.png') !important;
                transition: height 0.3s;
            }
            .navbar.scrolled .logo img { 
                height: 45px !important; 
                content: url('https://dpes.es/wp-content/uploads/2023/03/LOGO2X02blancoretina-400x95-03-e1772635432116.png') !important;
            }
            .nav-links {
                display: none;
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                width: 100vw;
                height: 100vh;
                background: rgba(255,255,255,0.98);
                backdrop-filter: blur(20px);
                flex-direction: column;
                gap: 0;
                padding: 80px 20px 20px;
                box-shadow: 0 4px 20px rgba(0,0,0,0.1);
                z-index: 1000;
                overflow-y: auto;
            }
            .nav-links.active {
                display: flex;
                flex-direction: column;
                justify-content: flex-start;
                gap: 0;
                padding: 100px 20px 80px;
            }
            .nav-links a {
                color: var(--negro);
                padding: 20px 24px;
                border-bottom: 1px solid rgba(0,0,0,0.08);
                font-size: 1.05rem;
                font-weight: 500;
                transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
                position: relative;
                text-decoration: none;
                border-radius: 8px;
                margin: 0;
            }
            .nav-links a:not(.nav-cta) {
                background: rgba(255,255,255,0.02);
                backdrop-filter: blur(10px);
            }
            .nav-links a:not(.nav-cta):hover {
                background: rgba(181,32,42,0.08);
                transform: translateX(8px);
                border-color: rgba(181,32,42,0.2);
            }
            .nav-links a:last-child {
                border-bottom: none;
            }
            .nav-links .nav-cta {
                margin-top: 24px;
                padding: 20px 24px !important;
                background: var(--gradiente-rojo) !important;
                color: var(--blanco) !important;
                border-radius: 16px !important;
                font-weight: 600 !important;
                font-size: 1.05rem !important;
                text-align: center !important;
                border: 2px solid var(--rojo) !important;
                box-shadow: 0 12px 30px rgba(181, 32, 42, 0.25) !important;
                letter-spacing: 0.02em;
            }
            .nav-links .nav-cta:hover {
                transform: translateY(-3px) scale(1.02) !important;
                box-shadow: 0 16px 40px rgba(181, 32, 42, 0.35) !important;
            }
            .nav-links a::after {
                content: '→';
                position: absolute;
                right: 20px;
                opacity: 0;
                transition: all 0.3s ease;
                color: var(--rojo);
            }
            .nav-links a:hover::after {
                opacity: 1;
                transform: translateX(5px);
            }
            .nav-links .nav-cta {
                margin-top: auto;
                padding-top: 20px;
                border-top: 1px solid rgba(0,0,0,0.1);
                text-align: center;
                background: var(--gradiente-rojo) !important;
                color: var(--blanco) !important;
                padding: 14px 24px !important;
                border-radius: 50px !important;
                font-weight: 600 !important;
                transition: all 0.3s !important;
                display: inline-block;
                text-decoration: none;
            }
            .nav-links .nav-cta:hover {
                transform: translateY(-2px) !important;
                box-shadow: 0 8px 25px rgba(181, 32, 42, 0.4) !important;
            }
            .nav-links .nav-cta::after {
                display: none;
            }
            .offer-grid {
                grid-template-columns: 1fr;
                gap: 24px;
            }
            .form-wrapper {
                grid-template-columns: 1fr;
                gap: 24px;
            }
            .stats-grid { grid-template-columns: 1fr 1fr; }
            .services-grid { grid-template-columns: 1fr; }
            .process-grid { grid-template-columns: 1fr 1fr; }
            .form-row { grid-template-columns: 1fr; }
            .footer-grid { grid-template-columns: 1fr; }
            .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
            .hero-buttons { flex-direction: column; text-align: center; }
            .offer-card { padding: 36px 28px; }
            .form-card { padding: 32px 8px; }
        }
        .rgpd-group {
            margin-bottom: 2rem;
        }

        .rgpd-label {
            display: flex;
            align-items: flex-start;
            gap: 8px;
            text-align: left;
            font-size: 0.875rem;
            font-weight: 400;
            line-height: 1.5;
            cursor: pointer;
        }

        .rgpd-label input[type="checkbox"] {
            margin: 0;
            flex-shrink: 0;
            margin-top: 2px;
            order: -1;
        }

        .rgpd-label .links {
            color: var(--azul-electrico);
            text-decoration: none;
            font-size: inherit;
            font-weight: 500;
            transition: color 0.3s ease;
        }

        .rgpd-label .links:hover {
            color: var(--azul-hover);
            text-decoration: underline;
        }

        /* ===== ANIMACIONES AL SCROLL ===== */
        .reveal {
            opacity: 0;
            transform: translateY(40px);
            transition: all 0.8s ease;
        }

        .reveal.visible {
            opacity: 1;
            transform: translateY(0);
        }

/* ESTILOS HOJAS LEGALES */
main.legal-page {
    background: var(--gradiente-hero);
    align-items: center;
}

/* ===== MENSAJES DE FORMULARIO ===== */
.form-container {
    position: relative;
}

.success-message, .error-message {
    text-align: center;
    padding: 40px 20px;
    border-radius: 12px;
    animation: fadeInUp 0.6s ease;
}

.success-icon, .error-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    color: white;
}
.success-message p a, .error-message p a{
    color:var(--blanco);
    text-decoration: none;
}
.success-message p a:hover, .error-message p a:hover{
    color:var(--naranja);
    text-decoration: none;
}

.success-icon {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.error-icon {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.success-message h3, .error-message h3 {
    color: var(--negro);
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.success-message p, .error-message p {
    color: var(--gris-oscuro);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.retry-btn {
    background: var(--gradiente-rojo);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(181, 32, 42, 0.4);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}