/* 🔁 Reset general */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 🌐 Tipografía y colores base */
body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    background-color: #e6ecf0;
}

/* 📦 Contenedor general */
.contenedor {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 🧭 Header institucional */
.header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    background-color: #1e272e;
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    gap: 20px;
}

/* 🌲 Logo */
.logo img {
    max-height: 80px;
    border: 2px solid #FFD700;
    border-radius: 10px;
}

/* 🏛️ Título */
.titulo h1 {
    font-family: 'Cinzel', serif;
    margin: 0;
}
.titulo h3 {
    font-family: 'Libre Bodoni', serif;
    font-size: 1rem;
    margin: 5px 0;
}

/* 🧭 Menú de navegación */
.menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.menu a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}
.menu a:hover {
    border-bottom: 2px solid #FFD700;
}

/* 🎯 Fila principal de categorías */
.fila-principal {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 40px; /* espacio fijo debajo de los padres */
}

/* 🧩 Bloques principales */
.bloque-categoria {
    display: flex;
    flex-direction: column; /* padre arriba, hijos debajo */
    align-items: center;
    gap: 20px;
}

.bloque-icono {
    background-color: #fffbe6;
    border-left: 6px solid #ffc107;
    padding: 20px;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-align: center;
}
.bloque-icono:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.bloque-icono img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
.nombre-categoria {
    margin-top: 10px;
    font-weight: bold;
}

/* 🧩 Subíconos */
.subvehiculos-grid {
    display: flex;
    flex-wrap: wrap;       /* permite varias filas */
    justify-content: center;
    gap: 20px;
}

.subicono {
    flex: 0 0 auto;
    text-align: center;
}

.subicono img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: pointer;
}
.subicono img:hover {
    transform: scale(1.1);
}

.info-hijo {
    margin-top: 25px;
    padding: 25px;
    background: #ffffff;
    border-left: 6px solid #ffc107;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    text-align: left;
    animation: fadeIn 0.4s ease-in-out;
}

/* Títulos dentro del bloque */
.info-hijo h3 {
    margin-top: 20px;
    font-size: 1.2rem;
    color: #1e272e;
    border-bottom: 2px solid #ffc107;
    padding-bottom: 5px;
}

/* Listas */
.info-hijo ul {
    margin: 15px 0 20px 25px;
    padding: 0;
    list-style-type: disc;
}

.info-hijo li {
    margin-bottom: 8px;
}

/* Párrafos */
.info-hijo p {
    margin-top: 10px;
}

/* Animación suave */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 🧬 Submenús externos */
.submenu-externo {
    margin: 5px auto;
    padding: 20px;
    max-width: 800px;
    background-color: #fffbe6;
    border-left: 6px solid #ffc107;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* 🧭 Footer institucional */
.footer {
    background-color: #1e272e;
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9rem;
    margin-top: 40px;
    width: 100%;
    box-sizing: border-box;
}
.footer-link {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}
.footer-link:hover {
    text-decoration: underline;
    color: #fff;
}

/* 📱 Responsive */
@media (max-width: 768px) {
    .fila-principal {
        gap: 20px;
        flex-direction: column; /* padres uno debajo del otro en móviles */
        align-items: center;
    }

    .bloque-icono img {
        width: 100px;
        height: 100px;
    }

    .nombre-categoria {
        font-size: 0.9rem;
    }

    .subvehiculos-grid {
        gap: 10px;
    }

    .subicono img {
        width: 64px;
        height: 64px;
    }

    .footer {
        flex-direction: column;
        text-align: center;
    }
}