﻿/* UNEC Corporación - Estilos Personalizados */

/* Variables CSS globales */
:root {
    --primary: #00bf63;
    --accent-orange: #ff751f;
    --background-light: #f5f8f7;
    --background-dark: #0c1d15;
    --footer-bg: #0c1d15;
}

/* Configuración de fuentes */
body {
    font-family: 'Manrope', 'Outfit', system-ui, -apple-system, sans-serif;
    background-color: var(--background-light);
}

/* Navegación Dropdown */
.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu {
    display: none;
    animation: fadeIn 0.2s ease-out;
}

/* Navegación Dropdown activa */
.dropdown-item-active {
    border-left: 2px solid var(--primary);
    color: var(--primary);
}

/* Espaciado de letras amplio */
.letter-spacing-wide {
    letter-spacing: 0.2em;
}

/* Tamaño de fuente pequeño */
.text-10px {
    font-size: 10px;
}

/* Animaciones */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(100%);
    }
}

/* WhatsApp Pulse Animation */
@keyframes waPulseRing {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 191, 99, 0.6);
    }
    70% {
        box-shadow: 0 0 0 14px rgba(0, 191, 99, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 191, 99, 0);
    }
}

.wa-pulse {
    animation: waPulseRing 2s ease-out infinite;
}

.wa-pulse:hover {
    animation: none;
}

@keyframes waBadgeBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.wa-badge-bounce {
    animation: waBadgeBounce 1.5s ease-in-out infinite;
}

/* Menú Móvil Hamburguesa */
.mobile-menu-button {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 8px;
    z-index: 60;
}

.mobile-menu-button span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: currentColor;
    transition: all 0.3s ease;
}

.mobile-menu-button.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-button.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Menú móvil overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 50;
    overflow-y: auto;
    padding: 100px 0 40px 0;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 40;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-item {
    padding: 16px 24px;
    border-bottom: 1px solid #e6f4ed;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #0c1d15;
    transition: all 0.3s ease;
}

.mobile-menu-item:hover {
    background: #f5f8f7;
    color: #ff751f;
    padding-left: 32px;
}

.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f5f8f7;
}

.mobile-submenu.active {
    max-height: 500px;
}

.mobile-submenu-item {
    padding: 12px 40px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #0c1d15;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
}

.mobile-submenu-item:hover {
    color: #ff751f;
    border-left-color: #ff751f;
    background: white;
}

/* Mostrar botón hamburguesa en móvil */
@media (max-width: 1279px) {
    .mobile-menu-button {
        display: flex;
    }
}

/* ========== Galería Carrusel ========== */
.gallery-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 1rem;
}

.gallery-carousel::-webkit-scrollbar {
    display: none;
}

.gallery-carousel .carousel-slide {
    flex: 0 0 85%;
    scroll-snap-align: start;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/10;
}

@media (min-width: 768px) {
    .gallery-carousel .carousel-slide {
        flex: 0 0 45%;
    }
}

@media (min-width: 1024px) {
    .gallery-carousel .carousel-slide {
        flex: 0 0 32%;
    }
}

.gallery-carousel .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-carousel .carousel-slide:hover img {
    transform: scale(1.05);
}

/* Botones de navegación del carrusel */
.carousel-nav {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.carousel-nav button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #0c1d15;
}

.carousel-nav button:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.dark .carousel-nav button {
    background: var(--background-dark);
    border-color: #374151;
    color: white;
}

.dark .carousel-nav button:hover {
    border-color: var(--primary);
    background: var(--primary);
}
