/* --- 1. Variables y Reseteo Moderno --- */
:root {
    --primary-color: #FFC107;
    /* Amarillo original */
    --primary-glow: rgba(255, 193, 7, 0.4);
    --secondary-color: #03A9F4;
    /* Azul cian para contraste */
    --secondary-glow: rgba(3, 169, 244, 0.4);

    --background-color: #0f1014;
    --surface-color: rgba(30, 30, 30, 0.6);
    /* Semi-transparente para glass */
    --glass-border: rgba(255, 255, 255, 0.08);

    --text-color: #E0E0E0;
    --text-muted: #A0A0A0;

    --font-family: 'Poppins', sans-serif;

    --blur-amt: 12px;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color) !important;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 193, 7, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(3, 169, 244, 0.05) 0%, transparent 40%);
    color: var(--text-color) !important;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.loaded {
    opacity: 1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #FFFFFF;
    font-weight: 700;
    letter-spacing: -0.5px;
}

p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* Scrollbar Personalizado */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f1014;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* --- 2. Utilidades Glassmorphism --- */
.glass-panel {
    background: var(--surface-color);
    backdrop-filter: blur(var(--blur-amt));
    -webkit-backdrop-filter: blur(var(--blur-amt));
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.text-primary {
    color: var(--primary-color) !important;
    text-shadow: 0 0 15px rgba(255, 193, 7, 0.2);
}

.text-secondary-c {
    color: var(--secondary-color) !important;
}

/* --- 3. Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    font-size: 3rem;
    font-weight: 800;
    color: #FFF;
    letter-spacing: 2px;
    animation: glowPulse 2s infinite;
}

.preloader-logo span {
    color: var(--primary-color);
}

@keyframes glowPulse {

    0%,
    100% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
        opacity: 0.8;
    }

    50% {
        text-shadow: 0 0 20px var(--primary-glow), 0 0 40px var(--primary-glow);
        opacity: 1;
    }
}

/* --- 4. Navbar --- */
.navbar {
    background: rgba(15, 16, 20, 0.85) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.navbar-brand span {
    color: var(--primary-color);
}

.nav-link {
    color: #E0E0E0 !important;
    font-weight: 500;
    font-size: 0.95rem;
    margin: 0 0.5rem;
    position: relative;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
    box-shadow: 0 0 8px var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active,
.nav-link:hover {
    color: #FFF !important;
}

/* Botón Contacto en Nav */
.nav-link.btn-contact {
    background: linear-gradient(135deg, var(--primary-color), #FFD54F);
    color: #000 !important;
    padding: 8px 25px !important;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.nav-link.btn-contact::after {
    display: none;
}

/* Quitar subrayado */
.nav-link.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.6);
    color: #000 !important;
}

/* --- 5. Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    /* Offset navbar */
}

/* Blob de fondo animado */
.hero-bg-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    filter: blur(60px);
    animation: floatBlob 10s ease-in-out infinite;
}

@keyframes floatBlob {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
}

#hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-slogan {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.3);
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to bottom right, #FFFFFF, #B0B0B0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Botones Principales */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #FFB300) !important;
    border: none !important;
    color: #000 !important;
    font-weight: 700;
    padding: 14px 35px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 193, 7, 0.5);
}

.btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    color: #FFF !important;
    font-weight: 600;
    padding: 12px 35px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #FFF !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

/* --- 6. Secciones Generales --- */
section {
    position: relative;
    z-index: 2;
}

/* SERVICE SECTION */
.service-section {
    padding: 100px 0;
}

.service-item {
    padding: 2.5rem;
    border-radius: 20px;
    transition: all 0.4s ease;
}

.service-item.glass-panel {
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.6), rgba(20, 20, 20, 0.4));
}

.service-item:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 193, 7, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 193, 7, 0.1);
}

.service-item img {
    border-radius: 15px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.service-item h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.service-item i {
    margin-right: 15px;
}

/* PROCESS SECTION */
.process-section {
    padding: 100px 0;
    position: relative;
    background: linear-gradient(to bottom, #0f1014, #14151a);
}

.process-step {
    padding: 3rem 2rem;
    border-radius: 24px;
    height: 100%;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
}

.process-step:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-15px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin: 0 auto 2rem;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s ease;
}

.process-step:hover .step-icon {
    transform: rotateY(180deg);
    background: var(--primary-color);
    color: #000;
}

.process-step h4 {
    margin-top: 1rem;
}

/* CTA SECTION */
.cta-section {
    padding: 120px 0;
    margin-top: 60px;
    background: radial-gradient(circle at center, rgba(30, 30, 30, 0.8), #0f1014), url('../images/cta-bg-pattern.png');
    /* Pattern opcional */
    background-size: cover;
    position: relative;
    overflow: hidden;
}

/* Efecto de borde brillante superior */
.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

/* --- 7. Footer Rediseñado --- */
.main-footer {
    background: linear-gradient(180deg, #0f1014 0%, #050505 100%);
    padding: 80px 0 30px;
    border-top: 1px solid var(--glass-border);
    position: relative;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.5;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.social-links-footer a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #FFF;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.social-links-footer a:hover {
    background: var(--primary-color);
    color: #000;
    transform: translateY(-5px) rotate(10deg);
    box-shadow: 0 5px 15px var(--primary-glow);
}

.newsletter-form .input-group {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-form .form-control {
    background: transparent;
    border: none;
    color: #FFF;
    padding-left: 20px;
}

.newsletter-form .form-control:focus {
    box-shadow: none;
    background: transparent;
}

.newsletter-form .btn {
    border-radius: 50px !important;
    padding: 8px 20px;
}

.border-white-10 {
    border-color: rgba(255, 255, 255, 0.05) !important;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }

    .service-item {
        margin-bottom: 2rem;
    }

    .process-step {
        margin-bottom: 2rem;
    }

    .display-5 {
        font-size: 2rem;
    }
}