/* Generales y Reset */
:root {
    --primary-color: #FF69B4; /* Rosa Chicle / Fucsia - color principal vibrante */
    --secondary-color: #FFD1DC; /* Rosa Pastel - para fondos o detalles suaves */
    --accent-color: #8A2BE2; /* Azul Violeta / Púrpura - para acentos y contraste */
    --text-color: #333;
    --light-text-color: #fff;
    --bg-light: #FDFDFD;
    --bg-dark: #2c3e50; /* Un azul oscuro para el footer */
    --border-radius: 8px;
    --box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Quicksand', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2, h3 {
    font-family: 'Pacifico', cursive;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.2;
}

h1 {
    font-size: 3.5em;
    color: var(--light-text-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

h2 {
    font-size: 2.8em;
    margin-top: 40px;
    color: var(--accent-color);
}

h3 {
    font-size: 1.8em;
    color: var(--text-color);
}

p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    margin-top: 20px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    box-shadow: var(--box-shadow);
}

.btn-primary:hover {
    background-color: #e04a99; /* Un rosa un poco más oscuro */
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--accent-color);
    color: var(--light-text-color);
    box-shadow: var(--box-shadow);
}

.btn-secondary:hover {
    background-color: #6a1aae; /* Un púrpura un poco más oscuro */
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/seis.jpg') no-repeat center center/cover;
    height: 600px; /* Altura ajustable */
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--light-text-color);
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 105, 180, 0.2); /* Un toque de overlay rosa */
}

.hero-content {
    position: relative; /* Para que el contenido esté por encima del pseudo-elemento */
    z-index: 1;
}

.hero-content p {
    font-size: 1.5em;
    margin-top: 10px;
    color: var(--light-text-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Section Why Us */
.section-why-us {
    background-color: var(--secondary-color);
    padding: 60px 0;
    text-align: center;
}

.why-us-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.why-us-grid ul {
    list-style: none;
    padding: 0;
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
}

.why-us-grid li {
    background-color: var(--light-text-color);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    gap: 15px;
}

.why-us-grid li:last-child {
    margin-bottom: 0;
}

.why-us-grid li::before {
    content: '🍰'; /* Icono divertido */
    font-size: 1.5em;
    color: var(--primary-color);
    min-width: 30px;
}

/* Section Our Cakes (Gallery) */
.section-our-cakes {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.cake-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.cake-item {
    background-color: var(--light-text-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
}

.cake-item:hover {
    transform: translateY(-5px);
}

.cake-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.cake-item h3 {
    margin: 15px 0 10px;
    color: var(--primary-color);
}

.cake-item p {
    padding: 0 15px 20px;
    font-size: 0.95em;
    color: #555;
}

/* Section How To Order */
.section-how-to-order {
    background-color: var(--secondary-color);
    padding: 60px 0;
    text-align: center;
}

.steps-grid {
    display: flex;
    flex-wrap: wrap; /* Permite que los elementos se envuelvan en pantallas pequeñas */
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.step-item {
    background-color: var(--light-text-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    flex: 1; /* Permite que los ítems crezcan */
    min-width: 280px; /* Ancho mínimo para cada paso */
    max-width: 350px; /* Ancho máximo para cada paso */
    text-align: center;
    position: relative;
    padding-top: 50px; /* Espacio para el número */
}

.step-item span {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border-radius: 50%;
    font-size: 2em;
    font-weight: bold;
    position: absolute;
    top: -25px; /* Lo saca un poco del borde superior */
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.step-item h3 {
    margin-top: 15px;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.step-item p {
    font-size: 1em;
}

/* Section Testimonials */
.section-testimonials {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-item {
    background-color: var(--light-text-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    text-align: center;
    font-style: italic;
    position: relative;
}

.testimonial-item p {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #555;
}

.testimonial-item cite {
    display: block;
    font-style: normal;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 10px;
    font-size: 1em;
}

.testimonial-item::before {
    content: '“';
    font-family: serif;
    font-size: 4em;
    color: var(--secondary-color);
    position: absolute;
    top: 5px;
    left: 20px;
    opacity: 0.7;
}

/* Section Contact */
.section-contact {
    background-color: var(--accent-color);
    padding: 60px 0;
    color: var(--light-text-color);
    text-align: center;
}

.section-contact h2 {
    color: var(--light-text-color); /* Sobreescribe el color de h2 */
}

.section-contact p {
    margin-bottom: 30px;
    font-size: 1.2em;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="date"],
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1em;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #999;
}

.contact-form .btn {
    width: auto;
    margin: 0 auto;
    background-color: var(--primary-color); /* Botón del formulario */
}
.contact-form .btn:hover {
    background-color: #e04a99;
}

/* Footer */
footer {
    background-color: var(--bg-dark);
    color: var(--light-text-color);
    padding: 40px 0 20px;
    text-align: center;
    font-size: 0.9em;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-content h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-family: 'Quicksand', sans-serif; /* Un h3 más sobrio para el footer */
    font-size: 1.5em;
}

.social-media a {
    display: inline-block;
    margin: 0 10px;
    transition: transform 0.2s ease;
}

.social-media a img {
    width: 40px;
    height: 40px;
    filter: invert(100%); /* Para que los iconos SVG se vean blancos */
}

.social-media a:hover {
    transform: scale(1.1);
}

.contact-info p {
    margin-bottom: 5px;
    font-size: 1em;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 900px) {
    h1 {
        font-size: 2.8em;
    }
    h2 {
        font-size: 2.2em;
    }
    .hero {
        height: 500px;
    }
    .cake-gallery {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .footer-content {
        flex-direction: column;
        align-items: center;
    }
    .social-media, .contact-info {
        text-align: center;
        margin-bottom: 20px;
    }
}

@media (max-width: 600px) {
    h1 {
        font-size: 2.2em;
    }
    h2 {
        font-size: 1.8em;
    }
    .hero {
        height: 400px;
    }
    .hero-content p {
        font-size: 1.2em;
    }
    .container {
        padding: 15px;
    }
    .btn {
        padding: 12px 25px;
        font-size: 1em;
    }
    .step-item {
        min-width: unset; /* Deshacer el min-width para que sea más flexible */
        max-width: 90%; /* Ajustar el ancho máximo */
    }
    .why-us-grid ul {
        max-width: 100%;
        padding: 0 10px;
    }
}

@media (max-width: 400px) {
    h1 {
        font-size: 1.8em;
    }
    h2 {
        font-size: 1.6em;
    }
    .hero {
        height: 350px;
    }
    .cake-item img {
        height: 200px;
    }
}

/* ... (Todo tu CSS existente) ... */

/* Animaciones al Scroll */

/* Estado inicial - Oculto por defecto */
.fade-in,
.slide-up,
.pop-in,
.slide-right {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Efecto Fade In (aparecer gradualmente) */
.fade-in {
    transform: translateY(20px); /* Ligeramente hacia abajo */
}

/* Efecto Slide Up (aparecer desde abajo) */
.slide-up {
    transform: translateY(50px);
}

/* Efecto Pop In (aparecer con un ligero zoom) */
.pop-in {
    transform: scale(0.9);
}

/* Efecto Slide Right (aparecer desde la izquierda) */
.slide-right {
    transform: translateX(-50px);
}

/* Estado visible - Cuando la clase 'is-visible' se añade */
.fade-in.is-visible,
.slide-up.is-visible,
.pop-in.is-visible,
.slide-right.is-visible {
    opacity: 1;
    transform: none; /* Vuelve a su posición original */
}

/* Retrasos para animaciones escalonadas (opcional, para la galería y pasos) */
/* Retraso para los items de la galería */
.cake-gallery .cake-item:nth-child(1).is-visible { transition-delay: 0s; }
.cake-gallery .cake-item:nth-child(2).is-visible { transition-delay: 0.1s; }
.cake-gallery .cake-item:nth-child(3).is-visible { transition-delay: 0.2s; }
.cake-gallery .cake-item:nth-child(4).is-visible { transition-delay: 0.3s; }

/* Retraso para los pasos */
.steps-grid .step-item:nth-child(1).is-visible { transition-delay: 0s; }
.steps-grid .step-item:nth-child(2).is-visible { transition-delay: 0.1s; }
.steps-grid .step-item:nth-child(3).is-visible { transition-delay: 0.2s; }

/* Retraso para los testimonios */
.testimonials-grid .testimonial-item:nth-child(1).is-visible { transition-delay: 0s; }
.testimonials-grid .testimonial-item:nth-child(2).is-visible { transition-delay: 0.1s; }
.testimonials-grid .testimonial-item:nth-child(3).is-visible { transition-delay: 0.2s; }