/* ============================================
   GLOBAL STYLES - SOUL
   ============================================ */

/* Variables CSS - Colores del diseño Figma */
:root {
    --soul-dark-blue: #02002d;
    --soul-purple: #614fff;
    --soul-white: #ffffff;
    --soul-text-light: rgba(255, 255, 255, 0.9);
    --soul-border: #cbcbcb;
    --soul-overlay: rgba(0, 0, 0, 0.5);
    
    /* Tipografías */
    --font-dm-sans: 'DM Sans', sans-serif;
    --font-inter: 'Inter', sans-serif;
    
    /* Transiciones */
    --transition-base: all 0.3s ease;
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-dm-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--soul-white);
    background-color: var(--soul-dark-blue);
    overflow-x: hidden;
    position: relative;
}

/* Fondo parallax del sitio */
.parallax-background {
    position: fixed;
    top: -400px;
    left: 0;
    width: 150%;
    height: 150%;
    background-image: url('../img/fondo-home.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 0.3;
    will-change: transform;
    pointer-events: none;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-inter);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--soul-white);
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--soul-purple);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: var(--soul-text-light);
}

/* Header y Navegación */
#main-header {
    z-index: 1030;
    background-color: var(--soul-dark-blue) !important;
}

.navbar {
    min-height: 70px;
    background-color: var(--soul-dark-blue) !important;
    padding: 1rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.navbar-nav .nav-link {
    font-family: var(--font-dm-sans);
    font-size: 20px;
    font-weight: 400;
    align-items: center;
    padding: 3px 25px !important;
    transition: color 0.3s ease !important;
    text-decoration: none;
    color: var(--soul-white) !important;
}

.navbar-nav .nav-link:hover {
    color: #4431EC !important;
}

.navbar-nav .nav-link.active {
    color: var(--soul-white) !important;
    font-weight: 800;
}

/* Toggler: sin borde al hacer clic/focus */
.navbar-toggler:focus,
.navbar-toggler:active {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.navbar-toggler {
    border: none !important;
}

/* Icono hamburguesa custom: 3 líneas que pasan a X al abrir */
.navbar-toggler-custom .navbar-toggler-icon {
    display: none;
}

.navbar-toggler-icon-custom {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 28px;
    height: 24px;
}

.toggler-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--soul-white);
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar-toggler[aria-expanded="true"] .toggler-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .toggler-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.navbar-toggler[aria-expanded="true"] .toggler-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Menú desplegado: enlaces centrados (solo mobile) */
@media (max-width: 991.98px) {
    .navbar-collapse {
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    
    .navbar-collapse .navbar-nav {
        align-items: center;
        width: 100%;
    }
    
    .navbar-collapse .nav-item {
        width: 100%;
        text-align: center;
    }
    
    .navbar-collapse .nav-link {
        justify-content: center;
        display: block;
        text-align: center;
    }
}

/* Footer - centrado, una columna */
.footer-section {
    background-color: var(--soul-dark-blue);
    color: var(--soul-white);
    margin-top: auto;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 480px;
    margin: 0 auto;
    padding: 2.5rem 0;
}

.footer-logo-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.footer-logo-img {
    height: 48px;
    width: auto;
    margin-bottom: 0.5rem;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    font-family: var(--font-dm-sans);
    font-size: 0.95rem;
    color: var(--soul-text-light);
    margin: 0;
}

.footer-revo {
    font-family: var(--font-dm-sans);
    font-size: 18px;
    color: var(--soul-text-light);
    margin: 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-link {
    color: var(--soul-white);
    font-size: 1.5rem;
    transition: var(--transition-base);
}

.social-link:hover {
    color: var(--soul-purple);
    transform: translateY(-3px);
}

.fa-lg {
    color: #98A2B3 !important;
    font-size: 1.5em;
    line-height: .05em !important;
}

.footer-address {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-address-icon {
    color: var(--soul-text-light);
    font-size: 1.25rem;
}

.footer-address-text {
    font-family: var(--font-dm-sans);
    font-size: 16px;
    color: var(--soul-text-light);
    margin: 0;
    line-height: 1.5;
}

.footer-copyright {
    color: var(--soul-text-light);
    font-family: var(--font-dm-sans);
    font-size: 13px;
    margin: 0;
    margin-top: 0.5rem;
}

/* Botones */
.btn-soul-primary {
    background-color: var(--soul-purple);
    color: var(--soul-white);
    border: none;
    font-family: var(--font-dm-sans);
    font-weight: 500;
    padding: 1rem 2.5rem;
    border-radius: 6px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-size: 1.125rem;
}

.btn-soul-primary:hover {
    background-color: #4d2fff;
    color: var(--soul-white);
    transform: translateY(-10px);
    box-shadow: 0 0.5rem 1rem rgba(97, 79, 255, 0.3);
}

.btn-soul-primary:active {
    transform: translateY(0);
}

/* Formularios */
.form-control {
    background-color: var(--soul-white);
    border: 1px solid var(--soul-border);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-family: var(--font-dm-sans);
    font-size: 0.875rem;
    color: #000;
    transition: var(--transition-base);
}

.form-control:focus {
    border-color: var(--soul-purple);
    box-shadow: 0 0 0 0.25rem rgba(97, 79, 255, 0.25);
    outline: none;
}

.form-control::placeholder {
    color: #999;
    font-weight: 300;
}

.form-label {
    font-family: var(--font-dm-sans);
    font-weight: 800;
    font-size: 1rem;
    color: #000;
    margin-bottom: 0.5rem;
}

.text-link {
    color: #01f;
    font-family: var(--font-dm-sans);
    font-size: 0.75rem;
    text-decoration: underline;
}

.text-link:hover {
    color: var(--soul-purple);
}

/* Imágenes */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container max-width */
.container {
    max-width: 1170px;
    padding: 0 1.5rem !important;
}

/* Utilidades */
.section-title {
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 2.5rem;
    color: var(--soul-white);
    text-align: center;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Main content sobre el fondo parallax */
main {
    position: relative;
    z-index: 1;
}

/* Focus visible para accesibilidad */
*:focus-visible {
    outline: 2px solid var(--soul-purple);
    outline-offset: 2px;
}

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

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