/* ==========================================
   DORSAL MAGAZINE - FONDO PARTIDO DIAGONAL PRO
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,600;0,700;0,900;1,400&family=Montserrat:ital,wght@0,900;1,900&display=swap');

.dorsal-magazine {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    background: #0b0f19;
    color: #f1f5f9;
    padding: 30px;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
    box-shadow: none !important;
    border-radius: 0 !important;
    border-top: 5px solid #EB0045;
    box-sizing: border-box;
}

.dorsal-magazine *, 
.dorsal-magazine *::before, 
.dorsal-magazine *::after {
    box-sizing: border-box;
}

/* FONDO PARTIDO: Textura de estadio a la derecha con corte diagonal y color sólido a la izquierda */
.dorsal-magazine::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    background: url('https://vivepotosi.com/wp-content/uploads/2026/09/dorsal.jpg') center/cover no-repeat;
    clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
    opacity: 0.22;
    z-index: 0;
    pointer-events: none;
}

.dorsal-magazine > * {
    position: relative;
    z-index: 2;
}

/* Cinta superior */
.dorsal-mag-badge {
    background: #EB0045;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 900;
    padding: 6px 14px;
    display: inline-block;
    margin-bottom: 25px;
    transform: skew(-10deg);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Cabecera: Foto izquierda, Nombre y Posición derecha */
.dorsal-header-inline {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 35px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 25px;
}

.dorsal-header-photo img {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #EB0045;
    box-shadow: 0 10px 30px rgba(235, 0, 69, 0.4);
    transform: rotate(-2deg);
    flex-shrink: 0;
}

.dorsal-athlete-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    font-style: italic;
    line-height: 0.85;
    text-transform: uppercase;
    margin: 0 0 10px 0;
    letter-spacing: -2px;
    color: #ffffff;
}

.dorsal-athlete-title span {
    color: #EB0045;
    display: inline-block;
    text-shadow: 3px 3px 0px rgba(235, 0, 69, 0.3);
}

.dorsal-athlete-subtitle {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #94a3b8;
    display: inline-block;
    border-left: 3px solid #EB0045;
    padding-left: 10px;
}

/* Grilla principal de contenidos */
.dorsal-grid-layout {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 35px;
    align-items: start;
    width: 100%;
}

.dorsal-col-main, .dorsal-col-sidebar {
    min-width: 0;
}

.dorsal-lead-text {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #ffffff;
    font-weight: 600;
    margin: 0 0 25px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 20px;
}

.dorsal-lead-text strong {
    color: #EB0045;
}

.dorsal-editorial-block {
    margin-bottom: 25px;
}

.dorsal-editorial-block h4 {
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dorsal-editorial-block h4 i {
    color: #EB0045;
}

.dorsal-editorial-block p {
    font-size: 0.76rem;
    line-height: 1.6;
    color: #94a3b8;
    margin: 0;
}

/* Foto rectangular con corte diagonal de revista */
.dorsal-action-photo {
    width: 100%;
    height: 175px;
    object-fit: cover;
    margin: 20px 0;
    clip-path: polygon(0% 4%, 98% 0%, 100% 96%, 2% 100%);
    border: 2px solid #EB0045;
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
    transform: rotate(1deg);
}

.dorsal-specs-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.dorsal-spec-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
    font-size: 0.74rem;
}

.dorsal-spec-label {
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dorsal-spec-label i {
    color: #EB0045;
}

.dorsal-spec-value {
    color: #ffffff;
    font-weight: 800;
    text-align: right;
}

.dorsal-countries-flow {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}

.dorsal-country-chip {
    background: #1e293b;
    color: #94a3b8;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 3px;
    border: 1px solid #334155;
    text-transform: uppercase;
}

.dorsal-country-chip.active {
    background: #EB0045;
    color: #fff;
    border-color: #EB0045;
}

.dorsal-magazine-footer {
    margin-top: 35px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 900;
    color: #EB0045;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Versión móvil atractiva sin perder legibilidad */
@media (max-width: 768px) {
    .dorsal-magazine {
        padding: 20px 15px;
        margin: 5px;
        border-radius: 10px;
    }
    
    .dorsal-header-inline {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding-bottom: 20px;
    }
    
    .dorsal-header-photo img {
        width: 140px;
        height: 140px;
    }
    
    .dorsal-athlete-title {
        font-size: 2.4rem;
    }
    
    .dorsal-athlete-subtitle {
        border-left: none;
        border-bottom: 2px solid #EB0045;
        padding-left: 0;
        padding-bottom: 4px;
    }
    
    .dorsal-grid-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .dorsal-col-sidebar {
        background: rgba(30, 41, 59, 0.4);
        padding: 15px;
        border-radius: 8px;
        border: 1px solid rgba(51, 65, 85, 0.6);
    }
    
    .dorsal-magazine::before {
        width: 100%;
        clip-path: none;
        opacity: 0.1;
    }
}

/* ==========================================
   OPTIMIZACIÓN MÓVIL DIRECTA
   ========================================== */
@media (max-width: 768px) {
    .dorsal-magazine {
        padding: 15px 12px !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    
    .dorsal-header-inline {
        flex-direction: column !important;
        text-align: center !important;
        gap: 12px !important;
        margin-bottom: 20px !important;
        padding-bottom: 15px !important;
    }
    
    .dorsal-header-photo img {
        width: 110px !important;
        height: 110px !important;
        border-width: 3px !important;
    }
    
    .dorsal-athlete-title {
        font-size: 2.1rem !important;
        letter-spacing: -1px !important;
        margin-bottom: 6px !important;
    }
    
    .dorsal-athlete-subtitle {
        font-size: 0.72rem !important;
        border-left: none !important;
        border-bottom: 2px solid #EB0045 !important;
        padding-left: 0 !important;
        padding-bottom: 3px !important;
    }
    
    .dorsal-lead-text {
        font-size: 0.8rem !important;
        line-height: 1.5 !important;
        margin-bottom: 15px !important;
        padding-bottom: 15px !important;
    }
    
    .dorsal-grid-layout {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .dorsal-editorial-block {
        margin-bottom: 18px !important;
    }
    
    .dorsal-editorial-block p, 
    .dorsal-spec-row {
        font-size: 0.72rem !important;
    }
    
    .dorsal-action-photo {
        height: 140px !important;
        margin: 12px 0 !important;
    }
    
    .dorsal-col-sidebar {
        background: rgba(30, 41, 59, 0.3);
        padding: 12px;
        border-radius: 6px;
        border: 1px solid rgba(51, 65, 85, 0.4);
    }
    
    .dorsal-magazine::before {
        width: 100% !important;
        clip-path: none !important;
        opacity: 0.08 !important;
    }
}



/* style.css - Estilos Globales para Dorsal */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background: #111;
    color: #fff;
    padding: 20px;
    text-align: center;
    border-bottom: 4px solid #e50914;
}

footer {
    background: #111;
    color: #fff;
    padding: 15px;
    text-align: center;
    margin-top: 40px;
}

.main-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.site-title {
    font-size: 2.8rem;
    color: #111;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 12px;
    flex-wrap: wrap;
}

.tab-btn {
    background: #e0e0e0;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 4px;
    transition: background 0.3s, color 0.3s;
}

.tab-btn.active, .tab-btn:hover {
    background: #e50914;
    color: #fff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.player-card {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.2s;
}

.player-card:hover {
    transform: translateY(-5px);
}

.player-card img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    border: 2px solid #e50914;
}

.player-card h3 {
    margin: 10px 0 5px;
    font-size: 1.1rem;
    color: #111;
}

.player-card p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}