/* ========================================
   Variables y Configuración Global
   ======================================== */
/* Fuentes - Inspiradas en Solazzoedits.com */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Barlow:wght@300;400;500;600;700&display=swap');

:root {
    /* === PALETA OSCURA INSPIRADA EN SOLAZZOEDITS.COM === */

    /* Fondos Oscuros - Base */
    --bg-dark: #0f1729;             /* Azul muy oscuro - fondo principal */
    --bg-darker: #040613;           /* Casi negro - fondo más oscuro */
    --bg-card: rgba(15, 23, 41, 0.6);  /* Fondo cards con transparencia */
    --bg-section: rgba(4, 6, 19, 0.8); /* Fondo secciones */

    /* Colores Primarios - Índigo */
    --primary: #6366f1;             /* Índigo - color principal */
    --primary-dark: #4f46e5;        /* Índigo oscuro */
    --primary-light: #818cf8;       /* Índigo claro */
    --primary-glow: rgba(99, 102, 241, 0.5);  /* Glow índigo */

    /* Colores Secundarios - Púrpura */
    --secondary: #8b5cf6;           /* Púrpura */
    --secondary-dark: #7c3aed;      /* Púrpura oscuro */
    --secondary-glow: rgba(139, 92, 246, 0.5);  /* Glow púrpura */

    /* Colores de Acento - Verde Esmeralda */
    --accent: #10b981;              /* Verde esmeralda */
    --accent-dark: #059669;         /* Verde oscuro */
    --accent-glow: rgba(16, 185, 129, 0.5);  /* Glow verde */

    /* Textos - Claros sobre fondo oscuro */
    --text-primary: #f8fafc;        /* Blanco grisáceo - texto principal */
    --text-secondary: #cbd5e1;      /* Gris claro - texto secundario */
    --text-muted: #94a3b8;          /* Gris medio - texto atenuado */
    --text-dark: #64748b;           /* Gris oscuro */

    /* Colores de sistema */
    --white: #ffffff;
    --black: #000000;

    /* Sombras y Glows - Efectos Neon */
    --shadow-soft: 0 4px 30px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 40px rgba(0, 0, 0, 0.2);
    --shadow-card: 0 10px 50px rgba(0, 0, 0, 0.3);
    --glow-indigo: 0 0 20px rgba(99, 102, 241, 0.5),
                    0 0 40px rgba(99, 102, 241, 0.3),
                    0 0 60px rgba(99, 102, 241, 0.1);
    --glow-green: 0 0 20px rgba(16, 185, 129, 0.5),
                   0 0 40px rgba(16, 185, 129, 0.3),
                   0 0 60px rgba(16, 185, 129, 0.1);
    --glow-purple: 0 0 20px rgba(139, 92, 246, 0.5),
                    0 0 40px rgba(139, 92, 246, 0.3),
                    0 0 60px rgba(139, 92, 246, 0.1);

    /* Transiciones */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-smooth: all 0.5s ease-out;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.625rem;
    --radius-lg: 1rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Barlow', sans-serif;
    background-color: var(--bg-dark);
    background-image:
        linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.7;
    font-weight: 400;
    overflow-x: hidden;
}

/* Efectos luminosos - Capas de luz índigo/púrpura */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    opacity: 0.6;
    z-index: -3;
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(66, 165, 245, 0.03) 2px,
            rgba(66, 165, 245, 0.03) 4px
        );
    z-index: -2;
    opacity: 0.4;
    pointer-events: none;
}


@keyframes studioGlow {
    0% {
        opacity: 0.4;
        filter: blur(30px);
    }
    100% {
        opacity: 0.5;
        filter: blur(40px);
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

/* ========================================
   Constellations Canvas
   ======================================== */
#constellations-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.75;
}

/* ========================================
   Líneas de Estudio (Elementos decorativos)
   ======================================== */
.studio-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.studio-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--white), transparent);
    opacity: 0.1;
    animation: linePulse 4s ease-in-out infinite;
}

.studio-line-vertical {
    width: 2px;
    height: 100%;
    top: 0;
    background: linear-gradient(180deg, transparent, var(--silver), transparent);
}

.studio-line-horizontal {
    width: 100%;
    height: 2px;
    left: 0;
    background: linear-gradient(90deg, transparent, var(--emerald-accent), transparent);
}

@keyframes linePulse {
    0%, 100% {
        opacity: 0.05;
        box-shadow: 0 0 10px var(--white);
    }
    50% {
        opacity: 0.2;
        box-shadow: 0 0 20px var(--white), 0 0 30px var(--silver);
    }
}

/* Líneas diagonales para efecto de estudio */
.studio-line-diagonal {
    position: absolute;
    width: 1px;
    height: 200%;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transform: rotate(45deg);
    animation: diagonalMove 20s linear infinite;
}

@keyframes diagonalMove {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(200%) rotate(45deg);
    }
}

/* ========================================
   Navegación
   ======================================== */
.navbar {
    background: transparent;
    padding: 1.5rem 1rem;
    transition: var(--transition);
    border: none;
}

.navbar-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0 2rem;
}

.navbar-container {
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-radius: var(--radius-lg);
    padding: 0.75rem 2rem;
    max-width: 1400px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-card),
                 0 0 0 1px rgba(99, 102, 241, 0.1) inset;
    transition: var(--transition);
    border: 1px solid rgba(99, 102, 241, 0.2);
    overflow: hidden;
}

.navbar-container:hover {
    background: rgba(15, 23, 41, 0.8);
    box-shadow: var(--glow-indigo);
    border-color: var(--primary);
}

.navbar-collapse {
    align-items: center;
    flex-grow: 1;
    justify-content: center;
    margin: 0 2rem;
}

/* Desktop: mostrar como flex */
@media (min-width: 992px) {
    .navbar-collapse {
        display: flex !important;
    }
    
    /* Asegurar que solo el desktop switcher sea visible */
    .language-switcher-desktop {
        display: flex !important;
    }
    
    .language-switcher-mobile {
        display: none !important;
    }
    
    .language-switcher-container {
        display: none !important;
    }
}

.navbar-brand {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white) !important;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateZ(0);
    will-change: transform;
}

.brand-avatar-container {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
    flex-shrink: 0;
    overflow: hidden;
    transform: translateZ(0);
    will-change: transform;
}

.brand-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    transition: filter 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateZ(0);
    will-change: transform, filter;
}

/* Solo aplicar hover en desktop, no en móvil cuando el menú está abierto */
@media (hover: hover) and (pointer: fine) {
    .navbar-brand:hover:not(:active) .brand-avatar-container {
        transform: scale(1.08);
    }

    .navbar-brand:hover:not(:active) .brand-avatar {
        filter: brightness(1.15);
    }
    
    .navbar-brand:hover:not(:active) .brand-text {
        text-shadow: 
            0 0 10px rgba(255, 255, 255, 0.7),
            0 0 18px rgba(255, 255, 255, 0.5),
            0 0 28px rgba(255, 255, 255, 0.4);
        filter: brightness(1.2) drop-shadow(0 0 15px rgba(255, 255, 255, 0.5));
    }
}

/* Prevenir efectos durante el clic */
.navbar-brand:active .brand-avatar-container,
.navbar-brand:active .brand-avatar {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

.brand-text {
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: filter 0.3s cubic-bezier(0.4, 0, 0.2, 1), text-shadow 0.3s ease;
    display: inline-block;
    transform: translateZ(0);
    will-change: filter, text-shadow;
    text-shadow: 
        0 0 8px rgba(255, 255, 255, 0.5),
        0 0 15px rgba(255, 255, 255, 0.4),
        0 0 25px rgba(255, 255, 255, 0.3);
    filter: brightness(1.1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.4));
}

.brand-accent {
    color: var(--silver);
}

.navbar-nav {
    gap: 2rem;
    display: flex;
    flex-direction: row;
    margin: 0 auto;
}

.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: -0.01em;
    margin: 0;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-md);
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(26, 35, 50, 0.5);
    transition: var(--transition);
    outline: none;
    box-shadow: none;
}

.navbar-toggler:hover {
    background: rgba(26, 35, 50, 0.7);
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.navbar-toggler:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2899, 102, 241, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Language Switcher - Desktop (oculto por defecto, se mostrará en desktop) */
.language-switcher-desktop {
    display: none;
}

.language-switcher-mobile {
    display: none;
}

/* Ocultar close button y mobile language switcher en desktop */
@media (min-width: 992px) {
    .navbar-close-btn {
        display: none !important;
    }
    
    /* Ocultar completamente el contenedor móvil */
    .language-switcher-container {
        display: none !important;
    }
    
    /* Ocultar el switcher móvil dentro del contenedor */
    .language-switcher-mobile {
        display: none !important;
    }
    
    /* Mostrar solo el switcher de desktop */
    .language-switcher-desktop {
        display: flex !important;
    }
    
    /* Asegurar que el navbar-collapse muestre el desktop switcher */
    .navbar-collapse .language-switcher-desktop {
        display: flex !important;
    }
}

.navbar-nav .nav-link:hover {
    color: var(--primary-light) !important;
    background: rgba(99, 102, 241, 0.15);
    box-shadow: var(--glow-indigo);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 30px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
    box-shadow: 0 0 10px var(--white);
}

.navbar-nav .nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.navbar-nav .nav-link.active {
    color: var(--white) !important;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.navbar-nav .nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    background: rgba(26, 35, 50, 0.6);
    padding: 0.25rem;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    align-items: center;
    margin-left: auto;
    flex-shrink: 0;
}

.btn-language {
    background: transparent;
    border: none;
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    min-width: 45px;
}

.btn-language:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
}

.btn-language.active {
    background: linear-gradient(135deg, var(--silver), var(--white));
    color: var(--white);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.25);
}

.btn-language.active:hover {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.35);
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: transparent;
    padding-top: 80px;
    overflow: hidden;
}

/* Efectos de iluminación en el hero */
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        /* Foco de luz principal central */
        radial-gradient(ellipse 1200px 800px at 50% 60%, rgba(192, 192, 192, 0.15) 0%, rgba(255, 255, 255, 0.1) 30%, transparent 70%),
        /* Luces laterales */
        radial-gradient(ellipse 800px 600px at 20% 40%, rgba(123, 104, 238, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse 800px 600px at 80% 40%, rgba(0, 255, 204, 0.2) 0%, transparent 60%);
    z-index: 0;
    animation: heroGlow 6s ease-in-out infinite alternate;
    filter: blur(40px);
}

@keyframes heroGlow {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }
    100% {
        opacity: 0.5;
        transform: scale(1.05);
    }
}

/* Líneas de rejilla en el hero */
.hero-section::after {
    content: none;
    position: none;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        /* Rejilla horizontal */
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 49px,
            rgba(255, 255, 255, 0.06) 50px,
            rgba(255, 255, 255, 0.06) 51px
        ),
        /* Rejilla vertical */
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 49px,
            rgba(192, 192, 192, 0.06) 50px,
            rgba(192, 192, 192, 0.06) 51px
        );
    z-index: 0;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(3, 6, 10, 0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem 0;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-shadow: var(--glow-indigo);
    font-family: 'Space Grotesk', sans-serif;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px var(--primary-glow));
    animation: textShift 3s ease-in-out infinite alternate;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    display: inline-block;
}

@keyframes textGlowGold {
    0% {
        filter: none;
    }
    100% {
        filter: none;
    }
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -0.01em;
    text-shadow: none;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-video-container {
    position: relative;
    z-index: 2;
}

.video-placeholder {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(192, 192, 192, 0.1));
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-slow);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.video-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    animation: shimmer 8s infinite linear;
}

@keyframes shimmer {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.video-placeholder:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--white);
}

.video-placeholder i {
    font-size: 5rem;
    color: var(--white);
    margin-bottom: 1rem;
    display: block;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.4));
    animation: pulsePlay 4s ease-in-out infinite;
}

@keyframes pulsePlay {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.4));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 15px rgba(192, 192, 192, 0.5));
    }
}

.video-placeholder p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 2rem;
    animation: bounce 3s infinite;
    z-index: 2;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ========================================
   Buttons - ESTILO URBANO / STREET ART
   ======================================== */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border: 2px solid var(--primary-light);
    padding: 16px 40px;
    border-radius: var(--radius-md);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.01em;
    transition: var(--transition);
    box-shadow: var(--glow-indigo);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 140, 66, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary-custom:hover::before {
    left: 100%;
}

.btn-primary-custom:hover {
    transform: translateY(-4px) scale(1.05);
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    box-shadow: var(--glow-purple);
    color: var(--white);
    border-color: var(--secondary);
}

.btn-outline-custom {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary);
    padding: 14px 38px;
    border-radius: var(--radius-md);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.01em;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
}

/* Efecto de relleno vibrante */
.btn-outline-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--cyan-bright), var(--blue-vivid));
    transition: left 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: -1;
}

.btn-outline-custom:hover::before {
    left: 0;
}

.btn-outline-custom:hover {
    color: var(--white);
    transform: translateY(-5px) rotate(1deg) scale(1.05);
    box-shadow: 0 0 40px rgba(66, 165, 245, 0.6);
    border-color: var(--cyan-bright);
}

/* Efecto de onda/ondulación para simular líquido/gelatina */
@keyframes jellyWave {
    0%, 100% {
        border-radius: 30px;
        transform: translate(-50%, -50%) scale(1);
    }
    20% {
        border-radius: 28px 32px 28px 32px;
        transform: translate(-50%, -50%) scale(1.01);
    }
    40% {
        border-radius: 32px 28px 32px 28px;
        transform: translate(-50%, -50%) scale(0.99);
    }
    60% {
        border-radius: 30px 30px 29px 31px;
        transform: translate(-50%, -50%) scale(1.005);
    }
    80% {
        border-radius: 31px 29px 31px 29px;
        transform: translate(-50%, -50%) scale(0.995);
    }
}

/* Capa de brillo/reflejo para efecto de gelatina */
.btn-outline-custom::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 50%
    );
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s,
                opacity 0.4s ease;
    z-index: 0;
    opacity: 0;
    pointer-events: none;
}

.btn-outline-custom:hover::after {
    transform: translate(-50%, -50%) scale(1.2) rotate(45deg);
    opacity: 1;
    animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1.1) rotate(45deg);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.15) rotate(48deg);
        opacity: 0.5;
    }
}

.btn-outline-custom > * {
    position: relative;
    z-index: 1;
}

.btn-outline-custom:hover {
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(192, 192, 192, 0.35), 
                0 0 50px rgba(255, 255, 255, 0.25),
                inset 0 0 20px rgba(255, 255, 255, 0.1);
    border-color: var(--silver);
}

/* ========================================
   Section Headers
   ======================================== */
.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow: var(--glow-indigo);
    line-height: 1.2;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.6;
    opacity: 0.9;
}

/* ========================================
   Services Section
   ======================================== */
.services-section {
    background: transparent;
    padding: 8rem 0;
    position: relative;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse 1000px 600px at 50% 50%, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.service-card {
    background: rgba(26, 35, 50, 0.6);
    padding: 2.5rem;
    border-radius: 1rem;
    text-align: center;
    transition: var(--transition-slow);
    height: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), 0 0 20px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    position: relative;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(192, 192, 192, 0.05));
    border-radius: 20px;
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 255, 255, 0.15);
    border-color: var(--white);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(192, 192, 192, 0.12));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.12);
}

.service-card:hover .service-icon {
    transform: scale(1.05) rotate(3deg);
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.2);
    border-color: var(--white);
}

.service-icon i {
    font-size: 2.5rem;
    color: var(--white);
    filter: drop-shadow(0 0 8px rgba(192, 192, 192, 0.2));
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--white);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

/* ========================================
   Portfolio Section
   ======================================== */
.portfolio-section {
    padding: 8rem 0;
    background: transparent;
    position: relative;
}

.portfolio-subsection {
    margin-top: 4rem;
    scroll-margin-top: 100px;
}

.portfolio-subsection:first-of-type {
    margin-top: 0;
}

.portfolio-subtitle {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    letter-spacing: -0.02em;
    text-transform: uppercase;
    line-height: 1.2;
}

.portfolio-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse 800px 500px at 30% 30%, rgba(123, 104, 238, 0.1) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

/* Portfolio Category Badge */
.portfolio-category {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
    padding: 5px 10px;
    background: transparent;
    backdrop-filter: none;
    border-radius: 0;
    border: none;
}

.portfolio-category i {
    font-size: 0.9rem;
    color: #00ff88;
    filter: none;
}

.portfolio-category i.bi-star {
    color: #FFD700;
    filter: none;
}

.portfolio-category span {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--white);
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.5);
    font-family: 'Inter', sans-serif;
}

.portfolio-card {
    background: rgba(26, 31, 53, 0.5);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-slow);
    height: 100%;
    min-height: 300px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--white);
}

.portfolio-image {
    width: 100%;
    height: 100%;
    min-height: 300px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(192, 192, 192, 0.1));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}


.portfolio-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.15), rgba(192, 192, 192, 0.1));
    opacity: 0;
    transition: var(--transition-slow);
    z-index: 1;
}

.portfolio-card:hover .portfolio-image::before {
    opacity: 0.2;
}

/* Asegurar que los thumbnails se muestren correctamente */
.portfolio-image[data-video-thumbnail] {
    background-color: rgba(26, 35, 50, 0.9);
}

.portfolio-image[data-video-thumbnail]::before {
    z-index: 2;
}

/* ========================================
   Reels Cards (Vertical Format 9:16)
   ======================================== */
.portfolio-card-reel {
    height: 100%;
}

.portfolio-image-reel {
    width: 100%;
    aspect-ratio: 9 / 16; /* Formato vertical para reels/TikTok */
    min-height: 450px;
    max-height: 650px;
    background: #1a1a2e;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid rgba(99, 102, 241, 0.3);
    transition: var(--transition-slow);
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Video preview dentro de las cards de reels */
.reel-preview-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 5;
    background: transparent;
    border-radius: 1rem;
    transition: opacity 0.3s ease;
    display: block;
    opacity: 1;
}

.portfolio-image-reel:hover .reel-preview-video {
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

/* Para reels, el overlay debe estar visible pero no bloquear el video */
.portfolio-image-reel .portfolio-overlay {
    z-index: 10;
    pointer-events: all;
}

/* Ocultar el overlay por defecto en reels para que se vea el video */
.portfolio-card-reel .portfolio-overlay {
    opacity: 0;
    pointer-events: none;
}

/* Mostrar overlay solo al hacer hover en reels */
.portfolio-card-reel:hover .portfolio-overlay {
    opacity: 1;
    pointer-events: all;
}

.portfolio-card-reel:hover .portfolio-image-reel {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

/* Ajustar el grid para reels en diferentes tamaños de pantalla */
#portfolio-reels .row {
    justify-content: center;
    gap: 2rem;
}

#portfolio-reels .col-md-6,
#portfolio-reels .col-lg-4 {
    max-width: 280px;
    margin: 0;
    padding: 0 1rem;
    flex: 0 0 auto;
}

@media (min-width: 768px) {
    #portfolio-reels .col-md-6 {
        max-width: 300px;
        padding: 0 1.5rem;
    }
}

@media (min-width: 992px) {
    #portfolio-reels .col-lg-4 {
        max-width: 320px;
        padding: 0 2rem;
    }
    
    #portfolio-reels .row {
        gap: 2.5rem;
    }
}

@media (min-width: 1200px) {
    #portfolio-reels .col-lg-4 {
        max-width: 340px;
        padding: 0 2.5rem;
    }
    
    #portfolio-reels .row {
        gap: 3rem;
    }
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    z-index: 10;
    cursor: pointer;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--white);
    filter: none;
    animation: pulseIcon 4s ease-in-out infinite;
}

#portfolio-miniaturas .portfolio-overlay i {
    font-size: 3.5rem;
}

@keyframes pulseIcon {
    0%, 100% {
        transform: scale(1);
        filter: none;
    }
    50% {
        transform: scale(1.05);
        filter: none;
    }
}

.portfolio-overlay p {
    font-size: 1.1rem;
    font-weight: 500;
    text-shadow: none;
}


.portfolio-item {
    transition: var(--transition);
}

.portfolio-item.hidden {
    display: none;
}

/* ========================================
   Clients Section
   ======================================== */
.clients-section {
    background: transparent;
    padding: 8rem 0;
    position: relative;
}

.clients-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse 900px 600px at 50% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.client-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.client-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.client-card {
    background: rgba(26, 31, 53, 0.5);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition-slow);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}

.client-card-link:hover .client-card {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--white);
}

.client-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(192, 192, 192, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.client-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.client-card-link:hover .client-img {
    transform: scale(1.05);
}

.client-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--white), var(--silver));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.client-metric {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    margin: 0;
    letter-spacing: -0.01em;
    opacity: 0.9;
}

/* ========================================
   Testimonials Section
   ======================================== */
.testimonials-section {
    background: transparent;
    padding: 8rem 0;
    position: relative;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse 900px 600px at 70% 50%, rgba(123, 104, 238, 0.12) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

/* ========================================
   Testimonial Image Cards
   ======================================== */
.testimonial-images-section {
    position: relative;
    z-index: 1;
}

/* Estilos simples para imágenes de testimonial (sin cuadrado/card) */
.testimonial-image-simple {
    width: 100%;
    height: auto;
    display: block;
    border: none;
    box-shadow: none;
    background: none;
    padding: 0;
    margin: 0;
}

.testimonial-image-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 40px rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 20, 30, 0.6);
    backdrop-filter: blur(10px);
}

.testimonial-image-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5), 0 0 60px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.testimonial-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Aspect ratio 16:9 (1920x1080) */
    overflow: hidden;
    background: rgba(10, 15, 25, 0.8);
}

.testimonial-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-image-card:hover .testimonial-image {
    transform: scale(1.1);
}

.testimonial-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-image-card:hover .testimonial-image-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.8) 50%, transparent 100%);
}

.testimonial-image-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, var(--white), var(--silver));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.35));
}

/* ========================================
   Testimonial Audio Cards
   ======================================== */
.testimonial-audios-section {
    position: relative;
    z-index: 1;
    margin-top: 4rem;
}

.testimonial-audios-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--silver), var(--cyan-vibrant), var(--white));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    filter: none;
    animation: textPulse 6s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% { filter: none; }
    50% { filter: drop-shadow(0 0 15px rgba(192, 192, 192, 0.4)); }
}

.testimonial-audio-card {
    background: linear-gradient(135deg, rgba(26, 31, 53, 0.8), rgba(15, 20, 35, 0.8));
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(124, 58, 237, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--white), var(--silver), var(--cyan-vibrant)) 1;
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.testimonial-audio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(192, 192, 192, 0.1), rgba(6, 182, 212, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.testimonial-audio-card:hover::before {
    opacity: 1;
}

.testimonial-audio-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 12px 48px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(192, 192, 192, 0.25),
        0 0 100px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.testimonial-audio-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-audio-icon {
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--white), var(--silver));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--purple-light);
    box-shadow:
        0 0 30px rgba(192, 192, 192, 0.3),
        0 0 50px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    animation: iconFloat 6s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.testimonial-audio-icon i {
    font-size: 1.8rem;
    color: #ffffff;
    filter: none;
}

.testimonial-audio-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.75rem;
}

.testimonial-audio-card:hover .testimonial-audio-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow:
        0 0 40px rgba(192, 192, 192, 0.4),
        0 0 70px rgba(124, 58, 237, 0.5);
    animation: none;
}

.testimonial-audio-name {
    margin: 0;
    font-size: 1.4rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    filter: none;
}

.testimonial-rating {
    color: #FFD700;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.testimonial-audio-container {
    margin: 0;
    width: 100%;
    position: relative;
    z-index: 1;
}

.testimonial-audio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

/* Custom Audio Player Styles - VIBRANTE */
.custom-audio-player {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(10, 15, 25, 0.95) 0%, rgba(20, 15, 35, 0.95) 100%);
    border-radius: 1rem;
    box-shadow:
        inset 0 2px 8px rgba(0, 0, 0, 0.6),
        0 4px 16px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(124, 58, 237, 0.2);
    border: 2px solid;
    border-image: linear-gradient(90deg, var(--white), var(--silver)) 1;
    transition: all 0.3s ease;
}

.testimonial-audio-card:hover .custom-audio-player {
    box-shadow:
        inset 0 2px 8px rgba(0, 0, 0, 0.6),
        0 6px 24px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(192, 192, 192, 0.25);
}

.custom-audio-play-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid var(--silver);
    background: linear-gradient(135deg, var(--white), var(--silver));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    box-shadow:
        0 0 20px rgba(192, 192, 192, 0.35),
        0 0 40px rgba(255, 255, 255, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    outline: none;
    animation: playButtonPulse 4s ease-in-out infinite;
}

@keyframes playButtonPulse {
    0%, 100% {
        box-shadow:
            0 0 15px rgba(192, 192, 192, 0.3),
            0 0 30px rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow:
            0 0 20px rgba(192, 192, 192, 0.4),
            0 0 40px rgba(255, 255, 255, 0.3);
    }
}

.custom-audio-play-btn:hover {
    background: linear-gradient(135deg, var(--silver), var(--cyan-vibrant));
    transform: scale(1.15);
    box-shadow:
        0 0 40px rgba(192, 192, 192, 0.5),
        0 0 70px rgba(124, 58, 237, 0.7);
    border-color: var(--cyan-vibrant);
    animation: none;
}

.custom-audio-play-btn:active {
    transform: scale(0.95);
}

.custom-audio-play-btn i {
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.custom-audio-play-btn.playing .play-icon {
    display: none;
}

.custom-audio-play-btn.playing .pause-icon {
    display: block !important;
}

.custom-audio-play-btn:not(.playing) .play-icon {
    display: block;
}

.custom-audio-play-btn:not(.playing) .pause-icon {
    display: none !important;
}

.custom-audio-progress-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.custom-audio-progress-bar {
    position: relative;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg,
        rgba(124, 58, 237, 0.2) 0%,
        rgba(192, 192, 192, 0.12) 50%,
        rgba(124, 58, 237, 0.2) 100%);
    border-radius: 20px;
    cursor: pointer;
    overflow: visible;
    transition: all 0.3s ease;
    margin: 8px 0;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.custom-audio-progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
        rgba(124, 58, 237, 0.1) 0%,
        rgba(192, 192, 192, 0.1) 50%,
        rgba(124, 58, 237, 0.1) 100%);
    border-radius: 20px;
    opacity: 0.6;
}

.custom-audio-progress-bar:hover {
    height: 6px;
}

.custom-audio-progress-bar:hover::before {
    opacity: 1;
}

.custom-audio-progress-filled {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg,
        var(--white) 0%,
        var(--silver) 50%,
        var(--cyan-vibrant) 100%);
    border-radius: 20px;
    transition: width 0.1s linear;
    box-shadow:
        0 0 15px rgba(192, 192, 192, 0.5),
        0 0 30px rgba(124, 58, 237, 0.7),
        0 0 45px rgba(6, 182, 212, 0.5);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.custom-audio-progress-filled::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%);
    animation: progressShine 3s infinite;
    border-radius: 20px;
}

@keyframes progressShine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.custom-audio-progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 16px;
    height: 16px;
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 30%, rgba(192, 192, 192, 0.5) 70%, rgba(192, 192, 192, 0.6) 100%);
    border: none;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6),
                0 0 35px rgba(192, 192, 192, 0.4),
                0 4px 10px rgba(0, 0, 0, 0.5),
                inset 0 2px 4px rgba(255, 255, 255, 0.4);
    cursor: grab;
    z-index: 10;
}

.custom-audio-progress-handle:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.4);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.6),
                0 0 45px rgba(192, 192, 192, 0.5),
                0 6px 15px rgba(0, 0, 0, 0.6),
                inset 0 2px 4px rgba(255, 255, 255, 0.5);
}

.custom-audio-progress-bar:hover .custom-audio-progress-handle,
.custom-audio-progress-bar.dragging .custom-audio-progress-handle {
    opacity: 1;
}

.custom-audio-time {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: rgba(184, 197, 214, 0.8);
    letter-spacing: 0.5px;
}

.custom-audio-current-time {
    color: var(--white);
    text-shadow: none;
}

.custom-audio-duration {
    color: rgba(184, 197, 214, 0.6);
}

/* Responsive adjustments for custom audio player */
@media (max-width: 768px) {
    .custom-audio-player {
        padding: 10px 12px;
        gap: 0.75rem;
    }
    
    .custom-audio-play-btn {
        width: 40px;
        height: 40px;
    }
    
    .custom-audio-play-btn i {
        font-size: 1rem;
    }
    
    .custom-audio-progress-bar {
        height: 5px;
    }
    
    .custom-audio-progress-bar:hover {
        height: 6px;
    }
    
    .custom-audio-progress-handle {
        width: 12px;
        height: 12px;
    }
    
    .custom-audio-time {
        font-size: 0.7rem;
    }
}

/* Responsive adjustments for testimonial images */
@media (max-width: 768px) {
    .testimonial-image-wrapper {
        padding-top: 100%; /* Square on mobile */
    }
    
    .testimonial-image-name {
        font-size: 1.25rem;
    }
    
    .testimonial-audios-title {
        font-size: 1.5rem;
    }
    
    .testimonial-audio-card {
        padding: 1.5rem;
    }
    
    .testimonial-audio-icon {
        width: 45px;
        height: 45px;
    }
    
    .testimonial-audio-icon i {
        font-size: 1.25rem;
    }
    
    .testimonial-audio-name {
        font-size: 1.1rem;
    }
}

.testimonial-text {
    color: var(--text-secondary);
    font-style: normal;
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    opacity: 0.9;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(192, 192, 192, 0.18));
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.testimonial-author h5 {
    margin: 0;
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.testimonial-author p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* ========================================
   Contact Section
   ======================================== */
.contact-section {
    padding: 8rem 0;
    background: transparent;
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse 1000px 700px at 50% 50%, rgba(0, 255, 204, 0.1) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.contact-header {
    position: relative;
    z-index: 1;
    margin-bottom: 4rem;
}

.contact-main-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--white), var(--silver));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: none;
}

.contact-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.contact-cards-wrapper {
    position: relative;
    z-index: 1;
}

/* Contact Cards */
.contact-card {
    background: rgba(26, 35, 50, 0.8);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 40px rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 60px rgba(255, 255, 255, 0.2);
}

.contact-card-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.contact-card-icon i {
    font-size: 3.5rem;
    transition: var(--transition);
}

.contact-card-icon svg {
    transition: var(--transition);
}

.contact-card:hover .contact-card-icon i,
.contact-card:hover .contact-card-icon svg {
    transform: scale(1.1);
}

.telegram-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Email Card */
.contact-card-email {
    border-color: rgba(0, 255, 136, 0.3);
}

.contact-card-email::before {
    background: radial-gradient(circle at center, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
}

.contact-card-email .contact-card-icon i {
    color: #00ff88;
    filter: none;
}

.contact-card-email:hover {
    border-color: rgba(0, 255, 136, 0.6);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 60px rgba(0, 255, 136, 0.4);
}

.contact-card-email .contact-card-title {
    color: #00ff88;
}

.contact-card-btn-email {
    background: #00ff88;
    color: var(--white);
    border: none;
}

.contact-card-btn-email:hover {
    background: #00cc6a;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.6);
}

/* Twitter/X Card */
.contact-card-twitter {
    border-color: rgba(123, 104, 238, 0.3);
}

.contact-card-twitter::before {
    background: radial-gradient(circle at center, rgba(123, 104, 238, 0.1) 0%, transparent 70%);
}

.contact-card-twitter .contact-card-icon i {
    color: #7b68ee;
    filter: none;
}

.contact-card-twitter:hover {
    border-color: rgba(123, 104, 238, 0.6);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 60px rgba(123, 104, 238, 0.4);
}

.contact-card-twitter .contact-card-title {
    color: #7b68ee;
}

.contact-card-btn-twitter {
    background: #7b68ee;
    color: var(--white);
    border: none;
}

.contact-card-btn-twitter:hover {
    background: #6354cc;
    box-shadow: 0 0 30px rgba(123, 104, 238, 0.6);
}

/* Telegram Card */
.contact-card-telegram {
    border-color: rgba(0, 184, 217, 0.3);
}

.contact-card-telegram::before {
    background: radial-gradient(circle at center, rgba(0, 184, 217, 0.1) 0%, transparent 70%);
}

.contact-card-telegram .contact-card-icon svg {
    color: #00b8d9;
    filter: drop-shadow(0 0 20px rgba(0, 184, 217, 0.35));
}

.contact-card-telegram .contact-card-btn svg {
    width: 20px;
    height: 20px;
}

.contact-card-telegram:hover {
    border-color: rgba(0, 184, 217, 0.6);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 60px rgba(0, 184, 217, 0.4);
}

.contact-card-telegram .contact-card-title {
    color: #00b8d9;
}

.contact-card-btn-telegram {
    background: #00b8d9;
    color: var(--white);
    border: none;
}

.contact-card-btn-telegram:hover {
    background: #0099bb;
    box-shadow: 0 0 30px rgba(0, 184, 217, 0.6);
}

.contact-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    transition: var(--transition);
    letter-spacing: -0.01em;
    text-transform: uppercase;
    line-height: 1.3;
}

.contact-card-detail {
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    font-weight: 400;
    letter-spacing: -0.005em;
}

.contact-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    z-index: 1;
    margin-top: auto;
}

.contact-card-btn i {
    font-size: 1.2rem;
}

.contact-card-btn:hover {
    transform: translateY(-2px);
    color: var(--white);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: linear-gradient(180deg, rgba(8, 13, 19, 0.9) 0%, rgba(6, 10, 15, 0.9) 30%, rgba(5, 7, 9, 0.9) 60%, rgba(3, 4, 6, 0.95) 100%);
    color: var(--white);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.back-to-top {
    color: var(--white);
    font-size: 1.5rem;
    transition: var(--transition);
    text-decoration: none;
}

.back-to-top:hover {
    color: var(--white);
    transform: translateY(-3px);
    filter: drop-shadow(0 0 10px rgba(192, 192, 192, 0.35));
}

/* ========================================
   Animations
   ======================================== */
.fade-in {
    animation: fadeIn 1s ease-in;
}

.fade-in-delay-1 {
    animation: fadeIn 1s ease-in 0.3s both;
}

.fade-in-delay-2 {
    animation: fadeIn 1s ease-in 0.6s both;
}

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

/* ========================================
   Responsive Design
   ======================================== */
/* Responsive Navbar */
@media (max-width: 991px) {
    .navbar-wrapper {
        padding: 0 0.5rem;
    }
    
    .navbar-container {
        padding: 0.6rem 0.8rem;
        border-radius: 35px;
        max-width: 100%;
        flex-wrap: nowrap;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        gap: 0.5rem;
        min-width: 0;
    }
    
    /* Suavizar el cambio cuando el menú se abre/cierra */
    .navbar-container.menu-open {
        border-radius: 20px;
    }
    
    .navbar {
        padding: 1rem 0.5rem;
    }
    
    /* Ocultar nav items y language switcher en móvil cuando collapse está cerrado */
    .navbar-collapse:not(.show) .navbar-nav,
    .navbar-collapse:not(.show) .language-switcher-container {
        display: none !important;
    }
    
    /* Mostrar cuando el collapse está abierto */
    .navbar-collapse.show .navbar-nav {
        display: flex !important;
    }
    
    .navbar-collapse.show .language-switcher-container {
        display: flex !important;
    }
    
    /* Ocultar desktop language switcher en móvil - SIEMPRE */
    .language-switcher-desktop {
        display: none !important;
    }
    
    /* Mostrar mobile language switcher solo cuando el menú está abierto */
    .navbar-collapse.show .language-switcher-mobile {
        display: flex !important;
    }
    
    .navbar-collapse:not(.show) .language-switcher-mobile {
        display: none !important;
    }
    
    .navbar-collapse {
        margin: 0;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    }
    
    /* Animación suave para el collapse de Bootstrap */
    .navbar-collapse.collapsing {
        transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .navbar-nav {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        margin: 0;
        padding: 0;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease 0.1s, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
    }
    
    .navbar-collapse.show .navbar-nav {
        opacity: 1;
        transform: translateY(0);
    }
    
    .navbar-nav .nav-item {
        width: 100%;
    }
    
    .navbar-nav .nav-link {
        width: 100%;
        padding: 0.6rem 1rem !important;
        text-align: left;
        border-radius: 10px;
        font-size: 0.75rem;
    }
    
    /* Contenedor para language switcher y close button */
    .language-switcher-container {
        display: none;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 1rem;
        margin-top: 1rem;
        padding: 0 0.5rem;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease 0.15s, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.15s;
    }
    
    .navbar-collapse.show .language-switcher-container {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }
    
    .language-switcher {
        margin-top: 0;
        margin-left: 0 !important;
        width: auto;
        justify-content: center;
        padding: 0.5rem;
        flex: 0 0 auto;
        max-width: 200px;
    }
    
    /* Close button dentro del menú móvil - solo visible cuando el menú está abierto */
    .navbar-close-btn {
        display: none !important;
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.3);
        color: var(--white);
        width: 44px;
        height: 44px;
        min-width: 44px;
        border-radius: 10px;
        padding: 0;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        flex-shrink: 0;
        box-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
        outline: none;
        margin-left: auto;
    }
    
    .navbar-close-btn i {
        font-size: 1.3rem;
        line-height: 1;
    }
    
    .navbar-close-btn:hover {
        background: rgba(255, 255, 255, 0.22);
        border-color: rgba(255, 255, 255, 0.35);
        box-shadow: 0 4px 12px rgba(255, 255, 255, 0.25);
        transform: scale(1.05);
    }
    
    .navbar-close-btn:active {
        transform: scale(0.95);
    }
    
    /* Mostrar close button solo en móvil cuando el menú está abierto */
    .navbar-collapse.show .navbar-close-btn {
        display: flex !important;
    }
    
    .navbar-close-btn:focus {
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15), 0 2px 10px rgba(255, 255, 255, 0.2);
    }
    
    .navbar-toggler {
        order: 2;
        margin-left: auto;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        padding: 0.4rem 0.6rem;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 10;
        flex-shrink: 0;
        min-width: 44px;
    }
    
    /* Ocultar el toggler original cuando el menú está abierto en móvil */
    .navbar-container.menu-open .navbar-toggler {
        opacity: 0;
        pointer-events: none;
        width: 0;
        min-width: 0;
        padding: 0;
        margin: 0;
        overflow: hidden;
    }
    
    .navbar-brand {
        order: 1;
        flex-shrink: 0;
        flex-grow: 0;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, max-width 0.3s ease;
        pointer-events: auto;
        min-width: 0;
        max-width: calc(100% - 60px);
        font-size: 1rem;
        gap: 0.4rem;
    }
    
    .navbar-brand .brand-text {
        font-size: 1rem;
    }
    
    /* Cuando el menú está abierto, dar más espacio al brand */
    .navbar-container.menu-open .navbar-brand {
        max-width: 100%;
    }
    
    .navbar-brand .brand-text {
        white-space: nowrap;
        overflow: visible;
        text-overflow: clip;
    }
    
    .navbar-brand .brand-avatar-container {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }
    
    /* Prevenir efectos no deseados cuando el menú está abierto */
    .navbar-collapse.show ~ .navbar-brand,
    .navbar-collapse.show ~ .navbar-toggler {
        pointer-events: auto;
    }
}

@media (max-width: 576px) {
    .navbar-container {
        padding: 0.5rem 0.75rem;
    }
    
    .navbar-brand {
        font-size: 0.9rem;
        gap: 0.35rem;
        max-width: calc(100% - 55px);
    }
    
    .navbar-brand .brand-text {
        font-size: 0.9rem;
    }
    
    .navbar-brand .brand-avatar-container {
        width: 32px;
        height: 32px;
    }
    
    .navbar-nav .nav-link {
        font-size: 0.7rem;
        padding: 0.5rem 0.9rem !important;
    }
    
    .navbar-toggler {
        padding: 0.35rem 0.5rem;
        min-width: 40px;
    }
    
    .language-switcher-container {
        gap: 1.5rem;
        padding: 0 0.25rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-primary-custom,
    .btn-outline-custom {
        width: 100%;
        text-align: center;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .portfolio-category {
        top: 8px;
        left: 8px;
        padding: 3px 8px;
    }
    
    .portfolio-category span {
        font-size: 0.7rem;
    }
    
    .portfolio-category i {
        font-size: 0.75rem;
    }
    
    .client-card {
        padding: 1.2rem;
    }
    
    .client-name {
        font-size: 0.9rem;
    }
    
    .client-metric {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .service-card,
    .testimonial-card {
        padding: 2rem;
    }
    
    .testimonial-audio {
        height: 40px;
    }
    
    .testimonial-audio-container {
        margin: 1rem 0;
    }
    
    .client-card {
        padding: 1rem;
    }
    
    .client-name {
        font-size: 0.85rem;
    }
    
    .client-metric {
        font-size: 0.75rem;
    }
    
    .contact-main-title {
        font-size: 2rem;
    }
    
    .contact-subtitle {
        font-size: 1rem;
    }
    
    .contact-card {
        padding: 2rem 1.5rem;
    }
    
    .contact-card-icon {
        width: 60px;
        height: 60px;
    }
    
    .contact-card-icon i {
        font-size: 2.5rem;
    }
    
    .contact-card-title {
        font-size: 1.3rem;
    }
    
    .contact-card-detail {
        font-size: 1rem;
    }
    
    .language-switcher {
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
    }
    
    .btn-language {
        flex: 1;
        max-width: 60px;
    }
}

/* ========================================
   Smooth Scroll
   ======================================== */
html {
    scroll-behavior: smooth;
}

/* ========================================
   Selection Color
   ======================================== */
::selection {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

::-moz-selection {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

/* ========================================
   Modal Styles
   ======================================== */
.modal-content {
    background: rgba(15, 20, 25, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 50px rgba(255, 255, 255, 0.2);
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.modal-title {
    color: var(--white);
}

.btn-close {
    filter: invert(1) brightness(2);
    opacity: 0.8;
}

.btn-close:hover {
    opacity: 1;
    filter: invert(1) brightness(2) drop-shadow(0 0 5px rgba(192, 192, 192, 0.3));
}

.modal-body {
    background: transparent;
}

/* Estilos específicos para el modal de Twitter (formato vertical) */
.modal-dialog.modal-twitter {
    max-width: 500px;
    width: auto;
    margin: 1.75rem auto;
    padding: 0;
}

.modal-dialog.modal-twitter .modal-content {
    max-height: 95vh;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 16px;
    width: 100%;
    padding: 0;
    margin: 0;
}

.modal-dialog.modal-twitter .modal-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
    margin: 0;
}

.modal-dialog.modal-twitter .modal-body {
    padding: 0 !important;
    margin: 0 !important;
    display: block;
    background: transparent !important;
    min-height: auto;
    overflow: visible;
    width: 100%;
    border: none;
}

.modal-dialog.modal-twitter #videoContainer {
    display: block;
    width: 100% !important;
    margin: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    height: auto;
    min-height: auto;
    position: relative;
    overflow: visible;
    max-width: 100% !important;
    border: none;
    box-sizing: border-box;
}

.modal-dialog.modal-twitter #videoFrame {
    width: 100% !important;
    max-width: 100% !important;
    height: 700px !important;
    min-height: 700px;
    max-height: 85vh;
    border-radius: 0;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-sizing: border-box;
    overflow: hidden;
}

/* Asegurar que no haya espacios adicionales en el contenido del modal */
.modal-dialog.modal-twitter * {
    box-sizing: border-box;
}

/* Estilos para el modal de Reels (formato vertical) */
.modal-dialog.modal-reel {
    max-width: 400px;
    width: 90%;
    margin: 1.75rem auto;
}

/* Estilos especiales para el video de portada (formato horizontal) */
.modal-dialog.modal-reel.hero-video-modal {
    max-width: 900px;
    width: 95%;
}

.modal-dialog.modal-reel .modal-content {
    max-height: 95vh;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 16px;
}

.modal-dialog.modal-reel .modal-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

.modal-dialog.modal-reel .modal-body {
    padding: 0 !important;
    margin: 0 !important;
    display: block;
    background: #000;
    overflow: hidden;
}

.modal-dialog.modal-reel.hero-video-modal .modal-body {
    background: transparent;
}

.modal-dialog.modal-reel #reelContainer {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.modal-dialog.modal-reel.hero-video-modal #reelContainer {
    background: transparent;
    aspect-ratio: 16/9;
    min-height: auto;
}

.modal-dialog.modal-reel #reelVideo {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 85vh;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
    background: #000;
    outline: none;
    object-fit: contain;
}

.modal-dialog.modal-reel.hero-video-modal #reelVideo {
    height: 100%;
    max-height: 90vh;
    background: transparent;
    object-fit: cover;
}

/* Ajustes responsivos para el modal de reels */
@media (max-width: 576px) {
    .modal-dialog.modal-reel {
        max-width: 95%;
        margin: 0.5rem auto;
    }
    
    .modal-dialog.modal-reel #reelContainer {
        min-height: 400px;
    }
}

#thumbnailFullImage {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

/* ========================================
   Loading States
   ======================================== */
.portfolio-item {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }   
}

h1, h2, h3, .hero-title, .section-title {
    font-family: 'Space Grotesk', sans-serif !important;
    letter-spacing: -0.5px;
    font-weight: 600;
}
/* Alinear icono + texto del título */
.portfolio-title-icon {
    display: flex;
    align-items: center;
    gap: 10px;       /* espacio entre icono y texto */
    margin-bottom: 10px; /* evita que empuje la línea */
}

/* Tamaño del icono igual al texto */
.portfolio-title-icon i {
    font-size: 1.7rem;   /* ajusta al tamaño del h3 */
    color: white;
    margin: 0;
    padding: 0;
}

/* Asegurar que el h3 no tenga márgenes extra */
.portfolio-title-icon h3 {
    width: 100%;
    margin: 0;
    padding: 0;
}


