/**
 * Estilos Personalizados
 * Carlos Verano Portfolio
 */

/* ===== FUENTES Y VARIABLES ===== */
:root {
    --primary: #FCD34D;
    --secondary: #000000;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --back-bot: #9ca3af; /* #1E293B*/
}

body {
    font-family: 'Inter', sans-serif;
}

/* ===== SMOOTH SCROLL ===== */
.smooth-scroll {
    scroll-behavior: smooth;
}

html {
    scroll-padding-top: 80px; /* Compensar altura del nav fixed */
}

/* ===== HERO BACKGROUND ===== */
.hero-bg {
	/* Gradiente como fallback */
    background: linear-gradient(135deg, #000000 0%, #334155 100%);
    /* Imagen encima del gradiente */
    background-image: url('../img/hero-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;	
}

/* Fallback si no hay imagen */
/* .hero-bg:not([style*="background-image"]) {
    background: linear-gradient(135deg, #000000 0%, #334155 100%);
} */ 

/* ===== GLASS EFFECT ===== */
.glass-effect {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== SERVICE CARDS ===== */
.service-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ===== TESTIMONIAL CARDS ===== */
.testimonial-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    min-height: 280px;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

/* ===== TIMELINE ===== */
.timeline-item {
    position: relative;
}

@media (min-width: 1024px) {
    .timeline-item::after {
        content: '';
        position: absolute;
        top: 50%;
        right: -2rem;
        width: 2rem;
        height: 2px;
        background: var(--primary);
        transform: translateY(-50%);
    }
    
    .timeline-item:last-child::after {
        display: none;
    }
}

/* ===== COUNTERS ===== */
.counter {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

@media (max-width: 640px) {
    .counter {
        font-size: 2.5rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-bounce {
    animation: bounce 2s infinite;
}

@keyframes slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.animate-slide-in {
    animation: slide-in 0.3s ease-out;
}

/* ===== FORM STYLES ===== */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(252, 211, 77, 0.1);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    transition: all 0.2s ease;
}

/* ===== BUTTONS ===== */
button, 
.btn {
    transition: all 0.2s ease;
}

button:active,
.btn:active {
    transform: scale(0.98);
}

/* ===== LOADING SPINNER ===== */
.spinner {
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary);
    width: 24px;
    height: 24px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== RESPONSIVE IMAGES ===== */
img {
    max-width: 100%;
    height: auto;
}

/* ===== ACCESSIBILITY ===== */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: var(--secondary);
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* ===== PRINT STYLES ===== */
@media print {
    nav,
    footer,
    .no-print {
        display: none;
    }
    
    body {
        background: white;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0f172a;
}

/* ===== UTILITY CLASSES ===== */
.text-balance {
    text-wrap: balance;
}

.transition-all {
    transition: all 0.3s ease;
}

/* ===== RESPONSIVE UTILITIES ===== */
@media (max-width: 640px) {
    .text-responsive {
        font-size: 0.875rem;
    }
}

/* ===== MODAL/OVERLAY ===== */
.overlay {
    transition: opacity 0.3s ease;
}

.overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ===== NOTIFICATION/TOAST ===== */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    animation: slide-in 0.3s ease-out;
}

/* ===== REMIX ICONS FIX ===== */
:where([class^="ri-"])::before {
    content: "\f3c2";
}

/* ===== MOBILE MENU Z-INDEX FIX ===== */
nav {
    z-index: 50;
}

#mobileMenuOverlay {
    z-index: 60 !important;
}

#mobileMenuOverlay > div {
    background: white !important;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

/* Asegurar legibilidad del menú móvil */
#mobileMenuOverlay a {
    color: #000000 !important;
}

#mobileMenuOverlay button {
    color: #000000 !important;
}

/* En móviles pequeños, menú ocupa toda la pantalla */
@media (max-width: 640px) {
    #mobileMenuOverlay > div {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* ===== FIX PARA PÁGINAS LEGALES ===== */

/* Navegación con fondo sólido en páginas internas */
body.page-legal nav.glass-effect {
    background: rgba(255, 255, 255, 1) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}