/* =========================================
   CONFIGURACIÓN Y VARIABLES (BITGAMESO)
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@600;700&family=Poppins:wght@400;700&family=Nunito:wght@600&display=swap');

:root {
    /* Paleta Pastel Solicitada */
    --rosa-pastel: #FFB6C1;
    --morado-suave: #CBA6F7;
    --azul-cielo: #A0E7E5;
    --amarillo-suave: #FFF5BA;
    --blanco: #FFFFFF;
    --texto-oscuro: #4A4A4A;
    
    /* Fuentes */
    --fuente-titulos: 'Fredoka', sans-serif;
    --fuente-cuerpo: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--fuente-cuerpo);
    background-color: var(--blanco);
    color: var(--texto-oscuro);
    line-height: 1.6;
}

/* =========================================
   HEADER Y NAVEGACIÓN
   ========================================= */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--blanco);
    border-bottom: 4px solid var(--azul-cielo);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* El logo principal mantiene su tamaño perfecto */
.main-logo {
    width: 50px;
    height: auto;
}

header h1 {
    font-family: var(--fuente-titulos);
    color: var(--morado-suave);
    font-size: 1.8rem;
}

nav {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Estilo de Botones */
button {
    font-family: var(--fuente-titulos);
    padding: 10px 20px;
    border-radius: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

#btn-que-es, #btn-productos {
    background-color: transparent;
    color: var(--texto-oscuro);
    border: 2px solid var(--azul-cielo);
}

.btn-login {
    background-color: var(--morado-suave);
    color: white;
}

.btn-register {
    background-color: var(--rosa-pastel);
    color: white;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    filter: brightness(1.05);
}

/* =========================================
   CONTENIDO PRINCIPAL (Z-PATTERN)
   ========================================= */
main {
    padding: 2rem 0;
}

.contenido {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 10%;
    gap: 4rem;
    min-height: 400px;
}

/* Alternancia de color y orden (Zig-Zag) */
.contenido:nth-child(even) {
    flex-direction: row-reverse;
    background-color: var(--amarillo-suave);
}

.texto {
    flex: 1;
}

.texto h2 {
    font-family: var(--fuente-titulos);
    color: var(--morado-suave);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.texto p {
    font-size: 1.1rem;
    color: #666;
}

/* =========================================
   ESTILO DE IMÁGENES (PETS Y COINS)
   ========================================= */
.imagen-placeholder {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Reducimos el tamaño de las mascotas y monedas aquí */
.imagen-placeholder img {
    width: 120px; /* Tamaño reducido para que parezcan iconos */
    height: auto;
    border-radius: 20px;
    /* Quitamos el borde grueso para que el PNG transparente luzca mejor */
    filter: drop-shadow(5px 5px 0px var(--azul-cielo)); 
    transition: transform 0.3s ease;
}

.imagen-placeholder img:hover {
    transform: scale(1.1) rotate(2deg);
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    padding: 2rem 10%;
    background-color: #f9f9f9;
    border-top: 4px solid var(--morado-suave);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    max-width: 40px; /* Logo del footer pequeño */
}

footer p {
    font-family: 'Nunito', sans-serif;
    color: var(--texto-oscuro);
    font-weight: 600;
}

/* Estilo para el icono de Bitso o moneda de oro externa */
footer a img {
    width: 30px;
    height: auto;
    transition: opacity 0.3s;
}

footer a img:hover {
    opacity: 0.7;
}

/* =========================================
   RESPONSIVIDAD (Móviles)
   ========================================= */
@media (max-width: 850px) {
    header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contenido, .contenido:nth-child(even) {
        flex-direction: column;
        text-align: center;
        padding: 3rem 5%;
        gap: 2rem;
    }
    
    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .imagen-placeholder img {
        width: 100px; /* Aún más pequeño en móviles */
    }
}