body { margin: 0; font-family: Arial, sans-serif; }
        header { background: #003366; color: #fff; padding: 20px 0; }
        .container { width: 90%; max-width: 1200px; margin: 0 auto; }
        .logo { font-size: 2em; font-weight: bold; letter-spacing: 2px; }
        nav { float: right; }
        nav a {
            color: #fff;
            text-decoration: none;
            margin-left: 20px;
            font-weight: 500;
        }
        .banner {
            position: relative;
            overflow: hidden;
            height: 350px; /* Ajusta la altura según tu diseño */
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
        }
        .banner-video {
            position: absolute;
            top: 0; left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: 1;
        }
        .banner-content {
            position: relative;
            z-index: 2;
            width: 100%;
            color: #fff;
            text-shadow:
                0 2px 16px #000a,
                0 0 8px #000,
                2px 2px 8px #000,
                -2px -2px 8px #000;
        }
        .banner h1 { font-size: 3em; margin-bottom: 10px; }
        .banner p { font-size: 1.5em; margin-bottom: 30px; }
        .btn {
            background: #0074d9;
            color: #fff;
            padding: 15px 30px;
            border: none;
            border-radius: 4px;
            font-size: 1.1em;
            cursor: pointer;
            text-decoration: none;
        }
        .services {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            margin: 60px 0;
        }
        .service {
            flex: 1 1 30%;
            background: #f4f4f4;
            margin: 10px;
            padding: 30px 20px;
            border-radius: 8px;
            text-align: center;
        }
        .service h3 { color: #003366; }
        footer {
            background: #133c6e;
            color: #ffe600;
            text-align: center;
            padding: 14px 0 12px 0;
            font-size: 0.98em;
            letter-spacing: 0.5px;
            border-top: 1px solid #224a7a;
        }
        .empresas-clientes {
            text-align: center;
            margin: 40px auto 20px auto;
        }
        .empresas-clientes h2 {
            color: #003366;
            margin-bottom: 20px;
        }
        .carousel-empresas {
            width: 100%;
            overflow: hidden;
            position: relative;
            margin: 0 auto 30px auto;
            max-width: 800px;
            background: transparent;
        }
        .carousel-track {
            display: flex;
            gap: 40px;
            animation: scroll-logos 18s linear infinite;
            align-items: center;
        }
        .carousel-track img {
            height: 60px;
            margin: 0 16px;
            object-fit: contain;
            background: #fff;
            padding: 8px 16px;
            border-radius: 8px;
            transition: filter 0.3s;
        }
        .carousel-track img:hover {
            filter: grayscale(0);
        }
        @keyframes scroll-logos {
            0% { transform: translateX(0); }
            100% { transform: translateX(-50%); }
        }
        /* Duplicar logos para efecto infinito */
        .carousel-track {
            width: max-content;
        }
        @media (max-width: 900px) {
            .footer-banner {
                flex-direction: column;
                align-items: center;
                text-align: center;
            }
            .footer-col {
                margin-bottom: 30px;
            }
        }
        @media (max-width: 800px) {
            .services { flex-direction: column; }
            nav { float: none; text-align: center; margin-top: 10px; }
        }
        .footer-banner {
            background: #0a2a5c;
            color: #fff;
            display: flex;
            justify-content: space-around;
            padding: 40px 0 30px 0;
            margin-top: 40px;
            font-size: 1.1em;
        }
        .footer-col {
            flex: 1 1 30%;
            margin: 0 20px;
        }
        .footer-col h3 {
            color: #ffe600;
            border-bottom: 2px solid #ffe600;
            padding-bottom: 8px;
            margin-bottom: 18px;
            font-size: 1.2em;
        }
        .footer-col ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        .footer-col ul li {
            margin-bottom: 10px;
        }
        .footer-col iframe {
            border-radius: 8px;
            border: none;
            width: 100%;
            min-width: 220px;
        }
        .whatsapp-chat {
            position: fixed;
            bottom: 24px;
            right: 24px;
            z-index: 999;
            background: #25d366;
            border-radius: 50%;
            box-shadow: 0 2px 8px #0003;
            padding: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: box-shadow 0.2s, transform 0.2s;
        }
        .whatsapp-chat:hover {
            box-shadow: 0 4px 16px #0005;
            transform: scale(1.08);
        }
        .whatsapp-chat img {
            width: 36px;
            height: 36px;
            display: block;
            filter: invert(1) brightness(2);
        }
        .logo-header {
    height: 60px;
    width: auto;
    display: block;
    margin-right: 24px;
}

.header .container, .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
}

.menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.menu li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.auth-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.user-name {
    color: #fff;
    font-weight: bold;
    font-size: 1.08rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3em 0.8em;
    border-radius: 18px;
    background: rgba(255,255,255,0.07);
    transition: background 0.2s;
}

.user-name .user-icon {
    font-size: 1.2em;
}

.btn-header {
    margin: 0;
    padding: 0.4em 1.2em;
    border: 1.5px solid #ffe066;
    background: transparent;
    color: #ffe066;
    border-radius: 6px;
    font-weight: 500;
    font-size: 1rem;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
    margin-left: 0.5em;
}

.btn-header:hover {
    background: #ffe066;
    color: #003366;
}

#menu-toggle {
    display: none;
}

/* Menú desplegable para Servicios */
.menu .dropdown {
    position: relative;
}
.menu .dropdown .arrow {
    margin-left: 6px;
    font-size: 0.8em;
}
.menu .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #0a2a5c;
    min-width: 260px;
    box-shadow: 0 4px 16px #0005;
    border-radius: 0 0 8px 8px;
    z-index: 200;
    padding: 0;
    margin: 0;
}
.menu .submenu li {
    color: #fff;
    padding: 12px 20px;
    white-space: normal;
    cursor: pointer;
    font-size: 1em;
    border-bottom: 1px solid #224a7a;
    list-style: none;
    transition: background 0.2s;
}
.menu .submenu li:last-child {
    border-bottom: none;
}
.menu .submenu li:hover {
    background: #133c6e;
}
.menu .dropdown:hover .submenu,
.menu .dropdown:focus-within .submenu {
    display: block;
}
.menu .dropdown > a {
    display: flex;
    align-items: center;
    gap: 4px;
}

@media (max-width: 900px) {
    .container {
        flex-direction: column;
        align-items: flex-start;
    }
    .main-nav {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }
    .menu {
        display: none;
        position: absolute;
        top: 48px;
        right: 0;
        background: #003366;
        flex-direction: column;
        width: 180px;
        box-shadow: 0 4px 16px #0005;
        border-radius: 0 0 8px 8px;
        z-index: 100;
        padding: 16px 0;
    }
    .menu li {
        margin: 0;
        padding: 0;
        text-align: right;
        margin-right: 18px;
        margin-bottom: 12px;
    }
    .menu li:last-child {
        margin-bottom: 0;
    }
    .menu-icon {
        display: block;
    }
    #menu-toggle:checked + .menu-icon + .menu {
        display: flex;
    }
    .auth-links {
        flex-direction: column;
        gap: 6px;
        margin-left: 12px;
    }
    .menu .dropdown .submenu {
        position: static;
        box-shadow: none;
        background: #0a2a5c;
        border-radius: 0 0 8px 8px;
        display: none;
    }
    .menu .dropdown.open .submenu {
        display: block;
    }
    .menu .dropdown:hover .submenu,
    .menu .dropdown:focus-within .submenu {
        display: none;
    }
}

/* Formulario de contacto */
.contact-section {
    background: #eaf2fb;
    padding: 50px 0 70px 0;
}

.contact-main-container {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
    max-width: 950px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.contact-info-box, .contact-form-box {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 24px #00336618;
    padding: 32px 28px 24px 28px;
    min-width: 270px;
    flex: 1 1 320px;
    max-width: 400px;
    margin-bottom: 24px;
}

.contact-info-box h2,
.contact-form-box h2 {
    color: #003366;
    font-size: 1.25em;
    margin-bottom: 18px;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-align: left;
}

.contact-info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 1em;
}

.contact-info-box a {
    color: #0074d9;
    text-decoration: none;
    word-break: break-all;
}

.contact-info-box a:hover {
    text-decoration: underline;
}

.contact-form-desc {
    color: #224a7a;
    margin-bottom: 18px;
    text-align: left;
    font-size: 1.02em;
}

.contact-form .form-group {
    margin-bottom: 18px;
}

.contact-form label {
    display: block;
    margin-bottom: 7px;
    color: #003366;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 1em;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #bcd0e5;
    border-radius: 7px;
    font-size: 1em;
    background: #fafdff;
    color: #003366;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    resize: none;
    box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #0074d9;
    background: #f0f8ff;
    box-shadow: 0 0 0 2px #0074d933;
}

.contact-form textarea {
    min-height: 100px;
    max-height: 300px;
}

.contact-form .btn {
    width: 100%;
    background: linear-gradient(90deg, #0074d9 60%, #003366 100%);
    color: #fff;
    padding: 13px 0;
    border: none;
    border-radius: 7px;
    font-size: 1.13em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    margin-top: 10px;
    box-shadow: 0 2px 8px #00336622;
    letter-spacing: 0.5px;
}

.contact-form .btn:hover {
    background: linear-gradient(90deg, #005fa3 60%, #002244 100%);
    box-shadow: 0 4px 16px #00336633;
}

/* Responsive */
@media (max-width: 600px) {
    .contact-section {
        padding: 24px 0 36px 0;
    }
    .contact-section .container {
        padding: 18px 6px;
    }
    .contact-section h1 {
        font-size: 1.3em;
    }
}
@media (max-width: 900px) {
    .contact-main-container {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        max-width: 98vw;
    }
    .contact-info-box,
    .contact-form-box {
        max-width: 100%;
        margin-bottom: 18px;
    }
}
.footer-banner a,
.footer-banner a:visited,
.footer-banner a:active {
    color: #ffe600;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-banner a:hover {
    color: #fff;
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;
    font-family: Arial, sans-serif;
}

/* Título centrado */
.services-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 25px;
    color: #003366;
    text-transform: uppercase;
}

/* Slider horizontal */
.services-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 15px;
}

.services-slider::-webkit-scrollbar {
    height: 10px;
}

.services-slider::-webkit-scrollbar-thumb {
    background: #004080;
    border-radius: 5px;
}

.services-slider::-webkit-scrollbar-track {
    background: #e0e0e0;
}

/* Tarjetas estilo galería */
.service {
    flex: 0 0 300px; /* ancho fijo */
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.1);
    scroll-snap-align: start;
    transition: transform 0.3s ease;
}

.service:hover {
    transform: translateY(-5px);
}

.service h3 {
    font-size: 1.1rem;
    color: #004080;
    margin-bottom: 10px;
}

.service p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
}