/* ===== ASESORÍAS LEGIÓN - ESTILOS QUIÉNES SOMOS ===== */
/* Archivo: css/somos.css */
/* Versión: 1.0 */
/* Descripción: Estilos para página "Quiénes Somos" - 100% Responsive */

/* ===== VARIABLES CSS ===== */
:root {
    /* Colores principales */
    --primary-color: #1e3a8a;
    --primary-dark: #1e40af;
    --secondary-color: #0f172a;
    --secondary-light: #1e293b;
    --accent-color: #3b82f6;
    
    /* Colores de apoyo */
    --white: #ffffff;
    --light-gray: #f8fafc;
    --dark-gray: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    
    /* Fuentes */
    --font-primary: 'Poppins', sans-serif;
    
    /* Espaciado */
    --border-radius: 12px;
    --box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.15);
    
    /* Transiciones */
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

/* ===== ESTILOS GLOBALES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--secondary-color);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* ===== NAVEGACIÓN STICKY ===== */
.custom-navbar {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white) !important;
    transition: var(--transition);
}

.navbar-brand:hover {
    color: var(--accent-color) !important;
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-color) !important;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

/* ===== HERO CAROUSEL ===== */
.hero-carousel {
    position: relative;
    height: 100vh;
    min-height: 600px; /* Altura mínima para dispositivos pequeños */
    overflow: hidden;
    background: var(--secondary-color);
}

.slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.95) contrast(1.05) saturate(1.1);
}

/* Overlay para mejorar legibilidad del texto */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(30, 58, 138, 0.8) 0%, 
        rgba(15, 23, 42, 0.6) 100%);
    z-index: 3;
}

.hero-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    padding: 0 2rem;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text {
    color: var(--white);
    animation: slideInLeft 1s ease-out;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem); /* Tamaño responsivo */
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.4rem); /* Tamaño responsivo */
    font-weight: 300;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 90%; /* Limitar ancho en pantallas grandes */
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.hero-buttons .btn {
    padding: 1rem 2rem;
    font-size: clamp(0.95rem, 2vw, 1.1rem); /* Tamaño responsivo */
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    min-width: 180px; /* Ancho mínimo para consistencia */
    justify-content: center;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-hover);
}

/* Elementos flotantes decorativos */
.hero-visual {
    position: relative;
    height: clamp(200px, 30vh, 300px); /* Altura responsiva */
    animation: slideInRight 1s ease-out;
}

.floating-element {
    position: absolute;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    opacity: 0.8;
}

.floating-element:nth-child(1) {
    width: clamp(60px, 8vw, 100px);
    height: clamp(60px, 8vw, 100px);
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: clamp(40px, 5vw, 60px);
    height: clamp(40px, 5vw, 60px);
    top: 60%;
    right: 30%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    width: clamp(50px, 6vw, 80px);
    height: clamp(50px, 6vw, 80px);
    bottom: 20%;
    left: 60%;
    animation-delay: 4s;
}

/* Controles de navegación */
.hero-nav {
    position: absolute;
    top: 90%;
    transform: translateY(-50%);
    width: clamp(45px, 6vw, 60px);
    height: clamp(45px, 6vw, 60px);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.hero-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.hero-nav.prev {
    left: clamp(1rem, 3vw, 2rem);
}

.hero-nav.next {
    right: clamp(1rem, 3vw, 2rem);
}

/* Indicadores de slide */
.slide-indicators {
    position: absolute;
    bottom: clamp(1.5rem, 4vw, 2rem);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: clamp(0.5rem, 1.5vw, 1rem);
    z-index: 10;
}

.indicator {
    width: clamp(10px, 1.5vw, 12px);
    height: clamp(10px, 1.5vw, 12px);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active,
.indicator:hover {
    background: var(--white);
    transform: scale(1.2);
}

/* Barra de progreso */
.slide-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: var(--accent-color);
    transition: width 5s linear;
    z-index: 10;
}

/* ===== SECCIONES PRINCIPALES ===== */
.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--dark-gray);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== SECCIÓN HISTORIA ===== */
.historia-section {
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    position: relative;
}

.historia-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(30, 58, 138, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.timeline-content {
    position: relative;
    padding-left: 2rem;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.timeline-year {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 1.1rem;
    min-width: 80px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.timeline-year::before {
    content: '';
    position: absolute;
    left: -1.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline-content-inner {
    flex: 1;
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.timeline-content-inner:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.timeline-content-inner h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.historia-visual {
    position: relative;
    text-align: center;
}

.historia-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    box-shadow: var(--box-shadow);
    animation: pulse 2s infinite;
}

/* ===== MISIÓN Y VISIÓN ===== */
.mision-vision-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.mision-vision-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 70% 30%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.mision-vision-section .section-title {
    color: var(--white);
}

.mision-card,
.vision-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    transition: var(--transition);
    overflow: hidden;
}

.mision-card:hover,
.vision-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: var(--box-shadow-hover);
}

.mision-card .card-header,
.vision-card .card-header {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 2rem 1.5rem;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--white);
}

.card-title {
    color: var(--white);
    margin: 0;
    font-weight: 600;
}

.card-text {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.valores-list,
.objetivos-list {
    margin-top: 1rem;
}

.valor-item,
.objetivo-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
}

.valor-item i,
.objetivo-item i {
    color: var(--success-color);
    margin-right: 0.5rem;
}

/* ===== SECCIÓN EQUIPO ===== */
.equipo-section {
    background: var(--white);
    position: relative;
}

.equipo-content {
    padding-left: 2rem;
}

.equipo-content h3 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.especialidades-list {
    list-style: none;
    padding: 0;
}

.especialidades-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.cert-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cert-badge {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===== POR QUÉ ELEGIRNOS ===== */
.why-us-section {
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    position: relative;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: none;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--dark-gray);
    margin: 0;
}

/* ===== CALL TO ACTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.cta-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    min-width: 200px;
    justify-content: center;
}

.cta-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-hover);
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--white);
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* ===== ANIMACIONES ===== */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* ===== RESPONSIVE DESIGN - HERO CAROUSEL ===== */

/* Tablet grande y desktop pequeño */
@media (max-width: 1200px) {
    .hero-content {
        gap: 2rem;
        max-width: 95%;
    }
    
    .hero-title {
        font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 2.2vw, 1.2rem);
    }
}

/* Tablet */
@media (max-width: 992px) {
    .hero-carousel {
        height: 85vh;
        min-height: 550px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: clamp(2rem, 4vw, 2.8rem);
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: clamp(0.95rem, 2vw, 1.1rem);
        margin-bottom: 2rem;
        max-width: 100%;
    }
    
    .hero-visual {
        height: clamp(150px, 25vh, 200px);
        order: -1; /* Mostrar elementos visuales arriba en móvil */
    }
    
    .hero-buttons {
        justify-content: center;
        gap: 0.8rem;
    }
    
    .hero-buttons .btn {
        min-width: 160px;
        padding: 0.8rem 1.5rem;
        font-size: clamp(0.9rem, 1.8vw, 1rem);
    }
    
    .equipo-content {
        padding-left: 0;
        margin-top: 2rem;
    }
    
    .historia-badge {
        position: static;
        margin: 1rem auto;
        display: inline-flex;
    }
}

/* Tablet pequeño */
@media (max-width: 768px) {
    .hero-carousel {
        height: 75vh;
        min-height: 500px;
    }
    
    .hero-container {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: clamp(1.8rem, 3.5vw, 2.2rem);
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: clamp(0.9rem, 1.8vw, 1rem);
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        margin-bottom: 0.5rem;
    }
    
    .hero-nav {
        width: clamp(40px, 5vw, 50px);
        height: clamp(40px, 5vw, 50px);
        font-size: clamp(0.9rem, 2vw, 1.2rem);
    }
    
    .hero-nav.prev {
        left: 1rem;
    }
    
    .hero-nav.next {
        right: 1rem;
    }
    
    .slide-indicators {
        bottom: 1.5rem;
        gap: 0.8rem;
    }
    
    .floating-element:nth-child(1) {
        width: clamp(50px, 6vw, 70px);
        height: clamp(50px, 6vw, 70px);
    }
    
    .floating-element:nth-child(2) {
        width: clamp(35px, 4vw, 50px);
        height: clamp(35px, 4vw, 50px);
    }
    
    .floating-element:nth-child(3) {
        width: clamp(40px, 5vw, 60px);
        height: clamp(40px, 5vw, 60px);
    }
    
    .timeline-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .timeline-year {
        min-width: auto;
        order: 1;
    }
    
    .timeline-content-inner {
        order: 2;
    }
    
    .timeline-year::before {
        display: none;
    }
    
    .timeline-content::before {
        display: none;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .cert-badges {
        justify-content: center;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .hero-carousel {
        height: 70vh;
        min-height: 450px;
    }
    
    .hero-container {
        padding: 0 1rem;
    }
    
    .hero-content {
        gap: 1.5rem;
        padding: 1rem 0;
    }
    
    .hero-title {
        font-size: clamp(1.6rem, 3vw, 1.9rem);
        margin-bottom: 0.8rem;
    }
    
    .hero-subtitle {
        font-size: clamp(0.85rem, 1.5vw, 0.95rem);
        margin-bottom: 1.2rem;
        line-height: 1.5;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 100%;
        padding: 0.75rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .hero-visual {
        height: 120px;
        margin-bottom: 1rem;
    }
    
    .floating-element {
        opacity: 0.6; /* Menos prominentes en móvil */
    }
    
    .floating-element:nth-child(1) {
        width: 40px;
        height: 40px;
    }
    
    .floating-element:nth-child(2) {
        width: 25px;
        height: 25px;
    }
    
    .floating-element:nth-child(3) {
        width: 30px;
        height: 30px;
    }
    
    .hero-nav {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .hero-nav.prev {
        left: 0.5rem;
    }
    
    .hero-nav.next {
        right: 0.5rem;
    }
    
    .slide-indicators {
        bottom: 1rem;
        gap: 0.6rem;
    }
    
    .indicator {
        width: 8px;
        height: 8px;
    }
    
    .timeline-content-inner {
        padding: 1rem;
    }
    
    .mision-card .card-header,
    .vision-card .card-header {
        padding: 1.5rem 1rem;
    }
    
    .icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem 1rem;
    }
}

/* Mobile muy pequeño */
@media (max-width: 380px) {
    .hero-carousel {
        height: 65vh;
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 1.5rem;
        line-height: 1.4;
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .hero-buttons .btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .hero-visual {
        height: 100px;
    }
    
    .floating-element {
        display: none; /* Ocultar en pantallas muy pequeñas */
    }
    
    .hero-nav {
        width: 30px;
        height: 30px;
        font-size: 0.7rem;
    }
}

/* Landscape móvil */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-carousel {
        height: 100vh;
        min-height: 400px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .hero-visual {
        display: none; /* Ocultar elementos decorativos en landscape */
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .hero-buttons .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        min-width: 120px;
        width: auto;
    }
    
    .slide-indicators {
        bottom: 0.5rem;
    }
}

/* Tablet */
@media (max-width: 992px) {
    .hero-stats {
        gap: 2rem;
    }
    
    .timeline-content {
        padding-left: 1.5rem;
    }
    
    .timeline-year::before {
        left: -1.25rem;
    }
    
    .equipo-content {
        padding-left: 0;
        margin-top: 2rem;
    }
    
    .historia-badge {
        position: static;
        margin: 1rem auto;
        display: inline-flex;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-section {
        height: 80vh;
        min-height: 500px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .timeline-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .timeline-year {
        min-width: auto;
        order: 1;
    }
    
    .timeline-content-inner {
        order: 2;
    }
    
    .timeline-year::before {
        display: none;
    }
    
    .timeline-content::before {
        display: none;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .cert-badges {
        justify-content: center;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
}

/* Mobile pequeño */
@media (max-width: 576px) {
    .hero-section {
        height: 70vh;
        min-height: 450px;
    }
    
    .timeline-content-inner {
        padding: 1rem;
    }
    
    .mision-card .card-header,
    .vision-card .card-header {
        padding: 1.5rem 1rem;
    }
    
    .icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem 1rem;
    }
    
    .scroll-indicator {
        bottom: 1rem;
    }
}

/* ===== UTILIDADES ADICIONALES ===== */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

/* Scroll personalizado */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}
/* ===== LOGO OPTIMIZADO ===== */
.navbar-brand {
    position: relative !important;
    width: 180px;
    height: 60px;
    overflow: visible;
}

.navbar-brand img {
    height: 120px !important;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 1000;
    transition: var(--transition-medium);
    filter: brightness(0) invert(1) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.navbar-brand:hover img {
    transform: translateY(-50%) scale(1.05);
    filter: brightness(0) invert(1) drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
}

/* Responsive del logo */
@media (max-width: 768px) {
    .navbar-brand { width: 140px; }
    .navbar-brand img { height: 120px !important; }
}

@media (max-width: 576px) {
    .navbar-brand { width: 120px; }
    .navbar-brand img { height: 100px !important; }
}