/* Estilos generales del artículo */
.aagp-article-container { width:100%; max-width:100%; margin:0; padding:0; line-height:1.6; color:#333; }
.aagp-article-container.alignwide{ margin-left:auto; margin-right:auto; }
.aagp-fit-entry { box-sizing:border-box; }
.aagp-article-container img, .aagp-article-container table, .aagp-article-container iframe { max-width:100%; height:auto; }

/* Estilos para encabezados */
.aagp-article-container h1 {
    font-size: 2.5em;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.aagp-article-container h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #4CAF50, #2196F3);
    border-radius: 2px;
}

.aagp-article-container h2 {
    font-size: 1.8em;
    color: #34495e;
    margin: 40px 0 20px 0;
    padding: 15px 0 15px 20px;
    border-left: 5px solid #3498db;
    background: linear-gradient(90deg, rgba(52, 152, 219, 0.1), transparent);
    border-radius: 0 10px 10px 0;
    position: relative;
    overflow: hidden;
}

.aagp-article-container h2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #3498db, #2980b9);
}

.aagp-article-container h3 {
    font-size: 1.4em;
    color: #2c3e50;
    margin: 30px 0 15px 0;
    padding-left: 15px;
    border-left: 3px solid #e74c3c;
}

/* Estilos para párrafos */
.aagp-article-container p {
    margin-bottom: 18px;
    text-align: justify;
    font-size: 1.05em;
    line-height: 1.7;
}

/* Estilos para listas */
.aagp-article-container ul {
    margin: 20px 0;
    padding-left: 0;
}

.aagp-article-container li {
    list-style: none;
    position: relative;
    padding: 8px 0 8px 30px;
    margin-bottom: 10px;
    background: rgba(52, 152, 219, 0.05);
    border-radius: 8px;
    padding-left: 40px;
    transition: all 0.3s ease;
}

.aagp-article-container li::before {
    content: '🔸';
    position: absolute;
    left: 15px;
    top: 8px;
    font-size: 1.2em;
}

.aagp-article-container li:hover {
    background: rgba(52, 152, 219, 0.1);
    transform: translateX(5px);
}

/* Estilos para el mapa de distribución */
.aagp-distribution-map {
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 15px;
    margin: 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-style: italic;
    font-size: 1.2em;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.aagp-distribution-map::before {
    content: '🗺️ Mapa interactivo mostrando la distribución geográfica aproximada del animal. Esta sección incluye información detallada sobre las regiones donde habita la especie, incluyendo países, continentes y ecosistemas específicos donde se puede encontrar naturalmente.';
    text-align: center;
    padding: 40px;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    line-height: 1.6;
}

.aagp-distribution-map::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: mapShine 4s infinite;
}

@keyframes mapShine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Estilos para la ficha resumen */
.aagp-animal-summary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 20px;
    margin: 25px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    color: white;
    position: relative;
    overflow: hidden;
}

.aagp-animal-summary-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: cardShine 3s infinite;
}

@keyframes cardShine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.aagp-animal-summary-card h3 {
    color: white;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5em;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
}

.aagp-animal-summary {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.aagp-animal-summary td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    vertical-align: middle;
    transition: all 0.3s ease;
}

.aagp-animal-summary tr:last-child td {
    border-bottom: none;
}

.aagp-animal-summary .summary-icon {
    width: 45px;
    text-align: center;
    font-size: 1.3em;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    padding: 10px;
    position: relative;
}

/* Colores específicos para cada tipo de dato */
.aagp-animal-summary tr:nth-child(1) .summary-icon { background: linear-gradient(135deg, #FF6B6B, #FF8E53); } /* Familia - Rojo coral */
.aagp-animal-summary tr:nth-child(2) .summary-icon { background: linear-gradient(135deg, #4ECDC4, #44A08D); } /* Orden - Verde azulado */
.aagp-animal-summary tr:nth-child(3) .summary-icon { background: linear-gradient(135deg, #45B7D1, #96C93D); } /* Clase - Azul verde */
.aagp-animal-summary tr:nth-child(4) .summary-icon { background: linear-gradient(135deg, #F093FB, #F5576C); } /* Gestación - Rosa */
.aagp-animal-summary tr:nth-child(5) .summary-icon { background: linear-gradient(135deg, #FFC371, #FF5F6D); } /* Crías - Naranja */
.aagp-animal-summary tr:nth-child(6) .summary-icon { background: linear-gradient(135deg, #C471ED, #F64F59); } /* Reproducción - Púrpura */
.aagp-animal-summary tr:nth-child(7) .summary-icon { background: linear-gradient(135deg, #12C2E9, #C471ED); } /* Dieta - Azul púrpura */
.aagp-animal-summary tr:nth-child(8) .summary-icon { background: linear-gradient(135deg, #FFD89B, #19547B); } /* Vida - Dorado azul */
.aagp-animal-summary tr:nth-child(9) .summary-icon { background: linear-gradient(135deg, #667eea, #764ba2); } /* Peso - Azul púrpura */
.aagp-animal-summary tr:nth-child(10) .summary-icon { background: linear-gradient(135deg, #f093fb, #f5576c); } /* Altura - Rosa fucsia */
.aagp-animal-summary tr:nth-child(11) .summary-icon { background: linear-gradient(135deg, #4facfe, #00f2fe); } /* Velocidad - Azul cian */
.aagp-animal-summary tr:nth-child(12) .summary-icon { background: linear-gradient(135deg, #43e97b, #38f9d7); } /* Hábitat - Verde menta */

.aagp-animal-summary .summary-label {
    font-weight: bold;
    width: 40%;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.aagp-animal-summary .summary-value {
    color: white;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.aagp-animal-summary tr:hover {
    background: rgba(255,255,255,0.15);
    transform: scale(1.02);
}

.aagp-animal-summary tr:hover .summary-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 15px rgba(255,255,255,0.3);
}

/* Estilos mejorados para tablas */
.aagp-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    font-size: 0.95em;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 12px;
    overflow: hidden;
    background: white;
    transition: all 0.3s ease;
}

.aagp-table:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.aagp-table th,
.aagp-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #e8f4f8;
    transition: all 0.3s ease;
}

.aagp-table thead th {
    background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

.aagp-table thead th::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.aagp-table:hover thead th::before {
    left: 100%;
}

.aagp-table tbody tr {
    transition: all 0.3s ease;
}

.aagp-table tbody tr:nth-child(even) {
    background-color: #f8fffe;
}

.aagp-table tbody tr:hover {
    background: linear-gradient(90deg, #e8f5e9, #f1f8e9);
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Estilos específicos para la tabla taxonómica */
.aagp-taxonomy-wrapper {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    border: 1px solid #e0f2f1;
    position: relative;
    overflow: hidden;
}

.aagp-taxonomy-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4CAF50, #8BC34A, #CDDC39, #FFC107);
}

.aagp-taxonomy-title {
    text-align: center;
    color: #2e7d32;
    margin-bottom: 20px;
    font-size: 1.4em;
    position: relative;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.aagp-taxonomy-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    border-radius: 2px;
}

.aagp-taxonomy-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.aagp-taxonomy-table thead th {
    background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
    color: white;
    padding: 15px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.aagp-taxonomy-table thead th::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.aagp-taxonomy-table:hover thead th::before {
    left: 100%;
}

/* Colores específicos para cada nivel taxonómico */
.aagp-taxonomy-table tr:nth-child(1) .tax-level { 
    background: linear-gradient(90deg, rgba(244, 67, 54, 0.1), rgba(244, 67, 54, 0.05)); 
    border-left: 4px solid #F44336; 
    color: #D32F2F; 
}

.aagp-taxonomy-table tr:nth-child(2) .tax-level { 
    background: linear-gradient(90deg, rgba(255, 152, 0, 0.1), rgba(255, 152, 0, 0.05)); 
    border-left: 4px solid #FF9800; 
    color: #F57C00; 
}

.aagp-taxonomy-table tr:nth-child(3) .tax-level { 
    background: linear-gradient(90deg, rgba(255, 193, 7, 0.1), rgba(255, 193, 7, 0.05)); 
    border-left: 4px solid #FFC107; 
    color: #F57F17; 
}

.aagp-taxonomy-table tr:nth-child(4) .tax-level { 
    background: linear-gradient(90deg, rgba(139, 195, 74, 0.1), rgba(139, 195, 74, 0.05)); 
    border-left: 4px solid #8BC34A; 
    color: #689F38; 
}

.aagp-taxonomy-table tr:nth-child(5) .tax-level { 
    background: linear-gradient(90deg, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.05)); 
    border-left: 4px solid #4CAF50; 
    color: #388E3C; 
}

.aagp-taxonomy-table tr:nth-child(6) .tax-level { 
    background: linear-gradient(90deg, rgba(0, 150, 136, 0.1), rgba(0, 150, 136, 0.05)); 
    border-left: 4px solid #009688; 
    color: #00695C; 
}

.aagp-taxonomy-table tr:nth-child(7) .tax-level { 
    background: linear-gradient(90deg, rgba(33, 150, 243, 0.1), rgba(33, 150, 243, 0.05)); 
    border-left: 4px solid #2196F3; 
    color: #1976D2; 
}

.aagp-taxonomy-table .tax-level {
    font-weight: bold;
    width: 40%;
    border-right: 2px solid #e8f5e9;
    padding: 15px;
    position: relative;
    transition: all 0.3s ease;
}

.aagp-taxonomy-table .tax-value {
    color: #424242;
    font-style: italic;
    font-weight: 500;
    padding: 15px;
    background: rgba(255,255,255,0.8);
    transition: all 0.3s ease;
}

.aagp-taxonomy-table .tax-value em {
    font-style: normal;
    color: #1b5e20;
    font-weight: bold;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #4CAF50;
}

.aagp-taxonomy-table tr:hover {
    background: linear-gradient(90deg, rgba(76, 175, 80, 0.15), rgba(139, 195, 74, 0.1));
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.aagp-taxonomy-table tr:hover .tax-level {
    transform: translateX(5px);
}

.aagp-taxonomy-table tr:hover .tax-value {
    background: rgba(255,255,255,0.95);
}

/* Estilos para párrafos resaltados */
.highlight-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 5px solid #2196F3;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(33, 150, 243, 0.15);
    color: #1565c0;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.highlight-info::before {
    content: 'ℹ️';
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.2em;
    opacity: 0.7;
}

.highlight-warning {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-left: 5px solid #FF9800;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(255, 152, 0, 0.15);
    color: #e65100;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.highlight-warning::before {
    content: '⚠️';
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.2em;
    opacity: 0.8;
}

.highlight-success {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-left: 5px solid #4CAF50;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.15);
    color: #2e7d32;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.highlight-success::before {
    content: '✅';
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.2em;
    opacity: 0.8;
}

.highlight-danger {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-left: 5px solid #F44336;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(244, 67, 54, 0.15);
    color: #c62828;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.highlight-danger::before {
    content: '🚨';
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.2em;
    opacity: 0.8;
}

/* Efectos hover para párrafos resaltados */
.highlight-info:hover,
.highlight-warning:hover,
.highlight-success:hover,
.highlight-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

/* Recuadros de información especial */
.info-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #6c757d;
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.info-box-title {
    font-weight: bold;
    font-size: 1.1em;
    color: #495057;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-box-content {
    color: #6c757d;
    line-height: 1.6;
}

/* Recuadros temáticos específicos */
.curiosity-box {
    background: linear-gradient(135deg, #fff9c4 0%, #fff59d 100%);
    border: 2px solid #fbc02d;
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
    position: relative;
    box-shadow: 0 4px 15px rgba(251, 192, 45, 0.2);
}

.curiosity-box::before {
    content: '🤔';
    position: absolute;
    top: -10px;
    left: 20px;
    background: #fbc02d;
    padding: 5px 10px;
    border-radius: 50%;
    font-size: 1.2em;
}

.research-box {
    background: linear-gradient(135deg, #e1f5fe 0%, #b3e5fc 100%);
    border: 2px solid #0288d1;
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
    position: relative;
    box-shadow: 0 4px 15px rgba(2, 136, 209, 0.2);
}

.research-box::before {
    content: '🔬';
    position: absolute;
    top: -10px;
    left: 20px;
    background: #0288d1;
    padding: 5px 10px;
    border-radius: 50%;
    font-size: 1.2em;
}

.evolution-box {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    border: 2px solid #8e24aa;
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
    position: relative;
    box-shadow: 0 4px 15px rgba(142, 36, 170, 0.2);
}

.evolution-box::before {
    content: '🧬';
    position: absolute;
    top: -10px;
    left: 20px;
    background: #8e24aa;
    padding: 5px 10px;
    border-radius: 50%;
    font-size: 1.2em;
}

/* Estilos para cajas destacadas mejoradas */
.aagp-highlight-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: none;
    border-left: 5px solid #2196F3;
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.15);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.aagp-highlight-box::before {
    content: '💡';
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5em;
    opacity: 0.7;
}

.aagp-highlight-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.2);
}

.aagp-highlight-box p {
    margin: 0;
    color: #1565c0;
    font-weight: 500;
    line-height: 1.6;
}

/* Barra de progreso de lectura */
.aagp-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0,0,0,0.1);
    z-index: 9999;
}

.aagp-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #2196F3, #9C27B0);
    width: 0%;
    transition: width 0.3s ease;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .aagp-article-container { width:100%; max-width:100%; margin:0; padding:0; line-height:1.6; color:#333; }
.aagp-article-container.alignwide{ margin-left:auto; margin-right:auto; }
.aagp-fit-entry { box-sizing:border-box; }
.aagp-article-container img, .aagp-article-container table, .aagp-article-container iframe { max-width:100%; height:auto; }
    
    .aagp-article-container h1 {
        font-size: 2em;
    }
    
    .aagp-article-container h2 {
        font-size: 1.5em;
    }
    
    .aagp-table th,
    .aagp-table td {
        padding: 10px 12px;
        font-size: 0.9em;
    }
    
    .aagp-animal-summary-card {
        padding: 15px;
    }
    
    .aagp-distribution-map {
        height: 300px;
    }
    
    .aagp-distribution-map::before {
        padding: 20px;
        font-size: 1em;
    }
}

/* Estilos para tablas */

/* Estilos para recuadros de conservación */
.aagp-conservation-box {
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.aagp-conservation-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.aagp-conservation-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.aagp-conservation-box p {
    margin: 0;
    line-height: 1.5;
    font-size: 1.1em;
}

/* Estado Seguro - Verde */
.aagp-conservation-box.green {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-left: 6px solid #4CAF50;
    border-color: #4CAF50;
    color: #1b5e20;
}

.aagp-conservation-box.green::before {
    content: '✅';
    font-size: 1.5em;
    background: #4CAF50;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

/* Estado Precaución - Amarillo */
.aagp-conservation-box.yellow {
    background: linear-gradient(135deg, #fffde7 0%, #fff9c4 100%);
    border-left: 6px solid #FFC107;
    border-color: #FFC107;
    color: #e65100;
}

.aagp-conservation-box.yellow::before {
    content: '⚠️';
    font-size: 1.5em;
    background: #FFC107;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
    animation: pulse 2s infinite;
}

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

/* Estado Peligroso - Rojo */
.aagp-conservation-box.red {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-left: 6px solid #F44336;
    border-color: #F44336;
    color: #b71c1c;
}

.aagp-conservation-box.red::before {
    content: '🚨';
    font-size: 1.5em;
    background: #F44336;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
    animation: urgent 1.5s infinite;
}

@keyframes urgent {
    0%, 100% { transform: scale(1); box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3); }
    50% { transform: scale(1.1); box-shadow: 0 4px 15px rgba(244, 67, 54, 0.5); }
}

/* Texto de estado de conservación con badge */
.aagp-conservation-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 10px 0;
}

.aagp-conservation-status.green {
    background: #4CAF50;
    color: white;
}

.aagp-conservation-status.yellow {
    background: #FFC107;
    color: #333;
}

.aagp-conservation-status.red {
    background: #F44336;
    color: white;
}

/* Estilos para tablas de alimentación */
.aagp-feeding-table thead th {
    background: linear-gradient(135deg, #2196F3 0%, #64B5F6 100%); /* Degradado azul */
}

/* Estilos para tablas de ventajas y desventajas */
.aagp-pros-cons-table thead th:first-child {
    background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%); /* Degradado verde para ventajas */
}

.aagp-pros-cons-table thead th:last-child {
    background: linear-gradient(135deg, #F44336 0%, #E57373 100%); /* Degradado rojo para desventajas */
}

.aagp-pros-cons-table td {
    vertical-align: top;
}

.aagp-pros-cons-table td:first-child {
    border-right: 1px solid #e0e0e0;
}

/* Estilos para cajas destacadas (existentes, pero mejorados) */
.aagp-highlight-box {
    background-color: #f0f8ff; /* Azul claro */
    border-left: 4px solid #007bff; /* Azul */
    padding: 15px;
    margin: 1.5em 0;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.aagp-highlight-box p {
    margin: 0;
    color: #333;
}

/* Estilos para mapas de distribución (placeholder) */
.aagp-distribution-map {
    width: 100%;
    height: 400px; /* Altura fija para el mapa */
    background-color: #e0e0e0;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin: 1.5em 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #666;
    font-style: italic;
    font-size: 1.1em;
}

.aagp-distribution-map::before {
    content: 'Mapa de Distribución (próximamente)';
}


