/* ============================================
   INFORMACIÓN TÉCNICA - ESTILOS
   ============================================ */

.infotecnica-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
}

/* Título principal */
.infotecnica-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #111111;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: -0.5px;
    border-bottom: 3px solid #facc15;
    display: inline-block;
    width: auto;
    padding-bottom: 0.5rem;
}

/* Grid de documentos principales */
/* Cards más grandes para que entren los flyers */
.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.doc-card {
    background: #ffffff;
    border: 1px solid #eef2ff;
    border-radius: 28px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.doc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px -12px rgba(0,0,0,0.15);
    border-color: #facc15;
}

.doc-card-img {
    width: 100%;
    height: auto;  /* Cambiado de 200px a auto */
    min-height: 300px;
    max-height: 500px;
    object-fit: contain;  /* Cambiado de cover a contain para que la imagen se vea completa */
    border-radius: 20px;
    margin-bottom: 1.5rem;
    background: #f8fafc;
}

.doc-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111111;
    margin-bottom: 0.5rem;
}

.doc-card p {
    color: #6b7280;
    font-size: 0.95rem;
}

/* ============================================
   MODAL / VISOR DE DOCUMENTOS
   ============================================ */

.doc-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 10000;
    overflow-y: auto;
}

.doc-modal.active {
    display: block;
}

.modal-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 1rem;
    position: relative;
}

/* Botones de control */
.modal-controls {
    position: sticky;
    top: 1rem;
    right: 0;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-bottom: 1rem;
    z-index: 10001;
}

.modal-btn {
    background: #facc15;
    color: #111111;
    border: none;
    border-radius: 40px;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.modal-btn:hover {
    background: #eab308;
    transform: scale(1.02);
}

.modal-btn.close {
    background: #dc2626;
    color: white;
}

.modal-btn.close:hover {
    background: #b91c1c;
}

/* Contenedor de imágenes del documento */
.document-images {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.doc-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    display: block;
}

/* Animación de entrada */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.doc-image {
    animation: fadeIn 0.3s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .infotecnica-page {
        padding: 1.5rem;
    }
    
    .infotecnica-title {
        font-size: 1.8rem;
    }
    
    .docs-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-container {
        margin: 1rem auto;
        padding: 0.5rem;
    }
    
    .modal-btn {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
}