/* ============================================================
   INDEX - MOBILE FIRST
   ============================================================ */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: #e3f2fd;
    color: #1e88e5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main.container {
    flex: 1;
}

/* --- HERO SECTION --- */
.hero-section {
    background-color: #bbdefb;
    padding: 35px 15px;
    text-align: center;
    border-radius: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.08);
}

.hero-section h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1976d2;
}

.hero-section p {
    font-size: 0.95rem;
    color: #1565c0;
    margin-top: 10px;
    line-height: 1.5;
}

/* --- BOTONES --- */
.adopt-button {
    display: inline-block;
    background: linear-gradient(135deg, #2196f3, #1565c0);
    color: white !important;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

/* --- TARJETAS DE ANIMALES --- */
.section-subtitle {
    font-weight: 700;
    color: #1976d2;
    font-size: 1.3rem;
}

.animal-card {
    background: white;
    border-radius: 20px;
    padding: 25px 20px;
    text-align: center;
    border: 1px solid #e1f5fe;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.img-container {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #64b5f6;
    padding: 3px;
    background: #fff;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.4s ease;
}

.animal-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1976d2;
    margin-bottom: 5px;
}

.animal-meta {
    font-size: 0.8rem;
    font-weight: 600;
    color: #90caf9;
    margin-bottom: 10px;
}

.animal-desc {
    display: -webkit-box;           /* Requerido: Convierte el contenedor en caja flexible antigua */
    -webkit-box-orient: vertical;   /* Requerido: Indica la orientación del bloque */
    -webkit-line-clamp: 3;          /* El número de líneas que quieres mostrar */
    overflow: hidden;               /* Oculta el resto del texto */
    color: #666; 
    font-size: 0.85rem;
}

/* --- CTA SECTION --- */
.cta-section {
    background: linear-gradient(135deg, #bbdefb, #e3f2fd);
    padding: 35px 20px;
    text-align: center;
    border-radius: 20px;
    border: 1px solid #bbdefb;
}

.cta-section h3 {
    font-weight: 700;
    font-size: 1.3rem;
}

/* ============================================================
   MEDIA QUERIES (ESCRITORIO)
   ============================================================ */

@media (min-width: 768px) {
    .hero-section {
        padding: 60px 40px;
    }

    .hero-section h2 {
        font-size: 2.8rem;
    }

    .section-subtitle {
        font-size: 1.8rem;
    }

    .img-container {
        width: 120px;
        height: 120px;
    }

    .animal-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 35px rgba(25, 118, 210, 0.15);
        border-color: #2196f3;
    }

    .animal-card:hover img {
        transform: scale(1.1);
    }

    .adopt-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(33, 150, 243, 0.4);
    }
}

@media (min-width: 1200px) {
    .hero-section h2 {
        font-size: 3.5rem;
    }
}

/* AJUSTES TÉCNICOS ANIMACIONES */
.animate__animated {
    animation-fill-mode: both;
}

.animal-card-link {
    display: block;
    height: 100%;
}