/* ============================================
   ANTOJOSANTO - PASTELERÍA ARTESANAL
   UI/UX REDISEÑO PREMIUM
   ============================================ */

/* ---------- RESET & BASE ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #FDF9F2;
    color: #1A1109;
    line-height: 1.55;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- TIPOGRAFÍA PREMIUM ---------- */
h1, h2, h3, .logo-font {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 1.75rem;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.35rem;
}

/* ---------- BOTONES PREMIUM ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    border: none;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #8B5A2B 0%, #6B3A1A 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(107, 58, 26, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(107, 58, 26, 0.25);
    background: linear-gradient(135deg, #9B6A3B 0%, #7B4A2A 100%);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    border: 2px solid #8B5A2B;
    color: #8B5A2B;
}

.btn-secondary:hover {
    background: #8B5A2B;
    color: white;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid #D4A574;
    color: #8B5A2B;
}

.btn-outline:hover {
    background: #F5EDE3;
    border-color: #8B5A2B;
}

.btn-block {
    width: 100%;
}

/* ---------- HEADER PREMIUM ---------- */
.header {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 16px 0;
    border-bottom: 1px solid rgba(139, 90, 43, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo a {
    text-decoration: none;
    color: #1A1109;
    transition: opacity 0.2s;
}

.header__logo a:hover {
    opacity: 0.8;
}

.header__logo h1 {
    font-size: 1.6rem;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #8B5A2B 0%, #6B3A1A 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.header__subtitle {
    font-size: 0.7rem;
    color: #8B5A2B;
    display: block;
    letter-spacing: 1px;
}

.header__actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.header__cart-btn, .header__menu-btn {
    background: rgba(139, 90, 43, 0.08);
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: #1A1109;
    position: relative;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.2s;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header__cart-btn:hover, .header__menu-btn:hover {
    background: rgba(139, 90, 43, 0.15);
    transform: scale(1.02);
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #E8B86B;
    color: #1A1109;
    font-size: 0.7rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ---------- HERO PREMIUM ---------- */
.hero {
    background: linear-gradient(135deg, #8B5A2B 0%, #5B3A1A 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "🍪 🍰 🥧";
    position: absolute;
    font-size: 200px;
    opacity: 0.04;
    bottom: -50px;
    right: -50px;
    white-space: nowrap;
}

.hero::after {
    content: "🥐 🍩 🍫";
    position: absolute;
    font-size: 150px;
    opacity: 0.04;
    top: -30px;
    left: -50px;
    white-space: nowrap;
}

.hero__tagline {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    opacity: 0.85;
}

.hero__title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.hero__description {
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto;
    opacity: 0.9;
}

/* ---------- CATÁLOGO ---------- */
.catalogo {
    padding: 70px 0;
}

.catalogo__header {
    text-align: center;
    margin-bottom: 50px;
}

.catalogo__title {
    color: #1A1109;
    position: relative;
    display: inline-block;
    font-size: 2.2rem;
}

.catalogo__title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, #8B5A2B, #D4A574);
    border-radius: 3px;
}

.catalogo__subtitle {
    color: #6B5B4F;
    font-size: 1rem;
    margin-top: 20px;
}

/* Productos Grid */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tarjeta de producto premium */
.producto-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    cursor: pointer;
    position: relative;
}

.producto-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.15);
}

.producto-card__imagen {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: linear-gradient(135deg, #F5EDE3 0%, #EDE3D7 100%);
    transition: transform 0.4s ease;
}

.producto-card:hover .producto-card__imagen {
    transform: scale(1.03);
}

.producto-card__info {
    padding: 20px;
}

.producto-card__nombre {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #1A1109;
}

.producto-card__descripcion {
    font-size: 0.8rem;
    color: #6B5B4F;
    margin-bottom: 12px;
    line-height: 1.4;
}

.producto-card__precio {
    font-size: 1.25rem;
    font-weight: 700;
    color: #8B5A2B;
    margin-bottom: 16px;
}

.producto-card__precio small {
    font-size: 0.7rem;
    font-weight: 400;
    color: #6B5B4F;
}

.producto-card__btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #8B5A2B 0%, #6B3A1A 100%);
    color: white;
    border: none;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.producto-card__btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(107, 58, 26, 0.3);
}

.producto-card__btn:active {
    transform: scale(0.98);
}

/* Loading spinner */
.loading-spinner {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px;
}

.loading-spinner i {
    font-size: 3rem;
    color: #8B5A2B;
    animation: pulse 1.2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.95); }
}

/* ---------- TOAST NOTIFICATIONS ---------- */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    background: #1A1109;
    color: white;
    padding: 14px 28px;
    border-radius: 100px;
    font-size: 0.9rem;
    z-index: 3000;
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    background: rgba(26, 17, 9, 0.95);
    font-weight: 500;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* ---------- FOOTER PREMIUM ---------- */
.footer {
    background: #1A1109;
    color: #FDF9F2;
    padding: 50px 0 30px;
    margin-top: 80px;
}

.footer__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer__info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #D4A574 0%, #E8B86B 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.footer__info p {
    font-size: 0.85rem;
    opacity: 0.7;
    line-height: 1.6;
}

.footer__contact {
    margin-top: 12px;
    opacity: 1 !important;
}

.footer__social {
    display: flex;
    gap: 20px;
}

.social-link {
    color: #FDF9F2;
    font-size: 1.4rem;
    transition: all 0.2s;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.social-link:hover {
    color: #E8B86B;
    background: rgba(232, 184, 107, 0.15);
    transform: translateY(-2px);
}

.footer__copyright {
    text-align: center;
    font-size: 0.75rem;
    opacity: 0.5;
    padding-top: 30px;
    border-top: 1px solid rgba(253, 249, 242, 0.08);
}

/* ---------- UTILIDADES ---------- */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.hidden { display: none !important; }

/* ---------- RESPONSIVE TABLET ---------- */
@media (min-width: 768px) {
    .productos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
    
    .hero__title {
        font-size: 3rem;
    }
    
    .hero__description {
        max-width: 550px;
    }
    
    .container {
        padding: 0 32px;
    }
}

/* ---------- RESPONSIVE DESKTOP ---------- */
@media (min-width: 1024px) {
    .productos-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 32px;
    }
    
    .hero {
        padding: 100px 0;
    }
    
    .hero__title {
        font-size: 3.5rem;
    }
    
    .catalogo {
        padding: 90px 0;
    }
}
