:root {
    --primary-color: #FFD700; 
    --secondary-color: #1a1a1a; 
    --text-color-light: #ffffff;
    --text-color-dark: #333333;
    --accent-color: #c0c0c0; 
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark);
    background-color: var(--text-color-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Encabezado */
.main-header {
    background-color: var(--secondary-color);
    color: var(--text-color-light);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 2.2em;
    color: var(--primary-color);
    margin: 0;
}

.main-nav .nav-list {
    list-style: none;
    display: flex;
    margin: 0;
}

.main-nav .nav-list li {
    margin-left: 30px;
}

.main-nav .nav-list a {
    color: var(--text-color-light);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.main-nav .nav-list a:hover,
.main-nav .nav-list a.active {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.8em;
    cursor: pointer;
}

/* Botones */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none; 
    cursor: pointer; 
}

.btn:hover {
    background-color: #e6c000; 
    transform: translateY(-2px);
}

/* Secciones generales */
section {
    padding: 80px 0;
    text-align: center;
}

section h2 {
    font-size: 2.8em;
    margin-bottom: 40px;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 10px;
}

section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://via.placeholder.com/1600x600?text=Gimnasio+Spartan+Hero') no-repeat center center/cover;
    color: var(--text-color-light);
    height: 80vh; /* Ajusta esta altura según lo alta que quieras la sección */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* Asegura que las imágenes no se desborden de la sección */
    position: relative;
}

.hero-logo {
    max-width: 222px;
    height: auto; 
    margin-bottom: 20px;
    display: block; 
    margin-left: auto;
    margin-right: auto;
}

.hero-content-wrapper {
    display: flex;
    align-items: center; 
    justify-content: center;
    width: 100%;
    height: 100%; 
    position: relative;
}

.hero-text-content {
    flex-shrink: 0;
    padding: 0 20px;
    z-index: 1; 
}

.hero-section h2 {
    font-size: 4em;
    margin-bottom: 20px;
    color: var(--text-color-light);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-section p {
    font-size: 1.5em;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Estilos para las imágenes laterales - AHORA ABARCAN TODA LA ALTURA */
.hero-image {
    height: 100%; 
    width: auto; 
    object-fit: cover; 
    display: block;
    position: absolute; 
    top: 0%; 
    z-index: 0;
}

.hero-image-left {
    left: 0;
}

.hero-image-right {
    right: 0;
}

@media (max-width: 1200px) {
    .hero-image-left,
    .hero-image-right {
    }
}

@media (max-width: 992px) {
    .hero-image {
        display: none;
    }

    .hero-section {
        height: 60vh; 
    }

    .hero-content-wrapper {
        flex-direction: column; 
    }
}

@media (max-width: 768px) {
    .hero-section h2 {
        font-size: 2.5em;
    }

    .hero-section p {
        font-size: 1.2em;
    }
}

/* Services Section */
.services-section {
    background-color: var(--text-color-light);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-item {
    background-color: #f4f4f4;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.service-item i {
    font-size: 3.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.service-item p {
    font-size: 1em;
    color: #666;
}

/* Schedule Section */
.schedule-section {
    background-color: var(--secondary-color);
    color: var(--text-color-light);
}

.schedule-section h2 {
    color: var(--text-color-light);
}

.schedule-section h2::after {
    background-color: var(--primary-color);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 40px;
    background-color: #2a2a2a; /* Fondo más oscuro para la tabla */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

table th, table td {
    padding: 18px;
    border: 1px solid #3a3a3a; /* Bordes sutiles */
    text-align: center;
}

table thead th {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.1em;
}

table tbody tr:nth-child(even) {
    background-color: #333; 
}

table tbody tr:hover {
    background-color: #444;
    color: var(--primary-color);
}

table td {
    color: var(--text-color-light);
}


/* Gallery Section */
.gallery-section {
    background-color: var(--text-color-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 50px;
}

.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* ... Estilos existentes para .gallery-grid ... */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 50px;
}

/* Nuevos estilos para los mini-carouseles */
.mini-carousel {
    position: relative;
    width: 100%;
    height: 200px; /* Altura fija para todos los carruseles */
    overflow: hidden; /* Oculta las imágenes fuera del contenedor */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.mini-carousel .carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none; /* Oculta todas las slides por defecto */
    animation: fade-in 0.8s ease-in-out;
}

.mini-carousel .carousel-slide.active {
    display: block; /* Muestra solo la slide activa */
}

.mini-carousel .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen cubra el espacio */
    border-radius: 8px;
}

@keyframes fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.mini-carousel-prev, .mini-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: var(--text-color-light);
    font-size: 1em;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s ease, color 0.3s ease;
    z-index: 10;
}

.mini-carousel-prev:hover, .mini-carousel-next:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.mini-carousel-prev {
    left: 5px;
}

.mini-carousel-next {
    right: 5px;
}

/* Media query para ajustar el tamaño de los botones en móviles */
@media (max-width: 480px) {
    .mini-carousel-prev, .mini-carousel-next {
        font-size: 0.8em;
        padding: 5px;
    }
}
/* Contact Section */
.contact-section {
    background-color: var(--secondary-color);
    color: var(--text-color-light);
}

.contact-section h2 {
    color: var(--text-color-light);
}

.contact-section h2::after {
    background-color: var(--primary-color);
}

.contact-info {
    margin-bottom: 40px;
    font-size: 1.1em;
}

.contact-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.3em;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #333;
    color: var(--text-color-light);
    font-size: 1em;
    outline: none;
    transition: border-color 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .btn {
    align-self: center;
    width: 50%;
    max-width: 250px;
}

/* Footer */
.main-footer {
    background-color: #111;
    color: var(--accent-color);
    padding: 30px 0;
    text-align: center;
    font-size: 0.9em;
}

.main-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.social-links {
    margin-top: 10px;
}
e4
.social-links a {
    color: var(--text-color-light);
    font-size: 1.5em;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* --- Sección de Disciplinas de Fuerza --- */
.strength-disciplines-section {
    background-color: #1a1a1a; 
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.strength-disciplines-section h2 {
    color: #FFD700; 
    margin-bottom: 20px;
    font-size: 2.5em;
}

.strength-disciplines-section .section-intro {
    font-size: 1.1em;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.disciplines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.discipline-item {
    background-color: #2a2a2a; 
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.discipline-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.discipline-item i {
    font-size: 4em;
    color: #FFD700; 
    margin-bottom: 15px;
}

.discipline-item h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #fff;
}

.discipline-item p {
    font-size: 1em;
    line-height: 1.5;
    color: #ccc;
}

/* Estilos para el botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366; 
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    z-index: 1000; 
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none; 
    transition: background-color 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #1DA851; 
}

.whatsapp-float i {
    margin-top: 0; 
}

.gallery-grid  {
    object-fit: contain;
}

/* Media query para pantallas más pequeñas (ajusta los valores según necesites) */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
     .strength-disciplines-section h2 {
        font-size: 2em;
    }

    .disciplines-grid {
        grid-template-columns: 1fr;
    }

    .main-header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo {
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
    }

    .main-nav {
        width: 100%;
        text-align: center;
    }

    .main-nav .nav-list {
        flex-direction: column;
        width: 100%;
        display: none; 
        background-color: var(--secondary-color);
        position: absolute;
        left: 0;
        top: 85px; 
        padding: 10px 0;
        border-top: 1px solid #333;
    }

    .hero-logo {
        margin-top: 111px;
        max-width: 180px; 
        margin-bottom: 15px;
    }


    .main-nav .nav-list.active {
        display: flex; 
    }

    .main-nav .nav-list li {
        margin: 10px 0;
        width: 100%;
    }

    .main-nav .nav-list a {
        display: block;
        padding: 10px 0;
        width: 100%;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 25px;
    }

    .hero-section h2 {
        font-size: 2.5em;
    }

    .hero-section p {
        font-size: 1.2em;
    }
    
    .hero-section{
        height: 350px;
    }

    section {
        padding: 60px 0;
    }

    section h2 {
        font-size: 2.2em;
        margin-bottom: 30px;
    }

    .service-grid, .gallery-grid {
        grid-template-columns: 1fr;
    }

    table {
        font-size: 0.9em;
        overflow-x: auto;
        display: block; 
        white-space: nowrap;
    }
    table thead, table tbody, table th, table td, table tr {
        display: block;
    }
    table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    table tr {
        border: 1px solid #3a3a3a;
        margin-bottom: 15px;
        border-radius: 8px;
    }
    table td {
        border: none;
        position: relative;
        padding-left: 50%;
        text-align: right;
    }
    table td:before {
        content: attr(data-label);
        position: absolute;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        color: var(--primary-color);
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.8em;
    }

    .hero-section h2 {
        font-size: 2em;
    }

    .hero-section p {
        font-size: 1em;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .contact-form .btn {
        width: 80%;
    }
}