:root {
    --primary-color: #2d6a4f;
    --secondary-color: #5c8d6a;
    --accent-color: #8d6e63;
    --light-color: #f8f9fa;
    --dark-color: #2c2c2c;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --danger-color: #f44336;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --background-gradient: linear-gradient(135deg, #8d6e63 0%, #5c8d6a 50%, #2d6a4f 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--background-gradient);
    background-attachment: fixed;
    color: var(--dark-color);
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER OPTIMIZADO - Como en animales.html ===== */
header {
    background: linear-gradient(120deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 12px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
    gap: 0 !important;
}

/* LOGO SEPARADO DEL NAV */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 30px !important; /* Separación clara del nav */
    padding-right: 25px !important;
    border-right: 2px solid rgba(255, 255, 255, 0.4) !important; /* Línea divisoria visible */
    white-space: nowrap;
}

.logo-img {
    width: 48px !important;
    height: 48px !important;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px !important;
    font-weight: bold;
    color: var(--primary-color);
    box-shadow: 0 3px 6px rgba(0,0,0,0.25);
    flex-shrink: 0;
}

.logo-text {
    font-size: 24px !important;
    font-weight: 800 !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    letter-spacing: -0.5px;
}

/* NAVIGACIÓN COMPACTA Y A LA DERECHA */
nav {
    margin-left: 0 !important;
    margin-right: 15px !important;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 5px !important; /* Espacio equilibrado */
    margin: 0;
    padding: 0;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 14px !important; /* Tamaño medio */
    border-radius: 20px !important;
    transition: all 0.25s ease;
    font-size: 15px !important; /* Legible pero compacto */
    position: relative;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* BOTÓN DE INICIO SIN BORDES (en todas las páginas excepto index.html) */
body:not(.home-page) nav a.home-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 8px 14px !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    width: auto !important;
    height: auto !important;
    color: white !important;
    text-decoration: none !important;
    font-size: 15px !important;
    letter-spacing: -0.3px !important;
}

body:not(.home-page) nav a.home-btn:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
}

body:not(.home-page) nav a.home-btn.active {
    background: rgba(255, 255, 255, 0.28) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
}

/* Mantener el home button circular en index.html */
.home-page nav a.home-btn {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    font-size: 18px !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
}

.home-page nav a.home-btn:hover {
    background: rgba(255, 255, 255, 0.22) !important;
    transform: translateY(-1px) scale(1.05) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.home-page nav a.home-btn.active {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-2px) scale(1.1) !important;
    border-color: white !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4) !important;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

nav a.active {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

nav a:not(.home-btn):hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: white;
    border-radius: 1px;
    opacity: 0.9;
}

nav a:not(.home-btn).active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 3px;
    background: white;
    border-radius: 1.5px;
    opacity: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* CARRITO EN HEADER */
.cart-icon-header {
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 15px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.cart-icon-header:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    border-color: rgba(255, 255, 255, 0.6);
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--danger-color);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--accent-color);
    animation: pulseCart 2s infinite;
}

@keyframes pulseCart {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.7); }
    70% { transform: scale(1.2); box-shadow: 0 0 0 6px rgba(244, 67, 54, 0); }
}

/* ===== MAIN ===== */
main {
    margin-top: 30px;
}

.section-title {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--accent-color);
}

/* ===== CARDS ===== */
.card {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid #e9ecef;
    margin-bottom: 25px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
}

.card-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* ===== DASHBOARD ===== */
.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

.stat-item:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    transform: scale(1.05);
    border-color: var(--primary-color);
}

.stat-number {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #6c757d;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.2);
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
}

/* ===== BUTTONS ===== */
.btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    border: 2px solid var(--primary-color);
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 106, 79, 0.4);
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #388e3c);
    border-color: var(--success-color);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color), #f57c00);
    border-color: var(--warning-color);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #d32f2f);
    border-color: var(--danger-color);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), #4a7657);
    border-color: var(--secondary-color);
}

.btn-large {
    padding: 15px 40px;
    font-size: 18px;
}

/* Botones de detalle, editar y eliminar */
.btn-detail {
    background: linear-gradient(135deg, var(--accent-color), #a88b7d);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.btn-detail:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(141, 110, 99, 0.4);
    background: linear-gradient(135deg, #a88b7d, var(--accent-color));
}

/* ===== TABLES ===== */
.table-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    margin-top: 25px;
    overflow-x: auto;
    border: 2px solid #e9ecef;
}

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

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 2px solid #e9ecef;
}

th {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    font-weight: 600;
}

tr:hover {
    background: #f8f9fa;
}

/* ===== BADGES ===== */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-inactive {
    background: #f8d7da;
    color: #721c24;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* ===== TABS ===== */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 15px;
}

.tab-btn {
    padding: 10px 20px;
    background: #e9ecef;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 15px;
}

.tab-btn:hover {
    background: #dcdcdc;
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(45, 106, 79, 0.3);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

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

/* ===== SEARCH BAR ===== */
.search-bar {
    margin-bottom: 25px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-bar input {
    flex: 1;
    min-width: 300px;
    padding: 12px 20px;
    border-radius: 25px;
    border: 2px solid #ddd;
}

.search-bar button {
    padding: 12px 25px;
    border-radius: 25px;
}

/* ===== ANIMAL GRID ===== */
.animal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.animal-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid #e9ecef;
}

.animal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.animal-img {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    border-radius: 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    font-weight: bold;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.animal-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-weight: bold;
}

.animal-info p {
    margin: 5px 0;
    color: #6c757d;
    font-size: 14px;
}

.animal-info strong {
    color: var(--dark-color);
}

.animal-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--warning-color);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.animal-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

/* ===== MODALS ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    border: 3px solid var(--primary-color);
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--danger-color);
}

/* ===== NOTIFICATIONS ===== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    box-shadow: var(--shadow);
    z-index: 3000;
    animation: slideDown 0.5s ease, fadeOut 0.5s ease 2.5s forwards;
    border: 2px solid rgba(255,255,255,0.3);
}

@keyframes slideDown {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

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

.notification.success {
    background: linear-gradient(135deg, var(--success-color), #388e3c);
    border-color: var(--success-color);
}

.notification.error {
    background: linear-gradient(135deg, var(--danger-color), #d32f2f);
    border-color: var(--danger-color);
}

.notification.warning {
    background: linear-gradient(135deg, var(--warning-color), #f57c00);
    border-color: var(--warning-color);
}

.notification.info {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    border-color: #2196f3;
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(135deg, var(--dark-color), #1a1a1a);
    color: white;
    text-align: center;
    padding: 25px;
    margin-top: 50px;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.footer-contact {
    margin-top: 10px;
    font-size: 14px;
    opacity: 0.8;
}

/* ===== FEATURE HIGHLIGHT ===== */
.feature-highlight {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
    font-weight: bold;
    animation: pulse 2s infinite;
    border: 2px solid var(--primary-color);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

/* ===== PRICE TAG ===== */
.price-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: bold;
    margin: 8px 0;
    font-size: 18px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* ===== CHECKBOX GROUP ===== */
.checkbox-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-item input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
    width: 100%;
    height: 10px;
    background: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 8px;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* ===== CANVAS STYLES ===== */
canvas {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

/* ===== DASHBOARD CARDS ===== */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.chart-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chart-container-small {
    width: 100%;
    height: 250px;
    position: relative;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e9ecef;
}

.chart-container-small canvas {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 15px 5px;
}

.kpi-grid .stat-item {
    padding: 12px;
    border-radius: 8px;
    background: #f8f9fa;
    text-align: center;
    transition: all 0.2s ease;
}

.kpi-grid .stat-item:hover {
    background: #e9ecef;
    transform: scale(1.02);
}

/* ===== ANIMAL DETAIL PAGE STYLES ===== */
.detail-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    border: 2px solid #e9ecef;
}

.animal-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--primary-color);
    flex-wrap: wrap;
}

.animal-avatar {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

.animal-title {
    flex: 1;
    min-width: 250px;
}

.animal-title h1 {
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 5px;
}

.animal-title .animal-type {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 16px;
    margin-right: 10px;
}

.animal-title .animal-breed {
    color: var(--dark-color);
    font-weight: 500;
    font-size: 18px;
}

.animal-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.detail-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid var(--primary-color);
}

.detail-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-color);
    font-size: 20px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: var(--dark-color);
}

.detail-value {
    font-weight: 500;
    color: var(--primary-color);
}

.progenitor-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin: 8px 0;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.progenitor-card:hover {
    transform: translateX(5px);
    border-color: var(--primary-color);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.progenitor-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: block;
}

.progenitor-card a:hover {
    text-decoration: underline;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--secondary-color), #4a7657);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    border: 2px solid var(--secondary-color);
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(92, 141, 106, 0.4);
    background: linear-gradient(135deg, #4a7657, var(--secondary-color));
}

/* ===== ELIMINADOS PAGE STYLES ===== */
#eliminadosTableBody td {
    vertical-align: middle;
}

/* ===== ACTION COLUMN ===== */
.action-col {
    min-width: 140px !important;
}

/* ===== INDEX.HTML SPECIFIC STYLES ===== */
.welcome-section {
    margin-top: 40px;
    animation: fadeInDown 0.8s ease;
}

.welcome-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 50px;
    box-shadow: var(--shadow);
    text-align: center;
    border: 2px solid #e9ecef;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(45, 106, 79, 0.1) 0%, rgba(141, 110, 99, 0.05) 100%);
    z-index: 0;
}

.welcome-card > * {
    position: relative;
    z-index: 1;
}

.welcome-card h1 {
    color: var(--primary-color);
    font-size: 42px;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
    position: relative;
}

.welcome-subtitle {
    color: #6c757d;
    font-size: 22px;
    margin-bottom: 40px;
    font-weight: 300;
    position: relative;
}

.welcome-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
    position: relative;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    transition: all 0.4s ease;
    border: 1px solid #dee2e6;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.feature-item:hover::before {
    opacity: 0.12;
}

.feature-item:hover .feature-icon {
    transform: scale(1.2) rotate(5deg);
    box-shadow: 0 5px 15px rgba(45, 106, 79, 0.4);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.4s ease;
    flex-shrink: 0;
    border: 3px solid white;
}

.feature-text h3 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 22px;
    font-weight: 700;
    transition: color 0.3s ease;
}

.feature-text p {
    color: #6c757d;
    font-size: 16px;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.feature-item:hover .feature-text h3,
.feature-item:hover .feature-text p {
    color: white;
}

.welcome-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 40px 0;
    flex-wrap: wrap;
    position: relative;
}

.welcome-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 3px solid var(--primary-color);
    position: relative;
}

.stat-box {
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    border: 1px solid #dee2e6;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
    background: white;
}

.stat-box .stat-number {
    font-size: 42px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: block;
    line-height: 1;
}

.stat-box .stat-label {
    color: #6c757d;
    font-size: 16px;
    font-weight: 500;
}

.hero-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--accent-color), #a88b7d);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    animation: pulseBadge 2s infinite;
    z-index: 10;
}

@keyframes pulseBadge {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(141, 110, 99, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(141, 110, 99, 0); }
}

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

/* Responsive para móviles */
@media (max-width: 768px) {
    .welcome-card {
        padding: 30px 20px;
    }
    
    .welcome-card h1 {
        font-size: 32px;
    }
    
    .welcome-subtitle {
        font-size: 18px;
        margin-bottom: 30px;
    }
    
    .welcome-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 36px;
    }
    
    .feature-text h3 {
        font-size: 20px;
    }
    
    .welcome-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .welcome-actions .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .welcome-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-box .stat-number {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .welcome-card h1 {
        font-size: 28px;
    }
    
    .welcome-subtitle {
        font-size: 16px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 32px;
    }
    
    .feature-text h3 {
        font-size: 18px;
    }
    
    .feature-text p {
        font-size: 14px;
    }
    
    .stat-box .stat-number {
        font-size: 32px;
    }
    
    .stat-box .stat-label {
        font-size: 14px;
    }
    
    .hero-badge {
        font-size: 14px;
        padding: 6px 16px;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
    
    .chart-container-small {
        height: 280px;
    }
}

@media (max-width: 992px) {
    nav ul {
        gap: 6px;
    }
    
    nav a {
        padding: 7px 12px;
        font-size: 14px;
    }
    
    .logo {
        margin-right: 20px !important;
        padding-right: 20px !important;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 12px;
        padding: 15px;
    }
    
    .logo {
        margin-bottom: 8px !important;
        margin-right: 0 !important;
        padding-right: 0 !important;
        border-right: none !important;
        border-bottom: 2px solid rgba(255,255,255,0.4) !important;
        padding-bottom: 10px !important;
        justify-content: center !important;
        width: 100% !important;
    }
    
    nav {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }
    
    nav a {
        padding: 6px 10px;
        font-size: 13px;
        border-radius: 16px;
    }
    
    .cart-icon-header {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .dashboard {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .animal-grid {
        grid-template-columns: 1fr;
    }
    
    .search-bar {
        flex-direction: column;
    }
    
    .search-bar input {
        min-width: 100%;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .welcome-actions {
        flex-direction: column;
    }
    
    .chart-container-small {
        height: 300px;
    }
    
    .kpi-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-content {
        width: 95%;
        max-width: 450px;
    }
    
    .product-actions, .animal-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-buy, .btn-contact {
        width: 100%;
        justify-content: center;
    }
    
    /* Animal detail responsive */
    .animal-header {
        flex-direction: column;
        text-align: center;
    }
    
    .animal-actions {
        width: 100%;
        justify-content: center;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo-img {
        width: 42px;
        height: 42px;
        font-size: 22px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    nav ul {
        gap: 4px;
        flex-wrap: wrap;
    }
    
    nav a {
        padding: 5px 8px;
        font-size: 12px;
        border-radius: 14px;
    }
    
    .cart-icon-header {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 100%;
        justify-content: center;
    }
}