/*
 *  @Copyright (c) 2016 - 2023. XPanel® Hostiberi - Powerful CMS
 *  @Author: Hostiberi
 *  @Email: info@hostiberi.com
 *  @Filename: style.css
 *  @Last modified by: hostiberi
 *  @web: www.hostiberi.com
 */
/* ======================================================
   VARIABLES DE TEMA – Dark / Light
   ====================================================== */
:root {
    --color-bg: #0e0e0e;
    --color-text: #f0f0f0;
    --color-text-inv: #000;
    --color-muted: #aaa;
    --color-primary: #e70b0b;
    --color-border: #222;
    --color-card: #181818;
    --color-card-hover: #202020;
    --color-input-bg: #1c1c1c;
    --color-input-border: #2b2b2b;
    --color-btn-hover: #ff2525;
    --color-success: #4caf50;
    --color-error: #f44336;
    --color-warning: #ff9800;
    --color-info: #2196f3;
    --color-link: #007bff;
    --color-link-hover: #0056b3;
    --color-link-visited: #6610f2;
    --color-link-active: #8a2be2;
    --color-link-focus: #007bff;
    --color-link-focus-visible: #007bff;
    /* Estado colores (tema oscuro) */
    --estado-open-bg: linear-gradient(135deg, #888 0%, #444 100%);
    --estado-sent-bg: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    --estado-closed-bg: linear-gradient(135deg, #b30000 0%, #5a0000 100%);
    --estado-pending-bg: linear-gradient(135deg, #555 0%, #2a2a2a 100%);
    --estado-text-color: #fff;
}

.theme-light {
    --color-bg: #f7f7f7;
    --color-text: #111;
    --color-text-inv: #fff;
    --color-muted: #444;
    --color-primary: #e70b0b;
    --color-border: #e9ecef;
    --color-card: #ffffff;
    --color-card-hover: #f5f5f5;
    --color-input-bg: #fff;
    --color-input-border: #ced4da;
    --color-btn-hover: #ff3c3c;
    --color-success: #4caf50;
    --color-error: #f44336;
    --color-warning: #ff9800;
    --color-info: #2196f3;
    --color-link: #007bff;
    --color-link-hover: #0056b3;
    --color-link-visited: #6610f2;
    --color-link-active: #8a2be2;
    --color-link-focus: #007bff;
    --color-link-focus-visible: #007bff;
    /* Estado colores (tema claro) */
    --estado-open-bg: linear-gradient(135deg, #d0d0d0 0%, #999 100%);
    --estado-sent-bg: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    --estado-closed-bg: linear-gradient(135deg, #ff4d4d 0%, #cc0000 100%);
    --estado-pending-bg: linear-gradient(135deg, #aaa 0%, #777 100%);
    --estado-text-color: #111;
}

/* Transición suave entre temas */
html, body, .hero, .equipo, .buscador, .footer {
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    margin: 0;
    font-size: 16px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
            radial-gradient(circle at 20% 80%, rgba(231, 11, 11, 0.03) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(231, 11, 11, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

/* Navbar fixed siempre por encima de todos los elementos */
.navbar.fixed-top {
    z-index: 1050;
}

.service-details-wrap a {
    color: var(--color-primary);
}
.service-details-wrap a:hover {
    font-weight: bold;
}

.bg-body {
    background-color: var(--color-card)!important;
}
.user-login .badge {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem; /* Aumenta el tamaño del icono dentro del badge */
}

.user-login .badge i {
    font-size: 1.2rem;
    width: 18px;
    text-align: center;
}

.img-hero {
    width: 340px;
}

/* HERO */
.hero {
    color: var(--color-text);
    text-align: center;
    padding: 120px 20px 80px;
    border-bottom: 3px solid var(--color-primary);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(231, 11, 11, 0.1) 0%, transparent 50%, rgba(231, 11, 11, 0.1) 100%);
    animation: heroShine 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes heroShine {
    0%, 100% { opacity: 0.3; transform: translateX(-100%); }
    50% { opacity: 0.6; transform: translateX(100%); }
}

.hero.home {
    color: var(--color-text);
    border-bottom-color: var(--color-primary);
    background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.35)), url("/static/media/img/hero/hero1.webp") center center/cover no-repeat;
}

.theme-light .hero.home {
    color: var(--color-text);
    border-bottom-color: var(--color-primary);
    background: linear-gradient(rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.5)), url("/static/media/img/hero/hero1.webp") center center/cover no-repeat;
}

.hero.contacto {
    color: var(--color-text);
    border-bottom-color: var(--color-primary);
    background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.35)), url("/static/media/img/hero/hero2.webp") center center / cover no-repeat;
}
.theme-light .hero.contacto {
    color: var(--color-text);
    border-bottom-color: var(--color-primary);
    background: linear-gradient(rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.5)), url("/static/media/img/hero/hero2.webp") center center/cover no-repeat;
}

.hero.blog {
    background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.35)),
    url("/static/media/img/hero/hero3.webp") center center / cover no-repeat;
}
.theme-light .hero.blog {
    color: var(--color-text);
    border-bottom-color: var(--color-primary);
    background: linear-gradient(rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.5)), url("/static/media/img/hero/hero3.webp") center center/cover no-repeat;
}

.hero.faqs {
    background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.35)),
    url("/static/media/img/hero/hero4.webp") center center / cover no-repeat;
}
.theme-light .hero.faqs {
    color: var(--color-text);
    border-bottom-color: var(--color-primary);
    background: linear-gradient(rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.5)), url("/static/media/img/hero/hero4.webp") center center/cover no-repeat;
}

.hero.default {
    background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.35)),
    url("/static/media/img/hero/hero5.webp") center center / cover no-repeat;
}
.theme-light .hero.default {
    color: var(--color-text);
    border-bottom-color: var(--color-primary);
    background: linear-gradient(rgba(255, 255, 255,1), rgba(255, 255, 255, 0.5)), url("/static/media/img/hero/hero5.webp") center center/cover no-repeat;
}

.hero.anuncios {
    background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.35)),
    url("/static/media/img/hero/hero6.webp") center center / cover no-repeat;
    padding: 30px 20px 80px!important;
}
.theme-light .hero.anuncios {
    color: var(--color-text);
    border-bottom-color: var(--color-primary);
    background: linear-gradient(rgba(255, 255, 255,1), rgba(255, 255, 255, 0.5)), url("/static/media/img/hero/hero6.webp") center center/cover no-repeat;
}

.hero.buscador-equipos {
    background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.35)),
    url("/static/media/img/hero/hero7.webp") center center / cover no-repeat;
    padding: 30px 20px 80px!important;
}
.theme-light .hero.buscador-equipos {
    color: var(--color-text);
    border-bottom-color: var(--color-primary);
    background: linear-gradient(rgba(255, 255, 255,1), rgba(255, 255, 255, 0.5)), url("/static/media/img/hero/hero7.webp") center center/cover no-repeat;
}

.hero-content p {
    color: var(--estado-text-color)!important;
}

.hero h1 {
    font-size: 3.5rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 900;
    text-shadow: 0 0 20px rgba(231, 11, 11, 0.5), 0 0 40px rgba(231, 11, 11, 0.3);
    animation: titlePulse 3s ease-in-out infinite;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

@keyframes titlePulse {
    0%, 100% { text-shadow: 0 0 20px rgba(231, 11, 11, 0.5), 0 0 40px rgba(231, 11, 11, 0.3); }
    50% { text-shadow: 0 0 30px rgba(231, 11, 11, 0.8), 0 0 60px rgba(231, 11, 11, 0.5); }
}

.hero h1 span {
    color: var(--color-primary);
    display: inline-block;
    animation: letterGlow 2s ease-in-out infinite alternate;
    margin-top: 1rem;
}

@keyframes letterGlow {
    from { filter: brightness(1); }
    to { filter: brightness(1.3); }
}

.hero p {
    margin: 10px 0 25px;
    color: var(--color-muted);
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}
.text-muted {
    color: var(--color-muted) !important;
}

.buton-user {
    display: inline-block;
    background: linear-gradient(135deg, #ffffff 0%, #d9d9d9 100%);
    color: #000;
    border: 1px solid #bbb;
    padding: 6px 18px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    box-shadow: 0 0 10px rgba(0,0,0,0.35);
    position: relative;
    overflow: hidden;
}

.buton-user::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-25deg);
    transition: left 0.6s ease;
}

.buton-user:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #e6e6e6 0%, #c8c8c8 100%);
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

.buton-user:hover::before {
    left: 125%;
}

.btn-primary {
    display: inline-block;
    background-color: var(--color-primary);
    color: #fff;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-save {
    display: inline-block;
    background-color: var(--color-primary);
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: var(--color-btn-hover);
}

/* Updated btn-iracing styles */
.btn-iracing {
    display: inline-block;
    background-color: #000;
    color: #fff;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--color-primary);
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.btn-iracing:hover {
    background-color: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* Adaptación para tema claro */
.theme-light .btn-iracing {
    background-color: #fff;
    color: #000;
    border: 1px solid var(--color-primary);
}

.theme-light .btn-iracing:hover {
    background-color: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* BUSCADOR */
.buscador {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    padding: 0;
    text-align: center;
    box-shadow: inset 0 0 50px rgba(231, 11, 11, 0.1);
    position: relative;
}

.buscador::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
            repeating-linear-gradient(
                    90deg,
                    transparent,
                    transparent 2px,
                    rgba(231, 11, 11, 0.03) 2px,
                    rgba(231, 11, 11, 0.03) 4px
            );
    pointer-events: none;
}

.buscador h2 {
    margin-bottom: 35px;
    text-transform: uppercase;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(231, 11, 11, 0.5);
    position: relative;
    z-index: 1;
}

.search-form {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 10px;
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.search-form input,
.search-form select {
    background-color: var(--color-input-bg);
    color: var(--color-text);
    border: 2px solid var(--color-input-border);
    border-radius: 8px;
    padding: 10px 12px;
    min-width: 0;
    flex: 1 1 0;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.search-form input:focus,
.search-form select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(231, 11, 11, 0.2), 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}
/* Hacer más grande el campo de nombre del equipo */
.search-form .nombre-equipo-input {
    flex: 2 1 0; /* ocupa el doble de espacio que los demás */
}


.search-form button {
    background-color: var(--color-primary);
    border: none;
    color: white;
    padding: 10px 25px;
    border-radius: 6px;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.search-form button:hover {
    background-color: var(--color-btn-hover);
}

/* GRID DE EQUIPOS */
.equipos {
    padding: 80px 10px;
    position: relative;
}

.equipos h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--color-text);
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.equipos h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, var(--color-primary) 50%, transparent 100%);
}

.equipos-slider {
    position: relative;
    overflow: visible;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: background 0.3s;
}

.slider-btn:hover {
    background: rgba(231, 11, 11, 0.9);
}

.slider-btn.left {
    left: -50px;
}

.slider-btn.right {
    right: -50px;
}

.grid-equipos::-webkit-scrollbar {
    display: none;
}

.grid-equipos {
    scrollbar-width: none;
}

.grid-equipos {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    padding-bottom: 15px;
}

.grid-equipos {
    padding-left: 4rem;
    padding-top: 1rem;
}

.grid-equipos::after {
    content: '';
    flex: 0 0 40px;
}


.equipo {
    flex: 0 0 calc(33% - 20px); /* resta el gap para evitar compresión visual */
    scroll-snap-align: start;
}


.equipo {
    background-color: var(--color-card);
    border-radius: 12px;
    text-align: center;
    padding: 25px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(231, 11, 11, 0.1);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.equipo::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(231, 11, 11, 0.1) 50%, transparent 100%);
    transition: left 0.6s ease;
}

.equipo:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 15px 40px rgba(231, 11, 11, 0.3), 0 0 20px rgba(231, 11, 11, 0.2);
    border-color: var(--color-primary);
}

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

.equipo-logo img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    border-radius: 50%;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 100%);
    padding: 15px;
    margin-bottom: 15px;
    border: 3px solid transparent;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.equipo:hover .equipo-logo img {
    border-color: var(--color-primary);
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 0 25px rgba(231, 11, 11, 0.6);
}

.equipo h3 {
    color: var(--color-text);
    margin: 5px 0;
    font-size: 18px;
    /*min-height: 3rem;*/
}

.equipo p {
    color: var(--color-muted);
    font-size: 16px;
    margin-bottom: 0;
}

.grid-equipos .tags {
    margin-bottom: 15px;
    min-height: 90px;
}

.flag {
    font-size: 2rem;
}

.tag {
    display: inline-block;
    background-color: #2a2a2a;
    border-radius: 4px;
    color: var(--color-text);
    padding: 4px 8px;
    font-size: 12px;
    margin: 2px;
    text-transform: uppercase;
}

.tag.gt3 {
    background-color: var(--color-primary);
}

.tag.lmp2 {
    background-color: #007bff;
}

.tag.gte {
    background-color: #f5b400;
}

.tag.division {
    background-color: #333;
}


/* Estado - Botones con estilo Racing */
.estado {
    display: inline-block;
    padding: 10px 24px;
    border: none;
    border-radius: 50px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    color: var(--estado-text-color);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    font-size: .8rem;
    background: linear-gradient(135deg, #e70b0b 0%, #8b0000 100%);
    box-shadow: 0 4px 15px rgba(231, 11, 11, 0.3);
    transition: all 0.3s ease;
}

/* Efecto de brillo */
.estado::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-25deg);
    transition: left 0.6s ease;
}

/* Animación al pasar el ratón */
.estado:hover::before {
    left: 125%;
}

.estado:hover {
    background: linear-gradient(135deg, #ff1a1a 0%, #a00000 100%);
    box-shadow: 0 6px 25px rgba(255, 26, 26, 0.4);
    transform: translateY(-2px);
}

/* Mantiene los colores personalizados por estado */
.estado.open {
    background: var(--estado-open-bg);
}

.estado.sent {
    background: var(--estado-sent-bg);
}

.estado.closed {
    background: var(--estado-closed-bg);
}

.estado.pending {
    background: var(--estado-pending-bg);
}

/* FOOTER */
.footer {
    background: linear-gradient(180deg, var(--color-card) 0%, #0a0a0a 100%);
    color: var(--color-muted);
    text-align: center;
    padding: 40px 15px;
    border-top: 3px solid var(--color-primary);
    box-shadow: 0 -5px 20px rgba(231, 11, 11, 0.1);
    position: relative;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--color-primary) 20%, var(--color-primary) 80%, transparent 100%);
    animation: footerLine 3s ease-in-out infinite;
}

@keyframes footerLine {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.footer strong {
    color: var(--color-primary);
}

.social a {
    color: var(--color-text);
    margin: 0 10px;
    font-size: 24px;
    transition: all 0.4s ease;
    display: inline-block;
    position: relative;
}

.social a::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(231, 11, 11, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.social a:hover {
    color: var(--color-primary);
    transform: scale(1.2) translateY(-5px);
    filter: drop-shadow(0 0 10px rgba(231, 11, 11, 0.8));
}

.social a:hover::before {
    opacity: 1;
    animation: socialPulse 1.5s ease-in-out infinite;
}

@keyframes socialPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.3); }
}

/* NAVIGATION */
.main-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    box-sizing: border-box;
    z-index: 10;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    margin: 0 15px;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--color-primary);
}

.nav-left a {
    font-size: 15px;
    text-transform: uppercase;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.login-link i {
    margin-right: 5px;
}

.lang-switch img {
    width: 44px;
    height: 36px;
    border-radius: 2px;
    margin-left: 6px;
    transition: transform 0.2s;
}

.lang-switch img:hover {
    transform: scale(1.1);
}

/* Light Theme Overrides */
.theme-toggle-btn {
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 1.1rem;
    line-height: 1;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
}

/* Apply light theme by adding .theme-light on <html> */
.theme-light body {
    background-color: var(--color-bg);
    color: var(--color-text);
}

.theme-light .theme-toggle-btn {
    color: #222;
}

/* Navbar links */
.navbar .nav-link {
    position: relative;
    overflow: visible;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6432, #ff3264, #ff6432);
    background-size: 200% 100%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
    animation: navUnderlineFlow 2s linear infinite paused;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: 100%;
    animation-play-state: running;
}

@keyframes navUnderlineFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.theme-light .navbar .nav-link {
    color: #222 !important;
}

.theme-light .navbar .nav-link:hover {
    color: var(--color-primary) !important;
}

/* Hero */


.theme-light .hero p {
    color: var(--color-muted);
}

/* Buttons */
.theme-light .buton-user {
    background: #000;
    color: #fff;
    border: 1px solid #000;
    box-shadow: 0 0 10px rgba(0,0,0,0.25);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.theme-light .buton-user:hover {
    background: linear-gradient(135deg, #111, #333);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

.theme-light .btn-primary {
    color: #fff;
}

/* Buscador */
.theme-light .buscador {
    background-color: var(--color-bg);
    border-bottom-color: var(--color-border);
}

.theme-light .buscador h2 {
    color: var(--color-text);
}

.theme-light .search-form input,
.theme-light .search-form select {
    background-color: var(--color-input-bg);
    color: var(--color-text);
    border-color: var(--color-input-border);
}

/* Cards */
.theme-light .equipo {
    background-color: var(--color-card);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.06);
}

.theme-light .equipo h3 {
    color: var(--color-text);
}

.theme-light .equipo p {
    color: #555;
}

.theme-light .equipo-logo img {
    background-color: #f1f3f5;
}

.theme-light .tag {
    color: #fff;
}

.theme-light .tag.division {
    background-color: var(--color-border);
    color: var(--color-text);
}

.theme-light .estado.closed {
    background-color: var(--color-error);
    color: #fff;
}

/* Piloto panel: solicitudes en una sola línea */
.equipo.solicitud-inline {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    padding: 12px 16px 55px 16px;
}

.equipo.solicitud-inline .equipo-logo img {
    width: 44px;
    height: 44px;
    margin-bottom: 0;
    padding: 8px;
}

.equipo.solicitud-inline .solicitud-body {
    flex: 1 1 auto;
    min-width: 0;
}

.equipo.solicitud-inline h3 {
    font-size: 16px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.equipo.solicitud-inline .solicitud-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow: hidden;
    margin-top: 1rem;
}

.equipo.solicitud-inline .tags {
    margin: 0;
}

.equipo.solicitud-inline .estado {
    padding: 6px 10px;
    font-size: 11px;
}

/* Range (iRating) styling */
.irating-range {
    width: 100%;
    height: 2px;
    background: transparent;
}

.irating-range::-webkit-slider-runnable-track {
    height: 4px;
    background: #2b2b2b;
    border-radius: 2px;
}

.irating-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    margin-top: -6px;
    width: 16px;
    height: 16px;
    background: var(--color-primary);
    border-radius: 50%;
    border: 2px solid #111;
}

.irating-range:focus {
    outline: none;
}

.irating-range::-moz-range-track {
    height: 4px;
    background: #2b2b2b;
    border-radius: 2px;
}

.irating-range::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--color-primary);
    border: 2px solid #111;
    border-radius: 50%;
}

/* Modal light theme overrides */
.theme-light .modal-content {
    background: #ffffff !important;
    color: #111 !important;
    border-color: var(--color-border) !important;
}

.theme-light .modal-header {
    border-bottom-color: var(--color-border) !important;
}

.theme-light .irating-range::-webkit-slider-runnable-track {
    background: #dee2e6;
}

.theme-light .irating-range::-moz-range-track {
    background: #dee2e6;
}

.theme-light .irating-range::-webkit-slider-thumb {
    border-color: #fff;
}

.theme-light .irating-range::-moz-range-thumb {
    border-color: #fff;
}

/* Footer */
.theme-light .footer {
    background-color: var(--color-card);
    color: #666;
    border-top-color: var(--color-border);
}

#formConfigPanel label {
    font-weight: 500;
}
#informacionModal label {
    font-weight: 500;
}

.nombre_equipo {
    min-height: 3rem;
}

/* Anuncio meta info */
.mas-info-equipo {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 8px 0 12px;
    color: var(--color-muted);
    font-size: 12px;
}
.mas-info-equipo span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 4px 8px;
}
.mas-info-equipo a {
    color: var(--color-text);
}
.mas-info-equipo a:hover {
    color: var(--color-primary);
}


/* Anuncio meta info */
.anuncio-meta {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 8px 0 12px;
    color: var(--color-muted);
    font-size: 12px;
    min-height: 5rem;
}
.anuncio-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 4px 8px;
    height: 2rem;
}
.anuncio-meta a {
    color: var(--color-text);
}
.anuncio-meta a:hover {
    color: var(--color-primary);
}
.theme-light .anuncio-meta span {
    background: #fff;
    border-color: var(--color-border);
}

.user-login .card {
    background-color: var(--color-card);
    border-color: var(--color-border);
}

.card {
    background-color: var(--color-card);
    border-color: var(--color-border);
}


/* Botón Formulario - Estilo Racing */
/* Botón Formulario - Estilo Racing */
.boton-form {
    display: inline-block;
    background: linear-gradient(135deg, #e70b0b 0%, #8b0000 100%);
    color: #fff;
    padding: 12px 28px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(231, 11, 11, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.boton-form::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-25deg);
    transition: left 0.6s ease;
}

.boton-form:hover::before {
    left: 125%;
}

.boton-form:hover {
    background: linear-gradient(135deg, #ff1a1a 0%, #a00000 100%);
    box-shadow: 0 6px 25px rgba(255, 26, 26, 0.4);
    transform: translateY(-2px);
}

.boton-form.dark {
    background: #111;
    color: #fff;
    border: 1px solid #e70b0b;
}

.boton-form.dark:hover {
    background: #e70b0b;
    color: #fff;
    box-shadow: 0 0 15px rgba(231, 11, 11, 0.5);
}

/* Estado filtro: Pendiente */
.boton-form.filtro-pendiente {
    background: linear-gradient(135deg, #969693 0%, #797574 100%);
    box-shadow: 0 4px 15px rgba(183, 182, 180, 0.3);
    padding: 14px 14px;
    font-size: 14px;
    border-radius: 8px;
}
.boton-form.filtro-pendiente:hover {
    background: linear-gradient(135deg, #ceccca 0%, #81807e 100%);
    box-shadow: 0 6px 20px rgba(103, 102, 101, 0.4);
}

/* Estado filtro: Aceptada */
.boton-form.filtro-aceptada {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    box-shadow: 0 4px 15px rgba(40,167,69,0.3);
    padding: 14px 14px;
    font-size: 14px;
    border-radius: 8px;
}
.boton-form.filtro-aceptada:hover {
    background: linear-gradient(135deg, #2ecc71 0%, #249e55 100%);
    box-shadow: 0 6px 20px rgba(46,204,113,0.4);
}

/* Estado filtro: Rechazada */
.boton-form.filtro-rechazada {
    background: linear-gradient(135deg, #ff4d4d 0%, #a00000 100%);
    box-shadow: 0 4px 15px rgba(255,77,77,0.3);
    padding: 14px 14px;
    font-size: 14px;
    border-radius: 8px;
}
.boton-form.filtro-rechazada:hover {
    background: linear-gradient(135deg, #ff6666 0%, #cc0000 100%);
    box-shadow: 0 6px 20px rgba(255,102,102,0.4);
}

/* Botón Formulario - Estilo Racing (Cerrar / Cancelar) */
.boton-form-closed {
    /*display: inline-block;*/
    background: linear-gradient(135deg, #444 0%, #1c1c1c 100%);
    color: #fff;
    padding: 12px 28px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.boton-form-closed::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.25), transparent);
    transform: skewX(-25deg);
    transition: left 0.6s ease;
}

.boton-form-closed:hover::before {
    left: 125%;
}

.boton-form-closed:hover {
    background: linear-gradient(135deg, #666 0%, #2a2a2a 100%);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}
.estado-wrapper {
    position: relative;
}
.estado-menu {
    position: absolute;
    top: 110%;
    right: 0;
    background: #181818;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 6px 0;
    z-index: 100;
    min-width: 160px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    white-space: nowrap;
}
.estado-menu button {
    display: block;
    width: 100%;
    background: none;
    border: none;
    color: #fff;
    text-align: left;
    padding: 8px 16px;
    font-size: 14px;
    transition: background 0.2s;
    white-space: nowrap;
    cursor: pointer;
}
.estado-menu button:hover {
    background: rgba(255,255,255,0.1);
}

/* ============================
   HOME - Secciones nuevas
   ============================ */

/* Sección Cómo funciona */
.como-funciona {
    background: linear-gradient(135deg, var(--color-card) 0%, var(--color-bg) 100%);
    border-top: 3px solid var(--color-primary);
    border-bottom: 3px solid var(--color-primary);
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.como-funciona::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(231, 11, 11, 0.05) 50%, transparent 100%);
    animation: scanEffect 8s linear infinite;
}

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

.como-funciona h2 {
    color: var(--color-text);
    margin-bottom: 50px;
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(231, 11, 11, 0.3);
    position: relative;
    z-index: 1;
}

.como-funciona h4 {
    color: var(--color-primary);
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

.como-funciona p {
    color: var(--color-muted);
    max-width: 300px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1.05rem;
    position: relative;
    z-index: 1;
}

.como-funciona .col-md-4 {
    transition: transform 0.4s ease;
    position: relative;
    z-index: 1;
}

.como-funciona .col-md-4:hover {
    transform: translateY(-10px);
}

/* Hero secundario */
.hero-secundario {
    background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), url('/static/media/img/home/header.webp') center/cover no-repeat;
    color: #fff;
    border-top: 3px solid var(--color-primary);
    border-bottom: 3px solid var(--color-primary);
}
.hero-secundario h2 {
    font-size: 2rem;
    letter-spacing: 1px;
}
.hero-secundario p {
    max-width: 600px;
    margin: 0 auto 25px;
    color: #ddd;
}

/* Estadísticas */
.estadisticas {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    border-top: 3px solid var(--color-primary);
    border-bottom: 3px solid var(--color-primary);
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

/* Light theme for estadisticas */
.theme-light .estadisticas {
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 50%, #ffffff 100%);
}

.theme-light .estadisticas::before {
    background:
            repeating-linear-gradient(
                    0deg,
                    transparent,
                    transparent 50px,
                    rgba(231, 11, 11, 0.03) 50px,
                    rgba(231, 11, 11, 0.03) 51px
            );
}

.theme-light .estadisticas p {
    color: #555;
}

.estadisticas::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
            repeating-linear-gradient(
                    0deg,
                    transparent,
                    transparent 50px,
                    rgba(231, 11, 11, 0.05) 50px,
                    rgba(231, 11, 11, 0.05) 51px
            );
    pointer-events: none;
}

.estadisticas h3 {
    font-size: 3rem;
    color: var(--color-primary);
    font-weight: 900;
    text-shadow: 0 0 20px rgba(231, 11, 11, 0.6);
    margin-bottom: 10px;
    animation: counterGlow 2s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes counterGlow {
    0%, 100% { text-shadow: 0 0 20px rgba(231, 11, 11, 0.6); }
    50% { text-shadow: 0 0 30px rgba(231, 11, 11, 1); }
}

.estadisticas p {
    color: var(--color-muted);
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

/* Blog preview */
.blog-preview {
    background: linear-gradient(135deg, var(--color-card) 0%, var(--color-bg) 100%);
    border-top: 3px solid var(--color-primary);
    border-bottom: 3px solid var(--color-primary);
    padding: 80px 20px;
    position: relative;
}

.blog-preview::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(231, 11, 11, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.blog-preview h2 {
    position: relative;
    z-index: 1;
}

.blog-preview .card {
    border: 2px solid var(--color-border);
    border-radius: 12px;
    background-color: var(--color-card);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.blog-preview .card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(231, 11, 11, 0.1) 50%, transparent 100%);
    transition: left 0.6s ease;
}

.blog-preview .card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(231, 11, 11, 0.35);
    border-color: var(--color-primary);
}

.blog-preview .card:hover::before {
    left: 100%;
}

.blog-preview .card img {
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-preview .card:hover img {
    transform: scale(1.1);
}

.blog-preview .card-body {
    padding: 25px;
    position: relative;
    z-index: 1;
}

.blog-preview .card-title {
    color: var(--color-text);
    min-height: 7rem;
    font-weight: 700;
    font-size: 1.3rem;
}

.blog-preview .card-text {
    color: var(--color-muted);
    min-height: 10rem;
    line-height: 1.7;
}

/* Estilo específico para tema claro en tarjetas del blog */
.theme-light .blog-preview .card {
    background-color: #fff;
    border: 2px solid #ddd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Testimonios */
.testimonios {
    background: linear-gradient(135deg, #111, #1a1a1a);
    border-top: 3px solid var(--color-primary);
}
.testimonios h2 {
    color: var(--color-primary);
    font-weight: 900;
    text-shadow: 0 0 20px rgba(231, 11, 11, 0.6);
    margin-bottom: 10px;
    animation: counterGlow 2s ease-in-out infinite;
    position: relative;
    z-index: 1;
}
.testimonios blockquote {
    font-size: 1.2rem;
    color: #ddd;
    max-width: 600px;
    margin: 0 auto;
    font-style: italic;
}
.testimonios .blockquote-footer {
    color: var(--color-muted);
    font-size: 0.9rem;
    margin-top: 10px;
}

.rgpd-links a {
    color: var(--color-primary);
    text-decoration: none;
}
.rgpd-links a:hover {
    text-decoration: underline;
}

/* ============================
   BUSCADOR
   ============================ */

#buscador h2 {
    font-size: 2rem;
}
#formBuscador #reset_search {
    display: block;
    font-style: italic;
    margin-top: 6px;
    margin-right: 4rem;
    text-align: right;
    width: 100%;
}

/* ============================
   BLOG – Diseño adaptado al nuevo estilo
   ============================ */

.blog-main-area {
    background-color: var(--color-bg);
    padding: 80px 0;
    color: var(--color-text);
}

/* Contenedor principal de los posts */
.blog-main-single {
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1rem;
}

.blog-main-single:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 25px rgba(231, 11, 11, 0.25);
}

/* Imagen destacada */
.bms-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-bottom: 2px solid var(--color-primary);
}

/* Contenido */
.bms-content {
    padding: 25px 30px 35px;
}

.bms-date {
    background: var(--color-primary);
    border-radius: 6px;
    padding: 8px 12px;
    text-align: center;
    color: #fff;
    display: inline-block;
}

.bms-date span {
    font-size: 1.3rem;
    font-weight: bold;
    display: block;
}

.bms-date p {
    font-size: 0.8rem;
    margin: 0;
}

/* Título y meta info */
.bms-title h4 a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s;
}

.bms-title h4 a:hover {
    color: var(--color-primary);
}

.bms-lv {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
    display: flex;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--color-muted);
}

.bms-lv i {
    color: var(--color-primary);
    margin-right: 5px;
}

/* Intro */
.bms-content p {
    color: var(--color-muted);
    line-height: 1.6;
}

/* Botón Leer más */
.bms-btn a {
    display: inline-block;
    background: linear-gradient(135deg, #e70b0b 0%, #8b0000 100%);
    color: #fff;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.bms-btn a:hover {
    background: linear-gradient(135deg, #ff1a1a 0%, #a00000 100%);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(231, 11, 11, 0.4);
}

/* Sidebar */
.blog-sidebar {
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 25px;
    position: sticky;
    top: 100px;
}

.bs-widget-title h5 {
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 10px;
    margin-bottom: 25px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

.bs-post {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bs-post-single {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.bs-post-img img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.bs-post-content h6 a {
    color: var(--color-text);
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.3s;
}

.bs-post-content h6 a:hover {
    color: var(--color-primary);
}

.bs-post-content span {
    font-size: 0.8rem;
    color: var(--color-muted);
}

/* Paginación */
.paginacion {
    text-align: center;
    margin-top: 50px;
}

.paginacion a {
    display: inline-block;
    background-color: var(--color-card);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    padding: 8px 14px;
    margin: 0 4px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

.paginacion a:hover,
.paginacion a.active {
    background-color: var(--color-primary);
    color: #fff;
}


/* Cookies */

.gdprcookie {
    position: fixed;
    color: #fff;
    font-size: 1.2em;
    line-height: 1.5em;
    bottom: 0;
    width: 100%;
    padding: 1rem;
    background: rgba(0,0,0,.9);
    z-index: 9999!important
}

.gdprcookie-intro,.gdprcookie-types {
    margin: auto;
    padding-right: 15px;
    padding-left: 15px;
    max-width: 1140px
}

.gdprcookie h6 {
    margin-bottom: .5rem;
    font-size: 2.25rem;
    color: #fff
}

.gdprcookie h5 {
    margin-bottom: 2.5rem;
    font-weight: 400;
    font-size: 1.25rem;
    color: #fff
}

.gdprcookie p {
    font-size: 1rem;
    color: rgba(255,255,255,.75)
}

.gdprcookie h2 {
    font-size: 1.1em
}

.gdprcookie-buttons button {
    color: #fff;
    font-family: inherit;
    font-size: 1.1rem;
    padding: .5rem 2.75rem;
    border: .05rem solid currentColor;
    border-radius: .15rem;
    margin: 0 .5rem 1rem;
    background: 0 0;
    cursor: pointer
}

.gdprcookie-buttons button:disabled {
    color: rgba(255,255,255,.5)
}

.gdprcookie-types input[type=checkbox] {
    transform: scale(1.5);
    margin: 10px!important;
    transition: .3s
}

.gdprcookie-types {
    margin: 1.5rem auto 2.5rem;
    padding: 1.5rem 1.75rem;
    border: 1px solid rgba(255,255,255,.75)
}

.gdprcookie-types ul {
    overflow: hidden;
    padding: 0;
    margin: 1rem 0
}

.gdprcookie-types li {
    padding: 0;
    margin: 0;
    width: 33%;
    display: block;
    list-style: none;
    float: left;
    color: #fff
}

.gdprcookie-types li label {
    font-size: 1rem;
    color: #fff
}

.btn-cookies {
    background:  var(--color-card);
    border: 1px solid var(--color-primary);
    color: var(--color-text);
    transition: 0.3s ease;
}

.btn-cookies:hover {
    background: var(--color-primary);
    color: var(--color-card);
    transform: scale(1.1);
    border: 0;
}
.ekko-lightbox-container {
    color: #000;
}

/* ============================================
   CUSTOM FAQ ACCORDION COLORS – Teams iRacing
   ============================================ */

/* Accordion button (question) – dark theme */
.accordion-button {
    background-color: var(--color-card);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    box-shadow: none !important;
}

/* Hover */
.accordion-button:hover {
    background-color: var(--color-card-hover);
    color: var(--color-text);
}

/* When accordion is open */
.accordion-button:not(.collapsed) {
    background-color: var(--color-primary);
    color: #fff !important;
    box-shadow: none;
}

/* Remove default Bootstrap blue focus */
.accordion-button:focus {
    box-shadow: none !important;
    border-color: var(--color-primary);
}

/* Flecha del acordeón en rojo (ambos temas) */
.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23e70b0b'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
    filter: none !important;
}

/* Flecha blanca cuando está abierto (contrasta con fondo rojo) */
.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

/* Accordion body text */
.accordion-body {
    background-color: var(--color-card);
    color: var(--color-text); /* white in dark theme */
}

/* LIGHT THEME OVERRIDES */
.theme-light .accordion-button {
    background-color: #fff;
    color: #111;
    border-color: var(--color-border);
}

.theme-light .accordion-button:hover {
    background-color: #f2f2f2;
    color: #111;
}

.theme-light .accordion-button:not(.collapsed) {
    background-color: var(--color-primary);
    color: #fff !important;
}

.theme-light .accordion-body {
    background-color: #fff;
    color: #000; /* black in light theme */
}
.badge-dashboard {
    position: absolute;
    top: -14px;
    right: -8px;
    font-size: 0.75rem;
    padding: 4px 8px;
    font-weight: normal;
}

.redes-sociales a{
    color: var(--color-text)!important;
    transition: 0.3s ease;
}
.redes-sociales a:hover {
    color: var(--color-primary)!important;
    transform: scale(1.1);
}

.equipo-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.equipo-info .info-block {
    background: var(--color-card-hover);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.equipo-info .info-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.equipo-info .info-block h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.equipo-info .info-block h4 i {
    font-size: 1rem;
    opacity: 0.8;
}

.equipo-info .info-block p {
    margin: 0;
    color: var(--color-text);
    font-size: 0.95rem;
    line-height: 1.4;
}

.ekko-lightbox .modal-header {
    display: none;
}

/* Fondo blanco para toda la sección de detalle de equipo */
.equipo-expand {
    background-color: #fff !important;
    padding-bottom: 50px;
}

/* Fondo de las cajas en modo claro */
.theme-light .equipo-expand .info-block {
    background-color: #f9f9f9 !important;
}

/* Centrar correctamente logos */
.equipo-expand img {
    display: block;
    margin: 0 auto;
}

/* Redes sociales específicas para perfil de equipo */
.redes-sociales-equipo {
    display: grid;
    gap: 8px !important;
}

.redes-sociales-equipo a {
    display: block;
    text-align: left;
    padding: 6px 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-card);
    color: var(--color-text) !important;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.redes-sociales-equipo a:hover {
    background: var(--color-card-hover);
    color: var(--color-primary) !important;
    transform: translateX(4px);
}

/* Asegurar estilo adecuado en tema claro */
.theme-light .redes-sociales-equipo a {
    background: #fff;
    border-color: var(--color-border);
}

.theme-light .redes-sociales-equipo a:hover {
    background: var(--color-card-hover);
}

/* Modal Racing - Diseño Premium */
.modal-racing {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%) !important;
    color: #ffffff !important;
    border: 2px solid transparent !important;
    background-image:
            linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%),
            linear-gradient(90deg, #ff3333, #ff6b1a, #ffd700, #ff3333) !important;
    background-origin: border-box !important;
    background-clip: padding-box, border-box !important;
    border-radius: 16px !important;
    box-shadow:
            0 20px 60px rgba(255, 51, 51, 0.3),
            0 0 40px rgba(255, 107, 26, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    position: relative;
    overflow: hidden;
}

.modal-racing::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 2px;
    background: linear-gradient(90deg,
    transparent,
    rgba(255, 51, 51, 0.8),
    rgba(255, 107, 26, 0.8),
    transparent
    );
    animation: racing-scan 3s linear infinite;
}

@keyframes racing-scan {
    0% { left: -100%; }
    100% { left: 100%; }
}

.modal-racing-header {
    border-bottom: 2px solid rgba(255, 51, 51, 0.3) !important;
    background: linear-gradient(180deg,
    rgba(255, 51, 51, 0.08) 0%,
    rgba(255, 107, 26, 0.05) 50%,
    transparent 100%
    ) !important;
    padding: 1.25rem 1.5rem !important;
    position: relative;
}

.modal-racing-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
    transparent,
    #ff3333,
    #ff6b1a,
    #ffd700,
    #ff6b1a,
    #ff3333,
    transparent
    );
    background-size: 200% 100%;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.modal-racing .modal-title {
    color: #ffffff !important;
    text-shadow:
            0 0 20px rgba(255, 51, 51, 0.5),
            0 0 40px rgba(255, 107, 26, 0.3),
            0 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
}

.modal-racing .modal-title i {
    color: #ff3333;
    filter: drop-shadow(0 0 8px rgba(255, 51, 51, 0.8));
    margin-right: 0.5rem;
}

/* Inputs Racing - Diseño Profesional */
.racing-input {
    background: linear-gradient(135deg,
    rgba(20, 20, 20, 0.95) 0%,
    rgba(30, 30, 30, 0.9) 100%
    ) !important;
    border: 2px solid rgba(255, 51, 51, 0.25) !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    padding: 0.75rem 1rem !important;
    font-weight: 500 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow:
            0 2px 8px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
    position: relative;
}

.racing-input::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
    font-style: italic;
}

.racing-input:hover {
    border-color: rgba(255, 51, 51, 0.5) !important;
    box-shadow:
            0 4px 16px rgba(255, 51, 51, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    transform: translateY(-1px);
}

.racing-input:focus {
    background: linear-gradient(135deg,
    rgba(25, 25, 25, 0.98) 0%,
    rgba(35, 35, 35, 0.95) 100%
    ) !important;
    border-color: #ff3333 !important;
    box-shadow:
            0 0 0 3px rgba(255, 51, 51, 0.15),
            0 0 30px rgba(255, 51, 51, 0.3),
            0 8px 24px rgba(255, 107, 26, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    outline: none !important;
    transform: translateY(-2px);
}

/* Select específico */
select.racing-input {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ff3333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 16px 12px !important;
    padding-right: 2.5rem !important;
}

/* Textarea específico */
textarea.racing-input {
    resize: vertical;
    min-height: 80px;
}

/* Input file específico */
input[type="file"].racing-input {
    padding: 0.5rem 1rem !important;
}

input[type="file"].racing-input::file-selector-button {
    background: linear-gradient(135deg, #ff3333 0%, #ff6b1a 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    margin-right: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 51, 51, 0.3);
}

input[type="file"].racing-input::file-selector-button:hover {
    background: linear-gradient(135deg, #ff4444 0%, #ff7b2a 100%);
    box-shadow: 0 6px 20px rgba(255, 51, 51, 0.4);
    transform: translateY(-2px);
}

/* Labels */
.modal-racing .form-label {
    color: #e0e0e0 !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    margin-bottom: 0.5rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.modal-racing .form-label.fw-bold {
    color: #ffffff !important;
    text-shadow:
            0 0 10px rgba(255, 51, 51, 0.3),
            0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Text muted */
.modal-racing .text-muted {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 0.85rem !important;
}

/* Checkboxes */
.modal-racing .form-check-input {
    background-color: rgba(30, 30, 30, 0.9) !important;
    border: 2px solid rgba(255, 51, 51, 0.3) !important;
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-racing .form-check-input:checked {
    background-color: #ff3333 !important;
    border-color: #ff3333 !important;
    box-shadow:
            0 0 0 3px rgba(255, 51, 51, 0.2),
            0 0 15px rgba(255, 51, 51, 0.4);
}

.modal-racing .form-check-input:focus {
    box-shadow:
            0 0 0 3px rgba(255, 51, 51, 0.25),
            0 0 20px rgba(255, 51, 51, 0.3) !important;
    border-color: #ff3333 !important;
}

.modal-racing .form-check-label {
    color: #e0e0e0 !important;
    cursor: pointer;
    user-select: none;
}

/* Botón cerrar */
.modal-racing .btn-close {
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ff3333'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat !important;
    opacity: 0.8 !important;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 8px rgba(255, 51, 51, 0.6));
}

.modal-racing .btn-close:hover {
    opacity: 1 !important;
    filter: drop-shadow(0 0 12px rgba(255, 51, 51, 0.9));
    transform: rotate(90deg) scale(1.1);
}

/* Líneas divisorias */
.modal-racing hr {
    border-color: rgba(255, 51, 51, 0.2) !important;
    opacity: 1 !important;
    margin: 1.5rem 0 !important;
    background: linear-gradient(90deg,
    transparent,
    rgba(255, 51, 51, 0.3),
    transparent
    );
    height: 1px;
    border: none;
}

/* Backdrop del modal */
.modal-backdrop.show {
    opacity: 0.85 !important;
    background: radial-gradient(circle at center,
    rgba(10, 10, 10, 0.95),
    rgba(0, 0, 0, 0.98)
    ) !important;
}

/* Animación de entrada del modal */
.modal.fade .modal-dialog {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s ease;
}

.modal.show .modal-dialog {
    transform: none;
}


/* Scrollbar personalizada para el modal */
.modal-racing .modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-racing .modal-body::-webkit-scrollbar-track {
    background: rgba(20, 20, 20, 0.5);
    border-radius: 10px;
}

.modal-racing .modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff3333, #ff6b1a);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 51, 51, 0.5);
}

.modal-racing .modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff4444, #ff7b2a);
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.7);
}

.racing-panel-hero {
    position: relative;
    background:
            linear-gradient(180deg,
            rgba(15, 15, 20, 0.97) 0%,
            rgba(20, 20, 28, 0.98) 100%
            ),
            url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    padding: 3.5rem 2rem;
    margin-bottom: 2rem;
    overflow: hidden;
    border-radius: 0 0 24px 24px;
    box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* Bandera a cuadros sutil en esquina */
.racing-bg-effects {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Bandera a cuadros con ondulación sutil */
.racing-grid {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 200px;
    height: 80px;
    opacity: 0.1;
    background-image:
            repeating-linear-gradient(90deg,
            #fff 0px, #fff 20px,
            transparent 20px, transparent 40px
            ),
            repeating-linear-gradient(0deg,
            #fff 0px, #fff 20px,
            transparent 20px, transparent 40px
            );
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    transform: skewX(-15deg);
    animation: flag-wave 3s ease-in-out infinite;
}

@keyframes flag-wave {
    0%, 100% { transform: skewX(-15deg) scaleX(1); }
    50% { transform: skewX(-12deg) scaleX(1.02); }
}

/* Líneas de velocidad que pasan */
.racing-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 255, 255, 0.02) 45%,
    rgba(255, 255, 255, 0.04) 50%,
    rgba(255, 255, 255, 0.02) 55%,
    transparent 60%,
    transparent 100%
    );
    background-size: 300% 100%;
    animation: speed-lines 4s linear infinite;
}

@keyframes speed-lines {
    0% { background-position: 200% 0; }
    100% { background-position: -100% 0; }
}

/* Barra de kerb realista estilo circuito */
.racing-lines::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 12px;
    background:
            repeating-linear-gradient(45deg,
            #cc0000 0px,
            #cc0000 30px,
            #ffffff 30px,
            #ffffff 60px
            );
    box-shadow:
            inset 0 2px 5px rgba(0,0,0,0.6),
            0 -1px 2px rgba(255,255,255,0.1);
    border-top: 0 solid rgba(255,255,255,0.05);
}

/* Resplandor que pulsa sutilmente */
.racing-glow {
    position: absolute;
    top: 0;
    left: 50%;
    width: 100%;
    max-width: 600px;
    height: 100%;
    background: radial-gradient(ellipse at center top,
    rgba(200, 0, 0, 0.08) 0%,
    transparent 60%
    );
    transform: translateX(-50%);
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Contenido del panel */
.racing-panel-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

/* Header row - Avatar al lado del título */
.racing-header-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

/* Avatar estático sin animación */
.team-avatar-static {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    position: relative;
}

.team-avatar-static img,
.team-avatar-static > div {
    width: 100px !important;
    height: 100px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ff3333;
    box-shadow:
            0 0 20px rgba(255, 51, 51, 0.4),
            0 0 40px rgba(255, 107, 26, 0.2);
}

/* Bloque de título */
.racing-title-block {
    text-align: left;
}


/* Títulos */
.racing-panel-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.title-accent {
    font-size: 1.2rem;
    color: #ff3333;
    text-shadow: 0 0 20px rgba(255, 51, 51, 0.8),
    0 0 40px rgba(255, 51, 51, 0.4);
    letter-spacing: 8px;
    font-weight: 600;
}

.title-main {
    font-size: 3rem;
    background: linear-gradient(135deg, #ffffff 0%, #ff3333 50%, #ff6b1a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(255, 51, 51, 0.5));
}

.racing-panel-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    font-weight: 500;
}

.racing-panel-subtitle i {
    color: #ff3333;
    margin-right: 0.5rem;
    filter: drop-shadow(0 0 8px rgba(255, 51, 51, 0.8));
}

/* Grid de botones */
.racing-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

/* Botones Racing */
.racing-btn {
    position: relative;
    background: linear-gradient(135deg,
    rgba(20, 20, 20, 0.9) 0%,
    rgba(30, 25, 28, 0.95) 100%
    );
    border: 2px solid rgba(255, 51, 51, 0.3);
    color: #ffffff;
    padding: 1.5rem 1rem;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

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

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

.btn-icon-wrapper {
    width: 50px;
    height: 50px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff3333, #ff6b1a);
    border-radius: 12px;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 51, 51, 0.4);
}

.btn-icon-wrapper i {
    color: #ffffff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
    transparent,
    rgba(255, 51, 51, 0.8),
    transparent
    );
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.racing-btn:hover {
    border-color: #ff3333;
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(255, 51, 51, 0.4),
    0 0 40px rgba(255, 107, 26, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.racing-btn:hover .btn-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 25px rgba(255, 51, 51, 0.6);
}

.racing-btn:hover .btn-glow {
    transform: scaleX(1);
}

.racing-btn:active {
    transform: translateY(-2px);
}

/* Variantes de color para botones */
.racing-btn-config .btn-icon-wrapper {
    background: linear-gradient(135deg, #ff3333, #ff6b1a);
}

.racing-btn-exit .btn-icon-wrapper {
    background: linear-gradient(135deg, #666666, #999999);
}





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

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

.btn-icon-wrapper {
    width: 50px;
    height: 50px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff3333, #ff6b1a);
    border-radius: 12px;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 51, 51, 0.4);
}

.btn-icon-wrapper i {
    color: #ffffff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
    transparent,
    rgba(255, 51, 51, 0.8),
    transparent
    );
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.racing-btn:hover {
    border-color: #ff3333;
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(255, 51, 51, 0.4),
    0 0 40px rgba(255, 107, 26, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.racing-btn:hover .btn-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 25px rgba(255, 51, 51, 0.6);
}

.racing-btn:hover .btn-glow {
    transform: scaleX(1);
}

.racing-btn:active {
    transform: translateY(-2px);
}

/* Variantes de color para botones */
.racing-btn-create .btn-icon-wrapper {
    background: linear-gradient(135deg, #00ff88, #00cc66);
}

.racing-btn-create:hover {
    border-color: #00ff88;
    box-shadow: 0 8px 30px rgba(0, 255, 136, 0.3),
    0 0 40px rgba(0, 204, 102, 0.2);
}

.racing-btn-requests .btn-icon-wrapper {
    background: linear-gradient(135deg, #3399ff, #0066cc);
}

.racing-btn-requests:hover {
    border-color: #3399ff;
    box-shadow: 0 8px 30px rgba(51, 153, 255, 0.3),
    0 0 40px rgba(0, 102, 204, 0.2);
}

.racing-btn-exit .btn-icon-wrapper {
    background: linear-gradient(135deg, #ff9933, #cc6600);
}

.racing-btn-exit:hover {
    border-color: #ff9933;
    box-shadow: 0 8px 30px rgba(255, 153, 51, 0.3),
    0 0 40px rgba(204, 102, 0, 0.2);
}

/* Variantes de color para botones */
.racing-btn-back .btn-icon-wrapper {
    background: linear-gradient(135deg, #666666, #999999);
}

.racing-btn-filter .btn-icon-wrapper {
    background: linear-gradient(135deg, #ff3333, #ff6b1a);
}

.popup-alert {
    transition: opacity 0.4s ease;
}

/* Estilo sutil para solicitudes nuevas */
.solicitud-nueva {
    border-left: 4px solid #ff3333 !important;
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.15) !important;
}

/* Dark Theme (default) */
.sponsors-section {
    background: linear-gradient(135deg, #0e0e0e 0%, #1a1a1a 100%);
    overflow: hidden;
    position: relative;
}

.sponsors-section h2 {
    color: var(--color-text);
    position: relative;
    z-index: 2;
}

/* Light Theme */
.theme-light .sponsors-section {
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
}

.theme-light .sponsors-section h2 {
    color: #000000;
}

.sponsors-wrapper {
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    max-width: 100%;
}

.sponsors-track {
    display: flex;
    gap: 80px;
    animation: scroll-sponsors 25s linear infinite;
    width: max-content;
    align-items: center;
}

.sponsors-track:hover {
    animation-play-state: paused;
}

/* Sponsor Item - Clean design with zoom hover effect */
.sponsor-item {
    flex-shrink: 0;
    width: 280px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 20px;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.sponsor-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.sponsor-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: brightness(1);
}

/* Zoom effect on hover */
.sponsor-item:hover {
    transform: scale(1.15);
    z-index: 10;
}

.sponsor-item:hover img {
    transform: scale(1.1);
    filter: brightness(1.1) drop-shadow(0 2px 15px rgba(231, 11, 11, 0.3));
}

@keyframes scroll-sponsors {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .sponsor-item {
        width: 200px;
        height: 130px;
        padding: 15px;
    }

    .sponsors-track {
        gap: 50px;
        animation-duration: 20s;
    }
}

/* ======================================================
   EQUIPO PAGE - ANIMATED BORDER CARD & PROFESSIONAL TABS
   ====================================================== */

/* Animated Border Card - Team Profile */
.team-profile-card {
    position: relative;
    border-radius: 16px;
    padding: 3px;
    background: linear-gradient(135deg, var(--color-card) 0%, var(--color-card) 100%);
    overflow: hidden;
}

.team-profile-card::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: conic-gradient(
            from 0deg,
            #e70b0b,
            #ff6b35,
            #ff8c42,
            #ff6b35,
            #e70b0b,
            #ff6b35,
            #e70b0b
    );
    border-radius: 18px;
    z-index: -1;
    animation: rotateBorder 3s linear infinite;
}

.team-profile-card::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    background: var(--color-card);
    border-radius: 13px;
    z-index: -1;
}

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

.team-profile-card .card-body {
    background: var(--color-card);
    border-radius: 13px;
    position: relative;
    z-index: 1;
}

/* Professional Racing Tabs */
.racing-tabs {
    display: flex;
    gap: 8px;
    padding: 6px;
    background: var(--color-card);
    border-radius: 12px;
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.racing-tabs .nav-item {
    flex: 1;
}

.racing-tabs .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--color-muted);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.racing-tabs .nav-link i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.racing-tabs .nav-link::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #e70b0b, #ff6b35);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.racing-tabs .nav-link:hover {
    color: var(--color-text);
    background: rgba(231, 11, 11, 0.05);
}

.racing-tabs .nav-link:hover i {
    transform: scale(1.1);
}

.racing-tabs .nav-link:hover::before {
    width: 40%;
}

.racing-tabs .nav-link.active {
    background: linear-gradient(135deg, rgba(231, 11, 11, 0.1) 0%, rgba(255, 107, 53, 0.08) 100%);
    color: var(--color-text);
    box-shadow: 0 2px 8px rgba(231, 11, 11, 0.15);
}

.racing-tabs .nav-link.active::before {
    width: 60%;
    height: 3px;
}

.racing-tabs .nav-link.active i {
    color: #e70b0b;
}

/* Light theme adjustments */
.theme-light .racing-tabs {
    background: #fff;
    border-color: #e9ecef;
}

.theme-light .racing-tabs .nav-link:hover {
    background: rgba(231, 11, 11, 0.08);
}

.theme-light .racing-tabs .nav-link.active {
    background: linear-gradient(135deg, rgba(231, 11, 11, 0.12) 0%, rgba(255, 107, 53, 0.1) 100%);
}

.theme-light .team-profile-card::after {
    background: #fff;
}

.theme-light .team-profile-card .card-body {
    background: #fff;
}

/* Team Profile About Card */
.team-about-card {
    border-radius: 12px;
    border: 1px solid var(--color-border);
    overflow: hidden;
    background: var(--color-card);
}

.team-about-card .card-header {
    background: linear-gradient(135deg, rgba(231, 11, 11, 0.08) 0%, rgba(255, 107, 53, 0.05) 100%);
    border-bottom: 1px solid var(--color-border);
    padding: 14px 18px;
    color: var(--color-text);
}

.team-about-card .card-header::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #e70b0b, #ff6b35);
}

.team-about-card .card-body {
    background: var(--color-card);
}

.theme-light .team-about-card {
    border-color: #e9ecef;
}

.theme-light .team-about-card .card-header {
    background: linear-gradient(135deg, rgba(231, 11, 11, 0.1) 0%, rgba(255, 107, 53, 0.06) 100%);
}

.theme-light .team-about-card .card-body {
    background: #fff;
}

/* Roadmap Styles */
.roadmap-section {
    padding: 4rem 0;
}

/* Non-profit Banner */
.roadmap-banner {
    background: linear-gradient(135deg, rgba(255, 100, 50, 0.15) 0%, rgba(255, 50, 100, 0.15) 100%);
    border: 2px solid;
    border-image: linear-gradient(135deg, #ff6432, #ff3264) 1;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.roadmap-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
            radial-gradient(circle at 20% 50%, rgba(255, 100, 50, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 80% 50%, rgba(255, 50, 100, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.roadmap-banner .banner-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ff6432, #ff3264);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.roadmap-banner h3 {
    color: var(--color-text);
    font-weight: 700;
    margin-bottom: 1rem;
}

.roadmap-banner p {
    color: var(--color-text);
    max-width: 700px;
    margin: 0 auto 1.5rem;
}

.roadmap-banner .help-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.roadmap-banner .help-badge {
    background: rgba(255, 100, 50, 0.2);
    color: #ff6432;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.roadmap-banner .help-badge:hover {
    background: rgba(255, 100, 50, 0.3);
    transform: translateY(-2px);
}

.theme-light .roadmap-banner {
    background: linear-gradient(135deg, rgba(255, 100, 50, 0.1) 0%, rgba(255, 50, 100, 0.1) 100%);
}

/* Timeline Container */
.roadmap-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #ff6432 0%, #ff3264 50%, rgba(255, 50, 100, 0.3) 100%);
    border-radius: 2px;
}

/* Timeline Item */
.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: calc(50% + 40px);
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: calc(50% + 40px);
}

/* Timeline Node */
.timeline-node {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6432, #ff3264);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 0 30px rgba(255, 100, 50, 0.4);
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-node {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 0 40px rgba(255, 100, 50, 0.6);
}

/* Timeline Content Card */
.timeline-content {
    background: rgba(30, 30, 40, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 100, 50, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    max-width: 380px;
    position: relative;
    transition: all 0.3s ease;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background: rgba(30, 30, 40, 0.8);
    border: 1px solid rgba(255, 100, 50, 0.2);
    border-right: none;
    border-bottom: none;
    transform: rotate(45deg);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -11px;
    transform: rotate(135deg);
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -11px;
    transform: rotate(-45deg);
}

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 100, 50, 0.5);
    box-shadow: 0 10px 40px rgba(255, 100, 50, 0.15);
}

.theme-light .timeline-content {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 100, 50, 0.3);
}

.theme-light .timeline-content::before {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 100, 50, 0.3);
}

/* Timeline Date */
.timeline-date {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255, 100, 50, 0.2), rgba(255, 50, 100, 0.2));
    color: #ff6432;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Timeline Title */
.timeline-title {
    color: var(--color-text);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Timeline Description */
.timeline-description {
    color: var(--color-text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.in-progress {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.status-badge.in-progress::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #4caf50;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.status-badge.planned {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
}

.status-badge.future {
    background: rgba(156, 39, 176, 0.2);
    color: #9c27b0;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Community Section */
.community-cta {
    background: linear-gradient(135deg, rgba(30, 30, 40, 0.9) 0%, rgba(40, 30, 50, 0.9) 100%);
    border: 1px solid rgba(255, 100, 50, 0.2);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.community-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 100, 50, 0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.community-cta h3 {
    color: var(--color-text);
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.community-cta p {
    color: var(--color-text);
    max-width: 600px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.community-cta .btn-contribute {
    background: linear-gradient(135deg, #ff6432, #ff3264);
    color: #fff;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.community-cta .btn-contribute:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 100, 50, 0.3);
}

.theme-light .community-cta {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 245, 255, 0.95) 100%);
}

/* FAQs Redesign */
.faqs-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.faqs-intro p {
    color: var(--color-text);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Role Tabs */
.role-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.role-tab {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: rgba(30, 30, 40, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--color-text);
    font-weight: 600;
}

.role-tab:hover {
    border-color: rgba(255, 100, 50, 0.4);
    background: rgba(255, 100, 50, 0.1);
}

.role-tab.active {
    border-color: #ff6432;
    background: linear-gradient(135deg, rgba(255, 100, 50, 0.2), rgba(255, 50, 100, 0.2));
    color: var(--color-text);
}

.role-tab i {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #ff6432, #ff3264);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.theme-light .role-tab {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

.theme-light .role-tab:hover {
    background: rgba(255, 100, 50, 0.1);
}

.theme-light .role-tab.active {
    background: linear-gradient(135deg, rgba(255, 100, 50, 0.15), rgba(255, 50, 100, 0.15));
}

/* Role Content */
.role-content {
    display: none;
}

.role-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

/* Section Headers */
.faq-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(255, 100, 50, 0.3);
}

.faq-section-header i {
    font-size: 1.5rem;
    color: #ff6432;
}

.faq-section-header h3 {
    color: var(--color-text);
    font-weight: 700;
    margin: 0;
    font-size: 1.25rem;
}

/* Process Flow */
.process-flow {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
    justify-content: center;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 140px;
}

.process-step .step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(255, 100, 50, 0.2), rgba(255, 50, 100, 0.2));
    border: 2px solid #ff6432;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ff6432;
    margin-bottom: 0.75rem;
}

.process-step .step-title {
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.process-step .step-desc {
    font-size: 0.75rem;
    color: var(--color-text);
}

.process-arrow {
    font-size: 1.5rem;
    color: #ff6432;
    margin-top: 1rem;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(129, 199, 132, 0.1));
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 1.5rem;
}

.highlight-box.discord {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.1), rgba(114, 137, 218, 0.1));
    border-color: rgba(88, 101, 242, 0.4);
}

.highlight-box h5 {
    color: var(--color-text);
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.highlight-box.discord h5 i {
    color: #5865F2;
}

.highlight-box p {
    color: var(--color-text);
    margin: 0;
    font-size: 0.95rem;
}

/* General FAQs Title */
.general-faqs-title {
    text-align: center;
    margin: 3rem 0 2rem;
}

.general-faqs-title h2 {
    color: var(--color-text);
    font-weight: 700;
}

.general-faqs-title p {
    color: var(--color-text);
}