/* VARIABLES Y RESET */
:root {
    --azul-oscuro: #003366;
    --azul-principal: #0056b3;
    --blanco: #ffffff;
    --gris-fondo: #f8fafc;
    --rojo-novedad: #e74c3c;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--gris-fondo);
    color: #333;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.wrapper {
    width: 100%;
    max-width: 1000px;
    padding: 40px 20px;
}

/* HEADER Y LOGO */
.main-header {
    text-align: center;
    margin-bottom: 60px;
}

.logo-text {
    font-size: 4rem;
    font-weight: 800;
    color: var(--azul-principal);
    letter-spacing: -2px;
}

.tagline {
    font-size: 1rem;
    color: #888;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 5px;
}

/* GRID DE SECCIONES */
.home-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

/* TARJETAS (CARDS) */
.nav-card {
    background: var(--blanco);
    padding: 50px 30px;
    border-radius: 20px;
    text-decoration: none;
    text-align: center;
    position: relative; /* Necesario para el badge */
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: block;
}

.nav-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.icon-box {
    font-size: 3.5rem;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.nav-card:hover .icon-box {
    transform: scale(1.1);
}

.nav-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.description {
    font-size: 0.9rem;
    color: #999;
}

/* BORDE INFERIOR ANIMADO */
.card-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.nav-card:hover .card-border {
    opacity: 1;
}

/* BADGE DE NOVEDAD */
.badge-new {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--rojo-novedad);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* FOOTER */
.main-footer {
    margin-top: 60px;
    text-align: center;
    color: #bbb;
    font-size: 0.8rem;
}

/* RESPONSIVE */
@media (max-width: 700px) {
    .home-grid {
        grid-template-columns: 1fr;
    }
    .logo-text {
        font-size: 3rem;
    }
}
/* Selector ES/EU compartido */
.lang-switch {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1000;
    display: inline-flex;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.7);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(8px);
}

.lang-switch a {
    padding: 7px 11px;
    color: #334155;
    font-size: 0.75rem;
    font-weight: 800;
    text-decoration: none;
    line-height: 1;
}

.lang-switch a.active {
    background: #0056b3;
    color: #fff;
}
