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

:root {
    --primary-blue: #0066ff;
    --primary-dark: #0052cc;
    --bg-dark: #0a0a0a;
    --bg-card: #1a1a2e;
    --text-light: #ffffff;
    --text-gray: #b0b0b0;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --shadow: 0 10px 40px rgba(0, 102, 255, 0.2);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

/* HEADER MEJORADO - CENTRADO SIN LOGO */
.encabezado {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 5%;
    background: transparent;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.encabezado.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    padding: 15px 5%;
}

.menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.menu a {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-light);
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
    text-decoration: none;
    cursor: pointer;
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.menu a:hover::after {
    width: 100%;
}

.menu a:hover {
    color: var(--primary-blue);
}

.user-info {
    color: var(--primary-blue);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(0, 102, 255, 0.3);
}

/* HERO SECTION MEJORADO */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.carousel-item {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(70%);
}

/* CAPTION UNIFORME PARA TODOS */
.carousel-caption {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translate(-50%, 50%);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 20px 40px;
    border-radius: 15px;
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    border: 2px solid rgba(0, 102, 255, 0.3);
    animation: fadeInUp 1s ease;
    z-index: 2;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, 60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 50%);
    }
}

/* CONTROLES SEPARADOS DEL CONTENIDO */
.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 10px;
    z-index: 3;
    pointer-events: none;
}

.carousel-btn {
    background: rgba(0, 102, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 24px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    pointer-events: all;
    opacity: 0.7;
}

.carousel-btn:hover {
    background: var(--primary-blue);
    transform: scale(1.15);
    box-shadow: 0 5px 20px rgba(0, 102, 255, 0.5);
    opacity: 1;
}

.carousel-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 2;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.7);
}

.indicator.active {
    background: var(--primary-blue);
    width: 35px;
    border-radius: 8px;
    border-color: rgba(255, 255, 255, 0.3);
}

/* MODAL MEJORADO */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, var(--bg-card) 0%, #16213e 100%);
    padding: 45px;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0, 102, 255, 0.3);
    border: 2px solid rgba(0, 102, 255, 0.2);
    animation: slideUp 0.4s ease;
}

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

.close {
    color: var(--text-gray);
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1;
}

.close:hover {
    color: var(--primary-blue);
    transform: rotate(90deg);
}

.form-group {
    margin-bottom: 25px;
    clear: both;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-light);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 15px;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 102, 255, 0.5);
}

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

.toggle-form {
    text-align: center;
    margin-top: 25px;
    color: var(--text-gray);
}

.toggle-form a {
    color: var(--primary-blue);
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.toggle-form a:hover {
    color: #3385ff;
    text-decoration: underline;
}

/* SECCIÓN DEPORTES MEJORADA */
.deportes {
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    color: #111;
    padding: 120px 20px;
}

.deportes h2 {
    color: var(--primary-dark);
    font-size: 3rem;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 700;
}

.deportes > p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px;
    font-size: 18px;
    color: #555;
}

.deporte-section {
    max-width: 1200px;
    margin: 0 auto 100px;
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.deporte-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.12);
}

.deporte-section h3 {
    color: var(--primary-dark);
    font-size: 2.2rem;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 700;
}

.admin-panel {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
    display: none;
    border: 2px solid rgba(0, 102, 255, 0.1);
}

.admin-panel.show {
    display: block;
    animation: slideDown 0.4s ease;
}

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

.admin-panel h4 {
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

/* FORMULARIO CON ETIQUETAS */
.admin-form {
    display: grid;
    grid-template-columns: 2fr repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.admin-form > input:first-child {
    grid-column: 1 / -1;
}

.admin-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-form-field label {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.admin-form input {
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
    width: 100%;
}

.admin-form input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

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

.btn-admin {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-admin:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-add {
    background: linear-gradient(135deg, var(--success) 0%, #218838 100%);
    color: white;
}

.btn-update {
    background: linear-gradient(135deg, var(--warning) 0%, #e0a800 100%);
    color: #000;
}

.btn-delete {
    background: linear-gradient(135deg, var(--danger) 0%, #c82333 100%);
    color: white;
}

.btn-cancel {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
}

/* TABLA MEJORADA */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 30px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

table thead {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    color: white;
}

table th {
    padding: 18px 15px;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

table td {
    padding: 16px 15px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

table tbody tr {
    transition: all 0.3s;
    cursor: pointer;
    background: white;
}

table tbody tr:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: scale(1.01);
}

table tbody tr.selected {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    border-left: 4px solid var(--danger);
}

table tbody tr td:first-child {
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 1.1rem;
}

table tbody tr td:last-child {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 1.1rem;
}

/* SECCIÓN SOPORTE */
.soporte {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1a2e 100%);
    text-align: center;
    padding: 120px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.soporte h2 {
    color: var(--primary-blue);
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.soporte p {
    color: var(--text-gray);
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 600px;
}

.btn-contacto {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 16px 45px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.3);
}

.btn-contacto:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 102, 255, 0.5);
}

/* SECCIÓN INFORMACIÓN - TÍTULO OCULTO */
.informacion {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    color: #111;
    padding: 120px 20px;
}

.informacion h2 {
    display: none;
}

.info-carousel-wrapper {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 0 120px;
}

.info-carousel-item {
    background: white;
    padding: 50px 60px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.info-carousel-item h3 {
    color: var(--primary-dark);
    font-size: 2.2rem;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 700;
}

.info-carousel-item p {
    font-size: 17px;
    line-height: 1.9;
    text-align: justify;
    color: #444;
    font-weight: 400;
}

/* PIE DE PÁGINA MEJORADO */
.Pie {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    color: white;
    padding: 60px 5% 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--primary-blue);
    font-weight: 600;
}

.footer-section p {
    font-size: 15px;
    color: var(--text-gray);
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-section a {
    color: var(--text-gray);
    transition: color 0.3s;
    display: block;
    margin-bottom: 8px;
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--primary-blue);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: var(--text-gray);
}

.footer-bottom p {
    margin: 8px 0;
    font-size: 14px;
}

/* RESPONSIVE */
@media screen and (max-width: 768px) {
    .encabezado {
        padding: 15px 20px;
    }

    .menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .menu a {
        font-size: 14px;
    }

    .carousel-caption {
        font-size: 1.8rem !important;
        padding: 15px 25px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .carousel-controls {
        padding: 0 5px;
    }

    .deportes h2, .soporte h2 {
        font-size: 2.2rem;
    }

    .deporte-section {
        padding: 30px 20px;
    }

    .admin-form {
        grid-template-columns: 1fr;
    }

    table {
        font-size: 13px;
    }

    table th, table td {
        padding: 12px 8px;
    }

    /* CORRECCIÓN TOTAL PARA CARRUSEL DE INFORMACIÓN EN MÓVIL */
    .informacion {
        padding: 40px 5px;
    }

    .info-carousel-wrapper {
        padding: 0;
        max-width: 100%;
        width: 100%;
    }

    .carousel#carouselInfo {
        width: 100%;
        padding: 0 50px;
    }

    .carousel#carouselInfo .carousel-controls {
        padding: 0;
    }

    .carousel#carouselInfo .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 22px;
        opacity: 1;
        background: rgba(0, 102, 255, 0.9);
        position: absolute;
    }

    .carousel#carouselInfo .carousel-btn:first-child {
        left: 0;
    }

    .carousel#carouselInfo .carousel-btn:last-child {
        right: 0;
    }

    .info-carousel-item {
        padding: 35px 25px;
        margin: 0 auto;
        width: 100%;
        box-sizing: border-box;
    }

    .info-carousel-item h3 {
        font-size: 1.6rem;
        margin-bottom: 20px;
        line-height: 1.3;
        text-align: center;
        color: var(--primary-dark);
        font-weight: 700;
    }

    .info-carousel-item p {
        font-size: 16px;
        line-height: 1.75;
        text-align: left;
        color: #222;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .carousel-indicators {
        bottom: 20px;
        gap: 8px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* RESPONSIVE ADICIONAL PARA PANTALLAS MUY PEQUEÑAS */
@media screen and (max-width: 480px) {
    .informacion {
        padding: 30px 5px;
    }

    .carousel#carouselInfo {
        padding: 0 45px;
    }

    .carousel#carouselInfo .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .info-carousel-item {
        padding: 30px 20px;
    }

    .info-carousel-item h3 {
        font-size: 1.4rem;
        margin-bottom: 18px;
    }

    .info-carousel-item p {
        font-size: 15px;
        line-height: 1.65;
    }
}

/* ANIMACIONES ADICIONALES */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.btn-contacto:active {
    animation: pulse 0.3s ease;
}