/* Variables */
:root {
    --sage: #84B59F;
    --eucalyptus: #69A297;
    --slate: #50808E;
    --cream: #F5F5F5;
    --white: #FFFFFF;
    --terracotta: #B85042;
    --dark-text: #2C3E50;
    --light-blue: #69C1D9;
    --dark-blue: #1B4D89;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Calibri', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--cream);
    color: var(--dark-text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Floating Contact Button */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.5);
    transition: all 0.3s ease;
    font-weight: bold;
    font-size: 1.1em;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.7);
    background: #20BA5A;
}

.contact-btn::before {
    content: '';
    width: 24px;
    height: 24px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z"/></svg>') center/contain no-repeat;
}

.contact-btn span:first-child {
    display: none;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo-img {
    height: 60px;
    width: auto;
}

.main-nav {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--dark-text);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 0.95em;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--sage);
    color: var(--white);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.8em;
    cursor: pointer;
    color: var(--sage);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--sage) 0%, var(--eucalyptus) 100%);
    color: var(--white);
    text-align: center;
    padding: 120px 20px 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: var(--eucalyptus);
    opacity: 0.3;
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    background: var(--white);
    opacity: 0.1;
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 15px;
    font-weight: bold;
}

.hero-subtitle {
    font-size: 1.8em;
    margin-bottom: 10px;
    opacity: 0.95;
}

.hero-text {
    font-size: 1.3em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: var(--white);
    color: var(--sage);
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* About Section */
.about-section {
    padding: 80px 20px;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.8em;
    color: var(--sage);
    margin-bottom: 20px;
    font-weight: bold;
}

.section-subtitle {
    text-align: center;
    font-size: 1.3em;
    color: var(--slate);
    margin-bottom: 50px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
}

.about-text .lead {
    font-size: 1.4em;
    color: var(--sage);
    margin-bottom: 20px;
    font-weight: 600;
}

.about-text p {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-image {
    text-align: center;
}

.feature-img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    background: var(--cream);
    padding: 35px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid var(--eucalyptus);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.feature-logo {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-logo img {
    width: 76px;
    height: 76px;
    object-fit: contain;
    border-radius: 50%;
}

.feature-card h3 {
    color: var(--eucalyptus);
    margin-bottom: 15px;
    font-size: 1.4em;
}

.feature-card p {
    color: var(--dark-text);
    font-size: 1.05em;
}

/* Categories Section */
.categories-section {
    padding: 80px 20px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.category-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    color: var(--dark-text);
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.category-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--cream);
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

/* Fotos de categorías: encuadre más alejado para mostrar el producto completo */
.facial-subcategories .category-image,
.home-categories .category-image {
    height: 300px;
    padding: 24px;
    background: var(--white);
}

.facial-subcategories .category-image img,
.home-categories .category-image img {
    object-fit: contain;
    transform: scale(0.88);
}

.facial-subcategories .category-card:hover .category-image img,
.home-categories .category-card:hover .category-image img {
    transform: scale(0.94);
}

.category-card h3 {
    padding: 20px 25px 10px;
    font-size: 1.6em;
    color: var(--sage);
}

.category-card p {
    padding: 0 25px 15px;
    color: var(--slate);
}

.view-more {
    display: block;
    padding: 15px 25px;
    color: var(--eucalyptus);
    font-weight: bold;
    border-top: 2px solid var(--cream);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--eucalyptus) 0%, var(--sage) 100%);
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.3em;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-button-large {
    display: inline-block;
    background: var(--white);
    color: var(--eucalyptus);
    padding: 18px 45px;
    border-radius: 35px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.cta-button-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.3);
}

/* Footer */
.footer {
    background: var(--dark-text);
    color: var(--white);
    padding: 60px 20px 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 80px;
    width: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-section h3 {
    color: var(--sage);
    margin-bottom: 20px;
    font-size: 1.4em;
}

.footer-section p {
    opacity: 0.9;
    margin-bottom: 10px;
}

.tagline {
    color: var(--sage);
    font-style: italic;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--sage);
}

.contact-info {
    list-style: none;
}

.contact-info li {
    margin-bottom: 12px;
}

.contact-info a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s;
}

.contact-info a:hover {
    opacity: 1;
    color: var(--sage);
}

.social-links {
    display: flex;
    gap: 15px;
    flex-direction: column;
}

.social-btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    transition: all 0.3s;
    text-align: center;
}

.social-btn.facebook {
    background: #1877f2;
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.8;
}

.footer-bottom p {
    margin-bottom: 10px;
}

.note {
    font-size: 0.9em;
    font-style: italic;
}

/* Product Pages */
.page-header {
    background: linear-gradient(135deg, var(--sage) 0%, var(--eucalyptus) 100%);
    color: var(--white);
    padding: 80px 20px 40px;
    text-align: center;
}

.page-header h1 {
    font-size: 3em;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.3em;
    opacity: 0.95;
}

.products-section {
    padding: 60px 20px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 35px;
    margin-top: 40px;
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    border: 2px solid var(--eucalyptus);
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 20px;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.best-seller-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #D9A928, #F3D36A);
    color: #3D2B00;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(88, 61, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.75);
}

.product-card h3 {
    color: var(--sage);
    font-size: 1.7em;
    margin-bottom: 18px;
    font-weight: bold;
}

.product-card .description {
    margin-bottom: 18px;
    line-height: 1.8;
    font-size: 1.05em;
}

.product-card .ingredients {
    background: var(--cream);
    padding: 18px;
    border-radius: 10px;
    margin-bottom: 18px;
    border-left: 4px solid var(--eucalyptus);
    font-size: 0.95em;
}

.product-card .ingredients strong {
    color: var(--eucalyptus);
    display: block;
    margin-bottom: 8px;
}

.product-card .benefits {
    font-style: italic;
    color: var(--slate);
    margin-bottom: 18px;
    padding: 12px;
    background: rgba(132, 181, 159, 0.1);
    border-radius: 8px;
    font-size: 0.95em;
}

.product-card .price-box {
    background: var(--sage);
    color: var(--white);
    padding: 18px;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
}

.product-card .price {
    font-size: 1.4em;
    margin: 8px 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }

    .mobile-menu-btn {
        display: block;
    }

    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
    }

    .main-nav.active {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5em;
    }

    .hero-subtitle {
        font-size: 1.4em;
    }

    .section-title {
        font-size: 2.2em;
    }

    .categories-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .floating-contact {
        bottom: 20px;
        right: 20px;
    }

    .contact-text {
        display: none;
    }

    .contact-btn {
        width: 60px;
        height: 60px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown > a {
    color: var(--dark-text);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 0.95em;
    display: inline-block;
}

.dropdown > a:hover,
.dropdown > a.active {
    background: var(--sage);
    color: var(--white);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-radius: 10px;
    z-index: 1000;
    overflow: hidden;
    margin-top: 0;
}

.dropdown-content a {
    color: var(--dark-text);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-weight: 500;
    font-size: 0.9em;
    transition: all 0.3s;
    border-radius: 0;
}

.dropdown-content a:hover {
    background: var(--sage);
    color: var(--white);
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    display: block;
}

/* Mobile dropdown */
@media (max-width: 900px) {
    .dropdown {
        width: 100%;
    }

    .dropdown > a {
        width: 100%;
        text-align: center;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        margin-top: 0;
        background: rgba(132, 181, 159, 0.1);
    }

    .dropdown-content a {
        text-align: center;
        padding: 10px 20px;
    }
}
