/**
 * Superdestacada Component
 * 
 * Layout: 2 columnas 50/50 en desktop
 * Col 1: Imagen con aspect-ratio 3:2
 * Col 2: Título (centrado) + Label "Superdestacada" + Excerpt
 *        Siempre centrada verticalmente
 */

/* ==========================================================
   SEPARADORES
========================================================== */

/* Separador superior (línea simple - antes del bloque) */
.inf-superdestacada-separator-top {
    width: 100%;
    height: 1px;
    background: #000;
    margin: 0;
}

/* Separador inferior (doble línea finita - después del bloque) */
.inf-superdestacada-separator-bottom {
    width: 100%;
    min-height: calc(1px + 6px + 1px); /* Dos líneas + espacio */
    position: relative;
}

.inf-superdestacada-separator-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: #000;
}

.inf-superdestacada-separator-bottom::after {
    content: '';
    position: absolute;
    top: 7px; /* Primera línea + 6px espacio */
    left: 0;
    width: 100%;
    height: 1px;
    background: #000;
}

/* ==========================================================
   CONTENEDOR PRINCIPAL
========================================================== */

.inf-superdestacada {
    width: 100%;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
    padding: 0;
    box-sizing: border-box;
}

.inf-superdestacada__container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50/50 */
    gap: 2.5rem;
    align-items: center; /* Centrado vertical de ambas columnas */
    width: 100%;
    box-sizing: border-box;
}

/* ==========================================================
   COLUMNA 1 - IMAGEN (50%)
========================================================== */

.inf-superdestacada__image-col {
    width: 100%;
    min-width: 0; /* Permitir shrink en grid */
}

.inf-superdestacada__image-link {
    display: block;
    position: relative;
    text-decoration: none;
    width: 100%;
    /* Reservar espacio con aspect-ratio para evitar CLS */
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.inf-superdestacada__image {
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover; /* Crop consistente */
    display: block;
    border: none;
    box-shadow: none;
}

/* Icono de video (si aplica) */
.inf-superdestacada__play {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    width: 3rem;
    height: 3rem;
    z-index: 2;
}

.inf-superdestacada__play svg {
    width: 100%;
    height: 100%;
}

.inf-superdestacada__play circle {
    fill: rgba(0, 0, 0, 0.6);
    stroke: #fff;
    stroke-width: 2;
}

.inf-superdestacada__play polygon {
    fill: #fff;
}

/* ==========================================================
   COLUMNA 2 - TEXTO (50%, centrado verticalmente)
========================================================== */

.inf-superdestacada__text-col {
    width: 100%;
    min-width: 0; /* Permitir shrink en grid */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centrado horizontal del contenido */
    justify-content: center; /* Centrado vertical (refuerza grid align-items) */
    text-align: center;
    gap: 1rem;
}

/* Título (centrado) */
.inf-superdestacada__title {
    font-family: MajritTx, serif;
    font-size: 2.25rem; /* 36px */
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #000;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.inf-superdestacada__title a {
    font-size: 2.5rem;
    color: inherit;
    text-decoration: none;
    display: block;
}

.inf-superdestacada__title a:hover {
    color: var(--color-primary, #FF5920);
}

/* Label "Superdestacada" (estilo meta naranja - MarcinAnt) */
.inf-superdestacada__label {
    font-family: MarcinAntB, sans-serif;
    font-size: 0.75rem; /* 12px */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary, #FF5920); /* Naranja del theme */
    margin: 0;
    padding: 0;
}

/* Excerpt */
.inf-superdestacada__excerpt {
    font-family: MajritTxRoman, serif;
    font-size: 1rem; /* 16px */
    font-weight: 400;
    line-height: 1.5;
    color: #333;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    text-align: center;
}

/* ==========================================================
   RESPONSIVE
========================================================== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .inf-superdestacada__container {
        gap: 2rem;
    }
    
    .inf-superdestacada__title {
        font-size: 1.875rem; /* 30px */
    }
}

/* Mobile (<768px) - Stack vertical */
@media (max-width: 767px) {
    .inf-superdestacada {
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .inf-superdestacada__container {
        grid-template-columns: 1fr; /* Una columna */
        gap: 1.5rem;
    }
    
    /* En mobile: imagen arriba, texto abajo */
    .inf-superdestacada__image-col {
        order: 1;
    }
    
    .inf-superdestacada__text-col {
        order: 2;
        text-align: center;
        align-items: center;
    }
    
    .inf-superdestacada__title {
        font-size: 1.5rem; /* 24px */
    }
    
    .inf-superdestacada__excerpt {
        font-size: 0.9375rem; /* 15px */
    }
    
    .inf-superdestacada__play {
        width: 2.5rem;
        height: 2.5rem;
    }
}
