/* ======================================
   PÁGINA DE PATCHES - DISEÑO ÉPICO
   ====================================== */

/* Héroe principal min-width */ 
.patches-hero {
    text-align: center;
    margin-bottom: 30px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(243, 231, 2, 0.1), rgba(88, 191, 244, 0.1));
    border: 2px solid #f3e702;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(243, 231, 2, 0.2);
}

.patches-hero h1 {
    font-size: 42px;
    color: #f3e702;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(243, 231, 2, 0.6);
    letter-spacing: 3px;
}

.patches-hero p {
    font-size: 18px;
    color: #58bff4;
    font-style: italic;
}

/* Secciones */
.patches-section {
    margin-bottom: 100px;
}

.section-title {
    font-size: 24px;
    margin-bottom: 30px;
    padding: 15px 25px;
    border-radius: 4px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title.important {
    background: linear-gradient(135deg, #ff0000, #aa0000);
    color: #fff;
    border: 2px solid #ff0000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
}

.section-title.secondary {
    background: linear-gradient(135deg, #2fd96b, #1f7a32);
    color: #fff;
    border: 2px solid #2fd96b;
    box-shadow: 0 0 20px rgba(47, 217, 107, 0.4);
}

/* Grid de cards */
.patches-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas perfectamente simétricas */
    gap: 30px;
}

/* Card individual */
.patch-card {
    background: linear-gradient(135deg, rgba(10, 18, 28, 0.9), rgba(26, 51, 57, 0.7));
    border: 2px solid #1b2a3a;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

.patch-card.important {
    border-color: #ff0000;
}

.patch-card.secondary {
    border-color: #2fd96b;
}

.patch-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

/* Imagen de la esquina */
.card-image {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #f3e702;
    box-shadow: 0 0 15px rgba(243, 231, 2, 0.4);
    z-index: 10;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contenido */
.card-content {
    padding: 80px 25px 25px 25px; /* Espacio extra arriba para la imagen */
}

.card-content h3 {
    font-size: 20px;
    color: #f1f0f0;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-content p {
    font-size: 14px;
    color: #9fbad0;
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 70px; /* Altura mínima para alineación */
}

/* Meta información */
.card-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 12px;
}

.card-meta .size {
    color: #f45858;
    font-weight: bold;
}

.card-meta .type {
    background: linear-gradient(135deg, #1f7a32, #2fd96b);
    color: #fff;
    padding: 4px 10px;
    border-radius: 3px;
    font-weight: bold;
    text-transform: uppercase;
}

.patch-card.important .card-meta .type {
    background: linear-gradient(135deg, #ff0000, #aa0000);
}

/* Botón de descarga */
.download-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #1f7a32, #2fd96b);
    color: #fff;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.download-btn:hover {
    background: linear-gradient(135deg, #2fd96b, #1f7a32);
    box-shadow: 0 0 20px rgba(47, 217, 107, 0.6);
    transform: scale(1.05);
}

.patch-card.important .download-btn {
    background: linear-gradient(135deg, #ff0000, #aa0000);
}

.patch-card.important .download-btn:hover {
    background: linear-gradient(135deg, #ff4040, #ff0000);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
}

/* Responsivo */
@media (max-width: 992px) {
    .patches-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .patches-grid {
        grid-template-columns: 1fr;
    }
}

/* ======================================
   CENTRAR Y POSICIONAR PÁGINA DE PATCHES
   ====================================== */

/* Centrar todo el contenido de patches */
body.patches-page #master-container #content-grid {
    position: static !important; /* Elimina absolute */
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important; /* Centra horizontalmente */
    padding: 20px 20px 40px !important; /* Espaciado: arriba, lados, abajo */
}

/* Ajustar posición vertical (subir/bajar) sin descentrar */
body.patches-page .patches-hero {
    margin-top: 50px; /* Valor negativo sube, positivo baja */
}

/* Asegurar que el grid esté centrado */
body.patches-page .patches-grid {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto !important; /* Centra el grid */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}


/* ======================================
   FOOTER ESPECIAL PARA PÁGINA DE PATCHES
   ====================================== */

.footer-patches {
    background: linear-gradient(135deg, #0a0e1a, #1a2332);
    border-top: 3px solid #f3e702;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

/* Efecto de brillo animado en el borde */
.footer-patches::before {
    content: "";
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f3e702, transparent);
    animation: shine 3s infinite linear;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Contenedor principal */
.footer-patches-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

/* Lado izquierdo */
.footer-left {
    flex: 1;
    min-width: 100px;
}

.footer-left .footer-copy {
    font-size: 16px;
    color: #f3e702;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(243, 231, 2, 0.3);
    margin-bottom: 8px;
}

.footer-left .footer-disclaimer {
    font-size: 12px;
    color: #6f8da5;
    line-height: 1.4;
}

/* Lado derecho */
.footer-right {
    flex: 1;
    min-width: 100px;
    display: flex;
    justify-content: flex-end;
}

/* Grid de botones */
.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 botones simétricos */
    gap: 15px;
}

.footer-links a {
    color: #58bff4;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 20px;
    border: 1px solid #1b2a3a;
    border-radius: 4px;
    background: rgba(10, 18, 28, 0.5);
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
}

/* Hover épico */
.footer-links a:hover {
    color: #f3e702;
    border-color: #f3e702;
    background: rgba(243, 231, 2, 0.1);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(88, 191, 244, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .footer-patches-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        grid-template-columns: 1fr; /* Se apilan en móvil */
    }
}

/* ======================================
   SUBIR FOOTER CONTRA MIN-HEIGHT DEL CONTAINER
   ====================================== */

/* Reducir el min-height solo en página de patches */
body.patches-page #master-container {
    min-height: 1200px !important; /* Ajusta este valor según tu contenido real */
}

/* Opcional: Ajustar posición del footer si aún necesita más subida */
body.patches-page .footer-patches {
    margin-top: -50px !important; /* Valor adicional para subir más el footer */
}

/* ======================================
   MOVER IMAGEN DEL HEADER EN PATCHES
   ====================================== */

/* Para mover LA IMAGEN DE ARRIBA (header-badge) */
body.patches-page .header-badge {
    top: 8% !important; /* Valor para centrar verticalmente */
    
    /* PRUEBA ESTOS VALORES PARA MOVERLA:
       top: 30% !important;  // Más ARRIBA
       top: 70% !important;  // Más ABAJO
       top: 100px !important; // Posición fija en píxeles
    */
}

/* ======================================
   MODAL DE REGLAS - ESTILO ÉPICO
   ====================================== */

/* Botón que abre el modal */
.rules-btn {
    background: linear-gradient(135deg, #ff0000, #aa0000);
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-weight: bold;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rules-btn:hover {
    background: linear-gradient(135deg, #ff4040, #ff0000);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
    transform: scale(1.05);
}

/* Fondo oscuro del modal */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

/* Contenedor del modal */
.modal-content {
    background: linear-gradient(135deg, #0a0e1a, #1a2332);
    margin: 5% auto;
    padding: 0;
    border: 2px solid #f3e702;
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(243, 231, 2, 0.3);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

/* Botón de cerrar */
.close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #f3e702;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.close-btn:hover {
    color: #ff0000;
    transform: scale(1.2);
}

/* Header del modal */
.rules-header {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, rgba(243, 231, 2, 0.1), rgba(255, 0, 0, 0.1));
    border-bottom: 1px solid #f3e702;
}

.rules-header h2 {
    font-size: 32px;
    color: #f3e702;
    margin-bottom: 10px;
    text-shadow: 0 0 15px rgba(243, 231, 2, 0.5);
    letter-spacing: 2px;
}

.rules-subtitle {
    font-size: 16px;
    color: #58bff4;
    font-style: italic;
}

/* Lista de reglas */
.rules-list-container {
    padding: 30px 40px;
}

.rules-list {
    list-style: none;
    counter-reset: rule-counter;
    margin: 0;
    padding: 0;
}

.rules-list li {
    counter-increment: rule-counter;
    padding: 18px 0;
    padding-left: 70px;
    position: relative;
    font-size: 15px;
    line-height: 1.7;
    border-bottom: 1px solid rgba(120, 163, 200, 0.2);
    transition: all 0.3s ease;
}

.rules-list li:last-child {
    border-bottom: none;
}

/* Números */
.rule-number {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #1f7a32, #2fd96b);
    color: #fff;
    padding: 8px 14px;
    font-weight: bold;
    font-size: 18px;
    border-radius: 3px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    min-width: 50px;
    text-align: center;
}

.rules-list li:hover {
    background: rgba(255, 0, 0, 0.1);
    padding-left: 80px;
}

.rules-list li:hover .rule-number {
    background: linear-gradient(135deg, #ff0000, #aa0000);
    transform: translateY(-50%) scale(1.1);
}

/* Texto en amarillo */
.rules-list li strong {
    color: #f3e702;
}

/* Footer del modal */
.rules-footer {
    padding: 20px;
    text-align: center;
    background: rgba(255, 0, 0, 0.1);
    border-top: 1px solid #ff0000;
}

.rules-footer p {
    font-size: 18px;
    color: #ff0000;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .rules-list-container {
        padding: 20px 25px;
    }
    
    .rules-list li {
        padding-left: 60px;
        font-size: 14px;
    }
    
    .rule-number {
        font-size: 16px;
        padding: 6px 12px;
        min-width: 40px;
    }
}
/* ======================================
   PATCH CON IMAGEN DE FONDO + IMAGEN DE ESQUINA
   ====================================== */

/* PATCH-MX: Imagen de fondo completa */
.patch-bg-mx {
    position: relative;
    background-image: url('../img/patch-bg-mx.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Overlay oscuro SOLO para el contenido (no cubre la imagen de la esquina) */
.patch-bg-mx::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0); /* 60% oscuro */
    z-index: 1;
}

/* La imagen de la esquina QUEDA POR ENCIMA del overlay */
.patch-bg-mx .card-image {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #f3e702;
    box-shadow: 0 0 15px rgba(243, 231, 2, 0.4);
    z-index: 3; /* MÁS ALTO que el overlay */
    overflow: hidden;
}

/* El contenido también por encima del overlay */
.patch-bg-mx .card-content {
    position: relative;
    z-index: 2;
    padding: 80px 25px 25px 25px;
}

/* Asegurar que el botón esté visible */
.patch-bg-mx .download-btn {
    position: relative;
    z-index: 2;
}

/* ======================================
   PATCH-ES: Imagen de fondo completa
   ====================================== */

.patch-bg-es {
    position: relative;
    background-image: url('../img/patch-bg-es.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Overlay oscuro para legibilidad */
.patch-bg-es::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0); /* 60% de oscuro */
    z-index: 1;
}

/* Imagen de la esquina POR ENCIMA del overlay */
.patch-bg-es .card-image {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #f3e702;
    box-shadow: 0 0 15px rgba(243, 231, 2, 0.4);
    z-index: 3; /* MÁS ALTO que el overlay */
    overflow: hidden;
}

/* Contenido también por encima */
.patch-bg-es .card-content {
    position: relative;
    z-index: 2;
    padding: 80px 25px 25px 25px;
}

/* Botón visible */
.patch-bg-es .download-btn {
    position: relative;
    z-index: 2;
}

/* ======================================
   PATCH-EN: Imagen de fondo completa
   ====================================== */

.patch-bg-en {
    position: relative;
    background-image: url('../img/patch-bg-en.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Overlay oscuro para legibilidad */
.patch-bg-en::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 1;
}

/* Imagen de la esquina POR ENCIMA del overlay */
.patch-bg-en .card-image {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #f3e702;
    box-shadow: 0 0 15px rgba(243, 231, 2, 0.4);
    z-index: 3;
    overflow: hidden;
}

/* Contenido también por encima */
.patch-bg-en .card-content {
    position: relative;
    z-index: 2;
    padding: 80px 25px 25px 25px;
}

/* Botón visible */
.patch-bg-en .download-btn {
    position: relative;
    z-index: 2;
}

/* ======================================
   PATCH-A: Imagen de fondo completa
   ====================================== */

.patch-bg-a {
    position: relative;
    background-image: url('../img/patch-bg-a.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Overlay oscuro para legibilidad */
.patch-bg-a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 1;
}

/* Imagen de la esquina POR ENCIMA del overlay */
.patch-bg-a .card-image {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #f3e702;
    box-shadow: 0 0 15px rgba(243, 231, 2, 0.4);
    z-index: 3;
    overflow: hidden;
}

/* Contenido también por encima */
.patch-bg-a .card-content {
    position: relative;
    z-index: 2;
    padding: 80px 25px 25px 25px;
}

/* Botón visible */
.patch-bg-a .download-btn {
    position: relative;
    z-index: 2;
}


/* ======================================
   PATCH-I: Imagen de fondo completa
   ====================================== */

.patch-bg-i {
    position: relative;
    background-image: url('../img/patch-bg-i.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Overlay oscuro para legibilidad */
.patch-bg-i::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 1;
}

/* Imagen de la esquina POR ENCIMA del overlay */
.patch-bg-i .card-image {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #f3e702;
    box-shadow: 0 0 15px rgba(243, 231, 2, 0.4);
    z-index: 3;
    overflow: hidden;
}

/* Contenido también por encima */
.patch-bg-i .card-content {
    position: relative;
    z-index: 2;
    padding: 80px 25px 25px 25px;
}

/* Botón visible */
.patch-bg-i .download-btn {
    position: relative;
    z-index: 2;
}

/* ======================================
   PATCH-L: Imagen de fondo completa
   ====================================== */

.patch-bg-l {
    position: relative;
    background-image: url('../img/patch-bg-l.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Overlay oscuro para legibilidad */
.patch-bg-l::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 1;
}

/* Imagen de la esquina POR ENCIMA del overlay */
.patch-bg-l .card-image {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #f3e702;
    box-shadow: 0 0 15px rgba(243, 231, 2, 0.4);
    z-index: 3;
    overflow: hidden;
}

/* Contenido también por encima */
.patch-bg-l .card-content {
    position: relative;
    z-index: 2;
    padding: 80px 25px 25px 25px;
}

/* Botón visible */
.patch-bg-l .download-btn {
    position: relative;
    z-index: 2;
}
/* ============================= */
/* AVISO PATCH OBLIGATORIO */
/* ============================= */

.patch-warning {
    text-align: center;
    background: linear-gradient(145deg, #1a1a1a, #111);
    border: 2px solid #ff3c00;
    padding: 20px;
    margin: 20px auto 40px auto;
    max-width: 900px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 60, 0, 0.4);
    font-size: 16px;
}

.patch-warning p {
    margin: 8px 0;
}

.patch-warning .highlight {
    color: #ffcc00;
    font-weight: bold;
}

.verify-text {
    color: #00ffcc;
    font-weight: bold;
}
