/* ========================================
   SAUCHA - ESTILOS COMPLETOS
   ======================================== */

:root {
    --primary: #C9A87C;
    --primary-dark: #A88B5E;
    --primary-light: #E8D5B7;
    --bg: #FAF8F5;
    --bg-warm: #F5F0E8;
    --white: #FFFFFF;
    --text: #3D3630;
    --text-light: #6B635A;
    --border: #E8E0D5;
    --success: #25D366;
    --error: #C75050;
    --shadow: 0 2px 16px rgba(61,54,48,0.06);
    --shadow-lg: 0 8px 32px rgba(61,54,48,0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 15px;
}

h1, h2, h3, h4 { font-family: 'Cormorant Garamond', serif; font-weight: 600; }
h1 { font-size: 3rem; line-height: 1.2; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
button { cursor: pointer; font-family: inherit; border: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ========================================
   TOP BAR
   ======================================== */
.topbar {
    background: var(--primary-dark);
    color: white;
    font-size: 0.8rem;
    padding: 6px 0;
    text-align: center;
}
.topbar-inner { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }

/* ========================================
   HEADER
   ======================================== */
.header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.nav-desktop { display: flex; gap: 28px; }
.nav-desktop a {
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    padding: 4px 0;
}
.nav-desktop a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}
.nav-desktop a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
    background: none;
    padding: 8px;
    position: relative;
    color: var(--text);
    transition: var(--transition);
}
.icon-btn:hover { color: var(--primary); }

.cart-badge {
    position: absolute;
    top: 0; right: 0;
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.search-bar {
    padding: 10px 24px;
    background: var(--bg-warm);
    display: flex;
    gap: 10px;
}
.search-bar input {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
}
.search-bar button {
    background: var(--primary);
    color: white;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; padding: 5px; }
.hamburger span { width: 24px; height: 2px; background: var(--text); transition: var(--transition); }

.mobile-menu {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--white);
    z-index: 99;
    padding: 100px 30px 30px;
    flex-direction: column;
    gap: 20px;
}
.mobile-menu.active { display: flex; }
.mobile-menu a { font-size: 1.2rem; font-weight: 500; padding: 12px 0; border-bottom: 1px solid var(--border); }
.mobile-menu .whatsapp-link { color: var(--success); font-weight: 600; }

/* ========================================
   HERO
   ======================================== */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 80vh;
    position: relative;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    top: -50%; right: -20%;
    width: 800px; height: 800px;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}
.hero-content { position: relative; z-index: 1; max-width: 520px; }
.hero-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}
.hero h1 { margin-bottom: 20px; color: var(--primary-dark); }
.hero p { color: var(--text-light); margin-bottom: 30px; font-size: 1.05rem; }
.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }
.hero-image { position: relative; z-index: 1; }
.hero-circle {
    width: 350px; height: 350px;
    background: var(--bg-warm);
    border-radius: 50%;
    border: 3px dashed var(--primary);
}

/* ========================================
   BOTONES
   ======================================== */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    transition: var(--transition);
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-whatsapp { background: var(--success); color: white; }
.btn-whatsapp:hover { background: #128C7E; transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ========================================
   BENEFICIOS
   ======================================== */
.benefits { padding: 50px 0; background: var(--white); }
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.benefit-item { text-align: center; padding: 25px 15px; }
.benefit-icon { font-size: 2rem; margin-bottom: 12px; }
.benefit-item h4 { font-size: 1rem; margin-bottom: 5px; color: var(--primary-dark); }
.benefit-item p { font-size: 0.85rem; color: var(--text-light); }

/* ========================================
   SECCIONES
   ======================================== */
.shop-section, .services-section, .about-section { padding: 80px 0; }
.about-section { background: var(--white); }

.section-header { text-align: center; margin-bottom: 50px; }
.section-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.section-header h2 { color: var(--primary-dark); margin-bottom: 10px; }
.section-header p { color: var(--text-light); max-width: 500px; margin: 0 auto; }

/* ========================================
   CATEGORÍAS
   ======================================== */
.categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}
.category-btn {
    padding: 10px 20px;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}
.category-btn:hover, .category-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ========================================
   PRODUCTOS
   ======================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    background: var(--bg-warm);
}
.product-info { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.product-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    margin-bottom: 6px;
}
.product-title { font-size: 1rem; margin-bottom: 6px; font-weight: 600; }
.product-price { font-size: 1.2rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 10px; }
.product-stock { font-size: 0.8rem; margin-bottom: 12px; }
.stock-available { color: #8B7355; }
.stock-low { color: #D4A574; }
.stock-out { color: var(--error); }
.product-actions { display: flex; gap: 8px; margin-top: auto; }
.product-actions .btn { flex: 1; padding: 10px; font-size: 0.8rem; }

/* ========================================
   SERVICIOS UNIFICADOS
   ======================================== */
.services-unified {
    max-width: 800px;
    margin: 0 auto;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.service-list-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    border-left: 3px solid var(--primary);
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.service-list-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-lg);
}
.service-list-item h4 {
    color: var(--primary-dark);
    margin-bottom: 8px;
    font-size: 1.1rem;
}
.service-list-item p {
    color: var(--text-light);
    font-size: 0.88rem;
    margin-bottom: 10px;
    line-height: 1.5;
}
.service-duration {
    font-size: 0.78rem;
    color: var(--primary);
    font-weight: 500;
}

.services-cta {
    text-align: center;
    background: var(--bg-warm);
    border-radius: var(--radius);
    padding: 40px 30px;
    border: 2px solid var(--primary-light);
}
.services-cta h3 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 1.3rem;
}
.services-cta p {
    color: var(--text-light);
    margin-bottom: 24px;
    font-size: 0.95rem;
}
.services-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    padding: 16px 32px;
}

@media (max-width: 600px) {
    .services-list {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   NOSOTROS
   ======================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-text h2 { color: var(--primary-dark); margin-bottom: 20px; }
.about-text p { color: var(--text-light); margin-bottom: 16px; }
.about-stats { display: flex; gap: 30px; margin: 30px 0; }
.stat { text-align: center; }
.stat strong { display: block; font-size: 1.8rem; color: var(--primary-dark); }
.stat span { font-size: 0.85rem; color: var(--text-light); }
.about-image { display: flex; justify-content: center; }
.about-img-placeholder {
    width: 100%;
    max-width: 400px;
    height: 350px;
    background: linear-gradient(135deg, var(--primary-light), var(--bg-warm));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
}

/* ========================================
   WHATSAPP FLOTANTE
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 24px; right: 24px;
    width: 56px; height: 56px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    z-index: 200;
    transition: var(--transition);
    animation: pulse 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); }
@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
    50% { box-shadow: 0 4px 35px rgba(37,211,102,0.6); }
}

/* ========================================
   FOOTER
   ======================================== */
.footer { background: var(--primary-dark); color: rgba(255,255,255,0.8); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: white; margin-bottom: 15px; font-size: 1.1rem; }
.footer-col p, .footer-col a { display: block; margin-bottom: 10px; font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.footer-col a:hover { color: var(--primary-light); }
.footer-social { display: flex; gap: 12px; margin-top: 15px; }
.footer-social a { width: 38px; height: 38px; background: rgba(255,255,255,0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.footer-social a:hover { background: var(--primary); }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.85rem; color: rgba(255,255,255,0.5); }

/* ========================================
   MODALES
   ======================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 300;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
    background: var(--white);
    border-radius: var(--radius);
    width: 100%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
}
.modal-large { max-width: 700px; }
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 1.2rem; color: var(--primary-dark); }
.modal-close { background: none; font-size: 1.2rem; color: var(--text-light); padding: 4px; }
.modal-body { padding: 24px; }

/* ========================================
   CARRITO
   ======================================== */
.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    gap: 12px;
}
.cart-item-info { flex: 1; }
.cart-item-title { font-weight: 600; font-size: 0.9rem; }
.cart-item-price { color: var(--primary-dark); font-weight: 500; }
.cart-item-quantity { display: flex; align-items: center; gap: 8px; }
.quantity-btn { width: 28px; height: 28px; border-radius: 6px; background: var(--bg-warm); border: 1px solid var(--border); font-weight: 600; }
.cart-item-remove { background: none; color: var(--error); font-size: 1.1rem; padding: 4px; }
.cart-total-row { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.1rem; padding: 16px 0; border-top: 2px solid var(--border); margin-top: 16px; }

/* ========================================
   CHECKOUT
   ======================================== */
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 10px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; margin-bottom: 4px; font-weight: 500; font-size: 0.85rem; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
    transition: var(--transition);
}
.form-group input:focus { border-color: var(--primary); outline: none; }
.option-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}
.option:hover, .option.selected { border-color: var(--primary); background: rgba(201,168,124,0.05); }
.option input { width: auto; }

/* ========================================
   NOTIFICACIONES & LOADING
   ======================================== */
.notification {
    position: fixed;
    bottom: 30px; right: 30px;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 500;
    z-index: 400;
    transform: translateX(400px);
    transition: transform 0.4s;
}
.notification.show { transform: translateX(0); }
.notification.success { background: var(--success); }
.notification.error { background: var(--error); }

.loading-spinner {
    width: 40px; height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .nav-desktop { display: none; }
    .hamburger { display: flex; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .hero { flex-direction: column; text-align: center; padding: 40px 20px; min-height: auto; }
    .hero-circle { width: 200px; height: 200px; margin-top: 30px; }
    .hero-buttons { justify-content: center; }
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .services-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .whatsapp-float { width: 48px; height: 48px; font-size: 1.3rem; bottom: 16px; right: 16px; }
}
@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
    .benefits-grid { grid-template-columns: 1fr; }
    .about-stats { flex-direction: column; gap: 15px; }
}

/* ========================================
   LOGIN / GOOGLE BTN / DIVIDER
   ======================================== */
.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}
.google-btn:hover {
    background: var(--bg-warm);
    border-color: var(--primary);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: var(--text-light);
    font-size: 0.85rem;
}
.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}
.divider span {
    padding: 0 16px;
}

/* ========================================
   ORDER SUMMARY ITEMS (checkout)
   ======================================== */
.order-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

/* ========================================
   LOGIN MODAL STYLES
   ======================================== */
#loginModalBody form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ========================================
   EMPTY CART
   ======================================== */
.empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}
.empty-cart-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--border);
}

/* ========================================
   VARIANTES EN PRODUCTOS
   ======================================== */
.product-variants {
    margin-bottom: 12px;
}
.product-variants select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-family: inherit;
    background: var(--white);
}
.product-variants label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-light);
}

/* Logo en hero y about */
.hero-logo {
    max-width: 280px;
    border-radius: 20px;
}
.about-logo {
    max-width: 350px;
    border-radius: 20px;
}
.logo-img {
    border-radius: 8px;
    object-fit: cover;
}

/* Iconos Font Awesome */
.benefit-icon {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 10px;
}

/* User info en header */
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}