/* ========================================
   TABLA DE CONTENIDOS
   ========================================
   0. VARIABLES CSS
   1. RESET Y ESTILOS GENERALES
   2. HEADER (CABECERA)
   3. LOGO
   4. NAVEGACION (MENU)
   5. MENU HAMBURGUESA (MOVIL)
   6. CONTENIDO PRINCIPAL (MAIN)
   7. HOME (index.html)
   8. TYPEFORM CONTAINER
   9. CONTACTO
   10. UBICACION
   11. GALERIA - AÑOS
   12. GALERIA - EVENTOS DEL AÑO
   13. GALERIA - CAROUSEL DEL EVENTO
   14. GALERIA - CAROUSEL GENERAL
   15. EVENTOS (eventos.html)
   16. NOSOTROS (nosotros.html)
   17. MR. LEATHER SPAIN
   18. ECMC
   19. CLUBS HERMANADOS
   20. COLABORADORES
   21. SPONSORS
   22. ESTATUTOS (estatutos.html)
   23. FOOTER
   24. RESPONSIVE
   ======================================== */

/* ========================================
   0. VARIABLES CSS
   ======================================== */

:root {
    --lmcs-blue: #164C79;
    --lmcs-blue-10: rgba(22, 76, 121, 0.10);
    --lmcs-blue-15: rgba(22, 76, 121, 0.15);
    --lmcs-blue-35: rgba(22, 76, 121, 0.35);
    --lmcs-blue-80: rgba(22, 76, 121, 0.80);
    --lmcs-blue-95: rgba(22, 76, 121, 0.95);
}

/* ========================================
   1. RESET Y ESTILOS GENERALES
   ======================================== */

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

html,
body {
    height: 100%;
    margin: 0;
    background: #ffffff;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: clip;
    background: #ffffff;
}

/* Titulos generales */
h1, h2, h3, h4 {
    color: var(--lmcs-blue);
}

/* Iconos generales */
i,
.stat-item i,
.meta-item i,
.event-date i,
.event-photos i,
.event-date-header i,
.instagram-credit i {
    color: var(--lmcs-blue);
}

/* ========================================
   2. HEADER (CABECERA)
   ======================================== */

header {
    background: #ffffff;
    color: var(--lmcs-blue);
    padding: 10px 0;
    box-shadow: none;
    flex: 0 0 auto;
}

.container {
    min-width: 0;
    width: 100%;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ========================================
   3. LOGO
   ======================================== */

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.logo img {
    height: clamp(54px, 8vw, 100px);
    width: auto;
    display: block;
    padding: 6px;
    border-radius: 10px;
    margin: -10px 0;
}

.logo span {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--lmcs-blue);
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========================================
   4. NAVEGACION (MENU)
   ======================================== */

nav {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: var(--lmcs-blue);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav ul li a:hover {
    background-color: var(--lmcs-blue-10);
}

nav ul li a.active {
    background-color: var(--lmcs-blue-15);
    font-weight: 700;
}

/* ========================================
   5. MENU HAMBURGUESA (SOLO MOVIL)
   ======================================== */

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 10px;
    cursor: pointer;
    border-radius: 8px;
}

.nav-toggle:focus {
    outline: 2px solid var(--lmcs-blue-35);
    outline-offset: 2px;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--lmcs-blue);
    margin: 5px 0;
    border-radius: 2px;
}

/* ========================================
   6. CONTENIDO PRINCIPAL (MAIN)
   ======================================== */

main {
    flex: 1;
    width: 100%;
    min-width: 0;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow-y: visible;
    background: #ffffff;
}

main h1 {
    color: var(--lmcs-blue);
    margin-bottom: 20px;
}

/* Main para paginas de carousel - ancho completo */
main.carousel-main {
    max-width: 100%;
    padding: 0;
    margin: 0;
}

/* Main ancho completo para nosotros */
main:has(.club-logo-section) {
    max-width: 100%;
    padding: 0;
}

/* Main ancho completo para eventos */
main:has(.eventos-page) {
    max-width: 100%;
    padding: 0;
    overflow-x: hidden;
}

/* Instruccion del formulario */
.form-instruction {
    padding: 15px 20px;
    text-align: center;
    flex-shrink: 0;
}

.form-instruction p {
    color: var(--lmcs-blue);
    font-size: 1.1rem;
    margin: 0;
    font-weight: bold;
    letter-spacing: 0.02em;
}

/* ========================================
   7. HOME (index.html)
   ======================================== */

.home-main {
    max-width: 100%;
}

.home-hero {
    padding: 70px 20px 50px;
    background: #ffffff;
}

.home-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.home-title {
    color: var(--lmcs-blue);
    font-size: clamp(30px, 4vw, 54px);
    letter-spacing: 0.06em;
    font-weight: 800;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.home-subtitle {
    color: #333333;
    font-size: clamp(16px, 1.6vw, 20px);
    font-weight: 500;
    max-width: 900px;
    margin: 0 auto 22px;
    line-height: 1.6;
}

.home-separator {
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.home-separator img {
    width: 100vw;
    max-width: 100vw;
    height: auto;
    display: block;
    object-fit: cover;
}

.home-section {
    padding: 60px 20px;
}

.home-section-title {
    text-align: center;
    font-size: clamp(22px, 2.2vw, 32px);
    font-weight: 800;
    color: var(--lmcs-blue);
    margin-bottom: 24px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.home-text {
    max-width: 900px;
    margin: 0 auto 22px;
    color: #333333;
    font-size: 1.05rem;
    line-height: 1.7;
    text-align: center;
}

/* --- Botones reutilizables HOME --- */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 999px;
    background: var(--lmcs-blue);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    border: 2px solid var(--lmcs-blue);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-primary:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 999px;
    background: var(--lmcs-blue);
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
    border: 2px solid var(--lmcs-blue);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-outline:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

/* --- Proximo evento --- */

.next-event-card {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 16px;
    background: #ffffff;
    border: 2px solid rgba(22, 76, 121, 0.18);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 26px 22px;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 28px;
}

.next-event-cartel {
    display: none;
    width: 280px;
    min-width: 280px;
    border-radius: 12px;
    object-fit: cover;
}

.next-event-body {
    flex: 1;
    text-align: center;
}

@media (max-width: 768px) {
    .next-event-card {
        flex-direction: column;
        gap: 18px;
    }

    .next-event-cartel {
        width: 100%;
        min-width: unset;
        max-width: 320px;
        margin: 0 auto;
    }
}

.next-event-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(22, 76, 121, 0.12);
    color: var(--lmcs-blue);
    font-weight: 800;
    letter-spacing: 0.03em;
    margin-bottom: 12px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.next-event-title {
    text-align: center;
    color: var(--lmcs-blue);
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 6px;
}

.next-event-meta {
    color: #444444;
    margin-bottom: 10px;
}

.next-event-countdown {
    color: var(--lmcs-blue);
    font-weight: 800;
    margin-bottom: 18px;
}

.next-event-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* --- Historia HOME: fondo azul, texto blanco --- */

.home-history {
    text-align: center;
    background: var(--lmcs-blue);
    color: #ffffff;
}

.home-history .home-section-title {
    color: #ffffff;
}

.home-history .home-text {
    color: #ffffff;
}

.home-history .btn-primary {
    background: #ffffff;
    color: var(--lmcs-blue);
    border-color: #ffffff;
}

.home-history .btn-primary:hover {
    background: rgba(255,255,255,0.9);
    color: var(--lmcs-blue);
}

/* --- Galeria HOME --- */

.home-gallery {
    text-align: center;
}

.home-carousel {
    max-width: 980px;
    margin: 0 auto 14px;
    display: grid;
    grid-template-columns: 56px 1fr 56px;
    gap: 12px;
    align-items: center;
}

.carousel-viewport {
    border-radius: 16px;
    overflow: hidden;
    background: #000000;
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-viewport img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.carousel-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 0;
    cursor: pointer;
    background: var(--lmcs-blue);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.carousel-btn i {
    color: #ffffff;
}

.carousel-caption {
    text-align: center;
    color: #444444;
    margin-bottom: 16px;
    font-weight: 600;
}

/* ========================================
   8. TYPEFORM CONTAINER
   ======================================== */

.typeform-container {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    min-height: 700px;
}

.typeform-container h1 {
    text-align: center;
    color: var(--lmcs-blue);
    margin-bottom: 15px;
}

.typeform-container p {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* ========================================
   9. CONTACTO
   ======================================== */

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.contact-container h1 {
    text-align: center;
    color: var(--lmcs-blue);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-intro {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-grid {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-card {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    flex: 1 1 auto;
    min-width: 280px;
    max-width: 350px;
}

.contact-card i,
.contact-card .social-buttons a {
    color: #ffffff;
}

.contact-card .contact-icon {
    background: var(--lmcs-blue);
    color: #ffffff;
}

.contact-card .social-buttons a {
    background: var(--lmcs-blue) !important;
}

.contact-card:hover {
    border-color: var(--lmcs-blue);
    box-shadow: 0 5px 20px rgba(22, 76, 121, 0.25);
}

.contact-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--lmcs-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ffffff;
}

.contact-card h3 {
    color: var(--lmcs-blue);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.contact-card p {
    color: #666;
    margin-bottom: 20px;
    font-size: 1rem;
    word-break: break-word;
    overflow-wrap: break-word;
}

.btn-contact {
    display: inline-block;
    padding: 12px 30px;
    background: var(--lmcs-blue) !important;
    color: #ffffff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background: var(--lmcs-blue) !important;
    opacity: 0.9;
    transform: scale(1.05);
}

.social-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-buttons a {
    width: 45px;
    height: 45px;
    background: var(--lmcs-blue) !important;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-buttons a:hover {
    background: var(--lmcs-blue) !important;
    opacity: 0.9;
    transform: scale(1.1);
}

/* ========================================
   10. UBICACION
   ======================================== */

.location-section {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
}

.location-section h2 {
    color: var(--lmcs-blue);
    font-size: 2rem;
    margin-bottom: 20px;
}

.location-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.location-info i {
    font-size: 1.5rem;
    color: #FF6B35;
}

.location-info p {
    font-size: 1.2rem;
    color: #333;
    font-weight: 600;
    margin: 0;
}

.location-note {
    color: #666;
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   11. GALERIA - AÑOS
   ======================================== */

.gallery-years-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.gallery-years-container h1 {
    text-align: center;
    color: var(--lmcs-blue);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.gallery-intro {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 50px;
}

.years-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.year-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    min-height: 400px;
}

.year-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(44, 74, 124, 0.3);
}

.year-image {
    position: relative;
    width: 40%;
    min-width: 350px;
    overflow: hidden;
    flex-shrink: 0;
}

.year-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.year-card:hover .year-image img {
    transform: scale(1.05);
}

.year-overlay {
    display: none;
}

.year-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.year-info h3 {
    color: var(--lmcs-blue);
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.year-info p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 1.1rem;
}

.year-stats-info {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-item i {
    font-size: 1.5rem;
    color: var(--lmcs-blue);
}

.stat-item span {
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
}

.btn-year {
    display: inline-block;
    padding: 15px 35px;
    background: var(--lmcs-blue) !important;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.btn-year:hover {
    background: var(--lmcs-blue) !important;
    opacity: 0.9;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(44, 74, 124, 0.4);
}

.btn-year i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn-year:hover i {
    transform: translateX(5px);
}

/* ========================================
   12. GALERIA - EVENTOS DEL AÑO
   ======================================== */

.events-year-container {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
}

.events-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.events-header h1 {
    color: var(--lmcs-blue);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.events-intro {
    color: #666;
    font-size: 1.1rem;
}

.btn-back {
    position: absolute;
    left: 0;
    top: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f5f5f5;
    color: var(--lmcs-blue);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: var(--lmcs-blue);
    color: white;
    transform: translateX(-5px);
}

/* --- Lista de eventos (horizontal) --- */

.events-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.event-item {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: row;
    transition: all 0.3s ease;
}

.event-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(44, 74, 124, 0.3);
}

.event-item-image {
    width: 45%;
    min-width: 400px;
    overflow: hidden;
    flex-shrink: 0;
}

.event-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-item:hover .event-item-image img {
    transform: scale(1.05);
}

.event-item-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.event-item-info h2 {
    color: var(--lmcs-blue);
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.event-description {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #555;
    font-size: 1rem;
}

.meta-item i {
    font-size: 1.2rem;
    color: var(--lmcs-blue);
    width: 20px;
    text-align: center;
}

.btn-view-photos {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: var(--lmcs-blue) !important;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.btn-view-photos:hover {
    background: var(--lmcs-blue) !important;
    opacity: 0.9;
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(44, 74, 124, 0.4);
}

.btn-view-photos i {
    font-size: 1.3rem;
}

/* --- Grid de eventos (tarjetas) --- */

.events-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.event-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 240px;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(44, 74, 124, 0.3);
}

.event-featured {
    border: 3px solid #FFD700;
}

.event-image {
    position: relative;
    width: 40%;
    min-width: 240px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    min-height: 240px;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.event-card:hover .event-image img {
    transform: scale(1.1);
}

.featured-label {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.featured-label:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.event-card:hover .featured-label {
    transform: translateY(-1px);
    opacity: 0.95;
}

.event-info {
    position: relative;
    padding: 28px 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.event-info h3 {
    color: var(--lmcs-blue);
    font-size: 1.35rem;
    margin-bottom: 14px;
    min-height: 0;
}

.event-date,
.event-photos {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-date i,
.event-photos i {
    color: var(--lmcs-blue);
}

.btn-event {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 12px 26px;
    background: var(--lmcs-blue) !important;
    color: white;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 700;
    transition: all 0.3s ease;
    margin-top: auto;
    width: 100%;
    align-self: stretch;
}

.btn-event:hover {
    background: var(--lmcs-blue) !important;
    opacity: 0.9;
    transform: scale(1.05);
}

.btn-event i {
    display: none;
}

.btn-event.btn-disabled {
    background: #ccc;
    cursor: not-allowed;
    pointer-events: none;
}

.event-badge {
    background: var(--lmcs-blue);
}

/* ========================================
   13. GALERIA - CAROUSEL DEL EVENTO
   ======================================== */

.carousel-main *,
.carousel-container *,
.eventSwiper * {
    box-sizing: border-box;
}

.carousel-main {
    padding: 0;
    margin: 0 auto;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

.carousel-container {
    max-width: 1400px;
    width: 95vw;
    margin: 0 auto;
    padding: 30px 20px;
    box-sizing: border-box;
}

/* --- Header del carousel --- */

.carousel-header {
    margin-bottom: 30px;
    position: relative;
}

.btn-back-carousel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #f5f5f5;
    color: var(--lmcs-blue);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.btn-back-carousel:hover {
    background: var(--lmcs-blue);
    color: white;
    transform: translateX(-5px);
}

.event-title {
    text-align: center;
}

.event-title h1 {
    color: var(--lmcs-blue);
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.event-title h2 {
    color: var(--lmcs-blue);
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.event-date-header {
    color: #666;
    font-size: 1.1rem;
}

.event-date-header i {
    color: var(--lmcs-blue);
    margin-right: 5px;
}

.event-credit {
    margin-top: 6px;
}

.instagram-credit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
    color: #666;
}

.instagram-credit:visited {
    color: #666;
}

.instagram-credit i {
    color: var(--lmcs-blue);
    font-size: 1.05em;
}

.instagram-credit:hover {
    text-decoration: underline;
    opacity: 0.9;
}

/* --- Swiper del evento --- */

.eventSwiper {
    width: 100%;
    max-width: 100%;
    height: 70vh;
    min-height: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    background: #000;
    box-sizing: border-box;
}

.eventSwiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    overflow: hidden;
}

.eventSwiper .swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.eventSwiper .swiper-button-next,
.eventSwiper .swiper-button-prev {
    color: white;
    background: var(--lmcs-blue);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.eventSwiper .swiper-button-next {
    right: 10px;
}

.eventSwiper .swiper-button-prev {
    left: 10px;
}

.eventSwiper .swiper-button-next:hover,
.eventSwiper .swiper-button-prev:hover {
    background: var(--lmcs-blue);
    opacity: 0.9;
    transform: scale(1.1);
}

.eventSwiper .swiper-button-next::after,
.eventSwiper .swiper-button-prev::after {
    font-size: 24px;
    font-weight: 900;
    color: #ffffff !important;
}

/* --- Controles del carousel --- */

.carousel-controls {
    margin-top: 30px;
    max-width: 100%;
    width: 100%;
    overflow: visible;
    box-sizing: border-box;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-bar {
    height: 100%;
    background: var(--lmcs-blue);
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 2%;
}

.controls-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.photo-counter {
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.counter-current {
    font-size: 1.7rem;
    color: var(--lmcs-blue);
    font-weight: 700;
}

.counter-total {
    font-size: 1.3rem;
    color: #666;
}

.counter-percentage {
    color: #999;
    font-size: 0.95rem;
}

.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.btn-action {
    padding: 10px 16px;
    background: var(--lmcs-blue) !important;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-action i {
    font-size: 1.1rem;
    color: #ffffff !important;
}

.btn-action:hover {
    background: var(--lmcs-blue) !important;
    opacity: 0.9;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(44, 74, 124, 0.4);
}

/* ========================================
   14. GALERIA - CAROUSEL GENERAL
   ======================================== */

.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.gallery-container h1 {
    text-align: center;
    color: var(--lmcs-blue);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.swiper {
    width: 100%;
    height: 600px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
    padding: 40px 30px 30px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.swiper-slide:hover .slide-caption {
    transform: translateY(0);
}

.slide-caption h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.slide-caption p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

.btn-download {
    display: inline-block;
    padding: 10px 20px;
    background: var(--lmcs-blue);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background: var(--lmcs-blue);
    opacity: 0.9;
    transform: scale(1.05);
}

.btn-download i {
    margin-right: 5px;
}

.swiper-button-next,
.swiper-button-prev {
    color: white;
    background: var(--lmcs-blue);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--lmcs-blue);
    opacity: 0.9;
    transform: scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px;
    color: #ffffff !important;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: white;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--lmcs-blue);
}

/* ========================================
   15. EVENTOS (eventos.html)
   ======================================== */

.eventos-page {
    max-width: 1800px;
    margin: 0 auto;
    padding: 40px 50px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.eventos-page h1 {
    text-align: center;
    color: #1a1a1a;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.eventos-page .eventos-intro {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* --- Timeline Scroll Container --- */

.timeline-scroll {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 50px;
    max-width: 100%;
    width: 100%;
}

.timeline-arrow {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--lmcs-blue);
    background: #ffffff;
    color: var(--lmcs-blue);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.timeline-arrow:hover {
    background: var(--lmcs-blue);
    color: #ffffff;
}

/* --- Timeline Horizontal --- */

.timeline-horizontal {
    position: relative;
    padding: 20px 0 20px;
    flex: 1;
    min-width: 0;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    overflow-x: auto;
    scrollbar-width: none;
}

.timeline-horizontal::-webkit-scrollbar {
    display: none;
}

.timeline-wrapper {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    width: max-content;
    padding: 20px 40px;
    position: relative;
}

.timeline-wrapper::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 20px;
    right: 20px;
    height: 4px;
    background: var(--lmcs-blue);
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 110px;
    flex: 0 0 auto;
    padding: 0 10px;
    cursor: pointer;
    position: relative;
}

.timeline-dot {
    width: 18px;
    height: 18px;
    background: var(--lmcs-blue);
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.4);
    background: #E60139;
}

.timeline-item.past .timeline-dot {
    background: #aaa;
}

.timeline-item.next .timeline-dot {
    background: #E60139;
    width: 22px;
    height: 22px;
    animation: pulse 2s infinite;
}

.timeline-item.special .timeline-dot {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    width: 22px;
    height: 22px;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.5); }
    50% { box-shadow: 0 0 0 12px rgba(255, 107, 53, 0); }
}

.timeline-content {
    text-align: center;
    padding: 8px 5px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
    background: rgba(44, 74, 124, 0.1);
}

.timeline-date {
    font-size: 0.8rem;
    color: var(--lmcs-blue);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.timeline-name {
    font-size: 0.75rem;
    color: #333;
    font-weight: 500;
    max-width: 90px;
    line-height: 1.3;
}

.timeline-item.past .timeline-name,
.timeline-item.past .timeline-date {
    color: #999;
}

/* --- Leyenda --- */

.timeline-legend {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #666;
}

.legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.legend-dot.past { background: #aaa; }
.legend-dot.next { background: #E60139; }
.legend-dot.future { background: var(--lmcs-blue); }
.legend-dot.special { background: linear-gradient(135deg, #FFD700, #FFA500); }

/* --- Secciones de eventos --- */

.eventos-section {
    margin-bottom: 60px;
}

.eventos-section-title {
    font-size: 1.8rem;
    color: #1a1a1a;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #FFD700;
    display: flex;
    align-items: center;
    gap: 15px;
}

.eventos-section-title i {
    color: #FFD700;
}

.eventos-section-title.regular {
    border-bottom-color: var(--lmcs-blue);
}

.eventos-section-title.regular i {
    color: var(--lmcs-blue);
}

/* --- Grid y tarjetas de evento --- */

.eventos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
    gap: 25px;
}

.evento-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    scroll-margin-top: 100px;
    display: flex;
    flex-direction: column;
}

.evento-card-lower {
    display: flex;
    flex-direction: row;
    flex: 1;
}

.evento-card.has-cartel .evento-card-image {
    width: 45%;
    flex-shrink: 0;
    overflow: hidden;
}

.evento-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.evento-card:hover .evento-card-image img {
    transform: scale(1.05);
}

.evento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(44, 74, 124, 0.15);
}

.evento-card.past {
    opacity: 0.55;
}

.evento-card.next {
    border: 3px solid #E60139;
}

.evento-card-header {
    background: var(--lmcs-blue) !important;
    color: white;
    padding: 16px 20px;
    position: relative;
    min-height: 0;
}

.evento-card.past .evento-card-header {
    background: linear-gradient(135deg, #777 0%, #999 100%) !important;
}

.evento-card.special .evento-card-header {
    background: var(--lmcs-blue) !important;
}

.evento-card-header .fecha {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.evento-card-header h3 {
    font-size: 1.15rem;
    margin: 0;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
}

.evento-card-header .special-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.evento-card-body {
    padding: 16px;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.evento-description {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
    min-height: 45px;
}

.evento-info-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.evento-ubicacion {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 10px;
}

.evento-ubicacion .ubicacion-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.evento-ubicacion .ubicacion-info {
    flex: 1;
    min-width: 0;
}

.evento-ubicacion .ubicacion-nombre {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.evento-ubicacion .ubicacion-direccion {
    font-size: 0.75rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.evento-horario {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 10px;
}

.evento-horario i {
    font-size: 1rem;
    color: var(--lmcs-blue);
}

.evento-horario .horario-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

/* --- Estado del evento --- */

.evento-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.evento-status.proximo {
    background: rgba(230, 1, 57, 0.15);
    color: #E60139;
}

.evento-status.pasado {
    background: rgba(153, 153, 153, 0.15);
    color: #999;
}

.evento-status.futuro {
    background: rgba(44, 74, 124, 0.1);
    color: var(--lmcs-blue);
}

/* ========================================
   16. NOSOTROS (nosotros.html)
   ======================================== */

.nosotros-page {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

body.nosotros-page {
    background: #ffffff;
}

.club-logo-section {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
}

.club-logo-section img {
    max-width: 300px;
    height: auto;
}

.historia-section {
    padding: 60px 20px;
    background: #ffffff;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--lmcs-blue);
    margin-bottom: 40px;
    letter-spacing: 3px;
}

.historia-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    text-align: left;
}

.historia-content p {
    margin-bottom: 1.2rem;
    line-height: 1.7;
}

.historia-content ul {
    margin: 2rem 0;
    padding-left: 1.2rem;
}

.historia-content li {
    margin-bottom: 0.6rem;
}

.historia-content,
.historia-content p,
.historia-content li {
    color: #000000 !important;
}

.junta-section {
    padding: 80px 20px;
    background: #ffffff;
}

.junta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.junta-member {
    text-align: center;
}

.junta-photo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.junta-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(44, 74, 124, 0.25);
}

.junta-cargo {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--lmcs-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.junta-nombre {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--lmcs-blue);
}

/* ========================================
   17. MR. LEATHER SPAIN
   ======================================== */

.mister-section {
    padding: 60px 20px 80px;
    background: var(--lmcs-blue);
    text-align: center;
    width: 100%;
    display: block;
    clear: both;
}

.mister-section .section-title {
    color: #fff;
    margin-bottom: 40px;
}

.mister-logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.mister-logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    display: inline-block;
}

.mister-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.mister-item {
    text-align: center;
    width: 280px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}

.mister-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.mister-photo {
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: top center;
    display: block;
    background-color: #333;
}

.mister-info {
    padding: 20px 15px;
    background: rgba(0, 0, 0, 0.6);
}

.mister-titulo {
    color: #e60139;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.mister-nombre {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 600;
}

/* ========================================
   18. ECMC
   ======================================== */

.ecmc-section {
    padding: 80px 20px;
    background: #ffffff;
    text-align: center;
    width: 100%;
    display: block;
    clear: both;
}

.ecmc-section .section-title {
    margin-bottom: 40px;
}

.ecmc-logo {
    max-width: 250px;
    height: auto;
    margin-bottom: 25px;
    display: inline-block;
}

.ecmc-description {
    max-width: 800px;
    margin: 0 auto;
    color: #000000;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ========================================
   19. CLUBS HERMANADOS
   ======================================== */

.clubs-section {
    padding: 80px 20px;
    background: #ffffff;
    text-align: center;
    width: 100%;
    display: block;
    clear: both;
}

.clubs-grid {
    display: flex;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.club-item {
    text-align: center;
}

.club-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.club-logo:hover {
    transform: scale(1.1);
}

.club-nombre a {
    color: var(--lmcs-blue);
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.club-nombre a:hover {
    color: #E60139;
    text-decoration: underline;
}

/* ========================================
   20. COLABORADORES
   ======================================== */

.colaboradores-section {
    padding: 80px 20px;
    background: var(--lmcs-blue) !important;
    text-align: center;
    width: 100%;
    display: block;
    clear: both;
}

.colaboradores-section .section-title {
    color: #fff;
    margin-bottom: 50px;
}

.colaboradores-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}

.colaborador-item {
    text-align: center;
    width: 180px;
}

.colaborador-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.colaborador-logo:hover {
    transform: scale(1.1);
}

.colaborador-nombre a {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    line-height: 1.3;
}

.colaborador-nombre a:hover {
    color: #FFD700;
    text-decoration: underline;
}

/* ========================================
   21. SPONSORS
   ======================================== */

.sponsors-section {
    padding: 80px 20px;
    background: #ffffff;
    text-align: center;
    width: 100%;
    display: block;
    clear: both;
}

.sponsors-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}

.sponsor-item {
    text-align: center;
    width: 160px;
}

.sponsor-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 15px;
    background: #fff;
    border-radius: 15px;
    padding: 15px;
    transition: transform 0.3s ease;
}

.sponsor-logo:hover {
    transform: scale(1.1);
}

.sponsor-nombre a {
    color: var(--lmcs-blue);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sponsor-nombre a:hover {
    color: #E60139;
    text-decoration: underline;
}

/* ========================================
   22. ESTATUTOS (estatutos.html)
   ======================================== */

.estatutos-section {
    padding: 60px 20px;
    background: #ffffff;
}

.estatutos-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #000000;
    text-align: left;
}

.estatutos-capitulo {
    margin-bottom: 3rem;
}

.estatutos-capitulo h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--lmcs-blue);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--lmcs-blue-15);
}

.estatutos-articulo {
    margin-bottom: 1.5rem;
}

.estatutos-articulo h4 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--lmcs-blue);
    margin-bottom: 0.5rem;
}

.estatutos-articulo p {
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

.estatutos-articulo ul,
.estatutos-articulo ol {
    margin: 0.8rem 0;
    padding-left: 1.2rem;
}

.estatutos-articulo li {
    margin-bottom: 0.4rem;
}

/* ========================================
   23. FOOTER
   ======================================== */

footer {
    background: var(--lmcs-blue) !important;
    color: #ffffff;
    padding: 10px 0;
    margin-top: 0;
    flex: 0 0 auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-links {
    display: flex;
    flex-direction: row;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.social-links a {
    color: #ffffff;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #ffffff;
    opacity: 0.85;
    transform: translateY(-3px);
}

footer .social-links a i {
    color: #ffffff !important;
}

footer .social-links a:hover i {
    color: #ffffff !important;
    opacity: 0.85;
}

footer img {
    filter: brightness(0) invert(1);
}

.copyright-line {
    text-align: center;
    margin-top: 10px;
}

.copyright-line p {
    color: #ffffff;
    font-size: 0.85rem;
    margin: 0;
}

/* ========================================
   24. RESPONSIVE
   ======================================== */

/* --- PANTALLAS EXTRA GRANDES (1600px+) --- */
@media (min-width: 1600px) {
    .contact-container {
        max-width: 1600px;
    }
}

/* --- PANTALLAS MUY GRANDES (1700px+) --- */
@media (min-width: 1700px) {
    .events-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* --- PANTALLAS GRANDES (1400px+) --- */
@media (min-width: 1400px) {
    .contact-container {
        max-width: 1400px;
    }

    .contact-card {
        padding: 35px 30px;
        min-width: 300px;
        max-width: 400px;
    }

    .contact-card p {
        font-size: 1.05rem;
    }
}

/* --- MEDIANAS-GRANDES (max 1600px) --- */
@media (max-width: 1600px) {
}

/* --- MEDIANAS-GRANDES (max 1400px) --- */
@media (max-width: 1400px) {
    .carousel-container {
        max-width: 95%;
        padding: 30px 15px;
    }

    .controls-bottom {
        gap: 10px;
    }

    .photo-counter {
        font-size: 1.1rem;
    }

    .counter-current {
        font-size: 1.7rem;
    }

    .btn-action {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* --- PANTALLAS MEDIANAS (max 1200px) --- */
@media (max-width: 1200px) {
    .controls-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .photo-counter {
        justify-content: center;
        order: 1;
    }

    .action-buttons {
        order: 2;
        justify-content: center;
        width: 100%;
    }

    .btn-action {
        flex: 1;
        justify-content: center;
        min-width: 140px;
    }

    .eventos-page {
        padding: 40px 30px;
    }
}

/* --- TABLETS (max 1024px) --- */
@media (max-width: 1024px) {
    .contact-grid {
        justify-content: center;
    }

    .contact-card {
        flex: 1 1 280px;
        max-width: 350px;
    }
}

/* --- TABLETS Y MOVILES (max 992px) --- */
@media (max-width: 992px) {
    /* Galeria años */
    .year-card {
        flex-direction: row;
        min-height: 220px;
    }

    .year-image {
        width: 35%;
        min-width: 0;
    }

    .year-info {
        padding: 25px;
    }

    .year-info h3 {
        font-size: 2.2rem;
    }

    /* Eventos */
    .event-item {
        flex-direction: column;
    }

    .event-item-image {
        width: 100%;
        min-width: auto;
        height: 350px;
    }

    .event-item-info {
        padding: 30px;
    }

    .event-item-info h2 {
        font-size: 2rem;
    }

    /* Nosotros */
    .junta-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .junta-member:last-child {
        grid-column: span 2;
        justify-self: center;
    }

    .mister-grid {
        gap: 25px;
    }

    .mister-item {
        width: 250px;
    }

    .mister-photo {
        height: 340px;
    }

    .colaboradores-grid,
    .sponsors-grid {
        gap: 30px;
    }
}

/* --- MOVILES (max 768px) --- */
@media (max-width: 768px) {
    /* Header - Menu hamburguesa */
    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    header .container {
        position: relative;
        flex-direction: row;
        gap: 10px;
    }

    header .logo {
        flex-direction: row;
        text-align: left;
        gap: 10px;
    }

    header .logo img {
        height: 50px;
    }

    header .logo span {
        font-size: 1.25rem;
        white-space: normal;
        line-height: 1.2;
    }

    /* Menu desplegable */
    nav ul.nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 20px;
        left: 20px;
        flex-direction: column;
        gap: 10px;
        padding: 15px;
        margin-top: 10px;
        background: #ffffff;
        border: 1px solid rgba(22, 76, 121, 0.18);
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        z-index: 999;
    }

    nav ul.nav-menu.open {
        display: flex;
    }

    nav ul.nav-menu li a {
        display: block;
        padding: 12px 14px;
    }

    nav ul {
        gap: 0;
    }

    /* Main */
    main {
        padding: 0 10px;
    }

    /* HOME */
    .home-hero { padding: 50px 16px 36px; }
    .home-section { padding: 46px 16px; }

    .home-carousel {
        grid-template-columns: 44px 1fr 44px;
    }

    .carousel-btn {
        width: 44px;
        height: 44px;
    }

    .carousel-viewport {
        min-height: 300px;
    }

    /* Contacto */
    .contact-container h1 {
        font-size: 2rem;
    }

    .contact-grid {
        flex-direction: column;
        align-items: center;
    }

    .contact-card {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

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

    .location-section h2 {
        font-size: 1.5rem;
    }

    /* Galeria años */
    .gallery-years-container h1 {
        font-size: 2rem;
    }

    .year-card {
        min-height: 180px;
    }

    .year-image {
        width: 35%;
        min-width: 0;
    }

    .year-info {
        padding: 15px;
        text-align: left;
    }

    .year-info h3 {
        font-size: 1.8rem;
    }

    .year-info p {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    .year-stats-info {
        flex-direction: column;
        gap: 6px;
    }

    .stat-item {
        gap: 6px;
        font-size: 0.85rem;
    }

    .btn-year {
        font-size: 0.9rem;
        padding: 10px 18px;
    }

    .stat-item i {
        font-size: 1.2rem;
    }

    .stat-item span {
        font-size: 1rem;
    }

    .btn-year {
        align-self: center;
        width: 100%;
        text-align: center;
        justify-content: center;
        display: inline-flex;
        padding: 14px 30px;
    }

    /* Eventos del año */
    .btn-back {
        position: static;
        margin-bottom: 20px;
    }

    .events-header h1 {
        font-size: 2rem;
    }

    .event-item-image {
        height: 280px;
    }

    .event-item-info {
        padding: 25px;
    }

    .event-item-info h2 {
        font-size: 1.7rem;
    }

    .event-description {
        font-size: 1rem;
    }

    .meta-item {
        font-size: 0.95rem;
    }

    .btn-view-photos {
        width: 100%;
        justify-content: center;
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .event-card {
        flex-direction: row;
        min-height: 160px;
    }

    .event-image {
        width: 35%;
        min-width: 0;
    }

    .event-image img {
        min-height: 0;
        height: 100%;
    }

    .event-info {
        padding: 15px;
    }

    .event-info h3 {
        font-size: 1rem;
        min-height: 0;
        margin-top: 0;
    }

    .event-date {
        font-size: 0.85rem;
    }

    .event-photos {
        font-size: 0.85rem;
    }

    .btn-event {
        font-size: 0.85rem;
        padding: 8px 14px;
        align-self: flex-start;
    }

    .featured-label {
        top: 10px;
        right: 10px;
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }

    /* Carousel evento */
    .event-title h1 {
        font-size: 1.8rem;
    }

    .event-title h2 {
        font-size: 1.3rem;
    }

    .eventSwiper {
        height: 50vh;
        min-height: 400px;
    }

    .eventSwiper .swiper-button-next,
    .eventSwiper .swiper-button-prev {
        width: 40px;
        height: 40px;
    }

    .eventSwiper .swiper-button-next::after,
    .eventSwiper .swiper-button-prev::after {
        font-size: 16px;
    }

    .controls-bottom {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .photo-counter {
        justify-content: center;
        font-size: 1.1rem;
    }

    .counter-current {
        font-size: 1.6rem;
    }

    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn-action {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }

    /* Galeria general */
    .gallery-container h1 {
        font-size: 2rem;
    }

    .swiper {
        height: 400px;
    }

    .slide-caption {
        padding: 30px 20px 20px;
    }

    .slide-caption h3 {
        font-size: 1.2rem;
    }

    .slide-caption p {
        font-size: 0.9rem;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 40px;
        height: 40px;
    }

    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 16px;
    }

    /* Typeform */
    .typeform-container {
        padding: 10px;
        margin: 20px 0;
    }

    .typeform-container h1 {
        font-size: 1.8rem;
    }

    .typeform-container p {
        font-size: 1rem;
    }

    /* Instruccion formulario */
    .form-instruction {
        padding: 12px 15px;
    }

    .form-instruction p {
        font-size: 0.95rem;
    }

    /* Eventos pagina */
    .eventos-page {
        padding: 30px 15px;
    }

    .eventos-page h1 {
        font-size: 2rem;
    }

    .eventos-grid {
        grid-template-columns: 1fr;
    }

    .evento-card-header {
        padding: 15px;
        min-height: auto;
    }

    .eventos-section-title {
        font-size: 1.3rem;
    }

    .timeline-item {
        min-width: 90px;
    }

    .timeline-name {
        font-size: 0.7rem;
        max-width: 75px;
    }

    .timeline-wrapper {
        padding: 20px 20px;
    }

    /* Nosotros */
    .section-title {
        font-size: 2rem;
    }

    .junta-grid {
        grid-template-columns: 1fr;
    }

    .junta-member:last-child {
        grid-column: span 1;
    }

    .junta-photo {
        width: 200px;
        height: 200px;
    }

    .club-logo-section img {
        max-width: 200px;
    }

    .mister-logo {
        max-width: 200px;
    }

    .mister-item {
        width: 240px;
    }

    .mister-photo {
        height: 320px;
    }

    .mister-titulo {
        font-size: 0.95rem;
    }

    .mister-nombre {
        font-size: 1.05rem;
    }

    .clubs-grid {
        gap: 40px;
    }

    .club-logo {
        width: 120px;
        height: 120px;
    }

    .colaborador-item,
    .sponsor-item {
        width: 140px;
    }

    .colaborador-logo,
    .sponsor-logo {
        width: 90px;
        height: 90px;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .social-links {
        justify-content: center;
        gap: 20px;
    }

    .social-links a {
        font-size: 1.3rem;
    }
}

/* --- MOVILES PEQUEÑOS (max 480px) --- */
@media (max-width: 480px) {
    .mister-grid {
        flex-direction: column;
        align-items: center;
    }

    .mister-item {
        width: 90%;
        max-width: 300px;
    }

    .mister-photo {
        height: 400px;
    }

    .clubs-grid {
        flex-direction: column;
        align-items: center;
    }

    .colaboradores-grid,
    .sponsors-grid {
        gap: 25px;
    }

    .colaborador-item,
    .sponsor-item {
        width: 120px;
    }
}
