:root {
    /* Nueva Paleta Siwá basada en el logo */
    --verde-siwa: #5d9e84;   /* El remolino y acentos */
    --rosa-siwa: #e47ea0;    /* El nombre Siwá principal */
    --lila-siwa: #b886c9;    /* La cometa y acentos secundarios */
    --crema-fondo: #fcfaf7;  /* El fondo de la tarjeta del logo */
    --blanco: #ffffff;
    --texto: #444444;
    
    /* Variables dinámicas iniciales */
    --bg-page: var(--crema-fondo);
    --radius: 20px;
}

/* TEMAS PASTEL POR CATEGORÍA */
/* Estos selectores se activan cuando la clase del app-container cambia */
.app-container.tema-Todos { --bg-page: #fcfaf7; --radius: 20px; }
.app-container.tema-Bebé  { --bg-page: #fff5f7; --radius: 40px; }
.app-container.tema-Niño  { --bg-page: #f0f9ff; --radius: 10px; }
.app-container.tema-Niña  { --bg-page: #fdf4ff; --radius: 30px; }

/* FIX PARA PC: Asegura que el footer baje al final aunque haya poco contenido */
html, body {
    height: 100%;
    margin: 0;
}

body { 
    background-color: var(--bg-page); 
    font-family: 'Outfit', sans-serif; 
    color: var(--texto);
    transition: background-color 0.5s ease; /* Transición suave del fondo */
}

.app-container { 
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--bg-page);
    transition: background 0.5s; 
}

/* NAVBAR RESPONSIVE */
.nav-bar {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; 
    gap: 15px;
    position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

/* Contenedor del Logo */
.logo-wrapper {
    display: flex;
    flex-direction: column;
}

.siwa-brand {
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo-symbol {
    color: var(--verde-siwa);
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--rosa-siwa);
    letter-spacing: 2px;
}

.logo-dot {
    color: var(--lila-siwa);
    font-size: 1.8rem;
    font-weight: bold;
}

.logo-tagline {
    font-size: 0.6rem;
    letter-spacing: 3px;
    color: var(--verde-siwa);
    text-transform: uppercase;
    font-weight: 600;
}

.nav-links { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 5px; }

.nav-links .nav-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    white-space: nowrap;
    cursor: pointer;
    transition: 0.3s;
}

.nav-links .nav-btn.active { 
    background: var(--lila-siwa); 
    color: white; 
    border-color: var(--lila-siwa);
}

/* HERO COMPACTO */
.hero-section {
    margin: 20px 5%;
    padding: 40px 20px; 
    background: white;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    transition: border-radius 0.5s ease;
}

.hero-label {
    color: var(--verde-siwa);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 2px;
    font-weight: 700;
}

.hero-section h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem; 
    margin: 10px 0;
    color: var(--lila-siwa);
}

/* GRID ADAPTABLE */
.main-content { flex: 1; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 5%;
}

.product-card {
    background: white;
    border-radius: var(--radius);
    padding: 12px;
    transition: 0.3s, border-radius 0.5s ease;
    position: relative;
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: calc(var(--radius) * 0.7);
    transition: border-radius 0.5s ease;
}

.image-wrapper img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.promo-badge {
    position: absolute; top: 10px; right: 10px;
    background: var(--rosa-siwa);
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 2;
}

.product-info { padding: 10px 5px; }

.product-cat {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--verde-siwa);
    font-weight: 700;
}

.product-info h3 { font-size: 1rem; margin: 5px 0; font-weight: 500; }

.product-price { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }

.current-price { color: var(--rosa-siwa); font-weight: 700; font-size: 1.1rem; }

.old-price { text-decoration: line-through; opacity: 0.4; font-size: 0.85rem; }

.wa-button {
    width: 100%;
    padding: 10px;
    background: var(--verde-siwa);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: 0.3s;
}

/* SECCIÓN NOSOTROS */
.about-section {
    background: white;
    margin: 40px 5%;
    padding: 60px 20px;
    border-radius: var(--radius);
    text-align: center;
    transition: border-radius 0.5s ease;
}

.about-container { max-width: 700px; margin: 0 auto; }

.floating-kite {
    font-size: 3rem;
    color: var(--lila-siwa);
    display: inline-block;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(15deg); }
    50% { transform: translateY(-10px) rotate(20deg); }
}

.about-text h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    color: var(--rosa-siwa);
    margin-bottom: 20px;
}

.about-text p { line-height: 1.8; opacity: 0.8; font-weight: 300; }

/* FOOTER PROFESIONAL */
.main-footer {
    background: #2d3436; 
    color: rgba(255, 255, 255, 0.9);
    padding: 60px 5% 20px;
    margin-top: 40px;
    border-radius: var(--radius) var(--radius) 0 0;
    transition: border-radius 0.5s ease;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.siwa-logo-footer {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--rosa-siwa);
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-column h4 {
    color: white;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-column ul { list-style: none; padding: 0; margin: 0; }

.footer-column ul li {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.footer-column ul li:hover { color: var(--lila-siwa); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
}

.bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    opacity: 0.6;
}

/* MEDIA QUERIES PARA CELULARES */
@media (max-width: 600px) {
    .nav-bar { justify-content: center; text-align: center; }
    .logo-wrapper { align-items: center; width: 100%; }
    .nav-links { width: 100%; justify-content: center; }
    .hero-section h1 { font-size: 2rem; }
    
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; padding: 15px; }

    .footer-top { grid-template-columns: 1fr; text-align: center; }
    .bottom-container { flex-direction: column; gap: 15px; text-align: center; }
}
