/* ========================================
   Pagina de Catalogos - Estilos
   ======================================== */

/* Catalogos Section */
.catalogos-section {
    padding: 40px 0 60px;
    background-color: #fff;
}

/* Catalogos Grid */
.catalogos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 30px;
    margin-bottom: 50px;
}

/* Catalog Card */
.catalogo-card {
    background: white;
    border-radius: 16px;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: border 0.3s ease;
    position: relative;
    border: 2px solid transparent;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.12);
    text-decoration: none;
}

.catalogo-card:hover {
    border: 2px solid #282828;
}

.catalogo-image {
    width: 100%;
    height: 260px;
    border-radius: 22px;
    overflow: hidden;
    margin-bottom: 16px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.catalogo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
}

.catalogo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.catalogo-title {
    text-align: center;
    color: #282828;
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 10px;
}

.catalogo-description {
    text-align: center;
    color: #5C5C5C;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 16px;
    flex: 1;
}

/* Download Button */
.btn-download-catalogo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border: 2px solid #282828;
    border-radius: 24px;
    background: transparent;
    color: #282828;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.btn-download-catalogo:hover {
    background-color: #282828;
    color: #fff;
}

/* Load More */
.catalogos-section .load-more-wrapper {
    text-align: center;
    margin-top: 10px;
}

.catalogos-section .btn-load-more {
    padding: 14px 50px;
    border: 2px solid #282828;
    border-radius: 30px;
    background: transparent;
    color: #282828;
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.catalogos-section .btn-load-more:hover {
    background-color: #282828;
    color: #fff;
}

.catalogos-section .btn-load-more:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========================================
   Modal Styles
   ======================================== */

.catalogo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.catalogo-modal {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    animation: catalogoModalIn 0.3s ease;
}

@keyframes catalogoModalIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.catalogo-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #282828;
    cursor: pointer;
    line-height: 1;
}

.catalogo-modal-close:hover {
    color: #000;
}

.catalogo-modal-title {
    color: #282828;
    font-size: 22px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    margin-bottom: 30px;
}

.catalogo-modal .catalogo-form-group {
    margin-bottom: 20px;
}

.catalogo-modal .catalogo-form-group label {
    display: block;
    color: #727272;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    line-height: 16.52px;
    margin-bottom: 8px;
}

.catalogo-modal .catalogo-form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 2px solid #282828;
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    color: #282828;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.catalogo-modal .catalogo-form-control::placeholder {
    color: #727272;
}

.catalogo-modal .catalogo-form-control:focus {
    outline: none;
    border-color: #000;
}

.btn-submit-catalogo {
    width: 100%;
    padding: 14px 40px;
    background: #282828;
    border: 2px solid #282828;
    border-radius: 24px;
    color: #fff;
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-submit-catalogo:hover {
    background: #000;
}

.btn-submit-catalogo:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.catalogo-form-error {
    color: #d63638;
    font-size: 14px;
    margin-top: 10px;
    display: none;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 1200px) {
    .catalogos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px 25px;
    }
}

@media (max-width: 992px) {
    .catalogos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
    }
}

@media (max-width: 768px) {
    .catalogos-section {
        padding: 30px 0 40px;
    }

    .catalogos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px 15px;
    }

    .catalogo-image {
        height: 200px;
    }

    .catalogo-modal {
        padding: 30px 20px;
        margin: 10px;
    }

    .catalogo-modal-title {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .catalogos-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .catalogo-card {
        max-width: 400px;
        margin: 0 auto;
        width: 100%;
    }

    .btn-download-catalogo {
        width: 100%;
        justify-content: center;
    }
}
