/* ========================================
   Mayca Cosmetics - Mobile First CSS
   ======================================== */

:root {
    --color-primary: #c2185b;
    --color-primary-dark: #ad1457;
    --color-secondary: #f8bbd0;
    --color-accent: #d4af37;
    --color-dark: #2c2c2c;
    --color-light: #fdf6f9;
    --color-white: #ffffff;
    --color-gray: #666666;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --max-width: 1100px;
    --header-height: 60px;
}

/* ---- Reset ---- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--color-dark);
    background: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ---- Container ---- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- Grid ---- */
.grid {
    display: grid;
    gap: 20px;
}

/* ---- Buttons ---- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
    min-height: 48px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: var(--color-white);
    font-size: 1.1rem;
}

.btn-store {
    color: var(--color-white);
    width: 100%;
    padding: 12px 20px;
}

/* ========================================
   HEADER
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: transparent;
    transition: background 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-white);
    transition: color 0.3s;
}

.scrolled .brand-name {
    color: var(--color-primary);
}

/* Hamburger */
.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    transition: all 0.3s;
}

.scrolled .hamburger,
.scrolled .hamburger::before,
.scrolled .hamburger::after {
    background: var(--color-dark);
}

.hamburger {
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

.menu-toggle.active .hamburger {
    background: transparent;
}

.menu-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
    background: var(--color-dark);
}

.menu-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
    background: var(--color-dark);
}

/* Mobile nav */
.main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: var(--color-white);
    display: flex;
    flex-direction: column;
    padding: 80px 30px 30px;
    gap: 10px;
    transition: right 0.3s;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
}

.main-nav.open {
    right: 0;
}

.nav-link {
    padding: 12px 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-dark);
    border-bottom: 1px solid #eee;
}

.nav-link:hover {
    color: var(--color-primary);
}

/* ========================================
   HERO
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('/img/fondo_header.jpg') center/cover no-repeat;
    text-align: center;
    padding: 20px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(194, 24, 91, 0.7), rgba(44, 44, 44, 0.6));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 24px;
    border: 3px solid rgba(255, 255, 255, 0.4);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--color-white);
    margin-bottom: 12px;
    line-height: 1.2;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* ========================================
   ABOUT
   ======================================== */
.about {
    padding: 60px 0;
    background: var(--color-light);
    text-align: center;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--color-gray);
    margin-bottom: 30px;
}

.about-text {
    font-size: 1.1rem;
    color: var(--color-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ========================================
   CATALOGO (Avon embed)
   ======================================== */
.catalogo {
    padding: 60px 0;
    text-align: center;
}

.catalogo-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 24px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.12);
    aspect-ratio: 3 / 4;
}

.catalogo-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.catalogo-cta {
    margin-top: 10px;
}

@media (min-width: 768px) {
    .catalogo-wrapper {
        aspect-ratio: 4 / 3;
    }
}

/* ========================================
   OFFERS (Categories)
   ======================================== */
.offers {
    padding: 60px 0;
    text-align: center;
}

.offers-grid {
    grid-template-columns: repeat(2, 1fr);
}

.offer-card {
    background: linear-gradient(135deg, var(--color-secondary), #fce4ec);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.2s;
}

.offer-card:hover {
    transform: translateY(-4px);
}

.offer-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.offer-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-primary-dark);
    margin-bottom: 8px;
}

.offer-card p {
    font-size: 0.85rem;
    color: var(--color-gray);
}

/* ========================================
   AFFILIATES (Stores)
   ======================================== */
.affiliates {
    padding: 60px 0;
    background: var(--color-light);
    text-align: center;
}

.affiliates-grid {
    grid-template-columns: 1fr;
}

.store-card {
    background: var(--color-white);
    border-radius: 16px;
    padding: 30px 24px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.store-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.store-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.store-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.store-desc {
    color: var(--color-gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* ========================================
   CONTACT
   ======================================== */
.contact {
    padding: 60px 0;
    text-align: center;
}

.contact-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 30px;
    background: var(--color-white);
    border: 2px solid var(--color-secondary);
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 500;
    min-width: 220px;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
}

.contact-item:hover {
    background: var(--color-secondary);
    border-color: var(--color-primary);
}

.contact-icon {
    font-size: 1.3rem;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background: var(--color-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 30px 0;
    text-align: center;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-white);
    margin-bottom: 12px;
}

.footer-legal {
    font-size: 0.8rem;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

/* ========================================
   TABLET (768px+)
   ======================================== */
@media (min-width: 768px) {
    .offers-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .affiliates-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-links {
        flex-direction: row;
        justify-content: center;
    }

    .hero-title {
        font-size: 3rem;
    }

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

/* ========================================
   DESKTOP (1024px+)
   ======================================== */
@media (min-width: 1024px) {
    .affiliates-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .menu-toggle {
        display: none;
    }

    .main-nav {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        flex-direction: row;
        padding: 0;
        box-shadow: none;
        gap: 5px;
    }

    .nav-link {
        padding: 8px 16px;
        font-size: 0.95rem;
        border-bottom: none;
        color: var(--color-white);
        border-radius: 20px;
        transition: background 0.2s;
    }

    .scrolled .nav-link {
        color: var(--color-dark);
    }

    .nav-link:hover {
        background: rgba(255, 255, 255, 0.15);
        color: var(--color-white);
    }

    .scrolled .nav-link:hover {
        background: var(--color-secondary);
        color: var(--color-primary);
    }

    .hero-title {
        font-size: 3.5rem;
    }
}
