:root {
    /* Color Palette from 'muestra' */
    --color-primary: #b91c1c;
    /* Red */
    --color-secondary: #1e293b;
    /* Slate */
    --color-accent: #f59e0b;
    /* Amber */
    --color-bg: #f8fafc;
    /* Light Slate */
    --color-surface: #FFFFFF;
    /* White for cards */
    --color-text: #0f172a;
    /* Dark Slate text */
    --color-text-muted: rgba(15, 23, 42, 0.7);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --shadow-soft: 0 4px 20px rgba(122, 46, 70, 0.08);
    --shadow-card: 0 10px 30px rgba(122, 46, 70, 0.12);

    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 3rem;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    scroll-padding-top: 100px;
    /* Exactamente la altura del header contraído, para que quede pegado a él */
}

section {
    padding: 3rem 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

@media (min-width: 901px) {
    section {
        padding: 3rem 0;
    }
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg) !important;
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Custom Utilities */
.font-display {
    font-family: var(--font-heading);
}

.text-primary {
    color: var(--color-primary);
}

.text-secondary {
    color: var(--color-secondary);
}

.blob-shape {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
}

.blob-animation {
    animation: blob-bounce 10s infinite alternate;
}

@keyframes blob-bounce {
    0% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-secondary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(122, 46, 70, 0.2);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: white;
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

.btn-catalog {
    background-color: white;
    border: 2px solid var(--color-secondary);
    color: var(--color-secondary);
}

.btn-catalog:hover {
    background-color: var(--color-secondary);
    color: white;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
}

/* Header */
.site-header {
    background-color: rgba(255, 249, 230, 0.8);
    backdrop-filter: blur(10px);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(244, 171, 196, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.header-scrolled {
    padding: 0.6rem 0;
    background-color: rgba(255, 249, 230, 0.98);
    box-shadow: 0 5px 20px rgba(122, 46, 70, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    background: white;
    padding: 5px;
    border-radius: 50%;
    border: 3px solid var(--color-accent);
    box-shadow: var(--shadow-soft);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-navigation ul {
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-primary);
}

.main-navigation a:hover {
    color: var(--color-secondary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Search Box refined */
.header-search {
    position: relative;
    display: none;
    /* Hidden on small screens */
}

@media (min-width: 768px) {
    .header-search {
        display: block;
    }
}

.header-search input {
    background: white;
    border: none;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    width: 180px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-search button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-primary);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    padding: 4rem 0 8rem;
    position: relative;
}

.hero-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    min-width: 300px;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.hero-image-blob {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
    padding: 15px;
    position: relative;
    z-index: 1;
}

.hero-image-blob img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    border: 4px solid white;
}

/* Product Cards */
.grid-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    padding: 4rem 0;
}

.postre-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    transition: all 0.4s ease;
    text-align: center;
    /* Flex layout for sticky button */
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Push button to bottom by growing description */
.postre-card p {
    flex-grow: 1;
}

.postre-card .btn {
    width: 100%;
    margin-top: 1rem;
}

.postre-card:hover {
    transform: translateY(-10px);
}

.card-image-wrapper {
    height: 250px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.5rem;
    position: relative;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin: 1rem 0;
}

/* Footer refined */
.site-footer {
    background-color: var(--color-primary);
    color: white;
    padding: 2rem 0;
    position: relative;
    border: none;
    margin: 0;
}

.site-footer::before {
    display: none;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
}

.footer-column h3,
.footer-column h4 {
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 900px) {
    html {
        scroll-padding-top: 85px;
        /* Altura exacta del header contraído en móvil */
    }

    .site-header {
        padding: 0.8rem 0;
    }

    .logo-wrapper {
        width: 65px;
        height: 65px;
    }

    /* Hide desktop nav by default on mobile */
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 2rem;
        box-shadow: var(--shadow-card);
        z-index: 999;
    }

    .main-navigation.active {
        display: block !important;
    }

    .main-navigation ul {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px;
    }

    .menu-toggle .bar {
        width: 25px;
        height: 3px;
        background-color: var(--color-primary);
        border-radius: 2px;
        transition: 0.3s;
    }

    .hero-section {
        min-height: calc(100vh - 85px) !important;
        /* Altura de la pantalla menos el header contraído */
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1.5rem 0 !important;
        /* Padding top y bottom 24px */
    }

    .hero-title {
        font-size: 2.5rem;
        /* Reducido un poco para ahorrar espacio */
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        /* Reducir gap en móvil para que todo encaje mejor */
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image {
        order: -1;
        max-width: 100% !important;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
        /* Botones más juntos para asegurar que entran */
    }

    #catalogo,
    #faq {
        padding-top: 1.5rem !important;
        /* 24px */
    }

    .nosotros-image-desktop {
        display: none !important;
    }

    .nosotros-image-mobile {
        display: block !important;
    }

    #nosotros {
        min-height: calc(100vh - 85px) !important;
        display: flex;
        align-items: center;
        justify-content: center;
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    #nosotros .container>div {
        gap: 1.5rem !important;
    }

    #nosotros h2.font-display {
        font-size: 2.5rem !important;
        margin-bottom: 1rem !important;
    }

    #nosotros p {
        margin-bottom: 1.5rem !important;
        font-size: 1rem !important;
        line-height: 1.5 !important;
    }

    #nosotros .nosotros-image {
        max-width: 50% !important;
        margin: 0 auto !important;
    }

    #contacto {
        padding-top: 3rem !important;
        /* 48px */
        padding-bottom: 4.5rem !important;
        /* 72px */
    }

    #contacto .contacto-info {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #contacto .contacto-info p {
        margin-left: auto;
        margin-right: auto;
    }

    #contacto .info-cards {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    #contacto .info-cards>div {
        flex-direction: row;
        text-align: left;
        width: 100%;
        max-width: 300px;
        /* Ancho cómodo en celular para mantener todo compacto */
        justify-content: flex-start;
    }
}

@media (min-width: 901px) {
    .menu-toggle {
        display: none;
    }
}