/**
 * ANDEIS Platform - Glassmorphism Design System
 * Estilos personalizados con tema claro y efectos de cristal
 */

/* =============================================================================
   Variables CSS - Sistema Glassmorphism (Tema Claro)
   ============================================================================= */

:root {
    /* PALETA ANDEIS - VERDE CORPORATIVO */
    --primary: #015f2d;
    --success: #86bb11;
    --info: #06b6d4;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Colores ANDEIS originales (para compatibilidad) */
    --andeis-primary: #015f2d;
    --andeis-secondary: #6c757d;
    --andeis-success: #86bb11;
    --andeis-warning: #f59e0b;
    --andeis-danger: #ef4444;
    --andeis-info: #06b6d4;
    --andeis-light: #f8f9fa;
    --andeis-dark: #212529;

    /* FONDO CLARO */
    --bg-body: #f8fafc;
    --bg-body-rgb: 248, 250, 252;

    /* GLASSMORPHISM TEMA CLARO */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-bg-light: rgba(255, 255, 255, 0.65);
    --glass-highlight: rgba(0, 0, 0, 0.08);
    --glass-shadow: rgba(0, 0, 0, 0.1);
    --glass-blur: 16px;

    /* TEXTO */
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #ffffff;

    /* CURVAS DE ANIMACION (FISICA) */
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0.0, 0.2, 1);

    /* BORDES */
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
}

/* =============================================================================
   Reset y Base Styles
   ============================================================================= */

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

body {
    font-family: 'Outfit', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    min-height: 100vh;
    /* Fondo con orbes de luz sutiles y fijos */
    background-image:
        radial-gradient(circle at 20% 40%, rgba(1, 95, 45, 0.06), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(134, 187, 17, 0.05), transparent 40%),
        radial-gradient(circle at 50% 0%, rgba(6, 182, 212, 0.04), transparent 30%);
    background-attachment: fixed;
    overflow-x: hidden;
}

main {
    flex: 1;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s var(--ease-smooth);
}

a:hover {
    color: var(--info);
}

/* =============================================================================
   Layout Principal
   ============================================================================= */

.layout {
    display: flex;
    min-height: 100vh;
}

/* =============================================================================
   Sidebar Glassmorphism
   ============================================================================= */

.sidebar {
    width: 280px;
    padding: 2.5rem;
    /* Efecto Cristal Premium */
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-right: 1px solid var(--glass-highlight);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    /* Permitir scroll interno cuando el contenido excede la altura del viewport
       (evita que la sección inferior quede oculta en pantallas bajas) */
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 50;
    /* Animacion de entrada */
    animation: slideInLeft 0.8s var(--ease-spring) backwards;
}

/* Scrollbar discreta para el sidebar (manteniendo estética glass) */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(1, 95, 45, 0.15);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(1, 95, 45, 0.35);
}

.sidebar {
    scrollbar-width: thin;
    scrollbar-color: rgba(1, 95, 45, 0.15) transparent;
}

.sidebar .logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 3rem;
    text-decoration: none;
}

.sidebar .logo:hover {
    color: var(--primary);
}

.sidebar .logo i {
    color: var(--success);
    font-size: 2rem;
}

/* Navegacion Sidebar */
.sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.4s var(--ease-smooth);
    margin-bottom: 8px;
    border: 1px solid transparent;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: rgba(1, 95, 45, 0.08);
    color: var(--primary);
    border-color: var(--glass-highlight);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.sidebar .nav-link.active {
    background: rgba(1, 95, 45, 0.12);
    color: var(--primary);
    border-color: rgba(1, 95, 45, 0.2);
}

.sidebar .nav-link i {
    font-size: 1.2rem;
    transition: transform 0.4s var(--ease-spring);
}

.sidebar .nav-link:hover i {
    transform: scale(1.2);
}

/* Iconos personalizados con hover swap + efecto 3D */
.sidebar .nav-link-icon .nav-icon {
    position: relative;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fondo que aparece en hover con animación de escala */
.sidebar .nav-link-icon .nav-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 36px;
    height: 36px;
    background: rgba(1, 95, 45, 0.9);
    border-radius: 10px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(1, 95, 45, 0.3);
}

.sidebar .nav-link-icon:hover .nav-icon::before,
.sidebar .nav-link-icon.active .nav-icon::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.sidebar .nav-link-icon .nav-icon img,
.sidebar .nav-link-icon .nav-icon > i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    /* Efecto 3D sutil */
    filter:
        drop-shadow(1px 1px 0px rgba(1, 95, 45, 0.15))
        drop-shadow(2px 3px 6px rgba(0, 0, 0, 0.08));
}

.sidebar .nav-link-icon .nav-icon > i {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--text-muted);
}

.sidebar .nav-link-icon:hover .nav-icon > i.icon-hover,
.sidebar .nav-link-icon.active .nav-icon > i.icon-hover {
    color: #fff;
}

.sidebar .nav-link-icon .nav-icon .icon-default {
    opacity: 1;
}

.sidebar .nav-link-icon .nav-icon .icon-hover {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8) translateY(3px);
}

.sidebar .nav-link-icon:hover .nav-icon .icon-default,
.sidebar .nav-link-icon.active .nav-icon .icon-default {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8) translateY(3px);
}

.sidebar .nav-link-icon:hover .nav-icon .icon-hover,
.sidebar .nav-link-icon.active .nav-icon .icon-hover {
    opacity: 1;
    /* Efecto flotante: sube y aumenta sombra */
    transform: translate(-50%, -50%) scale(1.05) translateY(-3px);
    filter:
        drop-shadow(2px 3px 0px rgba(134, 187, 17, 0.3))
        drop-shadow(4px 6px 0px rgba(134, 187, 17, 0.15))
        drop-shadow(6px 10px 15px rgba(0, 0, 0, 0.15));
}

/* =============================================================================
   Main Content Area
   ============================================================================= */

.main {
    flex: 1;
    padding: 3rem 4rem;
    min-height: 100vh;
}

/* =============================================================================
   Header Glassmorphism
   ============================================================================= */

.glass-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    animation: fadeUp 0.8s var(--ease-smooth) 0.2s backwards;
}

.glass-header h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--primary) 0%, #014a23 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-header .date-label {
    color: var(--info);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    display: block;
}

/* Isotipo en header del dashboard */
.header-isotipo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter:
        drop-shadow(1px 2px 0px rgba(1, 95, 45, 0.2))
        drop-shadow(3px 6px 12px rgba(0, 0, 0, 0.1));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-isotipo:hover {
    transform: scale(1.1) rotate(5deg);
    filter:
        drop-shadow(2px 3px 0px rgba(1, 95, 45, 0.25))
        drop-shadow(5px 10px 20px rgba(0, 0, 0, 0.15));
}

@media (max-width: 768px) {
    .header-isotipo {
        width: 48px;
        height: 48px;
    }
}

/* =============================================================================
   Boton Principal Glassmorphism
   ============================================================================= */

.btn-glass {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.5s var(--ease-spring);
    box-shadow: 0 8px 20px -5px rgba(1, 95, 45, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-glass:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px -5px rgba(1, 95, 45, 0.4);
    color: white;
}

.btn-glass-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--glass-highlight);
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.4s var(--ease-smooth);
}

.btn-glass-outline:hover {
    background: rgba(1, 95, 45, 0.08);
    border-color: var(--primary);
    color: var(--primary);
}

/* =============================================================================
   Sistema de Botones Glassmorphism Reutilizables
   ============================================================================= */

/* Base para todos los botones glass */
.btn-glass-base {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s var(--ease-spring);
    border: 1px solid transparent;
}

/* Botón Primary (sólido) */
.btn-glass-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s var(--ease-spring);
    background: var(--primary);
    color: white;
    border: 1px solid var(--primary);
    box-shadow: 0 4px 15px rgba(1, 95, 45, 0.3);
}

.btn-glass-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(1, 95, 45, 0.4);
    background: #014a23;
    color: white;
}

/* Botón Success */
.btn-glass-success {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s var(--ease-spring);
    background: var(--success);
    color: white;
    border: 1px solid var(--success);
    box-shadow: 0 4px 15px rgba(134, 187, 17, 0.3);
}

.btn-glass-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(134, 187, 17, 0.4);
    background: #6e9a0e;
    color: white;
}

/* Botón Warning */
.btn-glass-warning {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s var(--ease-spring);
    background: var(--warning);
    color: var(--bg-body);
    border: 1px solid var(--warning);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-glass-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
    background: #d97706;
    color: var(--bg-body);
}

/* Botón Danger */
.btn-glass-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s var(--ease-spring);
    background: var(--danger);
    color: white;
    border: 1px solid var(--danger);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-glass-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
    background: #dc2626;
    color: white;
}

/* Botón Info */
.btn-glass-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s var(--ease-spring);
    background: var(--info);
    color: var(--bg-body);
    border: 1px solid var(--info);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.btn-glass-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4);
    background: #0891b2;
    color: var(--bg-body);
}

/* Botones Outline (transparentes con borde) */
.btn-glass-outline-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s var(--ease-spring);
    background: rgba(1, 95, 45, 0.1);
    color: var(--primary);
    border: 1px solid rgba(1, 95, 45, 0.4);
}

.btn-glass-outline-primary:hover {
    transform: translateY(-2px);
    background: rgba(1, 95, 45, 0.2);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(1, 95, 45, 0.2);
}

.btn-glass-outline-success {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s var(--ease-spring);
    background: rgba(134, 187, 17, 0.1);
    color: var(--success);
    border: 1px solid rgba(134, 187, 17, 0.4);
}

.btn-glass-outline-success:hover {
    transform: translateY(-2px);
    background: rgba(134, 187, 17, 0.2);
    border-color: var(--success);
    color: var(--success);
    box-shadow: 0 4px 15px rgba(134, 187, 17, 0.2);
}

.btn-glass-outline-warning {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s var(--ease-spring);
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.btn-glass-outline-warning:hover {
    transform: translateY(-2px);
    background: rgba(245, 158, 11, 0.2);
    border-color: var(--warning);
    color: var(--warning);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
}

.btn-glass-outline-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s var(--ease-spring);
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.btn-glass-outline-danger:hover {
    transform: translateY(-2px);
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--danger);
    color: var(--danger);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
}

.btn-glass-outline-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s var(--ease-spring);
    background: rgba(148, 163, 184, 0.1);
    color: var(--text-muted);
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.btn-glass-outline-secondary:hover {
    transform: translateY(-2px);
    background: rgba(148, 163, 184, 0.2);
    border-color: var(--text-muted);
    color: white;
    box-shadow: 0 4px 15px rgba(148, 163, 184, 0.2);
}

/* Tamaños de botones */
.btn-glass-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 10px;
}

.btn-glass-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
    border-radius: 14px;
}

/* Botón de ancho completo */
.btn-glass-block {
    width: 100%;
}

/* Estado deshabilitado */
.btn-glass-primary:disabled,
.btn-glass-success:disabled,
.btn-glass-warning:disabled,
.btn-glass-danger:disabled,
.btn-glass-info:disabled,
.btn-glass-outline-primary:disabled,
.btn-glass-outline-success:disabled,
.btn-glass-outline-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Botón con icono solamente */
.btn-glass-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 12px;
    font-size: 1.2rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s var(--ease-spring);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid var(--glass-highlight);
}

.btn-glass-icon:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-glass-icon.btn-primary {
    background: rgba(1, 95, 45, 0.1);
    color: var(--primary);
    border-color: rgba(1, 95, 45, 0.3);
}

.btn-glass-icon.btn-success {
    background: rgba(134, 187, 17, 0.1);
    color: var(--success);
    border-color: rgba(134, 187, 17, 0.3);
}

.btn-glass-icon.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.3);
}

/* =============================================================================
   Grid Container
   ============================================================================= */

.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* =============================================================================
   Cards Glassmorphism - ULTRA GLASS
   ============================================================================= */

.card {
    /* Capas de Glassmorphism - Tema Claro */
    background-color: var(--glass-bg);
    /* Degradado superior para simular reflejo de luz */
    background-image: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.5) 40%);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));

    /* Bordes sutiles para tema claro */
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-top-color: rgba(255, 255, 255, 0.8);
    border-left-color: rgba(255, 255, 255, 0.8);

    border-radius: var(--border-radius-xl);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    min-height: 280px;

    /* Sombra suave para tema claro */
    box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.08);

    /* Animacion fisica */
    transition: all 0.6s var(--ease-spring);

    /* Animacion de entrada en cascada */
    animation: fadeUp 0.8s var(--ease-smooth) backwards;
}

/* Retrasos para la animacion de entrada en cascada */
.card:nth-child(1) { animation-delay: 0.3s; }
.card:nth-child(2) { animation-delay: 0.4s; }
.card:nth-child(3) { animation-delay: 0.5s; }
.card:nth-child(4) { animation-delay: 0.6s; }
.card:nth-child(5) { animation-delay: 0.7s; }
.card:nth-child(6) { animation-delay: 0.8s; }

/* HOVER STATE */
.card:hover {
    /* Levantar y escalar */
    transform: translateY(-8px) scale(1.01);
    /* Sombra mas profunda */
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
    /* Bordes mas definidos */
    border-color: rgba(0, 0, 0, 0.1);
    /* Fondo mas blanco */
    background-color: rgba(255, 255, 255, 0.95);
}

/* Elementos internos de la tarjeta */
.card-icon {
    font-size: 2.2rem;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(1, 95, 45, 0.08);
    border: 1px solid rgba(1, 95, 45, 0.15);
    margin-bottom: 1.5rem;
    transition: all 0.5s var(--ease-spring);
}

/* Micro-interaccion: Rotar icono al hover */
.card:hover .card-icon {
    transform: rotate(5deg) scale(1.1);
    background: rgba(1, 95, 45, 0.12);
    border-color: rgba(1, 95, 45, 0.25);
}

/* Card icon con swap en hover + efecto 3D */
.card-icon-swap {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fondo claro que aparece en hover */
.card-icon-swap::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 56px;
    height: 56px;
    background: rgba(1, 95, 45, 0.9);
    border-radius: 14px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(1, 95, 45, 0.3);
}

.card-with-icon-hover:hover .card-icon-swap::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-icon-swap img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    /* Efecto 3D con drop-shadows en capas */
    filter:
        drop-shadow(1px 2px 0px rgba(1, 95, 45, 0.2))
        drop-shadow(2px 4px 0px rgba(1, 95, 45, 0.1))
        drop-shadow(4px 8px 12px rgba(0, 0, 0, 0.08));
}

.card-icon-swap .icon-default {
    opacity: 1;
}

.card-icon-swap .icon-hover {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8) translateY(5px);
}

.card-with-icon-hover:hover .card-icon-swap .icon-default {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8) translateY(5px);
}

.card-with-icon-hover:hover .card-icon-swap .icon-hover {
    opacity: 1;
    /* Efecto flotante: sube y aumenta sombra */
    transform: translate(-50%, -50%) scale(1.05) translateY(-4px);
    filter:
        drop-shadow(2px 3px 0px rgba(134, 187, 17, 0.3))
        drop-shadow(4px 6px 0px rgba(134, 187, 17, 0.15))
        drop-shadow(6px 12px 20px rgba(0, 0, 0, 0.15));
}

.card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.card p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.card-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
}

.link-action {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.4s var(--ease-spring);
    text-decoration: none;
}

.link-action i {
    transition: transform 0.4s var(--ease-spring);
}

/* Micro-interaccion: Flecha rebota al hover */
.card:hover .link-action {
    gap: 15px;
}

.card:hover .link-action i {
    transform: translateX(5px);
}

/* =============================================================================
   HERO CARD (Especial)
   ============================================================================= */

.card-hero {
    grid-column: span 2;
    /* Degradado mas rico para el heroe */
    background-image: linear-gradient(135deg, rgba(1, 95, 45, 0.2) 0%, rgba(1, 95, 45, 0) 50%);
    border-color: rgba(1, 95, 45, 0.4);
    min-height: 320px;
}

.card-hero:hover {
    border-color: rgba(1, 95, 45, 0.6);
    box-shadow: 0 30px 60px -12px rgba(1, 95, 45, 0.25);
}

.hero-stat {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--primary);
}

/* =============================================================================
   Status Badge
   ============================================================================= */

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(134, 187, 17, 0.15);
    color: var(--success);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid rgba(134, 187, 17, 0.3);
    box-shadow: 0 0 15px rgba(134, 187, 17, 0.1);
}

.pulsing-dot {
    width: 8px;
    height: 8px;
    background: currentColor;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* =============================================================================
   Tematizacion de colores con Glow
   ============================================================================= */

.glow-spot {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    top: -80px;
    right: -80px;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.card:hover .glow-spot {
    opacity: 0.25;
}

/* Temas de color */
.theme-blue .glow-spot { background: var(--primary); }
.theme-blue .card-icon,
.theme-blue .link-action { color: var(--primary); }

.theme-green .glow-spot { background: var(--success); }
.theme-green .card-icon,
.theme-green .link-action { color: var(--success); }

.theme-cyan .glow-spot { background: var(--info); }
.theme-cyan .card-icon,
.theme-cyan .link-action { color: var(--info); }

.theme-amber .glow-spot { background: var(--warning); }
.theme-amber .card-icon,
.theme-amber .link-action { color: var(--warning); }

.theme-danger .glow-spot { background: var(--danger); }
.theme-danger .card-icon,
.theme-danger .link-action { color: var(--danger); }

/* =============================================================================
   UI Elements
   ============================================================================= */

.progress-track {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 75%;
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
    border-radius: 10px;
    transition: width 1s var(--ease-spring);
}

.badge-pill {
    position: absolute;
    top: 25px;
    right: 25px;
    background: var(--danger);
    color: white;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 800;
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
}

.bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 45px;
    opacity: 0.8;
}

.bar {
    width: 10px;
    background: var(--warning);
    border-radius: 4px;
    transition: height 0.5s var(--ease-spring);
}

.card:hover .bar {
    filter: brightness(1.2);
}

/* =============================================================================
   Navigation Glassmorphism (Para navbar horizontal si se usa)
   ============================================================================= */

.navbar-glass {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
}

.navbar-glass .navbar-brand {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.4rem;
}

.navbar-glass .navbar-nav {
    gap: 0.25rem;
}

.navbar-glass .nav-link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    border-radius: 100px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    letter-spacing: 0.01em;
}

.navbar-glass .nav-link i {
    font-size: 1.1rem;
    opacity: 0.8;
    transition: opacity 0.25s ease;
}

.navbar-glass .nav-link:hover {
    color: var(--primary);
    background: rgba(1, 95, 45, 0.08);
}

.navbar-glass .nav-link:hover i {
    opacity: 1;
}

.navbar-glass .nav-link.active {
    color: var(--primary);
    background: linear-gradient(135deg, rgba(1, 95, 45, 0.12) 0%, rgba(134, 187, 17, 0.08) 100%);
    font-weight: 600;
}

/* Botón CTA del navbar */
.navbar-glass .btn-glass-outline {
    border-radius: 100px;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-width: 1.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-glass .btn-glass-outline:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(1, 95, 45, 0.2);
}

/* Dropdown Glassmorphism Moderno */
.dropdown-menu-glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 0.5rem;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 10px 15px -3px rgba(0, 0, 0, 0.08),
        0 20px 25px -5px rgba(0, 0, 0, 0.05);
    margin-top: 0.5rem;
    min-width: 200px;
    animation: dropdownFadeIn 0.2s ease-out;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu-glass .dropdown-item {
    color: var(--text-main);
    border-radius: 10px;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-menu-glass .dropdown-item i {
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.dropdown-menu-glass .dropdown-divider {
    margin: 0.35rem 0.5rem;
    border-color: rgba(0, 0, 0, 0.08);
}

.dropdown-menu-glass .dropdown-item:hover {
    background: linear-gradient(135deg, rgba(1, 95, 45, 0.1) 0%, rgba(134, 187, 17, 0.06) 100%);
    color: var(--primary);
    transform: translateX(4px);
}

.dropdown-menu-glass .dropdown-item:hover i {
    color: var(--primary);
}

.dropdown-menu-glass .dropdown-header {
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    padding: 0.5rem 1rem 0.25rem;
}

/* User email en dropdown */
.dropdown-menu-glass .dropdown-item-text {
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 0.25rem;
}

/* =============================================================================
   Footer Glassmorphism
   ============================================================================= */

.footer-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-top: 1px solid var(--glass-highlight);
    padding: 2rem;
    margin-top: auto;
}

.footer-glass a {
    color: var(--text-muted);
    transition: color 0.3s var(--ease-smooth);
}

.footer-glass a:hover {
    color: var(--primary);
}

.footer-glass .text-muted {
    color: var(--text-muted) !important;
}

/* =============================================================================
   Alerts Glassmorphism
   ============================================================================= */

.alert-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-highlight);
    border-radius: var(--border-radius-md);
    color: var(--text-main);
    padding: 1rem 1.5rem;
}

.alert-glass.alert-success {
    border-left: 4px solid var(--success);
    background: rgba(134, 187, 17, 0.1);
}

.alert-glass.alert-warning {
    border-left: 4px solid var(--warning);
    background: rgba(245, 158, 11, 0.1);
}

.alert-glass.alert-danger {
    border-left: 4px solid var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

.alert-glass.alert-info {
    border-left: 4px solid var(--info);
    background: rgba(6, 182, 212, 0.1);
}

/* =============================================================================
   Forms Glassmorphism
   ============================================================================= */

.form-control-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-highlight);
    border-radius: var(--border-radius-sm);
    color: var(--text-main);
    padding: 0.75rem 1rem;
    transition: all 0.3s var(--ease-smooth);
}

.form-control-glass:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(1, 95, 45, 0.2);
    outline: none;
    color: var(--text-main);
}

.form-control-glass::placeholder {
    color: var(--text-muted);
}

.form-label-glass {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Bootstrap form overrides for dark theme */
.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-highlight);
    color: var(--text-main);
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(1, 95, 45, 0.2);
    color: var(--text-main);
}

.form-select {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-highlight);
    color: var(--text-main);
}

.form-select:focus {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(1, 95, 45, 0.2);
    color: var(--text-main);
}

/* =============================================================================
   Tables Glassmorphism
   ============================================================================= */

.table-glass {
    color: var(--text-main);
}

.table-glass thead th {
    background: rgba(1, 95, 45, 0.05);
    border-bottom: 1px solid var(--glass-highlight);
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    padding: 1rem;
}

.table-glass tbody td {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem;
    vertical-align: middle;
}

.table-glass tbody tr:hover {
    background: rgba(1, 95, 45, 0.03);
}

/* Botones de acción en tablas */
.btn-table-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s var(--ease-smooth);
    font-size: 1rem;
}

.btn-table-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-table-action.btn-view {
    background: rgba(6, 182, 212, 0.1);
    color: var(--info);
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.btn-table-action.btn-edit {
    background: rgba(1, 95, 45, 0.1);
    color: var(--primary);
    border: 1px solid rgba(1, 95, 45, 0.3);
}

.btn-table-action.btn-delete {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-table-action.btn-success {
    background: rgba(134, 187, 17, 0.1);
    color: var(--success);
    border: 1px solid rgba(134, 187, 17, 0.3);
}

/* =============================================================================
   Itinerario Styles (Adaptado a tema oscuro)
   ============================================================================= */

.itinerario-progress {
    height: 10px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.08);
}

.fase-card {
    border-left: 4px solid var(--primary);
    transition: all 0.3s var(--ease-smooth);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--border-radius-md);
}

.fase-card:hover {
    border-left-color: var(--success);
    transform: translateX(5px);
}

.fase-card.completed {
    border-left-color: var(--success);
}

.fase-card.current {
    border-left-color: var(--warning);
    background: rgba(245, 158, 11, 0.1);
}

.paso-item {
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--glass-highlight);
    color: var(--text-main);
}

.paso-item.completed {
    background: rgba(134, 187, 17, 0.1);
    border-color: rgba(134, 187, 17, 0.3);
}

/* Checklist */
.checklist-item {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background-color 0.2s;
    color: var(--text-main);
}

.checklist-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.checklist-item.completed {
    text-decoration: line-through;
    color: var(--text-muted);
}

.checklist-item .ph-check-circle-fill {
    color: var(--success);
}

/* =============================================================================
   Tooltips Informativos
   ============================================================================= */

.tooltip-info {
    position: relative;
    display: inline-block;
}

.tooltip-info .tooltip-icon {
    color: var(--info);
    cursor: help;
}

/* =============================================================================
   Balance Social (Adaptado a tema oscuro)
   ============================================================================= */

.balance-indicator {
    padding: 1rem;
    border-radius: var(--border-radius-md);
    text-align: center;
    backdrop-filter: blur(var(--glass-blur));
}

.balance-indicator.success {
    background: rgba(134, 187, 17, 0.15);
    color: var(--success);
    border: 1px solid rgba(134, 187, 17, 0.3);
}

.balance-indicator.warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.balance-indicator.danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* =============================================================================
   Chat (Adaptado a tema oscuro)
   ============================================================================= */

.chat-container {
    height: 400px;
    overflow-y: auto;
    background: var(--glass-bg);
    border-radius: var(--border-radius-md);
    padding: 1rem;
    border: 1px solid var(--glass-highlight);
}

.chat-message {
    margin-bottom: 1rem;
    max-width: 70%;
}

.chat-message.own {
    margin-left: auto;
}

.chat-message .message-content {
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-md);
    background: rgba(0, 0, 0, 0.03);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    color: var(--text-main);
}

.chat-message.own .message-content {
    background: var(--primary);
    color: white;
}

.chat-message .message-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* =============================================================================
   Forum (Adaptado a tema oscuro)
   ============================================================================= */

.forum-thread {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s;
}

.forum-thread:hover {
    background: rgba(1, 95, 45, 0.03);
}

.forum-thread.pinned {
    background: rgba(245, 158, 11, 0.1);
    border-left: 3px solid var(--warning);
}

.forum-thread .thread-stats {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* =============================================================================
   Tickets (Adaptado a tema oscuro)
   ============================================================================= */

.ticket-priority-baja {
    border-left: 3px solid var(--text-muted);
}

.ticket-priority-normal {
    border-left: 3px solid var(--info);
}

.ticket-priority-alta {
    border-left: 3px solid var(--warning);
}

.ticket-priority-urgente {
    border-left: 3px solid var(--danger);
}

.ticket-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.ticket-status.abierto { background: rgba(1, 95, 45, 0.15); color: var(--primary); }
.ticket-status.en_proceso { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.ticket-status.pendiente { background: rgba(148, 163, 184, 0.15); color: var(--text-muted); }
.ticket-status.resuelto { background: rgba(134, 187, 17, 0.15); color: var(--success); }
.ticket-status.cerrado { background: rgba(100, 116, 139, 0.15); color: #64748b; }

/* =============================================================================
   Documents (Adaptado a tema oscuro)
   ============================================================================= */

.document-card {
    transition: transform 0.3s var(--ease-spring);
}

.document-card:hover {
    transform: translateY(-5px);
}

.document-type-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.document-type-plantilla .document-type-icon { color: var(--info); }
.document-type-guia .document-type-icon { color: var(--success); }
.document-type-manual .document-type-icon { color: #a855f7; }
.document-type-formulario .document-type-icon { color: var(--warning); }
.document-type-normativa .document-type-icon { color: var(--danger); }

/* =============================================================================
   List Group Glassmorphism
   ============================================================================= */

.list-group-glass .list-group-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-main);
    padding: 1rem;
    transition: all 0.3s var(--ease-smooth);
}

.list-group-glass .list-group-item:hover {
    background: rgba(1, 95, 45, 0.05);
}

.list-group-glass .list-group-item-action:hover {
    color: var(--primary);
}

/* =============================================================================
   KEYFRAMES DE ANIMACION
   ============================================================================= */

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* =============================================================================
   Responsive Adjustments
   ============================================================================= */

@media (max-width: 1200px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .card-hero {
        grid-column: span 2;
    }
}

@media (max-width: 992px) {
    .main {
        padding: 2rem;
    }

    .glass-header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        padding: 1.5rem;
        border-right: none;
        border-bottom: 1px solid var(--glass-highlight);
        position: relative;
    }

    .sidebar .logo {
        margin-bottom: 1.5rem;
    }

    .sidebar nav {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .sidebar .nav-link {
        padding: 10px 16px;
        margin-bottom: 0;
    }

    .main {
        padding: 1.5rem;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }

    .card-hero {
        grid-column: span 1;
    }

    .glass-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .glass-header h1 {
        font-size: 2rem;
    }

    .hero-stat {
        font-size: 3rem;
    }

    .chat-message {
        max-width: 85%;
    }
}

@media (max-width: 576px) {
    .card {
        padding: 1.5rem;
        min-height: 240px;
    }

    .card-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }

    .btn-glass {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* =============================================================================
   HTMX Loading States
   ============================================================================= */

.htmx-request {
    opacity: 0.5;
    transition: opacity 0.3s;
}

.htmx-request .htmx-indicator {
    display: inline-block;
}

.htmx-indicator {
    display: none;
}

/* =============================================================================
   Print Styles
   ============================================================================= */

@media print {
    body {
        background: white;
        color: black;
    }

    .sidebar,
    .navbar,
    footer,
    .btn,
    .no-print {
        display: none !important;
    }

    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
        background: white;
        color: black;
    }

    .main {
        padding: 0;
    }
}

/* =============================================================================
   Bootstrap Overrides for Light Theme
   ============================================================================= */

/* Text colors */
.text-muted {
    color: var(--text-muted) !important;
}

.text-white {
    color: var(--text-main) !important;
}

/* Background colors */
.bg-dark {
    background-color: var(--bg-body) !important;
}

.bg-light {
    background-color: var(--glass-bg) !important;
}

/* Border colors */
.border {
    border-color: var(--glass-highlight) !important;
}

.border-top {
    border-top-color: var(--glass-highlight) !important;
}

.border-bottom {
    border-bottom-color: var(--glass-highlight) !important;
}

/* Card header/body for Bootstrap cards */
.card-header {
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--text-main);
}

.card-body {
    color: var(--text-main);
}

.card-title {
    color: var(--text-main);
}

.card-subtitle {
    color: var(--text-muted) !important;
}

/* Modal Glassmorphism */
.modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-highlight);
    border-radius: var(--border-radius-lg);
    color: var(--text-main);
}

.modal-header {
    border-bottom: 1px solid var(--glass-highlight);
}

.modal-footer {
    border-top: 1px solid var(--glass-highlight);
}

.btn-close {
    filter: none;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
}

.breadcrumb-item a {
    color: var(--text-muted);
}

.breadcrumb-item.active {
    color: var(--text-main);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-muted);
}

/* Pagination */
.page-link {
    background: var(--glass-bg);
    border-color: var(--glass-highlight);
    color: var(--text-main);
}

.page-link:hover {
    background: rgba(1, 95, 45, 0.08);
    border-color: var(--glass-highlight);
    color: var(--primary);
}

.page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}

.page-item.disabled .page-link {
    background: var(--glass-bg);
    border-color: var(--glass-highlight);
    color: var(--text-muted);
}

/* =============================================================================
   CMS PUBLIC - Wagtail Templates
   ============================================================================= */

/* Hero Full-Screen Animations */
@keyframes floatOrb {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(20px, -30px) scale(1.05);
    }
    50% {
        transform: translate(-10px, 20px) scale(0.95);
    }
    75% {
        transform: translate(-20px, -10px) scale(1.02);
    }
}

@keyframes bounceScroll {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-15px);
    }
    60% {
        transform: translateX(-50%) translateY(-8px);
    }
}

/* Fade-in on scroll animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Counter animation pulse */
.counter-animated {
    animation: counterPulse 0.3s ease-out;
}

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

/* Logo hover effects */
.logo-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-4px);
}

.logo-item:hover .logo-img {
    filter: grayscale(0%) brightness(1) !important;
    opacity: 1 !important;
}

/* Social link hover */
.social-link:hover {
    transform: translateY(-3px);
    background: rgba(1, 95, 45, 0.25) !important;
}

/* Blog post image hover */
.post-image:hover {
    transform: scale(1.05);
}

/* RichText content styling */
.richtext-content h2,
.richtext-content h3,
.richtext-content h4 {
    color: var(--text-main);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.richtext-content p {
    margin-bottom: 1rem;
}

.richtext-content a {
    color: var(--primary);
    text-decoration: underline;
}

.richtext-content a:hover {
    color: var(--info);
}

.richtext-content ul,
.richtext-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.richtext-content li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.richtext-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-muted);
}

/* CMS Homepage - transparent navbar on scroll */
.cms-homepage .navbar-glass.scrolled {
    background: rgba(15, 23, 42, 0.85) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
}

/* Responsive adjustments for CMS */
@media (max-width: 1200px) {
    .stats-section .grid-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .hero-fullscreen h1 {
        font-size: 2rem !important;
    }
    .hero-fullscreen p {
        font-size: 1rem !important;
    }
    .stats-section .grid-container {
        grid-template-columns: 1fr !important;
    }
    .noticias-section .grid-container,
    .servicios-section .grid-container {
        grid-template-columns: 1fr !important;
    }
    .colectivos-section .grid-container {
        grid-template-columns: 1fr !important;
    }
    .orb-hero {
        display: none;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* =============================================================================
   LANDING PAGE 2.0 - TEMA LUMINOSO Y MODERNO
   ============================================================================= */

/* Variables adicionales para landing page */
:root {
    /* Fondos de seccion */
    --bg-section-white: #ffffff;
    --bg-section-alt: #f0fdf4;
    --bg-section-light: #fafffe;

    /* Gradientes para hero y CTAs */
    --gradient-hero: linear-gradient(135deg, rgba(1,95,45,0.9) 0%, rgba(2,122,58,0.85) 50%, rgba(134,187,17,0.8) 100%);
    --gradient-hero-light: linear-gradient(135deg, rgba(1,95,45,0.08) 0%, rgba(134,187,17,0.05) 100%);
    --gradient-cta: linear-gradient(135deg, #015f2d 0%, #027a3a 50%, #038c42 100%);
    --gradient-text: linear-gradient(135deg, #015f2d 0%, #027a3a 100%);

    /* Sombras mejoradas */
    --shadow-sm: 0 2px 8px rgba(1,95,45,0.06);
    --shadow-md: 0 4px 20px rgba(1,95,45,0.08);
    --shadow-lg: 0 8px 40px rgba(1,95,45,0.12);
    --shadow-xl: 0 16px 60px rgba(1,95,45,0.16);
    --shadow-card-hover: 0 12px 40px rgba(1,95,45,0.15);

    /* Colores de acento para variedad */
    --accent-lime: #86bb11;
    --accent-lime-light: rgba(134,187,17,0.1);
    --accent-lime-medium: rgba(134,187,17,0.2);
}

/* =============================================================================
   Hero Luminoso (Video/Imagen)
   ============================================================================= */

.hero-light {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fafc 0%, #f0fdf4 100%);
}

.hero-light .hero-bg-video,
.hero-light .hero-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-light .hero-bg-video {
    opacity: 0.9;
}

.hero-light .hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    z-index: 1;
}

.hero-light .hero-overlay-light {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(255,255,255,0.1) 0%,
        rgba(255,255,255,0.05) 50%,
        rgba(1,95,45,0.1) 100%);
    z-index: 2;
}

/* Formas organicas decorativas */
.hero-light .organic-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    z-index: 3;
    animation: floatOrganic 15s ease-in-out infinite;
}

.hero-light .organic-shape-1 {
    width: 400px;
    height: 400px;
    background: rgba(134,187,17,0.4);
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.hero-light .organic-shape-2 {
    width: 300px;
    height: 300px;
    background: rgba(6,182,212,0.3);
    top: 60%;
    right: -5%;
    animation-delay: -5s;
}

.hero-light .organic-shape-3 {
    width: 250px;
    height: 250px;
    background: rgba(255,255,255,0.5);
    bottom: 20%;
    left: 30%;
    animation-delay: -10s;
}

@keyframes floatOrganic {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    25% {
        transform: translate(30px, -20px) scale(1.05) rotate(5deg);
    }
    50% {
        transform: translate(-20px, 30px) scale(0.95) rotate(-5deg);
    }
    75% {
        transform: translate(-30px, -15px) scale(1.02) rotate(3deg);
    }
}

/* Transición blur al siguiente apartado */
.hero-blur-transition {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    z-index: 15;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(248, 250, 252, 0.1) 20%,
        rgba(248, 250, 252, 0.3) 40%,
        rgba(248, 250, 252, 0.6) 60%,
        rgba(248, 250, 252, 0.85) 80%,
        rgba(248, 250, 252, 1) 100%
    );
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    mask-image: linear-gradient(to bottom, transparent 0%, black 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 100%);
}

.hero-blur-transition::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    filter: blur(8px);
    opacity: 0.5;
}

.hero-blur-transition::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(1, 95, 45, 0.2) 20%,
        rgba(134, 187, 17, 0.3) 50%,
        rgba(1, 95, 45, 0.2) 80%,
        transparent 100%
    );
}

/* Contenido del hero */
.hero-light .hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 2rem;
}

.hero-light .hero-content.text-center {
    margin: 0 auto;
    text-align: center;
}

.hero-light .hero-content.text-left {
    text-align: left;
}

/* Badge flotante */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.8s ease-out 0.2s backwards;
}

.hero-badge i {
    color: var(--accent-lime);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo del hero */
.hero-light .hero-logo {
    max-width: 280px;
    height: auto;
    margin-bottom: 2rem;
    filter: brightness(0) invert(1);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* Titulo del hero */
.hero-light .hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 30px rgba(0,0,0,0.2);
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-light .hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: rgba(255,255,255,0.9);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 700px;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.hero-light .hero-content.text-center .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Botones del hero */
.hero-light .hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.8s backwards;
}

.hero-light .hero-content.text-center .hero-buttons {
    justify-content: center;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: white;
    color: var(--primary);
    border: none;
    border-radius: 100px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s var(--ease-spring);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.btn-hero-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    color: var(--primary);
}

.btn-hero-primary i {
    transition: transform 0.3s ease;
}

.btn-hero-primary:hover i {
    transform: translateX(4px);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: rgba(255,255,255,0.15);
    color: white;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 100px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: all 0.4s var(--ease-spring);
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.6);
    color: white;
    transform: translateY(-4px);
}

/* Indicador de scroll mejorado */
.scroll-indicator-modern {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    z-index: 10;
    animation: fadeIn 1s ease-out 1.2s backwards;
}

.scroll-indicator-modern span {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
}

.scroll-indicator-modern .scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 20px;
    position: relative;
}

.scroll-indicator-modern .scroll-wheel {
    width: 4px;
    height: 8px;
    background: rgba(255,255,255,0.8);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%, 100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 0.3;
        transform: translateX(-50%) translateY(12px);
    }
}

/* =============================================================================
   Secciones con fondos alternos
   ============================================================================= */

.section-white {
    background: var(--bg-section-white);
    padding: 6rem 0;
}

.section-alt {
    background: var(--bg-section-alt);
    padding: 6rem 0;
}

.section-light {
    background: var(--bg-section-light);
    padding: 6rem 0;
}

.section-gradient {
    background: var(--gradient-cta);
    padding: 6rem 0;
    color: white;
}

/* Titulos de seccion */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--accent-lime-light);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-title-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* =============================================================================
   Estadisticas de Impacto
   ============================================================================= */

.impact-stats-section {
    background: var(--bg-section-alt);
    padding: 5rem 0;
}

.impact-stat-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px solid rgba(1,95,45,0.08);
    box-shadow: var(--shadow-md);
    transition: all 0.4s var(--ease-spring);
    position: relative;
    overflow: hidden;
}

.impact-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-cta);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.impact-stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.impact-stat-card:hover::before {
    transform: scaleX(1);
}

.impact-stat-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-lime-light);
    border-radius: 20px;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: var(--primary);
    transition: all 0.4s var(--ease-spring);
}

.impact-stat-card:hover .impact-stat-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--accent-lime-medium);
}

.impact-stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.impact-stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.impact-stat-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* =============================================================================
   Journey/Timeline Block
   ============================================================================= */

.journey-section {
    padding: 6rem 0;
    background: white;
}

/* Timeline horizontal */
.journey-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 3rem;
}

.journey-timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent-lime) 100%);
    border-radius: 2px;
    z-index: 0;
}

.journey-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 1rem;
}

.journey-step-number {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 4px solid var(--primary);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    box-shadow: var(--shadow-md);
    transition: all 0.4s var(--ease-spring);
}

.journey-step:hover .journey-step-number {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.journey-step-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-lime-light);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary);
    box-shadow: var(--shadow-md);
    transition: all 0.4s var(--ease-spring);
}

.journey-step:hover .journey-step-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1) rotate(10deg);
}

.journey-step-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.journey-step-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.journey-step-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: gap 0.3s ease;
}

.journey-step-link:hover {
    gap: 10px;
    color: var(--primary);
}

/* Timeline vertical (mobile) */
.journey-timeline-vertical {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    padding-left: 3rem;
}

.journey-timeline-vertical::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 15px;
    width: 4px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--accent-lime) 100%);
    border-radius: 2px;
}

.journey-timeline-vertical .journey-step {
    text-align: left;
    padding: 0;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.journey-timeline-vertical .journey-step-number,
.journey-timeline-vertical .journey-step-icon {
    flex-shrink: 0;
    margin: 0;
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
}

.journey-timeline-vertical .journey-step-content {
    padding-top: 0.5rem;
}

/* =============================================================================
   Story Block
   ============================================================================= */

.story-section {
    padding: 6rem 0;
}

.story-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-container.image-left {
    direction: rtl;
}

.story-container.image-left > * {
    direction: ltr;
}

.story-image-wrapper {
    position: relative;
}

.story-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
}

.story-image-wrapper::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: var(--gradient-hero-light);
    border-radius: var(--border-radius-xl);
    z-index: -1;
}

.story-content {
    padding: 1rem;
}

.story-quote {
    font-size: 1.5rem;
    font-weight: 600;
    font-style: italic;
    color: var(--primary);
    line-height: 1.5;
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    border-left: 4px solid var(--accent-lime);
}

.story-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.story-text p {
    margin-bottom: 1.5rem;
}

/* =============================================================================
   Multi-Path CTA Block
   ============================================================================= */

.multipath-cta-section {
    padding: 6rem 0;
    background: var(--gradient-cta);
    position: relative;
    overflow: hidden;
}

.multipath-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.multipath-cta-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(134,187,17,0.1);
    border-radius: 50%;
}

.multipath-cta-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.multipath-cta-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.multipath-cta-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    max-width: 600px;
    margin: 0 auto;
}

.multipath-cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.cta-path-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all 0.4s var(--ease-spring);
    text-decoration: none;
    display: block;
}

.cta-path-card:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-8px);
    border-color: rgba(255,255,255,0.4);
}

.cta-path-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: white;
    transition: all 0.4s var(--ease-spring);
}

.cta-path-card:hover .cta-path-icon {
    background: white;
    color: var(--primary);
    transform: scale(1.1);
}

.cta-path-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
}

.cta-path-description {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.cta-path-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-lime);
    transition: gap 0.3s ease;
}

.cta-path-card:hover .cta-path-arrow {
    gap: 12px;
}

/* =============================================================================
   Servicios Mejorados
   ============================================================================= */

.service-card-modern {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    border: 1px solid rgba(1,95,45,0.08);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s var(--ease-spring);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.service-card-modern.featured {
    border: 2px solid var(--primary);
    background: var(--accent-lime-light);
}

.service-card-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-lime-light);
    border-radius: 16px;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: all 0.4s var(--ease-spring);
}

.service-card-modern:hover .service-card-icon {
    background: var(--primary);
    color: white;
    transform: rotate(5deg) scale(1.05);
}

.service-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.service-card-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    margin-top: auto;
    transition: gap 0.3s ease;
}

.service-card-link:hover {
    gap: 10px;
    color: var(--primary);
}

/* =============================================================================
   Testimonios Mejorados
   ============================================================================= */

.testimonial-card-modern {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(1,95,45,0.06);
    position: relative;
    transition: all 0.4s var(--ease-spring);
}

.testimonial-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.testimonial-card-modern::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 25px;
    font-size: 5rem;
    font-weight: 800;
    color: var(--accent-lime-light);
    line-height: 1;
    font-family: Georgia, serif;
}

.testimonial-text {
    font-size: 1.1rem;
    color: var(--text-main);
    line-height: 1.7;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-lime-light);
}

.testimonial-avatar-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-lime-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
}

.testimonial-info {
    flex: 1;
}

.testimonial-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
}

.testimonial-role {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.testimonial-type {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: var(--accent-lime-light);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* =============================================================================
   Scroll Reveal Animations
   ============================================================================= */

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-on-scroll.from-left {
    transform: translateX(-40px);
}

.reveal-on-scroll.from-left.visible {
    transform: translateX(0);
}

.reveal-on-scroll.from-right {
    transform: translateX(40px);
}

.reveal-on-scroll.from-right.visible {
    transform: translateX(0);
}

.reveal-on-scroll.scale-up {
    transform: scale(0.9);
}

.reveal-on-scroll.scale-up.visible {
    transform: scale(1);
}

/* Stagger children animations */
.stagger-children > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.6s; }

.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================================================
   Navbar con transicion al scroll
   ============================================================================= */

.navbar-landing {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.4s ease;
    background: transparent;
}

.navbar-landing.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    padding: 0.75rem 0;
}

.navbar-landing .navbar-brand {
    color: white;
    transition: color 0.4s ease;
}

.navbar-landing.scrolled .navbar-brand {
    color: var(--primary);
}

.navbar-landing .nav-link {
    color: rgba(255,255,255,0.9);
    transition: color 0.4s ease;
}

.navbar-landing.scrolled .nav-link {
    color: var(--text-muted);
}

.navbar-landing.scrolled .nav-link:hover,
.navbar-landing.scrolled .nav-link.active {
    color: var(--primary);
}

/* =============================================================================
   Landing Page Responsive
   ============================================================================= */

@media (max-width: 1200px) {
    .journey-timeline {
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
    }

    .journey-timeline::before {
        display: none;
    }

    .journey-step {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (max-width: 992px) {
    .story-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .story-container.image-left {
        direction: ltr;
    }

    .hero-light .hero-title {
        font-size: 2.5rem;
    }

    .hero-light .hero-logo {
        max-width: 220px;
    }
}

@media (max-width: 768px) {
    .hero-light .hero-logo {
        max-width: 180px;
        margin-bottom: 1.5rem;
    }
    .section-white,
    .section-alt,
    .section-light,
    .section-gradient {
        padding: 4rem 0;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .journey-step {
        flex: 0 0 100%;
    }

    .hero-light .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        justify-content: center;
    }

    .multipath-cta-grid {
        grid-template-columns: 1fr;
    }

    .hero-light .organic-shape {
        display: none;
    }

    .impact-stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .hero-badge {
        font-size: 0.75rem;
        padding: 8px 14px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .journey-step-number,
    .journey-step-icon {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
}

/* =============================================================================
   CORRECCIONES RESPONSIVE - NAVBAR MOVIL Y LAYOUT
   ============================================================================= */

/* Navbar hero - transparente inicial, blanco al scroll */
.navbar-hero {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: transparent !important;
    backdrop-filter: none !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-hero.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.06) !important;
}

/* =============================================================================
   LANDING PAGE - NAVBAR COMPLETAMENTE REDISEÑADO
   ============================================================================= */

/* Navbar principal */
.landing-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    padding: 1rem 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.landing-navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* Brand / Logos */
.landing-navbar-brand {
    display: flex;
    align-items: center;
    position: relative;
    text-decoration: none;
    z-index: 10;
}

.landing-navbar-brand .brand-isotipo {
    height: 44px;
    width: auto;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.landing-navbar-brand .brand-logotipo {
    position: absolute;
    left: 0;
    height: 38px;
    width: auto;
    opacity: 0;
    transform: scale(0.8) translateY(10px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Navigation links */
.landing-navbar-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.5s ease;
}

.landing-nav-link {
    color: white;
    text-decoration: none;
    padding: 0.625rem 1.125rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.landing-nav-link:hover {
    color: white;
    background: rgba(255,255,255,0.15);
}

.landing-nav-link.active {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* Auth section */
.landing-navbar-auth {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.5s ease;
}

.landing-auth-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.landing-auth-link:hover {
    color: white;
    background: rgba(255,255,255,0.1);
}

.landing-auth-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: var(--primary);
    text-decoration: none;
    padding: 0.625rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.landing-auth-btn:hover {
    background: var(--accent-lime);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* Hamburger - oculto por defecto en desktop */
.landing-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 2px solid var(--primary);
    border-radius: 12px;
    cursor: pointer;
    gap: 5px;
    padding: 10px;
    transition: all 0.3s ease;
}

.landing-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.landing-hamburger:hover {
    background: var(--primary);
}

.landing-hamburger:hover span {
    background: white;
}

/* Mobile hamburger */
.landing-hamburger-mobile {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    cursor: pointer;
    gap: 5px;
    padding: 10px;
    transition: all 0.3s ease;
}

.landing-hamburger-mobile span {
    display: block;
    width: 20px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ===== ESTADO SCROLLED ===== */
.landing-navbar.scrolled {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    padding: 0.75rem 0;
}

/* Isotipo rueda hacia la izquierda y se oculta */
.landing-navbar.scrolled .brand-isotipo {
    transform: translateX(-60px) rotate(-360deg);
    opacity: 0;
}

/* Logotipo aparece (merge effect) */
.landing-navbar.scrolled .brand-logotipo {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Ocultar links y auth */
.landing-navbar.scrolled .landing-navbar-links,
.landing-navbar.scrolled .landing-navbar-auth {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
}

/* Mostrar hamburger */
.landing-navbar.scrolled .landing-hamburger {
    display: flex;
}

/* Brand se centra */
.landing-navbar.scrolled .landing-navbar-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.landing-navbar.scrolled .landing-navbar-content {
    justify-content: flex-start;
}

/* ===== SIDEBAR ===== */
.landing-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100vh;
    background: white;
    z-index: 1100;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 30px rgba(0,0,0,0.15);
}

.landing-sidebar.open {
    transform: translateX(0);
}

.landing-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.landing-sidebar-logo {
    height: 32px;
    width: auto;
}

.landing-sidebar-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.04);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    color: var(--text-main);
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.landing-sidebar-close:hover {
    background: rgba(0,0,0,0.08);
    transform: rotate(90deg);
}

.landing-sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 0.25rem;
}

.landing-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    color: var(--text-main);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.landing-sidebar-link i {
    font-size: 1.25rem;
    opacity: 0.7;
}

.landing-sidebar-link:hover {
    background: var(--accent-lime-light);
    color: var(--primary);
    transform: translateX(4px);
}

.landing-sidebar-link:hover i {
    opacity: 1;
}

.landing-sidebar-link.active {
    background: var(--primary);
    color: white;
}

.landing-sidebar-link.active i {
    opacity: 1;
}

.landing-sidebar-divider {
    height: 1px;
    background: rgba(0,0,0,0.06);
    margin: 0.5rem 1.5rem;
}

.landing-sidebar-register {
    background: var(--primary);
    color: white !important;
    margin-top: 0.5rem;
}

.landing-sidebar-register:hover {
    background: var(--primary-dark);
    transform: translateX(0) !important;
}

/* ===== OVERLAY ===== */
.landing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1090;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(4px);
}

.landing-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== MOBILE ===== */
@media (max-width: 991.98px) {
    .landing-navbar-links,
    .landing-navbar-auth,
    .landing-hamburger {
        display: none !important;
    }

    .landing-hamburger-mobile {
        display: flex;
    }

    .landing-navbar.scrolled .landing-hamburger-mobile {
        background: transparent;
        border-color: var(--primary);
    }

    .landing-navbar.scrolled .landing-hamburger-mobile span {
        background: var(--primary);
    }

    .landing-navbar.scrolled .landing-navbar-brand {
        position: relative;
        left: auto;
        transform: none;
    }

    .landing-sidebar {
        width: 280px;
    }
}

@media (max-width: 575.98px) {
    .landing-sidebar {
        width: 100%;
    }
}

/* Navbar hamburguesa para movil - homepage */
.cms-homepage .navbar-glass {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    transition: all 0.3s ease;
}

.cms-homepage .navbar-glass .navbar-toggler {
    border: 2px solid rgba(255,255,255,0.5);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}

.cms-homepage .navbar-glass .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.cms-homepage .navbar-glass.scrolled .navbar-toggler {
    border-color: var(--primary);
}

.cms-homepage .navbar-glass.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%281, 95, 45, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Menu desplegable en movil */
@media (max-width: 991.98px) {
    .cms-homepage .navbar-glass .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 1.5rem;
        border-radius: 0 0 16px 16px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.15);
        margin-top: 0.5rem;
    }

    .cms-homepage .navbar-glass .navbar-nav {
        gap: 0.5rem;
    }

    .cms-homepage .navbar-glass .nav-link {
        color: var(--text-main) !important;
        padding: 0.75rem 1rem !important;
        border-radius: 8px;
        transition: all 0.2s ease;
    }

    .cms-homepage .navbar-glass .nav-link:hover,
    .cms-homepage .navbar-glass .nav-link.active {
        background: var(--accent-lime-light);
        color: var(--primary) !important;
    }

    .cms-homepage .navbar-glass .btn-glass-outline {
        margin: 0.5rem 0 0 0 !important;
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* Botones del hero en movil */
    .hero-light .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 1rem;
    }

    /* Ajustar padding del hero para el navbar fijo */
    .hero-light {
        padding-top: 80px;
    }

    /* Cards de servicios en movil */
    .service-card-modern {
        padding: 1.5rem;
    }

    .service-card-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }

    /* Stats en movil */
    .impact-stat-card {
        padding: 1.5rem;
    }

    .impact-stat-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }

    .impact-stat-number {
        font-size: 2.25rem;
    }

    .impact-stat-label {
        font-size: 0.95rem;
    }

    /* Testimonios en movil */
    .testimonial-card-modern {
        padding: 1.5rem;
    }

    .testimonial-card-modern::before {
        font-size: 3rem;
        top: 10px;
        left: 15px;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    /* CTA multi-path en movil */
    .cta-path-card {
        padding: 1.5rem;
    }

    .cta-path-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }

    /* Journey timeline en movil */
    .journey-timeline-vertical {
        padding-left: 2.5rem;
    }

    .journey-timeline-vertical::before {
        left: 10px;
    }

    .journey-timeline-vertical .journey-step-number,
    .journey-timeline-vertical .journey-step-icon {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
}

/* Logo del navbar - todas las páginas */
.navbar-glass .navbar-logo {
    height: 36px;
    width: 160px;
    object-fit: contain;
    object-position: left center;
    transition: all 0.3s ease;
}

/* Logo del navbar - homepage más grande para el hero */
.cms-homepage .navbar-glass .navbar-logo {
    height: 40px;
    width: 180px;
}

/* Logo blanco sobre el hero */
.cms-homepage .navbar-glass:not(.scrolled) .navbar-logo {
    filter: brightness(0) invert(1);
}

/* Logo normal cuando se hace scroll */
.cms-homepage .navbar-glass.scrolled .navbar-logo {
    filter: none;
}

/* Alineación vertical de items del navbar */
.cms-homepage .navbar-glass .navbar-nav {
    align-items: center !important;
}

.cms-homepage .navbar-glass .nav-item {
    display: flex;
    align-items: center;
}

.cms-homepage .navbar-glass .nav-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px !important;
    line-height: 1.2;
}

.cms-homepage .navbar-glass .btn-glass-outline {
    padding: 0.5rem 1.25rem !important;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    margin-left: 0.5rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Navbar sobre el hero (transparente) - texto blanco */
.cms-homepage .navbar-glass:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.cms-homepage .navbar-glass:not(.scrolled) .nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.15) !important;
    text-shadow: none;
}

.cms-homepage .navbar-glass:not(.scrolled) .nav-link.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.2) !important;
    text-shadow: none;
}

.cms-homepage .navbar-glass:not(.scrolled) .navbar-brand span {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.cms-homepage .navbar-glass:not(.scrolled) .btn-glass-outline {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(8px);
}

.cms-homepage .navbar-glass:not(.scrolled) .btn-glass-outline:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Navbar scroll effect mejorado */
.cms-homepage .navbar-glass.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.06);
}

.cms-homepage .navbar-glass.scrolled .nav-link {
    color: var(--text-muted) !important;
    text-shadow: none !important;
}

.cms-homepage .navbar-glass.scrolled .nav-link:hover {
    color: var(--primary) !important;
    background: rgba(1, 95, 45, 0.08) !important;
}

.cms-homepage .navbar-glass.scrolled .nav-link.active {
    color: var(--primary) !important;
    background: linear-gradient(135deg, rgba(1, 95, 45, 0.12) 0%, rgba(134, 187, 17, 0.08) 100%) !important;
    font-weight: 600;
}

.cms-homepage .navbar-glass.scrolled .navbar-brand span {
    color: var(--primary) !important;
}

.cms-homepage .navbar-glass.scrolled .btn-glass-outline:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(1, 95, 45, 0.2);
}

/* =============================================================================
   FOOTER MEJORADO
   ============================================================================= */

.footer-modern {
    background: linear-gradient(180deg, #0a1f13 0%, #041208 100%);
    padding: 5rem 0 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.footer-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-cta);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.footer-logo img,
.footer-logo-img {
    height: auto;
    width: 230px;
    max-width: 100%;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

.footer-description {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    color: white;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-4px);
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

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

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent-lime);
    padding-left: 8px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.7);
}

.footer-contact-item i {
    color: var(--accent-lime);
    font-size: 1.25rem;
    margin-top: 2px;
}

.footer-contact-item a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact-item a:hover {
    color: var(--accent-lime);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
    margin-top: 3rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
}

.footer-legal-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-legal-links a:hover {
    color: var(--accent-lime);
}

@media (max-width: 768px) {
    .footer-modern {
        padding: 3rem 0 0;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal-links {
        justify-content: center;
    }
}

/* =============================================================================
   CTA INTERMEDIO (Entre secciones)
   ============================================================================= */

.section-cta-mini {
    padding: 3rem 0;
    background: var(--accent-lime-light);
    text-align: center;
}

.section-cta-mini .cta-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.section-cta-mini .cta-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
}

.section-cta-mini .btn-cta-mini {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.section-cta-mini .btn-cta-mini:hover {
    background: #027a3a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(1,95,45,0.25);
    color: white;
}

@media (max-width: 768px) {
    .section-cta-mini .cta-content {
        flex-direction: column;
        gap: 1rem;
    }

    .section-cta-mini .cta-text {
        font-size: 1.1rem;
    }
}

/* =============================================================================
   SECCIÓN DE EMPRESAS MIEMBRO / RED ANDEIS
   ============================================================================= */

.member-companies-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #f8fafc 0%, #f0fdf4 100%);
    position: relative;
    overflow: hidden;
}

.member-companies-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
    opacity: 0.2;
}

.member-companies-header {
    text-align: center;
    margin-bottom: 3rem;
}

.member-companies-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
}

.member-companies-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.member-companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto 2.5rem;
}

.member-company-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    border: 1px solid rgba(1,95,45,0.08);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s var(--ease-spring);
}

.member-company-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.member-company-card img {
    max-width: 100%;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(30%);
    opacity: 0.85;
    transition: all 0.3s ease;
}

.member-company-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.member-company-card a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Placeholder cuando no hay logo */
.member-company-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

.member-company-placeholder i {
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.5;
}

.member-company-placeholder span {
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
}

/* CTA para unirse a la red */
.member-companies-cta {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(1,95,45,0.1);
    max-width: 600px;
    margin: 0 auto;
}

.member-companies-cta p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.btn-join-network {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--gradient-cta);
    color: white;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(1,95,45,0.2);
}

.btn-join-network:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(1,95,45,0.3);
    color: white;
}

.btn-join-network i {
    transition: transform 0.3s ease;
}

.btn-join-network:hover i {
    transform: translateX(4px);
}

/* Contador de empresas */
.member-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--accent-lime-light);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.member-count-badge i {
    color: var(--accent-lime);
}

/* Logo de empresa */
.member-company-logo {
    max-width: 100%;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(20%);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.member-company-card:hover .member-company-logo {
    filter: grayscale(0%);
    opacity: 1;
}

/* Nombre de empresa debajo del logo */
.member-company-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.75rem;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-company-card:hover .member-company-name {
    color: var(--primary);
}

/* Card con logo y nombre apilados */
.member-company-card {
    flex-direction: column;
}

/* Estado vacío / placeholder */
.member-companies-empty {
    text-align: center;
}

.member-company-placeholder-card {
    opacity: 0.6;
    background: linear-gradient(135deg, #f8fafc 0%, #f0fdf4 100%);
}

.member-companies-note {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.member-companies-note i {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .member-companies-section {
        padding: 3rem 0;
    }

    .member-companies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .member-company-card {
        padding: 1rem;
        min-height: 80px;
    }

    .member-company-card img {
        max-height: 45px;
    }
}

@media (max-width: 480px) {
    .member-companies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
