/* ================================================
   Secciones Mundialistas CDMX — Mundial 2026
   ================================================ */

/* ---- HERO ---- */
.cdmx-sm-hero {
    position: relative;
    width: 100%;
    min-height: 420px;
    background: #1a1a2e center/cover no-repeat;
    display: flex;
    flex-direction: column;
}

.cdmx-sm-hero__inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 2rem 1rem;
    text-align: center;
}

.cdmx-sm-hero__logo {
    max-width: 340px;
    width: 80%;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.cdmx-sm-hero__frase {
    font-family: 'Roboto', sans-serif;
    color: #fff;                            /* Figma: institucionales/blanco-100 */
    font-size: clamp(1.1rem, 2.4vw, 2.5rem);/* Figma: 40px en desktop, escala para 1 línea */
    font-weight: 700;                       /* Figma: Bold */
    line-height: 1;                         /* Figma: 100% */
    text-align: center;                     /* Figma: Horizontal align Center */
    letter-spacing: 0;                      /* Figma: 0% */
    white-space: nowrap;                    /* una sola línea */
    margin: 0;
    padding: 0.7rem 1rem;
    width: 100%;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.5);         /* banda negra semi-transparente */
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

@media (max-width: 600px) {
    .cdmx-sm-hero { min-height: 280px; }
    .cdmx-sm-hero__frase { white-space: normal; font-size: 1.1rem; }
}

/* ---- PARTIDO / COUNTDOWN ---- */
.cdmx-sm-partido {
    background: #1a3d2b url('images/banner_reloj.svg') center/cover no-repeat;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding: 0.85rem clamp(1.25rem, 5vw, 4rem);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    flex-wrap: wrap;
}

.cdmx-sm-partido__info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cdmx-sm-partido__ball { font-size: 1rem; }

.cdmx-sm-partido__titulo { text-transform: uppercase; }

.cdmx-sm-partido__sep {
    opacity: 0.5;
    font-weight: 300;
}

.cdmx-sm-partido__countdown {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.cdmx-sm-cd-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 2.5rem;
}

.cdmx-sm-cd-num {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.cdmx-sm-cd-label {
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    opacity: 0.8;
    text-transform: uppercase;
}

.cdmx-sm-cd-sep {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
    opacity: 0.6;
    align-self: flex-start;
    margin-top: 2px;
}

@media (max-width: 700px) {
    .cdmx-sm-partido { justify-content: center; }
    .cdmx-sm-partido__info { justify-content: center; font-size: 0.72rem; }
}

/* ---- ZÓCALO CDMX ---- */
.cdmx-sm-zocalo {
    position: relative;
    min-height: 505px;              /* Figma: 1440×505 */
    background: #2d1b4e center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;        /* texto centrado (Figma) */
}

.cdmx-sm-zocalo__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);   /* overlay suave: deja ver serpiente/axolote */
}

.cdmx-sm-zocalo__content {
    position: relative;
    z-index: 1;
    padding: 2rem 2.5rem;
    max-width: 600px;
    background: rgba(0, 0, 0, 0.55);   /* cuadro negro semi-transparente (Figma) */
    border-radius: 8px;
}

.cdmx-sm-zocalo__titulo {
    font-family: 'Roboto', sans-serif;
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0 0 1.25rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.cdmx-sm-zocalo__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cdmx-sm-zocalo__item {
    font-family: 'Roboto', sans-serif;
    color: #fff;                        /* Figma: #FFFFFF */
    font-size: 2rem;                    /* Figma: 32px */
    font-weight: 700;                   /* Figma: Bold */
    line-height: 1;                     /* Figma: 100% */
    letter-spacing: 0;                  /* Figma: 0% */
    font-variant-caps: all-small-caps;  /* Figma: Forced small caps */
    text-align: justify;                /* Figma: Justified */
    padding: 0.25rem 0;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.cdmx-sm-zocalo__item::before {
    content: '• ';
    color: #f0c040;
}

@media (max-width: 600px) {
    .cdmx-sm-zocalo         { min-height: 380px; justify-content: center; }
    .cdmx-sm-zocalo__content { margin-right: 0; }
    .cdmx-sm-zocalo__titulo { font-size: 1.5rem; }
    .cdmx-sm-zocalo__item   { font-size: 1.25rem; }
}

.cdmx-sm-section {
    padding: 2.5rem 0;
    background: #fff;
    width: 100%;
}

/* Header */
.cdmx-sm-header {
    padding: 0 3.5rem 1.25rem;
}

.cdmx-sm-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    line-height: 1.2;
}

.cdmx-sm-title--destacado {
    font-size: 2rem;
    font-weight: 700;
    color: #0AAB98;
    margin-right: 0.35em;
}

/* Solo la sección EVENTOS lleva el destacado en rosa (Figma) */
#cdmx-eventos .cdmx-sm-title--destacado {
    color: #E32486;
}

.cdmx-sm-title--resto {
    font-size: 2rem;
    color: #111;
    font-weight: 700;
}

.cdmx-sm-subtitle {
    font-size: 0.95rem;
    color: #555;
    margin: 0.25rem 0 0;
}

/* Carousel wrapper */
.cdmx-sm-carousel-wrapper {
    position: relative;
    padding: 0 3.5rem;
}

.cdmx-sm-track-container {
    overflow: hidden;
    flex: 1;
}

.cdmx-sm-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.35s ease;
    will-change: transform;
}

/* Cards — 5 por fila en desktop: (100% - 4×2rem) / 5 */
.cdmx-sm-card {
    flex: 0 0 calc(20% - 1.6rem);
    min-width: 0;
}

.cdmx-sm-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.cdmx-sm-card__image-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 106%;
    border-radius: 0.5rem;
    overflow: hidden;
    background: transparent;
}

.cdmx-sm-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cdmx-sm-card__link:hover .cdmx-sm-card__img {
    transform: scale(1.04);
}

.cdmx-sm-card__placeholder {
    position: absolute;
    inset: 0;
    background: #ccc;
}

.cdmx-sm-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 0.75rem 0.85rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    border-radius: 0 0 0.5rem 0.5rem;
}

.cdmx-sm-card__title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    display: block;
    text-align: center;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

/* Arrows */
.cdmx-sm-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: transparent;
    border: none;
    color: #FF4991;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    padding: 0.25rem 0.75rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.cdmx-sm-arrow--prev {
    left: 0;
}

.cdmx-sm-arrow--next {
    right: 0;
}

.cdmx-sm-arrow:hover {
    opacity: 0.7;
}

.cdmx-sm-arrow:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

/* Empty state */
.cdmx-sm-empty {
    color: #999;
    font-style: italic;
    padding: 1rem 0;
}

/* Responsive */
/* 4 por fila: (100% - 3×2rem) / 4 */
@media (max-width: 1024px) {
    .cdmx-sm-card {
        flex: 0 0 calc(25% - 1.5rem);
    }
}

/* 3 por fila: (100% - 2×2rem) / 3 */
@media (max-width: 900px) {
    .cdmx-sm-card {
        flex: 0 0 calc(33.333% - 1.333rem);
    }
}

@media (max-width: 600px) {
    .cdmx-sm-header {
        padding: 0 2.5rem 1rem;
    }
    .cdmx-sm-carousel-wrapper {
        padding: 0 2.5rem;
    }
    .cdmx-sm-title {
        font-size: 1.5rem;
    }
    .cdmx-sm-arrow {
        font-size: 3rem;
    }
    /* 2 por fila: (100% - 1×2rem) / 2 */
    .cdmx-sm-card {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (max-width: 400px) {
    .cdmx-sm-header {
        padding: 0 2rem 1rem;
    }
    .cdmx-sm-carousel-wrapper {
        padding: 0 2rem;
    }
    .cdmx-sm-title {
        font-size: 1.25rem;
    }
    .cdmx-sm-arrow {
        font-size: 2.5rem;
    }
    .cdmx-sm-card {
        flex: 0 0 85%;
    }
}
