* { box-sizing: border-box; }
body { font-family: Arial, sans-serif; margin: 0; padding: 0; color: #333; line-height: 1.6; }

header {
    background: #002366;
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
header img { height: 80px; border-radius: 10px; }
.header-text { text-align: center; flex-grow: 1; }
.header-text h1 { margin: 10px 0; font-size: 2em; }
.header-text p { margin: 5px 0; font-size: 1.1em; }

nav {
    background: #f4f4f4;
    padding: 15px;
    text-align: center;
}
nav a {
    margin: 0 10px;
    text-decoration: none;
    color: #002366;
    font-weight: bold;
    font-size: 1.1em;
}
.menu-toggle { display: none; font-size: 1.8em; cursor: pointer; color: #002366; }

.hero {
    background: url('https://i.blogs.es/088ca6/2560_3000/1366_2000.jpeg') center/cover no-repeat;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 20px;
}
.hero div { max-width: 90%; }
.hero h1 { font-size: 2.8em; background: rgba(0,0,0,0.6); padding: 15px; border-radius: 10px; }
.hero p { font-size: 1.3em; background: rgba(0,0,0,0.5); padding: 10px; border-radius: 8px; }

section { padding: 60px 20px; text-align: center; }
h2 { color: #002366; }

.official { font-weight: bold; color: #002366; font-size: 1.4em; margin: 30px 0 20px; }
.logos-oficiales {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin: 40px 0;
}
.logos-oficiales img { height: 70px; object-fit: contain; }

.brands { font-size: 1.1em; max-width: 800px; margin: 0 auto 40px; }

.services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}
.service-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 25px;
    width: 100%;
    max-width: 360px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
.service-card:hover { transform: translateY(-10px); }
.service-card img { border-radius: 8px; margin-bottom: 15px; }
.service-card h3 { color: #002366; }

.btn {
    display: inline-block;
    background: #ff6600;
    color: white;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    margin-top: 15px;
    transition: background 0.3s;
}
.btn:hover { background: #e55a00; }

#sobre { background: #f8f9fa; }

/* Estilos para formulario con iconos */
#contacto form {
    max-width: 600px;
    margin: 40px auto 0;
    text-align: left;
}
.form-group {
    position: relative;
    margin: 20px 0;
}
.form-group i {
    position: absolute;
    left: 15px;
    top: 18px;
    color: #002366;
    font-size: 1.2em;
    pointer-events: none;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 12px 12px 45px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
}
.form-group select {
    height: 48px;
    padding-left: 45px;
}
.form-group textarea {
    padding-top: 18px;
    padding-left: 45px;
    resize: vertical;
}
#contacto button {
    background: #002366;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    width: 100%;
}
#contacto button:hover { background: #001a4d; }

footer {
    background: #002366;
    color: white;
    padding: 25px;
    text-align: center;
    font-size: 0.9em;
}

/* Botón flotante WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 { font-size: 2.4em; }
    .logos-oficiales img { height: 60px; }
}

@media (max-width: 768px) {
    header { flex-direction: column; text-align: center; }
    header img { margin-bottom: 15px; }
    .header-text h1 { font-size: 1.8em; }

    nav { padding: 10px; position: relative; }
    .menu-toggle { display: block; }
    .nav-links {
        display: none;
        flex-direction: column;
        background: #f4f4f4;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 10px 0;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
    .nav-links.active { display: flex; }
    nav a { margin: 10px 0; }

    .hero h1 { font-size: 2em; }
    .hero { height: 50vh; }

    .official { font-size: 1.2em; }
    .logos-oficiales { gap: 20px; }
    .logos-oficiales img { height: 55px; }

    .whatsapp-float { width: 55px; height: 55px; font-size: 28px; bottom: 15px; right: 15px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8em; }
    .hero p { font-size: 1.1em; }
    section { padding: 40px 15px; }
}