@page {
    size: A4 portrait;
    margin: 12mm 10mm;
    background-color: #fcfaf7;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #2d3748;
    background-color: #fcfaf7;
    margin: 0;
    padding: 20px;
    font-size: 9.5pt;
    line-height: 1.4;
}

/* Top Header */
.header-banner {
    background-color: #4a6b5d;
    color: #ffffff;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-table {
    width: 100%;
    border-collapse: collapse;
}

.header-table td {
    vertical-align: middle;
}

.logo-badge {
    width: 52px;
    height: 52px;
    background-color: #f3eae1;
    color: #4a6b5d;
    border-radius: 50%;
    text-align: center;
    line-height: 52px;
    font-size: 22pt;
    font-weight: bold;
    display: inline-block;
}

.header-title {
    font-size: 18pt;
    font-weight: bold;
    margin: 0;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.header-subtitle {
    font-size: 9.5pt;
    color: #d1e0d7;
    margin: 3px 0 0 0;
}

.header-tag {
    background-color: #e07a5f;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 8pt;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    float: right;
}

/* Section Styling */
.section-title {
    font-size: 13pt;
    font-weight: bold;
    color: #4a6b5d;
    border-bottom: 2px solid #d4c5b9;
    padding-bottom: 4px;
    margin-top: 14px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Grid Layout using Tables */
.grid-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 10px 0;
}

.card {
    background-color: #ffffff;
    border: 1px solid #e2d9d0;
    border-radius: 8px;
    padding: 12px;
    vertical-align: top;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.cat-photo-placeholder {
    width: 100%;
    height: 110px;
    background-color: #f0e6df;
    border-radius: 6px;
    text-align: center;
    line-height: 110px;
    color: #8c7a6b;
    font-size: 32pt;
    margin-bottom: 8px;
}

.cat-name {
    font-size: 12pt;
    font-weight: bold;
    color: #2d3748;
    margin: 0 0 4px 0;
}

.badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 7.5pt;
    font-weight: bold;
    margin-bottom: 6px;
}

.badge-urgent { background-color: #f8d7da; color: #721c24; }
.badge-normal { background-color: #d4edda; color: #155724; }
.badge-foster { background-color: #fff3cd; color: #856404; }

.cat-desc {
    font-size: 8.5pt;
    color: #5a6578;
    margin-bottom: 8px;
    min-height: 34px;
}

.cat-meta {
    font-size: 8pt;
    color: #718096;
    border-top: 1px dashed #e2d9d0;
    padding-top: 6px;
}

.btn-adopt {
    display: block;
    width: 100%;
    background-color: #e07a5f;
    color: #ffffff;
    text-align: center;
    padding: 6px 0;
    border-radius: 4px;
    font-weight: bold;
    font-size: 8.5pt;
    text-decoration: none;
    margin-top: 8px;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s ease;
}

.btn-adopt:hover {
    background-color: #c9654c;
}

/* Form Mockup */
.form-container {
    background-color: #ffffff;
    border: 1px solid #e2d9d0;
    border-radius: 8px;
    padding: 14px 16px;
    margin-top: 10px;
}

.form-table {
    width: 100%;
    border-collapse: collapse;
}

.form-table td {
    padding: 4px 6px;
    vertical-align: top;
}

.form-label {
    font-weight: bold;
    font-size: 8.5pt;
    color: #4a5568;
    margin-bottom: 2px;
    display: block;
}

.form-input {
    width: 100%;
    background-color: #f7fafc;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    padding: 6px 8px;
    font-size: 8.5pt;
    color: #2d3748;
    outline: none;
}

.form-input:focus {
    border-color: #4a6b5d;
    background-color: #ffffff;
}

.btn-submit {
    background-color: #4a6b5d;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 9pt;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
    transition: background-color 0.2s ease;
}

.btn-submit:hover {
    background-color: #3b564a;
}

.feedback-message {
    display: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 8.5pt;
    font-weight: bold;
    margin-top: 10px;
    text-align: center;
}

/* Footer Callouts */
.info-box {
    background-color: #eaf2ed;
    border-left: 4px solid #4a6b5d;
    padding: 10px 12px;
    border-radius: 0 6px 6px 0;
    margin-top: 12px;
    font-size: 8.5pt;
}

.footer {
    margin-top: 16px;
    text-align: center;
    font-size: 8pt;
    color: #a0aec0;
    border-top: 1px solid #e2d9d0;
    padding-top: 8px;
}

/* Layout & Alignment Helpers */
.col-logo { width: 60px; }
.text-right { text-align: right; }
.card-col { width: 33.333%; }
.section-title-spaced { margin-top: 18px; }
.form-cell-half { width: 50%; }
.form-row-padded { padding-top: 6px; }
.checkbox-table { width: 100%; font-size: 8pt; color: #4a5568; }

/* Modal de Confirmación Mockup */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-card {
    background-color: #ffffff;
    border: 1px solid #e2d9d0;
    border-radius: 12px;
    padding: 24px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid #eaf2ed;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.modal-icon {
    font-size: 24pt;
}

.modal-title {
    font-size: 14pt;
    font-weight: bold;
    color: #4a6b5d;
    margin: 0;
}

.modal-body {
    font-size: 8.5pt;
    color: #4a5568;
    line-height: 1.5;
}

.modal-receipt {
    background-color: #f7fafc;
    border: 1px dashed #cbd5e0;
    border-radius: 6px;
    padding: 10px;
    margin: 12px 0;
    font-family: monospace;
    font-size: 8pt;
    color: #2d3748;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.btn-secondary {
    background-color: #718096;
    color: #ffffff;
    border: none;
    padding: 8px 14px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 8.5pt;
    cursor: pointer;
    flex: 1;
}

.btn-secondary:hover {
    background-color: #4a5568;
}