/* =========================================
   1. VARIABLES Y ESTILOS GENERALES
   ========================================= */
   :root {
    --verde-integral: #2E8B57;
    --verde-mascota: #5bf77b;
    --amarillo-integral: #F4D03F;
    --blanco: #FFFFFF;
    --texto-oscuro: #333333;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f9f9f9;
    color: var(--texto-oscuro);
}

/* --- NAVEGACIÓN --- */
.navbar {
    background: var(--blanco);
    padding: 15px 5%;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: relative;
    z-index: 10;
}

.navbar img {
    height: 60px;
    width: auto;
}

/* =========================================
   2. HERO BANNER (MOBILE FIRST)
   ========================================= */
.hero-section {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, var(--amarillo-integral) 0%, #FFF9C4 100%);
    border-bottom: 5px solid var(--verde-integral);
    overflow: hidden;
}

/* --- COLUMNA DE TEXTO --- */
.hero-content {
    padding: 2.5rem 1.5rem;
    animation: deslizarArriba 1s ease-out forwards;
    opacity: 0;
}

.hero-title {
    font-size: 2.8rem;
    line-height: 1.1;
    color: var(--verde-integral);
    margin: 0 0 15px 0;
    font-weight: 800;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--texto-oscuro);
    margin-bottom: 30px;
}

.btn-catalogo {
    background-color: var(--verde-integral);
    color: var(--blanco);
    padding: 15px 30px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(46, 139, 87, 0.4);
    display: inline-block;
    transition: background-color 0.3s;
    animation: latido 2s infinite;
}

.btn-catalogo:hover {
    background-color: #246e44;
}

/* --- COLUMNA DE LA MASCOTA --- */
.mascota-container {
    background-color: var(--verde-mascota);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-top: 2rem;
    animation: entrarDerecha 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
    transform: translateX(100px);
}

.mascota-img {
    width: 75%;
    max-width: 300px;
    height: auto;
    display: block;
}

/* =========================================
   3. SECCIÓN CATÁLOGO
   ========================================= */
.catalogo-section {
    padding: 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.catalogo-title {
    text-align: center;
    color: var(--verde-integral);
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 40px;
    font-weight: 700;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.producto-card {
    background: var(--blanco);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.producto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.producto-img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.producto-titulo {
    color: var(--texto-oscuro);
    font-size: 1.25rem;
    margin: 0 0 10px 0;
}

.producto-desc {
    color: #666;
    font-size: 0.9rem;
    margin: 0 0 15px 0;
    flex-grow: 1;
}

.producto-precio {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--verde-integral);
    margin-bottom: 15px;
}

.btn-anadir {
    background: var(--amarillo-integral);
    color: var(--texto-oscuro);
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s, transform 0.1s;
}

.btn-anadir:hover {
    background: #e0be2b;
}

.btn-anadir:active {
    transform: scale(0.98);
}

/* =========================================
   4. ADAPTACIÓN ESCRITORIO (PC)
   ========================================= */
@media (min-width: 768px) {
    .hero-section {
        flex-direction: row;
        align-items: stretch;
        min-height: 70vh;
    }

    .hero-content {
        width: 50%;
        padding: 4rem 5%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .mascota-container {
        width: 50%;
        padding-top: 0;
    }

    .mascota-img {
        width: auto;
        height: 100%;
        max-height: 75vh;
        max-width: none;
        object-fit: contain;
        object-position: bottom;
    }
}

/* =========================================
   5. ANIMACIONES (KEYFRAMES)
   ========================================= */
@keyframes deslizarArriba {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes entrarDerecha {
    from { transform: translateX(150px) scale(0.9); opacity: 0; }
    to { transform: translateX(0) scale(1); opacity: 1; }
}

@keyframes latido {
    0% { transform: scale(1); box-shadow: 0 4px 15px rgba(46, 139, 87, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 4px 20px rgba(46, 139, 87, 0.6); }
    100% { transform: scale(1); box-shadow: 0 4px 15px rgba(46, 139, 87, 0.4); }
}