* {
    font-family: 'Tahoma', sans-serif;
    color: #fff;
    font-size: 20px;
}

body {
    background-color: #000;
    margin: 0;
    padding: 0;
}

.container {
    width: 70%;
    margin: 0 auto;
    max-width: 1100px;
}

.logo-container {
    display: block;
    float: left;
    margin: 0 auto;
    padding-top: 20px;
}

.logo-container img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    float: left;
}

.personaje {
    width: min(200px, 30vw);  
}

.letras {
    width: min(400px, 55vw);  
}

nav {
    display: block;
    clear: both;
    margin-top: 20px;
    border-top: 2px solid #fff;
    border-bottom: 2px solid #fff;
    position: relative;
    padding: 8px;
}

.top-info-bar {
    border-top: 2px solid #fff;
    clear: both;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
    padding: 0;
    background: none;
}

.top-info-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #fff;
    font-size: 15px;
    padding-top: 10px;
    transition: opacity 0.2s ease;
}

.top-info-item:hover,
.top-info-item:focus {
    opacity: 0.8;
}

.top-info-icon {
    font-size: 16px;
}

nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #ff0000;
}

nav::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #ff0000;
}

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

nav li {
    display: inline-block;
    padding: 5px;
    text-transform: uppercase;
}

nav li a {
    font-size: 16px;
}

.horarios {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 20px;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.benefits-list2 {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 16px;
}

.benefits-list li {
    position: relative;
    padding: 16px;
    line-height: 1.5;
    font-size: 18px;
    background-color: #444;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.benefits-list2 li {
    position: relative;
    padding: 16px;
    line-height: 1.5;
    font-size: 18px;
    background-color: #444;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.benefits-list li::before {
    content: '•';
    color: #ff0000;
    font-weight: bold;
    margin-right: 8px;
}

.benefits-list2 li::before {
    content: '•';
    color: #ff0000;
    font-weight: bold;
    margin-right: 8px;
}

.gym-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
    margin-bottom: 24px;
}

.gym-gallery a {
    display: block;
    width: 100%;
    text-decoration: none;
}

.gym-gallery img {
    display: block;
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.gym-gallery a:hover img,
.gym-gallery a:focus img {
    transform: scale(1.02);
}

.image-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1000;
}

.image-overlay.active {
    opacity: 1;
    visibility: visible;
}

.image-overlay img {
    display: block;
    max-width: min(90vw, 1000px);
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

.close-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
}

.teachers-page {
    padding-top: 24px;
}

.teachers-hero {
    width: 100%;
    margin: 0;
}

.teachers-hero img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.teachers-description-card {
    background-color: #111;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 32px 24px;
    margin: 24px 0 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.teachers-description-card h2 {
    margin: 0 0 24px;
    font-size: 32px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.teachers-list {
    display: grid;
    gap: 20px;
}

.teacher-summary {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.teacher-summary:first-child {
    padding-top: 0;
    border-top: none;
}

.teacher-summary h3 {
    margin: 0 0 8px;
    font-size: 24px;
    color: #fff;
}

.teacher-summary p {
    margin: 0;
    font-size: 18px;
    color: #ddd;
    line-height: 1.6;
}

.map-info {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.map-info p {
    margin: 0;
    font-size: 18px;
}

.map-info a {
    color: #ff0000;
    font-weight: bold;
    text-decoration: underline;
}

.map-container {
    margin-top: 12px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.map-container iframe {
    display: block;
    width: 100%;
    min-height: 300px;
}

footer {
    display: block;
    clear: both;
    margin-top: 20px;
    border-top: 2px solid #fff;
    position: relative;
    padding: 8px;
}

@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 0 16px;
        box-sizing: border-box;
    }

    * {
        font-size: 18px;
    }

    .benefits-list li strong {
        font-size: 16px;
    }

    .gym-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .gym-gallery img {
        height: 180px;
    }

    .teacher-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .teacher-card img {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 480px) {
    .gym-gallery {
        grid-template-columns: 1fr;
    }

    .gym-gallery img {
        height: 220px;
    }
}