:root {
    --primary-color: #6f1d45;  /* Color guinda principal */
    --secondary-color: #6f1d45;  /* Guinda más oscuro */
    --accent-color: #d4a59a;  /* Color de acento que combina con guinda */
    --light-color: #f7fff7;
    --dark-color: #292f36;
    --neon-effect: 0 0 10px rgba(212, 165, 154, 0.6);  /* Efecto neón más suave */
}

html, body {
    background: linear-gradient(rgba(255, 255, 255, 0.466), rgba(255, 255, 255, 0.486));
}

/* Estructura principal mejorada */
#page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main#main-content {
    flex: 1;
    padding: 0;
    position: relative;
    z-index: 1;
}

/* -------------------------------------------------- */
/* NUEVOS ESTILOS PARA LOS CONTENEDORES PRINCIPALES */
/* -------------------------------------------------- */

.dual-layout-container {
    display: flex;
    min-height: calc(100vh - 150px);
    width: 100%;
    position: relative;
}

/* Contenedor de imagen (izquierda) - Versión mejorada */
.image-container {
    flex: 0 0 60%;
    background: 
        linear-gradient(135deg, rgba(111, 29, 69, 0) 0%, rgba(58, 12, 35, 0) 100%),
        url('../public/imagen/police.jpg') left/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1;
    transition: all 0.5s ease;
}

/* Efecto de borde decorativo */
.image-container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, 
        var(--accent-color), 
        var(--primary-color), 
        var(--accent-color));
    z-index: 2;
}

/* Contenedor de cards (derecha) - Versión mejorada */
.cards-container {
    flex: 0 0 40%;
    padding: 2rem 1.5rem;
    background: white;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* -------------------------------------------------- */
/* ESTILOS MEJORADOS PARA LAS CARDS */
/* -------------------------------------------------- */

.pdf-main-container {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0;
    margin: 0;
}

.pdf-cards-container {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0.5rem;
}

.pdf-card {
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background: white;
    width: 100%;
    display: flex;
    flex-direction: column;
    border-top: 3px solid var(--primary-color);
}

.pdf-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Encabezado de card mejorado */
.card-header {
    margin-bottom: 1.2rem;
}

.card-title {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    position: relative;
    padding-bottom: 0.5rem;
    text-align: center;
}

.card-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

/* Lista de instrucciones mejorada */
.pdf-card ol {
    padding-left: 1.25rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.pdf-card ol li {
    margin-bottom: 0.6rem;
    line-height: 1.5;
    font-size: 0.9rem;
    color: #555;
}

/* Área de botones optimizada */
.card-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: auto;
    align-items: center;
}

/* -------------------------------------------------- */
/* MANTENIENDO TUS ESTILOS EXISTENTES (HEADER, FOOTER, ETC) */
/* -------------------------------------------------- */

.hero-section {
    background-color: var(--primary-color);
    color: white;
    padding: 2.5rem 0;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(212, 165, 154, 0.2);
    box-shadow: 0 0 20px rgba(128, 0, 32, 0.7);
}

.digital-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(128, 0, 32, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(128, 0, 32, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: gridMove 40s linear infinite;
    z-index: 0;
    opacity: 0.5;
}

.digital-line {
    position: absolute;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--accent-color), transparent);
    left: 20%;
    animation: scanLine 8s linear infinite;
    opacity: 0.7;
}

.digital-corner {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid var(--accent-color);
    opacity: 0.8;
}

.corner-tl {
    top: 20px;
    left: 20px;
    border-right: none;
    border-bottom: none;
    animation: cornerPulse 4s infinite;
}

.corner-tr {
    top: 20px;
    right: 20px;
    border-left: none;
    border-bottom: none;
    animation: cornerPulse 4s infinite 1s;
}

.corner-bl {
    bottom: 20px;
    left: 20px;
    border-right: none;
    border-top: none;
    animation: cornerPulse 4s infinite 2s;
}

.corner-br {
    bottom: 20px;
    right: 20px;
    border-left: none;
    border-top: none;
    animation: cornerPulse 4s infinite 3s;
}

footer {
    background-color: #6f1d45;
    color: white;
    position: relative;
    overflow: hidden;
    padding: 3rem 0;
    border-top: 1px solid rgba(212, 165, 154, 0.2);
    box-shadow: 0 0 20px rgba(128, 0, 32, 0.5);
}

.binary-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    opacity: 0.15;
}

.binary-column {
    position: absolute;
    top: -100%;
    color: var(--accent-color);
    font-family: monospace;
    font-size: 18px;
    font-weight: bold;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    text-shadow: 0 0 5px var(--accent-color);
    animation: binaryFall linear infinite;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.logo-container {
    flex: 0 0 auto;
    margin-right: 2rem;
    padding-right: 2rem;
    border-right: 2px solid rgba(212, 165, 154, 0.4);
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-ssp {
    height: 110px;
    width: auto;
    max-width: 100%;
    filter: 
        drop-shadow(0 0 8px rgba(212, 165, 154, 0.6))
        brightness(0) invert(1)
        brightness(1.1);
    transition: all 0.4s ease;
    object-fit: contain;
}

.logo-ssp:hover {
    transform: scale(1.05);
    filter: 
        drop-shadow(0 0 12px rgba(212, 165, 154, 0.8))
        brightness(0) invert(1)
        brightness(1.2);
}

.header-content {
    flex: 1;
    padding-left: 1rem;
}

.main-title {
    font-weight: 800;
    letter-spacing: 2px;
    color: white;
    margin-bottom: 0.5rem;
    font-size: 2.2rem;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(212, 165, 154, 0.7);
    position: relative;
}

.main-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--accent-color), transparent);
    animation: titleUnderline 3s infinite;
}

.sub-title {
    font-weight: 300;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.badge-container {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.badge-glow {
    animation: glow 2s ease-in-out infinite alternate;
    border: 1px solid rgba(212, 165, 154, 0.5);
    background-color: rgba(212, 165, 154, 0.1);
    color: white;
    backdrop-filter: blur(2px);
}

.btn-download {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    border: none;
    padding: 0.7rem 2.2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    letter-spacing: 0.5px;
    color: white;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.3) inset;
    position: relative;
    overflow: hidden;
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.btn-download:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.btn-download:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transform: translateY(-3px);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

.btn-download:hover:before {
    left: 100%;
}

.progress {
    height: 6px;
    display: none;
    margin-top: 12px;
    border-radius: 3px;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 220px;
}

.progress-bar {
    transition: width 0.3s ease;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
}

.form-check-input {
    width: 1.2em;
    height: 1.2em;
    margin-top: 0.2em;
    margin-left: -1.8em;
    background-color: white;
    border: 2px solid var(--primary-color);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(111, 29, 69, 0.25);
}

.form-check-label {
    font-size: 0.85rem;
    color: #555;
    cursor: pointer;
    user-select: none;
}

/* -------------------------------------------------- */
/* ANIMACIONES Y MEDIA QUERIES */
/* -------------------------------------------------- */

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 40px 40px; }
}

@keyframes scanLine {
    0% { top: -100%; }
    100% { top: 100%; }
}

@keyframes cornerPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes binaryFall {
    to { top: 100%; }
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px rgba(212, 165, 154, 0.3);
    }
    to {
        box-shadow: 0 0 15px rgba(212, 165, 154, 0.7);
    }
}

@keyframes titleUnderline {
    0% { opacity: 0.3; width: 0%; left: 50%; }
    50% { opacity: 1; width: 100%; left: 0%; }
    100% { opacity: 0.3; width: 0%; left: 0%; }
}

/* -------------------------------------------------- */
/* RESPONSIVE DESIGN */
/* -------------------------------------------------- */

@media (max-width: 1200px) {
    .image-container {
        flex: 0 0 50%;
    }
    .cards-container {
        flex: 0 0 50%;
    }
}

@media (max-width: 992px) {
    .dual-layout-container {
        flex-direction: column;
    }
    
    .image-container, 
    .cards-container {
        flex: 1;
        width: 100%;
    }
    
    .image-container {
        min-height: 400px;
        order: 1;
    }
    
    .cards-container {
        order: 2;
        padding: 2rem;
    }
    
    .image-container::before {
        width: 100%;
        height: 4px;
        background: linear-gradient(to right, 
            var(--accent-color), 
            var(--primary-color), 
            var(--accent-color));
    }
}

@media (max-width: 768px) {
    .pdf-card {
        padding: 1rem;
    }
    
    .cards-container {
        padding: 1.5rem;
    }
    
    .image-container {
        min-height: 300px;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .pdf-card ol li {
        font-size: 0.85rem;
    }
    
    .btn-download {
        padding: 0.6rem 1.2rem;
    }
}

@media (max-width: 576px) {
    .pdf-card-body {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .pdf-card ol {
        padding-left: 1rem;
    }
}

/* HEADER RESPONSIVE - Agrega esto al final de tu CSS */

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .logo-container {
        margin-right: 0;
        padding-right: 0;
        border-right: none;
        border-bottom: 2px solid rgba(212, 165, 154, 0.4);
        padding-bottom: 1rem;
        margin-bottom: 1rem;
        width: 100%;
        justify-content: center;
    }

    .logo-ssp {
        height: 80px; /* Tamaño reducido para móviles */
    }

    .header-content {
        padding-left: 0;
        width: 100%;
    }

    .main-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .sub-title {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }

    .badge-container {
        justify-content: center;
    }

    /* Ajuste adicional para pantallas muy pequeñas */
    @media (max-width: 480px) {
        .main-title {
            font-size: 1.5rem;
        }
        
        .sub-title {
            font-size: 0.9rem;
        }
        
        .logo-ssp {
            height: 70px;
        }
    }
}