﻿/* VARIABLES DE MARCA */





/*TABLER*/

:root {
    --teal-dark: #1a5c47;
    --teal-medium: #2d7a5f;
    --lime-green: #d4ed17;
    --cc-neon: #d4ed17; /* Amarillo/Verde Tenis */
    --cc-green-dark: #7da678; /*#2d4d2a Verde Institucional Encabezado */
    --cc-footer-bg: #1e3a1b; /* Verde Oscuro Pie */
    --cc-text-dark: #1a2d40;
}

body {
    background-color: #f5f5f5;
}

.navbar-custom {
    background-color: var(--teal-dark);
    padding: 1rem 0;
}

.navbar-brand {
    font-style: italic;
    font-weight: bold;
    font-size: 1.5rem;
    color: white !important;
}

    .navbar-brand small {
        display: block;
        font-size: 0.5rem;
        letter-spacing: 2px;
        text-transform: uppercase;
    }

.nav-link-custom {
    color: white !important;
    margin-left: 1.5rem;
    font-size: 0.95rem;
}

.hero-section {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/hero-tennis2.png');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 6rem 0;
    position:  relative;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-content h1 {
    font-weight: 800;
    font-size: 2.8rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.35rem;
    font-weight: 300;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.btn-inscribir {
    background-color: var(--teal-medium);
    color: white;
    text-transform: uppercase;
    font-weight: bold;
    padding: 0.75rem 2rem;
    border: none;
    margin-top: 1.5rem;
}

    .btn-inscribir:hover {
        background-color: var(--teal-dark);
        color: white;
    }
.results-card {
    overflow: hidden; /* Evita que el contenido se vea mientras está cerrado */
    max-height: 0; /* Inicia en 0 */
    opacity: 0; /* Opcional: inicia invisible para un efecto más suave */
    transition: max-height 1.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s ease-out;
}

/* Esta clase se añadirá con JavaScript al cargar */
    .results-card.desplegado {
        max-height: 1000px; /* Un valor lo suficientemente alto para cubrir el contenido */
        opacity: 1;
    }

.results-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: relative;
    z-index: 20;
    border: 1px solid rgba(0,0,0,0.1);
}

.results-header {
    border-bottom: 3px solid var(--teal-dark);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-title {
    font-size: 1.25rem;
    font-weight: bold;
    color:#d2d8dd;
}

.tab-finalizados {
    color: #d2d8dd;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.match-item {
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

    .match-item:last-child {
        border-bottom: none;
    }

.match-date {
    font-size: 0.85rem;
    color: #d2d8dd;
    margin-bottom: 0.5rem;
}

.match-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.team-name {
    font-weight: bold;
    font-size: 1.1rem;
}

.team-subtitle {
    font-size: 0.85rem;
    color: #d2d8dd;
}

.score-badge {
    background-color: var(--lime-green);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1.25rem;
}

    .score-badge.gray {
        background-color: #6c757d;
    }

.btn-ver-resultados {
    background-color: var(--teal-dark);
    color: white;
    width: 100%;
    padding: 0.75rem;
    text-transform: uppercase;
    font-weight: bold;
    border: none;
    margin-top: 1rem;
}

    .btn-ver-resultados:hover {
        background-color: var(--teal-medium);
        color: white;
    }

.crear-circuito-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

/* Sección clickeable mejorada */
.circuito-section {
    padding: 1.5rem 0;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

    .circuito-section:last-child {
        border-bottom: none;
    }

    .circuito-section:hover {
        background-color: #f8f9fa;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        border-radius: 8px;
    }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.circuito-title-link {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--teal-dark);
    text-transform: uppercase;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

    .circuito-title-link:hover {
        /*color: var(--teal-medium);
            gap: 1rem;*/
    }

    .circuito-title-link i {
        /*font-size: 1.25rem;*/
        transition: transform 0.3s ease;
    }

    .circuito-title-link:hover i {
        transform: translateX(4px);
    }

.circuito-text {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

.my-5 {
    margin-top: -2rem !important;
}

.card-custom {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 100%;
}

.table-torneos {
    font-size: 0.9rem;
}

    .table-torneos thead {
        background-color: #f8f9fa;
    }

.destacado-card {
    text-align: center;
}

.trophy-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background-color: var(--teal-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.destacado-name {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.destacado-stats {
    color: #666;
    font-size: 0.95rem;
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
    margin: 0 0.5rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--teal-dark);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .crear-circuito-card {
        margin-top: 0;
    }

    .hero-section {
        min-height: auto;
        padding: 3rem 0;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .match-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .score-badge {
        align-self: flex-end;
    }

    .circuito-title-link {
        font-size: 1.25rem;
    }
}

/* Estilo para el botón destacado en el menú */
.nav-link-highlight {
    background-color: #d4ed17; /* Tu verde/amarillo neón */
    color: #1a2d40 !important; /* Texto oscuro para contraste */
    font-weight: bold;
    border-radius: 5px;
    padding: 8px 20px !important;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
}

    .nav-link-highlight:hover {
        background-color: #ffffff;
        box-shadow: 0 4px 12px rgba(212, 237, 23, 0.4);
        transform: translateY(-1px);
    }

/* Ajuste para que los links normales no se vean apretados */
.nav-link-custom {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/*  pagina crearcircuito*/

/* Estilos específicos para reforzar la venta */
.hero-mini {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/hero-tennis2.png');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    color: white;
    border-bottom: 4px solid #2d4d2a;
}

.feature-icon-circle {
    width: 48px;
    height: 48px;
    background: #d4ed17;
    color: #1a2d40;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 24px;
}

.benefit-card {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    height: 100%;
}

    .benefit-card:hover {
        transform: translateY(-5px);
    }

.cta-final-box {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
}

/*Pagina contacto*/


.hero-contacto {
    background: linear-gradient(rgba(26, 45, 64, 0.8), rgba(26, 45, 64, 0.8)), url('../images/hero-tennis2.png');
    background-size: cover;
    background-position: center;
    padding: 60px 0;
    color: white;
    text-align: center;
}

.contact-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-top: -40px; /* Superposición elegante sobre el hero */
}

.info-item i {
    color: #d4ed17;
    font-size: 24px;
    margin-bottom: 10px;
}

/*footer*/
.footer-custom {
    background-color: var(--teal-dark);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.text-cc-neon {
    color: #d4ed17; /* Verde Neón CourtCentral */
}

.tracking-widest {
    letter-spacing: 0.2em;
}

.footer-links a:hover {
    color: #d4ed17 !important;
}

.text-muted-opacity {
    color: rgba(255,255,255,0.4);
}

/* Enlace de WhatsApp con estilo */
.contact-link-footer {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

    .contact-link-footer:hover {
        color: #d4ed17;
    }

/* Iconos Sociales en Círculo */
.social-icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    color: #ffffff;
    transition: all 0.3s ease;
}

    .social-icon-circle:hover {
        background: #d4ed17;
        color: #1a2d40;
        transform: translateY(-3px);
    }

/* Ajuste responsive para móviles */
@media (max-width: 767.98px) {
    .footer-custom {
        text-align: center;
    }

    .footer-links {
        margin: 1.5rem 0;
    }
}


/* Contenedor del Spinner */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    display: none; /* Se activa con JS */
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(2px);
}

/* Animación del Icono CourtCentral */
.spinner-cc {
    width: 50px;
    height: 50px;
    animation: spin-cc 2s linear infinite;
}

@keyframes spin-cc {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Asegurar que la tarjeta de resultados sea relativa para el overlay */
.results-card {
    position: relative;
    min-height: 300px;
}

/* Overlay específico para la tabla Circuito*/
.table-container-custom {
    position: relative; /* Necesario para que el loader se posicione aquí */
    min-height: 200px;
}

.loading-overlay-table {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 45, 64, 0.6); /* Azul oscuro con transparencia */
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5;
    border-radius: 8px;
}

@keyframes victory-glow {
    0% {
        box-shadow: 0 0 0 rgba(212, 237, 23, 0);
    }

    50% {
        box-shadow: 0 0 30px rgba(212, 237, 23, 0.8);
    }

    100% {
        box-shadow: 0 0 0 rgba(212, 237, 23, 0);
    }
}

.celebration-glow {
    animation: victory-glow 2s ease-out;
    border-color: #d4ed17 !important;
}
/* Espaciado del paginador */
.pagination-container {
    margin-top: 5rem; /* Espacio generoso entre la última fila y el paginado */
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05); /* Línea divisoria muy suave */
}

/* Mejora visual de los botones de página */
.btn-outline-secondary.mx-1 {
    border-color: #e0e0e0;
    background-color: white;
}

.btn-cc-neon.active {
    border: none;
    font-weight: bold;
    transform: scale(1.1); /* Resalta la página actual */
}

/* Loader de Pantalla Completa */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 92, 71, 0.95); /* Tu --teal-dark con transparencia */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.loader-content {
    text-align: center;
}

/* Animación de rotación para el logo de CourtCentral */
.spinner-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    animation: spin-cc 2s linear infinite;
    filter: drop-shadow(0 0 10px rgba(212, 237, 23, 0.5));
}

@keyframes spin-cc {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.loader-text {
    color: var(--cc-neon);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: bold;
    font-size: 0.8rem;
}

.slick_horizontal {
    display: block;
    width: 100%;
    visibility: hidden; /* Ocultar hasta que slick inicie */
}

    .slick_horizontal.slick-initialized {
        visibility: visible; /* Mostrar solo cuando esté listo */
    }