@keyframes animated-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes load-bar {
    0% { width: 0%; }
    100% { width: 50%; }
}

@keyframes letter-drop {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #000000; /* Fondo principal negro puro */
    color: #E5E7EB;
    overflow-x: hidden;
    /* La línea 'cursor: none;' ha sido eliminada de aquí */
}

.title-animate {
    /* display: inline-block; */ /* <-- Este es el problema */
    display: block; /* <-- Esta es la solución */
}

/* --- Loader --- */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-out;
}
.loader-hidden {
    opacity: 0;
}
.loader-bar-container {
    width: 80%;
    max-width: 400px;
    height: 2px;
    background-color: #2a2a3a;
    display: flex;
    justify-content: center;
}
.progress-bar {
    height: 100%;
    background-color: #D4AF37; /* Color dorado del logo */
}
#progress-bar-left {
    animation: load-bar 1.5s ease-out forwards;
    transform-origin: right;
}
#progress-bar-right {
    animation: load-bar 1.5s ease-out forwards;
    transform-origin: left;
}

.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(45deg, #000000, #0a0a0a, #000000); /* Gradiente de negro a gris muy oscuro */
    background-size: 400% 400%;
    animation: animated-gradient 15s ease infinite;
}

/* --- Selector de Idioma --- */
#language-selector {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 100;
    background-color: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(5px);
    border: 1px solid #2a2a3a;
    border-radius: 20px;
    padding: 5px;
    display: flex;
    gap: 5px;
}
.lang-btn {
    background-color: transparent;
    border: none;
    color: #9ca3af;
    padding: 5px 10px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.lang-btn.active {
    background-color: #D4AF37;
    color: black;
}
.lang-btn:not(.active):hover {
    background-color: #2a2a3a;
}

.popup-overlay {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}
.popup-content {
    background-color: #111111; /* Popup casi negro */
    border: 1px solid #a88d3a; /* Borde dorado oscuro */
}

/* --- Estilos para Calendly --- */
.calendly-container {
    height: 580px; /* Altura fija para el contenedor */
    overflow: hidden;
    position: relative;
    border-radius: 1rem;
}

.calendly-inline-widget {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}


::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #111111; }
::-webkit-scrollbar-thumb { background: #b89b3e; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #D4AF37; }

.glow-on-hover:hover {
    box-shadow: 0 0 20px 5px rgba(212, 175, 55, 0.3);
    transform: scale(1.05);
}

.card-hover {
    transition: all 0.3s ease-in-out;
    background-color: rgba(10, 10, 10, 0.5); /* Tarjetas más oscuras */
    border: 1px solid #2a2a3a; /* Borde gris oscuro */
    backdrop-filter: blur(5px);
}
.card-hover:hover {
    border-color: #D4AF37; /* Borde dorado sutil al pasar el ratón */
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.icon-rotate {
    transition: transform 0.4s ease-in-out, color 0.4s ease-in-out;
    color: #9ca3af; /* Color gris por defecto para los iconos */
}
.card-hover:hover .icon-rotate {
    transform: rotate(360deg);
    color: #D4AF37; /* Color dorado sutil al pasar el ratón */
}

.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Estilos para la animación de títulos --- */
.title-animate {
    display: inline-block; /* Asegura que el contenedor se ajuste al texto */
}

.title-animate span {
    display: inline-block;
    opacity: 0;
    animation-fill-mode: forwards;
}

.fade-in-section.is-visible .title-animate span {
    animation-name: letter-drop;
    animation-duration: 0.5s;
    animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

/* Oculta la barra superior de Google Translate */
body {
    top: 0 !important;
}
.skiptranslate {
    display: none !important;
}
