@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;600;700;800&display=swap');

:root {
    /* Paleta extraída del logo */
    --primary: #1e56a0;        /* Azul Corporativo vibrante, idéntico al texto del logo */
    --primary-light: #3d79cc;  /* Azul claro del contorno de las letras ML */
    --primary-dark: #0f3460;   /* Azul profundo para contraste y cabeceras */
    
    --accent-magenta: #e21a6e; /* Magenta vibrante de la pintura del splash */
    --accent-cyan: #00bcd4;    /* Cyan luminoso de la pintura del splash */
    --accent-orange: #f45b37;  /* Naranja/Coral de la pintura del splash */
    --accent-green: #83bf38;   /* Verde fresco de la pintura del splash */
    --accent-yellow: #ffb703;  /* Amarillo/Dorado premium para elementos de realce */
    
    --text-main: #2d3436;
    --text-muted: #636e72;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    
    --font-titles: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-titles);
    font-weight: 700;
    color: var(--primary-dark);
}

a {
    text-decoration: none;
    transition: var(--transition);
}

/* ── HEADER & NAV ────────────────────────────── */
.main-header {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.navbar-brand img {
    height: 75px !important;
    width: auto;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.08));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.navbar-brand:hover img {
    transform: scale(1.08) rotate(-2deg);
}

.nav-link {
    font-family: var(--font-titles);
    font-weight: 600;
    color: var(--primary-dark) !important;
    padding: 0.8rem 1.2rem !important;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-magenta), var(--accent-cyan));
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 10px;
}

.nav-link:hover::after {
    width: 30px;
}

.nav-link:hover {
    color: var(--accent-magenta) !important;
}

/* Botón Portal Destacado */
.nav-link[href*="portal"] {
    background: var(--primary);
    color: #fff !important;
    border-radius: 50px;
    padding: 0.6rem 1.5rem !important;
    margin-left: 15px;
    box-shadow: 0 4px 12px rgba(26, 58, 107, 0.2);
    transition: all 0.3s ease;
}

.nav-link[href*="portal"]:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(26, 58, 107, 0.3);
}

.nav-link[href*="portal"]::after {
    display: none;
}

/* Hero Section */
#heroCarousel .container {
    padding-left: 80px;
    padding-right: 80px;
}

@media (max-width: 768px) {
    #heroCarousel .container {
        padding-left: 55px;
        padding-right: 55px;
    }
    #heroCarousel .carousel-control-prev,
    #heroCarousel .carousel-control-next {
        width: 40px;
    }
}

.hero-slider {
    position: relative;
    height: 80vh;
    background: var(--primary-dark);
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--white), var(--accent-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Botones Premium */
.btn-premium {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white) !important;
    box-shadow: 0 4px 15px rgba(30, 86, 160, 0.25);
    border: none;
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 86, 160, 0.35);
    color: var(--white) !important;
}

.btn-premium-light {
    background: var(--white);
    color: var(--primary) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: none;
}

.btn-premium-light:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 86, 160, 0.25);
}

/* ── RITMO VISUAL & DETALLES DE DISEÑO ───────────────── */
.section-padding {
    padding: 90px 0;
    position: relative;
    z-index: 2;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.section-title h2 {
    font-size: 2.7rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--primary-dark);
    position: relative;
    display: inline-block;
    padding-bottom: 18px;
    margin-bottom: 12px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4.5px;
    background: linear-gradient(90deg, var(--accent-magenta), var(--accent-cyan), var(--accent-orange));
    border-radius: 10px;
}

/* Fondos sofisticados con gradientes radiales */
.bg-gradient-light {
    background: radial-gradient(circle at 50% 50%, rgba(250, 252, 255, 0.9) 0%, rgba(240, 244, 250, 0.8) 100%) !important;
}

/* Destellos decorativos (blobs) de acuarela de fondo con CSS puro */
.section-with-blobs {
    position: relative;
    overflow: hidden;
}

.section-with-blobs::before,
.section-with-blobs::after {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    filter: blur(130px);
    opacity: 0.1;
    z-index: 1;
    pointer-events: none;
    transition: var(--transition);
}

/* Splash de pintura magenta y cian (lado izquierdo y derecho) */
.section-with-blobs::before {
    top: -60px;
    left: -80px;
    background: var(--accent-magenta);
}

.section-with-blobs::after {
    bottom: -60px;
    right: -80px;
    background: var(--accent-cyan);
}

/* Variación alterna: verde y coral */
.section-with-blobs-alt::before {
    top: -60px;
    right: -80px;
    left: auto;
    background: var(--accent-orange);
}

.section-with-blobs-alt::after {
    bottom: -60px;
    left: -80px;
    right: auto;
    background: var(--accent-green);
}

/* ── EFECTO SHINE EN BOTONES ─────────────────────────── */
.btn-premium,
.btn-primary-custom,
.btn-login {
    position: relative;
    overflow: hidden;
}

.btn-premium::after,
.btn-primary-custom::after,
.btn-login::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 30%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-premium:hover::after,
.btn-primary-custom:hover::after,
.btn-login:hover::after {
    left: 130%;
}

/* ── ANIMACIONES DE FLOTACIÓN (MICRO-ANIMACIONES) ───── */
@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0px); }
}

.floating-hover {
    transition: var(--transition);
}

.floating-hover:hover {
    transform: translateY(-5px);
    animation: floating 4s ease-in-out infinite;
}

/* ── TARJETAS DE CATEGORÍA MEJORADAS ─────────────────── */
.category-card-custom {
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05) !important;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15,52,96,0.04) !important;
}

.category-card-custom:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(15,52,96,0.12) !important;
    border-color: rgba(30, 86, 160, 0.15) !important;
}

.category-img-container {
    position: relative;
    overflow: hidden;
}

.category-img-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(15, 52, 96, 0.6) 100%);
    z-index: 2;
    opacity: 0.8;
    transition: var(--transition);
}

.category-card-custom:hover .category-img-container::before {
    opacity: 0.95;
    background: linear-gradient(to bottom, rgba(30, 86, 160, 0.1) 0%, rgba(15, 52, 96, 0.75) 100%);
}

.category-card-custom:hover .category-img {
    transform: scale(1.08);
}

.category-overlay-custom {
    z-index: 3;
}

/* ── SECCIÓN MARCAS ALIADAS ─────────────────────────── */
.brand-item-link, 
.brand-item-wrap {
    transition: var(--transition);
    background: #ffffff;
    border: 1.5px solid rgba(0,0,0,0.04) !important;
}

.brand-item-link:hover, 
.brand-item-wrap:hover {
    border-color: var(--primary-light) !important;
    box-shadow: 0 12px 28px rgba(30, 86, 160, 0.1) !important;
    transform: translateY(-4px);
}

.brand-logo-img {
    filter: grayscale(100%) opacity(50%);
    transition: var(--transition);
}

.brand-item-link:hover .brand-logo-img,
.brand-item-wrap:hover .brand-logo-img {
    filter: grayscale(0%) opacity(100%);
}

/* ── SECCIÓN CONTACTO & FORMULARIO ──────────────────── */
.contact-info-wrap {
    background: #ffffff;
    padding: 38px 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(15,52,96,0.04);
    border: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.contact-info-wrap:hover {
    box-shadow: 0 20px 45px rgba(15,52,96,0.1);
}

.contact-icon {
    width: 52px;
    height: 52px;
    background: rgba(30, 86, 160, 0.06);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.contact-info-wrap .d-flex:hover .contact-icon {
    background: var(--primary);
    transform: scale(1.1) rotate(5deg);
}

.contact-info-wrap .d-flex:hover .contact-icon i {
    color: var(--white) !important;
}

.contact-info-wrap a {
    transition: var(--transition);
}

.contact-info-wrap a:hover {
    color: var(--primary-light) !important;
    text-decoration: underline !important;
}

#formContacto {
    background: #ffffff;
    padding: 38px 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(15,52,96,0.04);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

#formContacto:focus-within {
    box-shadow: 0 20px 45px rgba(15,52,96,0.09);
    border-color: rgba(30, 86, 160, 0.15);
}

#formContacto .form-control {
    border-radius: 8px;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    padding: 12px 16px;
    font-size: 0.9rem;
    transition: var(--transition);
}

#formContacto .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 86, 160, 0.1);
}

/* ── FOOTER ESTILIZADO ─────────────────────────────── */
.main-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.75);
    padding: 80px 0 30px;
    position: relative;
    border-top: 4px solid var(--accent-magenta);
}

.footer-title {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.25rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background: var(--accent-cyan);
    border-radius: 10px;
}

.footer-links li {
    list-style: none;
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.92rem;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-cyan);
    transform: translateX(5px);
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    font-size: 0.85rem;
}

/* Iconos y Acentos Personalizados */
.icon-box-sm {
    width: 48px;
    height: 48px;
    background: rgba(30, 86, 160, 0.08);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition);
}

.icon-box-sm:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    transform: rotate(8deg) scale(1.05);
}

.text-accent {
    color: var(--accent-magenta) !important;
}

.tracking-wider {
    letter-spacing: 1.5px;
}

/* Animación Pulse de Validación */
.pulse-animation {
    animation: pulse 0.5s ease;
}

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