.catalogo-page {
    padding: 120px 5% 50px;
    color: white;
}

.catalogo-hero,
.catalogo-panel-wrap {
    max-width: 1200px;
    margin: 0 auto 28px;
}

.catalogo-hero-card,
.catalogo-panel {
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.catalogo-hero-card {
    padding: 34px;
}

.catalogo-badge {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.18);
    color: #bae6fd;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.catalogo-hero-card h1 {
    margin-bottom: 12px;
    font-size: clamp(2rem, 4vw, 2.8rem);
}

.catalogo-hero-card p {
    max-width: 760px;
    margin: 0;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
}

.catalogo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.catalogo-actions .btn,
.catalogo-actions .btn-small {
    margin-top: 0;
}

.catalogo-panel {
    padding: 28px;
}

.catalogo-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.catalogo-title-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.catalogo-logo {
    width: 72px;
    height: auto;
    padding: 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.95);
}

.catalogo-eyebrow {
    margin: 0 0 4px;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #93c5fd;
}

.catalogo-panel h2 {
    margin: 0;
    font-size: 1.7rem;
}

.catalogo-panel-copy {
    max-width: 460px;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.controls {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.controls select,
.controls input {
    width: 100%;
    padding: 12px 14px;
    background: rgba(2, 6, 23, 0.78);
    color: white;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 10px;
}

.controls select:focus,
.controls input:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

.catalogo-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.catalogo-toolbar button {
    margin: 0;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.catalogo-toolbar button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.3);
}

.catalogo-table-wrap {
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
	flex-basis: 100%;
}

.catalogo-table-wrap table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    background: rgba(2, 6, 23, 0.78);
}

.catalogo-table-wrap th,
.catalogo-table-wrap td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.catalogo-table-wrap th {
    background: rgba(14, 165, 233, 0.16);
    color: #e0f2fe;
}

.catalogo-table-wrap tbody tr:hover {
    background: rgba(14, 165, 233, 0.08);
}

@media (max-width: 900px) {
    .controls {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalogo-panel-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .catalogo-page {
        padding: 110px 4% 40px;
    }

    .catalogo-hero-card,
    .catalogo-panel {
        padding: 20px;
    }

    .controls {
        grid-template-columns: 1fr;
    }

    .catalogo-title-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .catalogo-actions {
        flex-direction: column;
    }

    .catalogo-actions .btn,
    .catalogo-actions .btn-small {
        width: 100%;
        text-align: center;
    }
}

/* =======================
   MODAL STYLES
   ======================= */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    max-width: 500px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    color: white;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    text-align: center
}

.modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: white;
}

.modal-body {
    padding: 10px;
    color: white;
}

.modal-subtitle {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.download-form-section {
    margin-bottom: 10px;
}

.download-form-section label {
    display: block;
    margin-bottom: 2px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.95rem;
}

.required {
    color: #ef4444;
}

.download-form-section input,
.download-form-section select {
    width: 100%;
    padding: 7px 14px;
    background: rgba(2, 6, 23, 0.78);
    color: white;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.download-form-section input:focus,
.download-form-section select:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

.download-form-section input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.download-alert {
    padding: 12px 14px;
    margin-bottom: 16px;
    border-radius: 10px;
    font-size: 0.95rem;
}

.download-alert.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.download-alert.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #86efac;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-primary,
.btn-secondary {
    padding: 11px 22px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.3);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: rgba(148, 163, 184, 0.2);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.btn-secondary:hover {
    background: rgba(148, 163, 184, 0.3);
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .modal-content {
        max-width: 95%;
        max-height: 90vh;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}
