.vet-tips {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

.vet-tips::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.03"><path fill="%23ee5e31" d="M20,20 Q40,5 50,30 T80,20"/><path fill="%232c6a83" d="M30,60 Q10,40 40,70 T70,50"/></svg>') repeat;
    pointer-events: none;
}

.tips-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tip-category {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    border: 2px solid transparent;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--dark-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.tip-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.tip-category.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff7b4a 100%);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(238, 94, 49, 0.3);
}

.tip-category i {
    font-size: 1rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.tip-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.tip-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.tip-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--white);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tip-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.tip-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.tip-card:hover .tip-image img {
    transform: scale(1.1);
}

.tip-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.7));
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tip-card:hover .tip-overlay {
    opacity: 1;
}

.tip-stats {
    display: flex;
    gap: 1rem;
    color: var(--white);
    font-size: 0.8rem;
}

.tip-time,
.tip-difficulty {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.tip-difficulty i {
    color: #ffd700;
    font-size: 0.7rem;
}

.tip-content {
    padding: 1.5rem;
}

.tip-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tip-excerpt {
    color: var(--gray-color);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tip-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.tip-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-color);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-color);
}

.author-role {
    font-size: 0.75rem;
    color: var(--gray-color);
}

.tip-date {
    font-size: 0.8rem;
    color: var(--gray-color);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.tip-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tip-save {
    background: none;
    border: none;
    color: var(--gray-color);
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
}

.tip-save:hover,
.tip-save.active {
    color: var(--primary-color);
    background: rgba(238, 94, 49, 0.1);
}

.tip-save.active i::before {
    content: "\f02e"; /* filled bookmark */
}

.tip-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff7b4a 100%);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(238, 94, 49, 0.3);
}

.tip-link:hover {
    gap: 0.8rem;
    box-shadow: 0 6px 20px rgba(238, 94, 49, 0.4);
    transform: translateY(-2px);
}

.tips-cta {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2c6a83 100%);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.tips-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.tips-cta::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Animation for cards */
@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tip-card {
    animation: cardAppear 0.6s ease forwards;
}

.tip-card:nth-child(1) { animation-delay: 0.1s; }
.tip-card:nth-child(2) { animation-delay: 0.2s; }
.tip-card:nth-child(3) { animation-delay: 0.3s; }
.tip-card:nth-child(4) { animation-delay: 0.4s; }
.tip-card:nth-child(5) { animation-delay: 0.5s; }
.tip-card:nth-child(6) { animation-delay: 0.6s; }

@media (max-width: 1200px) {
    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .vet-tips {
        padding: 3rem 0;
    }
    
    .tips-categories {
        gap: 0.5rem;
        margin-bottom: 2rem;
    }
    
    .tip-category {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tip-content {
        padding: 1.2rem;
    }
    
    .tip-title {
        font-size: 1.1rem;
    }
    
    .tips-cta {
        padding: 2rem 1.5rem;
    }
    
    .cta-content h3 {
        font-size: 1.7rem;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-actions .btn-primary,
    .cta-actions .btn-secondary {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .tip-category {
        flex: 1;
        min-width: 140px;
        justify-content: center;
    }
    
    .tip-category span {
        display: none;
    }
    
    .tip-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .tip-date {
        align-self: flex-end;
    }
}

/* ===== ESTADÍSTICAS MASCOTAS ATENDIDAS ===== */
.pets-stats {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.pets-stats::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(123, 198, 204, 0.1) 0%, transparent 70%);
    z-index: 1;
}

.pets-stats-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.pets-stats-text {
    padding-right: 40px;
}

.pets-stats-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #2c3e50, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pets-stats-text .section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 30px;
}

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

.stat-highlight {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-highlight:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.highlight-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.highlight-icon.dog {
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    color: #d63031;
}

.highlight-icon.cat {
    background: linear-gradient(135deg, #a1c4fd, #c2e9fb);
    color: #0984e3;
}

.highlight-icon.other {
    background: linear-gradient(135deg, #ffecd2, #fcb69f);
    color: #e17055;
}

.highlight-icon.total {
    background: linear-gradient(135deg, #84fab0, #8fd3f4);
    color: #00b894;
}

.highlight-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.highlight-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

/* Gráfico de Pastel Moderno */
.pie-chart-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.pie-chart {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
    border-radius: 50%;
    background: conic-gradient(
        #ff9a9e 0% 87.6%,
        #a1c4fd 87.6% 99.2%,
        #ffecd2 99.2% 100%
    );
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.pie-chart:hover {
    transform: scale(1.05);
}

.pie-chart-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.center-total {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
}

.center-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: -5px;
}

.chart-legend {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
}

.legend-item:hover {
    transform: translateX(5px);
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-color.dog {
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
}

.legend-color.cat {
    background: linear-gradient(135deg, #a1c4fd, #c2e9fb);
}

.legend-color.other {
    background: linear-gradient(135deg, #ffecd2, #fcb69f);
}

.legend-info {
    flex: 1;
}

.legend-percentage {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 2px;
}

.legend-label {
    font-size: 0.9rem;
    color: #6c757d;
}

.legend-count {
    font-size: 0.85rem;
    color: #95a5a6;
    font-weight: 500;
}

/* Animaciones */
@keyframes pieGrow {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.pie-chart {
    animation: pieGrow 1s ease-out;
}

/* Responsive */
@media (max-width: 968px) {
    .pets-stats-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .pets-stats-text {
        padding-right: 0;
        text-align: center;
    }
    
    .stats-highlights {
        grid-template-columns: repeat(2, 1fr);
        max-width: 400px;
        margin: 40px auto 0;
    }
}

@media (max-width: 768px) {
    .pets-stats {
        padding: 60px 0;
    }
    
    .pets-stats-text h2 {
        font-size: 2rem;
    }
    
    .pie-chart {
        width: 250px;
        height: 250px;
    }
    
    .pie-chart-center {
        width: 100px;
        height: 100px;
    }
    
    .center-total {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .stats-highlights {
        grid-template-columns: 1fr;
    }
    
    .pie-chart {
        width: 220px;
        height: 220px;
    }
    
    .pie-chart-center {
        width: 80px;
        height: 80px;
    }
    
    .center-total {
        font-size: 1.3rem;
    }
    
    .center-label {
        font-size: 0.7rem;
    }
}
@media (max-width: 480px) {
    .stats-highlights {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 👈 Dos columnas */
        gap: 20px; /* Espacio entre columnas */
        max-width: 100%; /* Que se ajuste al ancho */
        margin: 0 auto;
    }
}
