/* ========================================
   Estilos personalizados - LGP & Asociados
   ======================================== */

body {
    font-family: 'Inter', sans-serif;
}

/* ========================================
   NAVBAR
   ======================================== */
#navbar {
    background-color: #74C69D !important;
    transition: all 0.3s ease;
}

#navbar.scrolled {
    background-color: #5fb88a !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* ========================================
   LOGO TEXT
   ======================================== */
.logo-text-container {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    overflow: hidden;
}

.logo-rotating-wrapper {
    position: relative;
    display: inline-block;
    min-width: 250px;
    height: 1.8rem;
    overflow: hidden;
}

.logo-rotating-text {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    font-weight: 600;
    font-size: 1.25rem;
    color: #14532d;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    letter-spacing: 0.3px;
}

.logo-rotating-text.active {
    opacity: 1;
    transform: translateY(0);
}

.logo-rotating-text.exit {
    opacity: 0;
    transform: translateY(-100%);
}

/* ========================================
   LOGO IMAGE
   ======================================== */
.logo-image-container {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1B4D3E 0%, #2d7a5e 100%);
    box-shadow: 0 2px 8px rgba(27, 77, 62, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.logo-image-container:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(27, 77, 62, 0.4);
}

.logo-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   NAV LINKS
   ======================================== */
.nav-link {
    position: relative;
    color: #1B4D3E !important;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    padding: 8px 4px;
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #D4AF37, #F4D03F);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: #D4AF37 !important;
    animation: goldBlink 0.6s ease-in-out 3;
}

.nav-link:hover::after {
    width: 100%;
}

@keyframes goldBlink {
    0% { 
        color: #1B4D3E !important; 
        text-shadow: none; 
    }
    25% { 
        color: #D4AF37 !important; 
        text-shadow: 0 0 8px rgba(212, 175, 55, 0.6); 
    }
    50% { 
        color: #F4D03F !important; 
        text-shadow: 0 0 12px rgba(244, 208, 63, 0.8); 
    }
    75% { 
        color: #D4AF37 !important; 
        text-shadow: 0 0 8px rgba(212, 175, 55, 0.6); 
    }
    100% { 
        color: #D4AF37 !important; 
        text-shadow: 0 0 4px rgba(212, 175, 55, 0.4); 
    }
}

/* ========================================
   BOTÓN CTA
   ======================================== */
.btn-cta {
    background: linear-gradient(135deg, #D4AF37 0%, #F4D03F 100%) !important;
    color: #1B4D3E !important;
    font-weight: 700 !important;
    padding: 10px 24px !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    animation: ctaGoldBlink 0.4s ease-in-out 4;
}

@keyframes ctaGoldBlink {
    0% { 
        background: linear-gradient(135deg, #D4AF37 0%, #F4D03F 100%) !important; 
    }
    50% { 
        background: linear-gradient(135deg, #F4D03F 0%, #FFE066 100%) !important; 
        box-shadow: 0 0 20px rgba(244, 208, 63, 0.8); 
    }
    100% { 
        background: linear-gradient(135deg, #D4AF37 0%, #F4D03F 100%) !important; 
    }
}

/* ========================================
   MOBILE MENU
   ======================================== */
.mobile-nav-link {
    color: #1B4D3E !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    color: #D4AF37 !important;
    background-color: rgba(212, 175, 55, 0.1);
}

.mobile-menu-container {
    background-color: #74C69D !important;
    border-top: 1px solid rgba(27, 77, 62, 0.1);
}

/* ========================================
   HERO PEQUEÑO
   ======================================== */
.hero-small {
    background: linear-gradient(135deg, #1B4D3E 0%, #14532D 50%, #374151 100%) !important;
    min-height: 300px !important;
    padding-top: 4rem !important;
    padding-bottom: 3rem !important;
    color: white !important;
}

@media (min-width: 1024px) {
    .hero-small {
        min-height: 350px !important;
        padding-top: 6rem !important;
        padding-bottom: 4rem !important;
    }
}

.hero-small h1,
.hero-small h2,
.hero-small h3,
.hero-small h4,
.hero-small h5,
.hero-small h6,
.hero-small p,
.hero-small span,
.hero-small a:not(.btn-primary):not(.btn-cta) {
    color: white !important;
}

.hero-small h1 {
    font-size: 2rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}

@media (min-width: 640px) {
    .hero-small h1 {
        font-size: 2.5rem !important;
    }
}

@media (min-width: 1024px) {
    .hero-small h1 {
        font-size: 3rem !important;
    }
}

.hero-small p {
    font-size: 0.875rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

@media (min-width: 640px) {
    .hero-small p {
        font-size: 1rem !important;
    }
}

.hero-small .inline-flex {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.hero-small .text-gradient {
    background: linear-gradient(to right, #4ade80, #86efac) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* ========================================
   TEXTOS CON GRADIENTE
   ======================================== */
.text-gradient {
    background: linear-gradient(to right, #4ade80, #86efac) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* ========================================
   BOTONES
   ======================================== */
.btn-primary {
    background-color: #4A7C59 !important;
    color: white !important;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #1B4D3E !important;
    transform: scale(1.05);
    color: white !important;
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

/* ========================================
   TARJETAS CON HOVER
   ======================================== */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(27, 77, 62, 0.15), 
                0 8px 10px -6px rgba(27, 77, 62, 0.1);
}

/* ========================================
   ANIMACIONES
   ======================================== */
.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* ========================================
   UTILIDADES
   ======================================== */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ========================================
   HERO GRADIENTE
   ======================================== */
section#inicio.hero-gradient {
    background: linear-gradient(135deg, #1B4D3E 0%, #14532D 50%, #374151 100%) !important;
}

section#inicio {
    background: linear-gradient(135deg, #1B4D3E 0%, #14532D 50%, #374151 100%) !important;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .logo-rotating-wrapper {
        min-width: 180px;
        height: 1.4rem;
    }
    .logo-rotating-text {
        font-size: 0.75rem;
    }
    .logo-image-container {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .logo-rotating-wrapper {
        min-width: 120px;
        height: 1.2rem;
    }
    .logo-rotating-text {
        font-size: 0.65rem;
    }
}