:root {
    --primary-color: #F47920; /* Natura Orange */
    --primary-hover: #D66A1C;
    --secondary-color: #5B9279; /* Soft Natural Green */
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #F9F9F9;
    --bg-white: #FFFFFF;
    --whatsapp-color: #25D366;
    --whatsapp-hover: #1EBE5D;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Typography elements */
h1, h2, h3 {  font-weight: 700; }
a { text-decoration: none; }

/* Top Bar Animated (3 Messages) */
.top-bar {
    display: block;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
    color: var(--bg-white);
    text-align: center;
    padding: 10px 15px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    position: relative;
    height: 44px;
    overflow: hidden;
    text-decoration: none;
    transition: filter 0.3s ease;
}
.top-bar:hover { filter: brightness(1.1); }

.msg-container { position: relative; height: 100%; }

.msg {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%) scale(0.95);
    opacity: 0;
    animation: fadeMessages 12s infinite;
}

.msg i { margin-right: 8px; font-size: 1.1rem; }

.msg-1 { animation-delay: 0s; }
.msg-2 { animation-delay: 4s; }
.msg-3 { animation-delay: 8s; }

@keyframes fadeMessages {
    0%, 33%, 100% { opacity: 0; transform: translateY(-50%) scale(0.95); }
    3%, 30% { opacity: 1; transform: translateY(-50%) scale(1); }
}

/* Navbar */
.navbar {
    background-color: var(--bg-white);
    padding: 15px 5%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    color: var(--text-dark);
}

.logo span {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-light);
    display: block;
    margin-top: -5px;
}

/* Buttons */
.btn-primary, .btn-primary-small, .btn-whatsapp-large {
    display: inline-block;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary-small {
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: var(--bg-white);
    font-size: 0.9rem;
}
.btn-primary-small:hover { background-color: var(--primary-hover); transform: translateY(-2px); }

.btn-primary {
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: var(--bg-white);
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(244, 121, 32, 0.3);
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(244, 121, 32, 0.4);
}

.btn-whatsapp-large {
    padding: 15px 30px;
    background-color: var(--whatsapp-color);
    color: var(--bg-white);
    font-size: 1.1rem;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp-large:hover {
    background-color: var(--whatsapp-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), url('../img/hero_faces.png') center/cover no-repeat;
    height: 75vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
    color: var(--bg-white);
}

/* Fallback background if image is not ready */
.hero { background-color: #f1ebd8; color: var(--text-dark); }
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(244,121,32,0.1), rgba(91,146,121,0.1));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.badge {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.5);
    display: inline-block;
    margin-bottom: 15px;
}
.hero { color: var(--bg-white); } /* If we use real image */

/* Hero fixes */
.hero .badge { background-color: var(--primary-color); border: none; color: white;}
.hero h2 { font-size: 3.5rem; margin-bottom: 15px; line-height: 1.2; text-shadow: 2px 2px 5px rgba(0,0,0,0.9); }
.hero p { font-size: 1.4rem; font-weight: 400; margin-bottom: 30px; text-shadow: 1px 1px 4px rgba(0,0,0,0.8); }

.coupon-box {
    margin-top: 30px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 2px dashed #ccc;
    font-size: 0.95rem;
    color: var(--text-dark);
    display: inline-block;
}
.coupon-box p {
    text-shadow: none;
    margin-bottom: 0;
}

/* Benefits */
.benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 60px 5%;
    max-width: 1200px;
    margin: -50px auto 0;
    position: relative;
    z-index: 10;
}

.benefit-item {
    background: var(--bg-white);
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

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

.benefit-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.benefit-item h3 { margin-bottom: 10px; font-size: 1.2rem; }
.benefit-item p { color: var(--text-light); font-size: 0.95rem; }

/* Categories Grid */
.categories-section {
    padding: 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.category-card {
    position: relative;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

/* Imágenes de Categorías */
.perfume { background: url('../img/perfumeria_1.jpeg') top center/cover; background-color: #E2C0C0; }
.makeup { background: url('../img/maquillaje.jpeg') top center/cover; background-color: #D3A79E; }
.skincare { background: url('../img/skincare.png') center/cover; background-color: #B2D8D8; }
.bodycare { background: url('../img/cuidados_diarios.jpeg') top center/cover; background-color: #D6E5D8; }

.category-card:hover { transform: scale(1.03); }

.category-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 60%);
    transition: background 0.3s ease;
}

.category-card:hover .category-overlay {
    background: linear-gradient(to top, rgba(244,121,32,0.8) 0%, rgba(0,0,0,0) 60%);
}

.category-content {
    position: relative;
    z-index: 2;
    color: var(--bg-white);
    width: 100%;
}

.category-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.btn-glass {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}
.category-card:hover .btn-glass { background: var(--bg-white); color: var(--primary-color); }

/* Consultant Banner */
.consultant-banner {
    background-color: var(--bg-white);
    padding: 80px 5%;
    margin-top: 40px;
    text-align: center;
}

.consultant-wrapper { max-width: 800px; margin: 0 auto; }
.consultant-text h2 { font-size: 2rem; margin-bottom: 20px; }
.consultant-text p { font-size: 1.1rem; color: var(--text-light); margin-bottom: 30px; }

/* Join Network Banner */
.join-banner {
    background-color: #FFF0E5; /* Soft orange background */
    padding: 80px 5%;
    text-align: center;
}
.join-wrapper { max-width: 800px; margin: 0 auto; }
.join-wrapper h2 { font-size: 2rem; margin-bottom: 20px; color: var(--text-dark); }
.join-wrapper p { font-size: 1.1rem; color: var(--text-dark); margin-bottom: 30px; }

/* Footer */
footer {
    background-color: #222;
    color: #ccc;
    padding: 40px 5%;
    text-align: center;
}
.footer-content { max-width: 800px; margin: 0 auto; }
.footer-content p { margin-bottom: 10px; }
.disclaimer { font-size: 0.8rem; color: #888; margin-top: 20px;}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--whatsapp-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.floating-whatsapp:hover {
    background-color: var(--whatsapp-hover);
    transform: scale(1.1);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Responsiveness */
@media (max-width: 768px) {
    .hero h2 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .nav-container { flex-direction: column; gap: 15px; }
    .benefits { padding: 40px 5%; margin-top: 0; }
    .category-card { height: 250px; }
}
