:root {
    --primary-color: #5D4037;
    --secondary-color: #D7CCC8;
    --text-color: #4E342E;
    --background-color: #FBF8F6; /* CAMBIO AQUÍ: Beige muy suave */
    --font-headings: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.8;
}

/* --- ANIMACIONES (KEYFRAMES) --- */
@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}


/* --- Hero Section --- */
.hero {
    height: 100vh;
    position: relative; /* Necesario para la flecha */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    overflow: hidden; /* Oculta el exceso del zoom */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('images/foto22.jpg') no-repeat center center/cover;
    animation: kenBurns 20s infinite alternate ease-in-out; /* Animación de zoom lento */
    z-index: -1;
}

.hero-text h1 {
    font-family: var(--font-headings);
    font-size: 6rem;
    margin-bottom: 0.5rem;
    animation: fadeInUp 1.5s ease-out; /* Animación del título */
}

.hero-text p {
    font-size: 1.5rem;
    font-weight: 300;
    animation: fadeIn 2s ease-out 0.5s; /* Animación del subtítulo */
    animation-fill-mode: backwards; /* Asegura que empieza invisible */
}

/* --- Flecha de Scroll --- */
.scroll-down-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.7);
    animation: bounce 2.5s infinite 2s; /* Animación de la flecha */
}

/* --- General Section Styling --- */
section {
    padding: 80px 20px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

h2 {
    font-family: var(--font-headings);
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--primary-color);
}

/* --- Animaciones de Scroll --- */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-slide-in-left { transform: translateX(-50px); }
.animate-slide-in-right { transform: translateX(50px); }
.animate-fade-in-up { transform: translateY(50px); }

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateX(0) translateY(0);
}


/* --- Story Section --- */
.story-content {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.story-content img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--secondary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.story-content p {
    flex: 1;
    font-size: 1.1rem;
}

/* --- Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.4s ease, filter 0.4s ease;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* --- Message Section --- */
.message {
    background-color: #FFFFFF;
    border-radius: 10px;
    padding: 50px;
    border: 1px solid var(--secondary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.message-text {
    font-size: 1.2rem;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--primary-color);
    color: white;
}

.paw-print {
    font-size: 2rem;
    margin-top: 10px;
}

/* ... los estilos de la sección del mensaje terminan aquí */
.message-text {
    font-size: 1.2rem;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .hero-text h1 { font-size: 4rem; }
    .hero-text p { font-size: 1.2rem; }
    .story-content {
        flex-direction: column;
        text-align: center;
    }
    .story-content img { margin-bottom: 20px; }
    h2 { font-size: 2rem; }
    .gallery-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}