/* 🔤 FUENTES — Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cal+Sans&family=Red+Hat+Display:wght@300;400;500;600&display=swap');

/* Aliases para mantener compatibilidad con el resto del CSS */
:root {
    --font-outfit:      'Cal Sans', sans-serif;
    --font-montserrat:  'Red Hat Display', sans-serif;
}

/* Franklin → Outfit (navbar, botones, títulos, badges) */
/* FranklinLight → Montserrat ligero (texto corrido, extras) */
/* FranklinBold  → Outfit semibold (títulos en negrita) */

/* 🔹 RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 🔹 VARIABLES */
:root {
    --sidebar-width: 200px;
    --azul: #163172;
    --azul-hover: #1f4aa8;
    --gris-linea: #ccc;
    --gris-texto: #555;
}

/* 🔹 BODY con sidebar */
body {
    font-family: 'Red Hat Display', sans-serif; font-weight: 300;
    background-color: #ffffff;
    letter-spacing: 0.5px;
    line-height: 1.6;
    display: flex;
    min-height: 100vh;
}

/* ==============================
   🔹 SIDEBAR IZQUIERDO
   ============================== */
.sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    background-color: #ffffff;
    border-right: 1px solid var(--gris-linea);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    overflow-y: auto;
}

.sidebar-label {
    font-family: 'Cal Sans', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #999;
    padding: 20px 16px 10px 16px;
    border-bottom: 1px solid var(--gris-linea);
}

.sidebar-nav {
    flex: 1;
    padding: 0;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--gris-texto);
    font-family: 'Cal Sans', sans-serif;
    font-size: 0.92rem;
    letter-spacing: 0.8px;
    transition: background 0.2s, color 0.2s;
}

.sidebar-nav ul li a:hover,
.sidebar-nav ul li a.active {
    background-color: #f0f4ff;
    color: var(--azul);
}

.sidebar-sep {
    height: 1px;
    background-color: var(--gris-linea);
    margin: 8px 16px;
}

/* ==============================
   🔹 ÁREA PRINCIPAL
   ============================== */
.main-wrapper {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
}

/* ==============================
   🔹 TOP BAR
   ============================== */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 32px;
    border-bottom: 1px solid var(--gris-linea);
    background-color: #fff;
    flex-shrink: 0;
}

.top-bar .logo a {
    display: block;
}

.top-bar .logo img {
    height: 55px;
    width: auto;
    transition: opacity 0.3s;
}

.top-bar .logo img:hover {
    opacity: 0.7;
}

.top-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

/* 🔹 BOTONES */
.btn-evbsa {
    text-decoration: none;
    padding: 0.55rem 1.3rem;
    border-radius: 6px;
    font-family: 'Cal Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: 0.25s;
    white-space: nowrap;
}

.btn-conocenos {
    background-color: var(--azul);
    color: white;
}

.btn-conocenos:hover {
    background-color: var(--azul-hover);
    transform: scale(1.04);
}

.btn-contacto {
    background-color: #ffffff;
    color: #333;
    border: 2px solid #333;
}

.btn-contacto:hover {
    background-color: #333;
    color: #fff;
    transform: scale(1.04);
}

/* ==============================
   🔹 CONTENIDO DE PÁGINA
   ============================== */
.page-content {
    flex: 1;
    padding: 0;
}

h1, h2, h3 {
    font-family: 'Cal Sans', sans-serif;
    letter-spacing: 1px;
}

/* ==============================
   🔹 SECCIÓN SOLUCIONES
   ============================== */
.soluciones {
    padding: 50px 40px;
    background-color: #fff;
}

.soluciones-titulo {
    font-family: 'Cal Sans', sans-serif;
    font-size: 1.6rem;
    color: #1a1a1a;
    margin-bottom: 36px;
    letter-spacing: 0.5px;
}

.soluciones-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.sol-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.09);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, box-shadow 0.25s;
}

.sol-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.14);
}

.sol-info {
    padding: 24px 22px 18px 22px;
    flex: 1;
}

.sol-info h3 {
    font-family: 'Cal Sans', sans-serif;
    font-size: 1.05rem;
    color: #909090;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.sol-info p {
    font-family: 'Red Hat Display', sans-serif; font-weight: 300;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 16px;
}

.sol-link {
    display: inline-block;
    font-family: 'Cal Sans', sans-serif;
    font-size: 0.82rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    background-color: #163172;
    padding: 6px 14px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
}

.sol-link:hover {
    background-color: #1f4aa8;
}

.sol-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.sol-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.sol-card:hover .sol-img img {
    transform: scale(1.05);
}

/* ==============================
   🔹 SECCIÓN AZUL SERVICIOS
   ============================== */
.servicios-azul {
    background-color: #163172;
    padding: 56px 40px;
}

.servicios-titulo {
    font-family: 'Cal Sans', sans-serif;
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 44px;
    max-width: 480px;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
}

.servicio-item h4 {
    font-family: 'Cal Sans', sans-serif;
    font-size: 0.82rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255,255,255,0.3);
}

.servicio-item p {
    font-family: 'Red Hat Display', sans-serif; font-weight: 300;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
}

.servicio-item p strong {
    color: #ffffff;
    font-family: 'Cal Sans', sans-serif;
}

/* ==============================
   🔹 RESPONSIVE
   ============================== */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        min-width: unset;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--gris-linea);
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sidebar-label {
        padding: 12px 16px;
        border-bottom: none;
    }

    .sidebar-nav ul {
        display: flex;
        flex-wrap: wrap;
    }

    .main-wrapper {
        margin-left: 0;
    }

    .top-bar {
        padding: 10px 16px;
    }

    .top-bar .logo img {
        height: 40px;
    }

    .top-buttons {
        gap: 0.5rem;
    }

    .btn-evbsa {
        padding: 0.45rem 0.9rem;
        font-size: 0.78rem;
    }

    .soluciones-grid,
    .servicios-grid {
        grid-template-columns: 1fr;
    }

    .soluciones,
    .servicios-azul {
        padding: 36px 20px;
    }
}
/* ==============================
   🔹 BOTÓN FLOTANTE WHATSAPP
   ============================== */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 56px;
    height: 56px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37,211,102,0.45);
    z-index: 9999;
    text-decoration: none;
    transition: transform 0.25s, box-shadow 0.25s, background-color 0.25s;
}

.whatsapp-float:hover {
    transform: scale(1.12);
    background-color: #1ebe5d;
    box-shadow: 0 6px 24px rgba(37,211,102,0.6);
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
    fill: #ffffff;
}

/* Pulso sutil para llamar la atención */
@keyframes waPulse {
    0%   { box-shadow: 0 4px 16px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0.35); }
    70%  { box-shadow: 0 4px 16px rgba(37,211,102,0.45), 0 0 0 12px rgba(37,211,102,0); }
    100% { box-shadow: 0 4px 16px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0); }
}

.whatsapp-float {
    animation: waPulse 2.5s infinite;
}

.whatsapp-float:hover {
    animation: none;
}
/* topbar-horario.js maneja su propio CSS vía JS */
/* ── ICONOS SIDEBAR ── */
.sidebar-nav ul li a img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    vertical-align: middle;
    flex-shrink: 0;
}