:root {
    --primary: #3498db;
    --primary-light: #5dade2;
    --primary-dark: #2980b9;
    --secondary: #2c3e50;
    --accent: #82aee7ff;
    --highlight: #40a3b4ff;
    --light: #ffffff;
    --dark: #0a0e27;
    --text: #ffffff;
    --text-secondary: #cbd5e1;
    --whatsapp-green: #25d366;
    --gmail-red: #ea4335;
    --main-blue: #007bff;
    --border-radius: 16px;
    --box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    background-attachment: fixed;
    color: var(--text);
    min-height: 100vh;
    line-height: 1.7;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header con Glassmorphism - Mejorado */
header {
    background: linear-gradient(180deg, rgba(10, 14, 39, 0.95) 0%, rgba(15, 23, 42, 0.92) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 15px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 1px rgba(52, 152, 219, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Contenido del header */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Logo */
.logo {
    z-index: 1001;
}

.logo-img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* Menú de navegación */
nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 10px;
    position: relative;
}

nav ul li a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: block;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: linear-gradient(90deg, #3498db, #5dade2);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav ul li a:hover,
nav ul li a.active {
    color: #ffffff;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

/* Botón de menú móvil */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 1002;
    padding: 10px;
    margin-left: 15px;
}

/* Overlay del menú móvil */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Menú móvil */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 80px 20px 30px;
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu ul li {
    margin-bottom: 15px;
}

.mobile-menu ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    display: block;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu ul li a:hover,
.mobile-menu ul li a.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
    padding-left: 20px;
}

/* Botón de cerrar menú móvil */
.close-menu-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
}

/* Estilos responsivos */
@media (max-width: 1024px) {
    nav ul li {
        margin: 0 5px;
    }

    nav ul li a {
        padding: 8px 10px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 0 15px;
    }

    /* Ocultar menú de escritorio en móviles */
    nav.desktop-menu {
        display: none;
    }

    /* Mostrar botón de menú móvil */
    .mobile-menu-btn {
        display: block;
    }

    /* Ajustes para el menú móvil */
    .mobile-menu {
        width: 85%;
        max-width: 300px;
    }

    /* Ajustes para los botones de autenticación en móviles */
    .auth-buttons {
        margin-left: auto;
        display: flex;
        gap: 10px;
    }

    .btn {
        padding: 8px 15px;
        font-size: 14px;
    }

    /* Ajustes para el selector de idioma */
    .language-switcher {
        margin-left: 10px;
    }

    .language-switcher select {
        padding: 6px 10px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 40px;
    }

    .mobile-menu {
        width: 100%;
        max-width: 100%;
    }

    .auth-buttons {
        gap: 5px;
    }

    .btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    .btn i {
        margin-right: 3px;
    }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.logo h1 {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--highlight), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo span {
    color: var(--text-secondary);
    font-weight: 400;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 8px;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    padding: 10px 20px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(79, 172, 254, 0.2), transparent);
    transition: left 0.5s;
}

nav a:hover,
nav a.active {
    color: var(--highlight);
    background: rgba(79, 172, 254, 0.1);
}

nav a:hover::before {
    left: 100%;
}

.auth-buttons {
    display: flex;
    gap: 12px;
}

.language-switcher {
    position: relative;
    margin-left: 12px;
    z-index: 2000;
}

.lang-form {
    position: relative;
}

.lang-display {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 8px 16px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
    min-width: 150px;
}

.lang-display:hover,
.lang-display:focus {
    color: var(--highlight);
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
}

.lang-display:focus {
    outline: none;
}

.lang-display.open .lang-caret {
    transform: rotate(180deg);
}

.flag-icon {
    font-size: 1.1rem;
    line-height: 1;
    font-family: 'Noto Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Apple Color Emoji', sans-serif;
}

.flag-icon img {
    display: block;
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 4px;
}

.lang-label {
    font-weight: 600;
}

.lang-caret {
    margin-left: auto;
    transition: transform 0.2s ease;
}

.lang-menu {
    position: absolute;
    bottom: calc(100% + 12px);
    right: 0;
    background: rgba(10, 14, 39, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.45);
    list-style: none;
    padding: 12px;
    min-width: 180px;
    display: none;
    backdrop-filter: blur(20px);
    z-index: 2500;
}

.lang-menu.open {
    display: block;
    animation: fadeSlide 0.2s ease;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
}

.lang-option:hover,
.lang-option.active {
    background: rgba(99, 102, 241, 0.15);
    color: var(--highlight);
}

.lang-option-label {
    font-weight: 600;
}

.lang-menu::-webkit-scrollbar {
    width: 6px;
}

.lang-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
}

.btn {
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

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

.btn:hover::before {
    left: 100%;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--highlight);
    color: var(--highlight);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: var(--highlight);
    color: var(--light);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(79, 172, 254, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, var(--highlight), var(--accent));
    color: var(--light);
    box-shadow: 0 8px 24px rgba(79, 172, 254, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(79, 172, 254, 0.6);
}

/* Auth Sections */
.auth-section {
    background: rgba(10, 14, 39, 0.6);
    backdrop-filter: blur(20px);
    padding: 60px 0;
    border-radius: 0 0 30px 30px;
    margin-bottom: 40px;
    display: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-section.active {
    display: block;
    animation: fadeSlide 0.6s ease;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-container {
    display: flex;
    justify-content: center;
}

.auth-form {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 520px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 40px;
    background: linear-gradient(135deg, var(--highlight), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.2rem;
    font-weight: 800;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: var(--text);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:hover {
    border-color: rgba(79, 172, 254, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.form-control:focus {
    outline: none;
    border-color: var(--highlight);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(79, 172, 254, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--highlight);
}

.checkbox-group label {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    gap: 16px;
}

.form-footer {
    text-align: center;
    margin-top: 30px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.form-footer a {
    color: var(--highlight);
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.form-footer a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Messages */
.error-message {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.2), rgba(185, 28, 28, 0.2));
    color: #fecaca;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    border-left: 4px solid #dc3545;
    backdrop-filter: blur(10px);
    font-weight: 500;
}

.success-message {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2));
    color: #d1fae5;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    border-left: 4px solid #10b981;
    backdrop-filter: blur(10px);
    font-weight: 500;
}

/* Hero Section */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
    color: white;
    overflow: hidden;
    background: transparent;
}

.hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 1;
    /* <— asegurate que esté en 1 */
    filter: none;
    /* <— quita cualquier filtro */
}

.hero .container {
    position: relative;
    z-index: 1;
    background: transparent;
    /* sin fondo blanco */
}


.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--highlight), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    letter-spacing: -2px;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--text-secondary);
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.hero-highlight {
    background: rgba(79, 172, 254, 0.15);
    backdrop-filter: blur(10px);
    padding: 20px 35px;
    border-radius: 16px;
    display: inline-block;
    margin: 25px 0;
    font-weight: 700;
    border-left: 5px solid var(--highlight);
    box-shadow: 0 8px 24px rgba(79, 172, 254, 0.2);
    position: relative;
    z-index: 1;
}

.hero-highlight1 {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 35px;
    border-radius: 16px;
    top: 20px;
    display: flex;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 900;
    font-size: 1.5rem;
    border-left: 5px solid var(--highlight);
    box-shadow: 0 8px 24px rgba(79, 172, 254, 0.2);
    justify-content: center;
    transition-timing-function: ease-in-out;
    z-index: 1;

}

.hero-highlighy1:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--highlight), var(--accent));
}

.hero-highlight1:After {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(79, 172, 254, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
}


.btn-primary1 {
    display: flex;
    background: linear-gradient(135deg, var(--highlight), var(--accent));
    color: var(--light);
    justify-content: center;
    top: -50% box-shadow: 0 8px 24px rgba(79, 172, 254, 0.4);
}

.btn-primary1:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(79, 172, 254, 0.6);
}

.btnback {
    display: flex;
    margin-left: auto;
    margin-right: auto;
    align-content: center;
    justify-content: center;
    padding: 20px 0;
    position: relative;
    z-index: 10;
}

/* Wrapper for Hero Section to fix background leakage */
.hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* Optional: verify if transparent or needed specific bg */
}

.lang-form select {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    height: 0;
    width: 0;
}

/* Services Section */
#services {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.8rem;
    background: linear-gradient(135deg, var(--highlight), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    letter-spacing: -1px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.service-card {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--highlight), var(--accent));
}

.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(79, 172, 254, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    border-color: rgba(79, 172, 254, 0.3);
}

.service-card:hover::after {
    opacity: 1;
    animation: rotate 10s linear infinite;
}

.service-card i {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--highlight), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    display: block;
}

.service-card h3 {
    margin-bottom: 16px;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Binance Section */
.binance-section {
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(20px);
    padding: 80px 0;
    border-radius: 40px;
    margin: 80px 0;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.binance-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(240, 147, 251, 0.1) 0%, transparent 70%);
    animation: rotate 25s linear infinite;
}

.binance-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--highlight), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    position: relative;
    z-index: 1;
}

.binance-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

.binance-pay {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 20px;
    display: inline-block;
    margin: 30px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.binance-pay h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.qr-code {
    width: 220px;
    height: 220px;
    background: linear-gradient(135deg, white, #f0f0f0);
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-weight: 800;
    color: var(--dark);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    font-size: 1.1rem;
}

/* Brands Banner - Removido fondo negro */
.brands-banner {
    background: transparent;
    backdrop-filter: blur(20px);
    padding: 24px 0;
    overflow: hidden;
    position: relative;
    border-top: none;
    border-bottom: none;
}

.brands-slider {
    display: flex;
    animation: scroll 40s linear infinite;
}

.brands-slider:hover {
    animation-play-state: running;
}

.brand-item {
    flex-shrink: 0;
    height: 60px;
    margin: 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-item img {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: grayscale(40%) opacity(0.7);
    transition: var(--transition);
}

.brand-item img:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Carrusel de Texto */
.text-banner1 {
    /* Estilos del contenedor principal (similar a brands-banner) */
    background: var(--accent-dark, #0056b3);
    /* Color de fondo oscuro o de acento */
    padding: 10px 0;
    /* Padding vertical más pequeño para texto */
    overflow: hidden;
    position: relative;
    color: white;
    /* Color del texto */
    font-size: 1rem;
    /* Tamaño de fuente */
    font-weight: bold;
    white-space: nowrap;
    /* Impide que el texto se salte de línea */
}

.text-slider1 {
    /* Contenedor flexible para los ítems de texto */
    display: flex;
    animation: scroll 40s linear infinite;
    /* Aplica la misma animación */
}

.text-slider1:hover {
    animation-play-state: running;
    /* Se pausa al pasar el ratón */
}

.text-item {
    /* Cada pieza de texto */
    flex-shrink: 0;
    /* No permite que el texto se encoja */
    margin: 0 50px;
    /* Espacio entre los textos */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Estilos adicionales para el texto si lo deseas */
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 10px;
    /* Pequeño padding para visualización */
}

.text-item span {
    /* Transición de efecto hover sobre el texto */
    transition: transform 0.3s ease;
    cursor: default;
}

.text-item span:hover {
    transform: scale(1.05);
    /* Ligeramente más grande al pasar el ratón */
    color: var(--highlight, #ffc107);
    /* Color de resaltado al pasar el ratón */
}

/* La animación @keyframes 'scroll' que ya tenías */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Puedes ignorar el @keyframes 'rotate' ya que no se usa aquí. */
.text-banner {
    /* Estilos del contenedor principal (similar a brands-banner) */
    background: var(--accent-dark, #0056b3);
    /* Color de fondo oscuro o de acento */
    padding: 12px 0;
    /* Padding vertical más pequeño para texto */
    overflow: hidden;
    position: relative;
    color: white;
    /* Color del texto */
    font-size: 1.5rem;
    /* Tamaño de fuente */
    font-weight: bold;
    white-space: nowrap;
    /* Impide que el texto se salte de línea */
}

.text-slider {
    /* Contenedor flexible para los ítems de texto */
    display: flex;
    animation: scroll 40s linear infinite;
    /* Aplica la misma animación */
}

.text-slider:hover {
    animation-play-state: running;
    /* Se pausa al pasar el ratón */
}

.text-item {
    /* Cada pieza de texto */
    flex-shrink: 0;
    /* No permite que el texto se encoja */
    margin: 0 50px;
    /* Espacio entre los textos */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Estilos adicionales para el texto si lo deseas */
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 10px;
    /* Pequeño padding para visualización */
}

.text-item span {
    /* Transición de efecto hover sobre el texto */
    transition: transform 0.3s ease;
    cursor: default;
}

.text-item span:hover {
    transform: scale(1.05);
    /* Ligeramente más grande al pasar el ratón */
    color: var(--highlight, #ffc107);
    /* Color de resaltado al pasar el ratón */
}

/* La animación @keyframes 'scroll' que ya tenías */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Puedes ignorar el @keyframes 'rota

/* Social Sidebar */
.social-sidebar {
    position: fixed;
    top: 50%;
    right: 0px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(20px);
    padding: 16px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-sidebar a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    color: #fff;
    font-size: 22px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.social-sidebar a:hover {
    transform: scale(1.2) rotate(5deg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.social-sidebar a:hover::before {
    left: 100%;
}

.facebook {
    background: linear-gradient(135deg, #1877f2, #0d65d9);
}

.instagram {
    background: linear-gradient(135deg, #e4405f, #c13584);
}

.telegram {
    background: linear-gradient(135deg, #0088cc, #0077b5);
}

.whatsapp {
    background: linear-gradient(135deg, #25d366, #20ba5a);
}

.youtube {
    background: linear-gradient(135deg, #ff0000, #cc0000);
}

/* Footer */
footer {
    width: 100%;
    position: relative;
    background: linear-gradient(180deg, rgba(10, 14, 39, 0.6) 0%, rgba(15, 23, 42, 0.7) 100%);
    padding: 80px 0 40px;
    margin-top: 100px;
    backdrop-filter: blur(10px);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 24px;
}

.footer-section {
    min-width: 260px;
    max-width: 340px;
}

/* Estilo para Títulos H3 */
.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: #3498db;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding-bottom: 10px;
}

/* 1. TÍTULO PRINCIPAL CON EFECTO AZUL */
.main-title {
    transition: var(--transition);
    color: #3498db;
}

.main-title:hover {
    color: #5dade2;
    text-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

.footer-section p {
    color: #cbd5e1;
    line-height: 1.6;
    font-size: 14px;
}

/* Social Links - Mejorados */
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(52, 152, 219, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3498db;
    transition: all 0.3s ease;
    border: 1px solid rgba(52, 152, 219, 0.3);
    text-decoration: none;
    font-size: 16px;
}

.social-link:hover {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(52, 152, 219, 0.3);
    border-color: #3498db;
}

/* --- SECCIÓN DE ENLACES GENERALES --- */

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    font-size: 14px;
}

.footer-section a:hover {
    color: #3498db;
    padding-left: 8px;
}

/* --- CONTACT INFO (Mejorado) --- */

.contact-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #cbd5e1;
    font-size: 0.95rem;
    margin: 12px 0;
    padding: 10px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Efecto hover GENERAL para la animación y fondo */
.contact-info:hover {
    background: rgba(52, 152, 219, 0.1);
    transform: translateX(5px);
    color: #ffffff;
}

/* WHATSAPP (Verde) */
.whatsapp-link {
    border-left: 3px solid transparent;
    transition: border-color 0.3s ease;
}

.whatsapp-link:hover {
    color: #25d366;
    border-left-color: #25d366;
    background: rgba(37, 211, 102, 0.08);
}

/* GMAIL (Rojo) */
.gmail-link {
    border-left: 3px solid transparent;
    transition: border-color 0.3s ease;
}

.gmail-link:hover {
    color: #ea4335;
    border-left-color: #ea4335;
    background: rgba(234, 67, 53, 0.08);
}

/* --- ESTILOS DE ICONOS --- */

.Whatsapp-svg,
.Gmail-svg {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Efecto hover para el ícono de WhatsApp */
.whatsapp-link:hover .Whatsapp-svg {
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px rgba(37, 211, 102, 0.6));
}

/* Efecto hover para el ícono de Gmail */
.gmail-link:hover .Gmail-svg {
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px rgba(234, 67, 53, 0.6));
}

.copyright {
    text-align: center;
    padding-top: 40px;
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

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

/* Navegación activa mejorada */
nav ul li a.active {
    color: var(--highlight);
    background: rgba(79, 172, 254, 0.15);
    border-bottom: 3px solid var(--highlight);
}

/* Secciones de contenido */
.content-section {
    padding: 100px 0;
    min-height: 60vh;
}

.content-section h2 {
    font-size: 2.8rem;
    margin-bottom: 40px;
    background: linear-gradient(135deg, var(--highlight), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    font-weight: 900;
    letter-spacing: -1px;
}

.content-section p {
    font-size: 1.15rem;
    line-height: 1.9;
    margin-bottom: 24px;
    color: var(--text-secondary);
}

/* Métodos de pago modernos */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.payment-card {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.payment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--highlight), var(--accent));
}

.payment-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(79, 172, 254, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.payment-card:hover {
    border-color: var(--highlight);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(79, 172, 254, 0.3);
}

.payment-card:hover::after {
    opacity: 1;
    animation: rotate 10s linear infinite;
}

.payment-card i {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--highlight), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    display: block;
}

.payment-card h3 {
    margin-bottom: 16px;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
}

.payment-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Lista de instrucciones moderna */
.instructions-list {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    margin-top: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.instruction-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.instruction-item:hover {
    transform: translateX(8px);
}

.instruction-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.instruction-number {
    background: linear-gradient(135deg, var(--highlight), var(--accent));
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-right: 24px;
    flex-shrink: 0;
    font-size: 1.3rem;
    box-shadow: 0 8px 24px rgba(79, 172, 254, 0.4);
}

.instruction-content h4 {
    color: var(--highlight);
    margin-bottom: 12px;
    font-size: 1.3rem;
    font-weight: 700;
}

.instruction-content p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Información del servidor */
.server-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.info-box {
    /* ... (Estilos de info-box mantenidos) ... */
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 32px;
    border-left: 5px solid var(--highlight);
    transition: all 0.4s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    overflow: hidden;
}

.info-box:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    border-left-color: var(--accent);
}

/* --- Párrafos de contacto (Estilo Base) --- */
.info-box p {
    /* ... (Estilos de p base mantenidos) ... */
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 1.05rem;
    color: var(--text-secondary);
    opacity: 0;
    transform: translateY(15px);
    animation: fadeUp 0.6s ease forwards;
    transition: all 0.3s ease;
}

/* Animación escalonada (delay) - Mantenido */
.info-box p:nth-child(2) {
    animation-delay: 0.1s;
}

/* ... (demás delays) ... */

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Hover GENERAL de la fila de contacto --- */
.info-box p:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(6px);
}

/* --- HOVER ESPECÍFICO POR TIPO DE CONTACTO (Mantenido) --- */

.whatsapp-link:hover,
.telegram-link:hover {
    color: var(--whatsapp-green);
}

.gmail-link:hover {
    color: var(--gmail-red);
}

/* --- ESTILOS DE ÍCONOS (Ajustado) --- */

/* Estilo Base para todos los íconos de contacto (mantenido) */
.Whatsapp-svg,
.Telegram-svg,
.Gmail-svg {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: brightness(0.9);
}

/* ❌ REGLA GENERAL CORREGIDA: SOLO APLICA TRANSFORM (SIN FILTER) ❌ */
.info-box p:hover .Whatsapp-svg,
.info-box p:hover .Telegram-svg,
.info-box p:hover .Gmail-svg {
    transform: rotate(10deg) scale(1.1);
    /* Se elimina 'filter: brightness(1.3);' de aquí */
}

/* ✅ HOVER ESPECÍFICO DE ÍCONO (Ahora la sombra de color funciona) ✅ */

/* WhatsApp y Telegram (Verde) */
.whatsapp-link:hover .Whatsapp-svg,
.telegram-link:hover .Telegram-svg {
    filter: drop-shadow(0 0 5px var(--whatsapp-green)) brightness(1.3);
}

/* Gmail (Rojo) */
.gmail-link:hover .Gmail-svg {
    filter: drop-shadow(0 0 5px var(--gmail-red)) brightness(1.3);
}

/* Formulario de contacto premium */
.contact-form {
    max-width: 700px;
    margin: 50px auto;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    padding: 50px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.contact-form .form-group {
    margin-bottom: 28px;
}

.contact-form label {
    display: block;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--highlight), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.05rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: var(--text);
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:hover,
.contact-form textarea:hover {
    border-color: rgba(79, 172, 254, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--highlight);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(79, 172, 254, 0.1);
}

.contact-form textarea {
    min-height: 160px;
    resize: vertical;
    font-family: inherit;
}

.contact-form button {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--highlight), var(--accent));
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 24px rgba(79, 172, 254, 0.4);
}

.contact-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(79, 172, 254, 0.6);
}

/* Sección 2FA moderna */
.twofa-section {
    display: none;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    margin-top: 24px;
    border-left: 5px solid var(--highlight);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.twofa-section.active {
    display: block;
    animation: fadeSlide 0.5s ease;
}

.twofa-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.twofa-header i {
    font-size: 28px;
    margin-right: 12px;
    background: linear-gradient(135deg, var(--highlight), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.twofa-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
}

.twofa-code-input {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}

.twofa-code-input input {
    flex: 1;
    padding: 16px;
    font-size: 20px;
    text-align: center;
    letter-spacing: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: var(--text);
    font-weight: 700;
    transition: var(--transition);
}

.twofa-code-input input:focus {
    outline: none;
    border-color: var(--highlight);
    box-shadow: 0 0 0 4px rgba(79, 172, 254, 0.1);
    background: rgba(255, 255, 255, 0.1);
}

.trust-device-option {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 18px;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.trust-device-option:hover {
    background: rgba(255, 255, 255, 0.08);
}

.trust-device-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-secondary);
}

.trust-device-option input {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--highlight);
}

.twofa-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.btn-small {
    padding: 10px 24px;
    font-size: 0.95rem;
    border-radius: 10px;
    font-weight: 700;
}

.hidden {
    display: none;
}

/* Utilidades adicionales */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .auth-form {
        padding: 35px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .social-sidebar {
        left: 10px;
        padding: 12px;
    }

    .social-sidebar a {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .content-section h2 {
        font-size: 2.2rem;
    }

    .payment-methods {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 35px;
    }

    .server-info {
        grid-template-columns: 1fr;
    }

    .instruction-number {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .twofa-code-input input {
        font-size: 18px;
        letter-spacing: 8px;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    /* Espacio entre el logo y el texto */
}

.logo-img {
    width: 150px;
    /* Ajustá según el tamaño que quieras */
    height: auto;
}

/* Estilos para que las banderas se vean como iconos */
.payment-card .flag-icon {
    /* Define un tamaño fijo para la imagen */
    width: 48px;
    height: 48px;
    /* Ajusta el espaciado (puedes necesitar ajustar el margin-bottom) */
    margin-bottom: 15px;
    /* Opcional: Dale un borde redondeado o circular a la bandera */
    border-radius: 50%;
    /* Opcional: Asegura que la imagen se ajuste bien */
    object-fit: cover;
    /* Asegura que el color de los iconos (si usaste un color) no afecte a la imagen */
    color: initial;
}

/* Si usas un selector más específico para tus iconos originales, asegúrate de que el tamaño de la imagen sea coherente */
.payment-card i {
    font-size: 3em;
    /* Esto es un tamaño común para Font Awesome */
    margin-bottom: 15px;
}

/* ------------------------------------------- */
/* --- ESTILOS BÁSICOS DE LA CUADRÍCULA --- */
/* ------------------------------------------- */
/* ========================================================== */
/* --- ESTILOS DE CANALES ADAPTADOS AL ROOT DEL USUARIO --- */
/* ========================================================== */

/* Nota: Las variables del :root deben estar definidas antes de este código */
/* ========================================================== */
/* --- SOLUCIÓN ROBUSTA DE CANALES YOUTUBE (V. ROOT ADAPTADA) --- */
/* ========================================================== */
/* Estilos de títulos para la sección */
.youtube-title {
    color: var(--light);
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.youtube-subtitle {
    color: var(--text-secondary);
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 40px;
}

/* CONTENEDOR DE LA CUADRÍCULA (CLAVE PARA LA DISPOSICIÓN HORIZONTAL) */
.channels-grid {
    /* Forzamos el uso de Grid para evitar conflictos de Flexbox */
    display: grid !important;

    /* Define columnas: mínimo 280px por tarjeta, ajusta automáticamente (auto-fit) */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

    /* Espaciado entre tarjetas */
    gap: 40px;

    margin-top: 50px;
    /* Centra la cuadrícula si no ocupa todo el ancho del contenedor */
    justify-content: center;
    width: 100%;
}

/* ENLACE BASE */
.youtube-channel-link {
    text-decoration: none;
    color: var(--text);
    /* Aseguramos que el enlace se comporte como un bloque que ocupa su celda de Grid */
    display: block;
}

/* ========================================================== */
/* 3. ESTILOS DE LA TARJETA Y EFECTOS HOVER */
/* ========================================================== */

.channel-card {
    /* Ocupa el 100% del espacio asignado por la celda de Grid */
    width: 100%;
    height: 100%;
    /* Asegura que la tarjeta ocupe toda la altura de la celda */
    padding: 30px 20px;
    text-align: center;
    border-radius: var(--border-radius);

    /* Colores */
    background-color: var(--dark);
    color: var(--text-secondary);
    border: 1px solid var(--primary);

    /* Sombra Inicial */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);

    /* Transiciones y posición */
    transition: var(--transition);
    position: relative;
    /* Necesario para z-index en hover */
    overflow: hidden;
    /* Oculta cualquier desbordamiento si el logo gira */
}

/* EFECTO HOVER (FLOTACIÓN Y BRILLO) */
.channel-card:hover {
    /* Mueve y agranda ligeramente la tarjeta */
    transform: translateY(-12px) scale(1.02);

    /* Asegura que la tarjeta esté por encima de sus vecinas al flotar */
    z-index: 10;

    /* Sombra y brillo adaptado */
    box-shadow: var(--box-shadow),
        /* Sombra principal más fuerte */
        0 0 30px var(--primary);
    /* El brillo con tu color principal */

    border-color: var(--accent);
}

/* 4. ESTILOS DE LOS ELEMENTOS INTERNOS */
.channel-logo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--secondary);
    /* Borde grueso inicial */
    transition: var(--transition);
}

/* El logo cambia al hacer hover */
.channel-card:hover .channel-logo {
    border-color: var(--accent);
    transform: rotate(5deg);
    /* Efecto de giro ligero */
}

.channel-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--light);
    margin-top: 5px;
    margin-bottom: 10px;
}

.channel-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(10, 14, 39, 0.85);
    z-index: 10000 !important;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(20px);
}

.modal-overlay.active {
    display: flex !important;
    animation: fadeIn 0.3s ease;
}

.modal-container {
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease;
    position: relative;
    z-index: 10001;
    margin: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* FORZAR que el modal esté por encima de TODO */
#forgotPasswordModal {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
}

#forgotPasswordModal.active {
    display: flex !important;
}

/* Asegurar que ningún otro elemento tenga z-index más alto */
* {
    z-index: auto !important;
}

body.modal-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}

/* Prevenir que otros elementos interfieran */
header,
nav,
section,
footer,
div,
main {
    z-index: auto !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Resto de tus estilos del modal... */
.modal-header {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    padding: 30px;
    border-radius: 15px 15px 0 0;
    color: white;
    text-align: center;
    position: relative;
}

.modal-header h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
}

.modal-header p {
    margin: 0;
    font-size: 14px;
    opacity: 0.95;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #F8F8FF;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #f5576c;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 87, 108, 0.4);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.forgot-link {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.close-alert {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: inherit;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.fa-spin {
    animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.footer-bottom {
    text-align: center;
    padding: 18px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

/* El color y brillo aparecen solo al pasar el mouse */
.footer-bottom:hover p {
    color: var(--accent, #25d366);
}

.footer-bottom strong {
    background: linear-gradient(135deg, var(--highlight, #25d366), var(--accent, #128c7e));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.footer-bottom:hover strong {
    filter: drop-shadow(0 0 6px var(--accent, #25d366));
}

//sliders banner inicio
/* Contenedor principal para limitar el espacio */
.carrusel-container {
    width: 100%;
    max-width: 100%;
    height: 60vh;
    min-height: 500px;
    max-height: 600px;
    position: relative;
    margin: auto;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Estilo para cada slide (la imagen) */
.carrusel-slide {
    display: none;
    /* Por defecto, todas están ocultas */
    width: 100%;
    height: 100%;
    transition: opacity 1s ease-in-out;
    /* Transición suave al cambiar */
}

/* La clase 'active' hace que la imagen se muestre */
.carrusel-slide.active {
    display: block;
}

.carrusel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Estilos del botón de navegación */
.carrusel-btn {
    position: absolute;
    top: 50%;
    right: 10px;
    /* Colocamos el botón a la derecha */
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 24px;
    z-index: 10;
    /* Asegura que el botón esté sobre las imágenes */
    border-radius: 50%;
    line-height: 1;
}

.carrusel-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}