/* ==========================================================================
   Estilos Globales - OyG Creativa
   ========================================================================== */

/* Variables de Color */
:root {
    --brand-green: #8DB724;
    --brand-green-hover: #7CA31E;
    --brand-orange: #F57C00;
    --brand-orange-hover: #E65100;
    --brand-dark: #111827;
}

/* Importación de tipografía Montserrat */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,700&display=swap');

/* Aplicación global de fuente */
body {
    font-family: 'Montserrat', sans-serif;
}

/* ==========================================================================
   Efectos y Microinteracciones para Header Moderno
   ========================================================================== */

/* Subrayado animado en enlaces de navegación */
.nav-link-animated {
    position: relative;
    display: inline-flex;
    align-items: center;
    transition: color 0.25s ease-in-out;
}

.nav-link-animated::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: #8DB724;
    border-radius: 9999px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link-animated:hover::after,
.nav-link-animated.active::after {
    width: 100%;
}

.nav-link-animated.active {
    color: #8DB724;
}

/* Animación de entrada suave del Dropdown */
@keyframes dropdownFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.97);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-menu-animated {
    display: none;
}

.group:hover .dropdown-menu-animated {
    display: block;
    animation: dropdownFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Efecto de destello (shine) en botón CTA */
.btn-shine-effect {
    position: relative;
    overflow: hidden;
}

.btn-shine-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    transition: left 0.75s ease-in-out;
}

.btn-shine-effect:hover::before {
    left: 200%;
}

/* Reducción de movimiento para accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .btn-shine-effect::before {
        display: none !important;
    }
}

/* Selección de texto */
::selection {
    background-color: #8DB724;
    color: #ffffff;
}

::-moz-selection {
    background-color: #8DB724;
    color: #ffffff;
}