/* ============================================================
   Dulce Nory — styles.css v1
   Paleta: rosa pastel + rojo + cream
   Tipografía: Playfair Display (display) + Inter (body)
   Mobile-first, breakpoints en 768px y 1024px
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
    --pink-primary: #E8919C;       /* acento secundario */
    --pink-soft:    #FCE4E6;       /* fondo de tarjetas */
    --pink-bg:      #FBF0EE;       /* fondo principal hero/secciones suaves */
    --red-primary:  #E63946;       /* CTA principal */
    --red-dark:     #C92A37;       /* hover/active */
    --cream:        #FAF3EF;       /* fondo alternativo (stats) */
    --ink:          #2D2A28;       /* texto principal */
    --muted:        #6B5F5A;       /* texto secundario */
    --line:         #E8D8D4;       /* bordes suaves */
    --white:        #ffffff;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --radius-sm: 8px;
    --radius:    14px;
    --radius-lg: 24px;

    --shadow-sm: 0 2px 8px rgba(45, 42, 40, 0.06);
    --shadow:    0 8px 24px rgba(45, 42, 40, 0.08);
    --shadow-lg: 0 16px 48px rgba(45, 42, 40, 0.12);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { padding: 0; margin: 0; list-style: none; }

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Tipografía ---------- */
.overline {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--red-primary);
    margin-bottom: 14px;
}
.overline-light { color: var(--pink-soft); }

.section-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.15;
    color: var(--ink);
    margin: 0 0 16px;
    letter-spacing: -0.01em;
}

.section-lead {
    font-size: 17px;
    line-height: 1.6;
    color: var(--muted);
    max-width: 620px;
    margin: 0 auto;
}

/* ---------- Botones ---------- */
.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform 0.04s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
    text-align: center;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
    background: var(--red-primary);
    color: var(--white);
    border-color: var(--red-primary);
}
.btn-primary:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
}

.btn-outline {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}
.btn-outline:hover {
    background: var(--ink);
    color: var(--white);
}

.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-xl { padding: 18px 32px; font-size: 17px; border-radius: var(--radius); }

/* ---------- Navbar ---------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow 0.2s ease;
}
.navbar.is-scrolled { box-shadow: var(--shadow-sm); }

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    color: var(--ink);
    font-weight: 600;
    font-size: 18px;
}
.brand-mark {
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    background: var(--red-primary);
    color: var(--white);
    display: grid; place-items: center;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: -0.02em;
}
.brand-name { letter-spacing: -0.01em; }

.nav-links {
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
}
.nav-link {
    display: inline-block;
    padding: 8px 14px;
    color: var(--ink);
    font-weight: 500;
    font-size: 15px;
    border-radius: var(--radius-sm);
    transition: background 0.15s ease, color 0.15s ease;
}
.nav-link:hover { background: var(--pink-bg); color: var(--red-primary); }

.nav-cta { margin-left: 8px; }

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px; height: 22px;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
}
.mobile-toggle span {
    display: block;
    width: 100%; height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.mobile-toggle.is-open span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.mobile-toggle.is-open span:nth-child(2) { opacity: 0; }
.mobile-toggle.is-open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    background: var(--pink-bg);
    padding: 64px 0 96px;
    overflow: hidden;
}
.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}
.hero-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2rem, 6vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0 0 20px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.hero-title .highlight {
    color: var(--red-primary);
    font-style: italic;
}
.hero-tagline {
    font-size: clamp(16px, 2.4vw, 19px);
    line-height: 1.6;
    color: var(--muted);
    margin: 0 0 32px;
    max-width: 540px;
}
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}
.hero-image-frame {
    aspect-ratio: 4 / 3;
    background: var(--pink-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}
.hero-image-frame img {
    width: 100%; height: 100%; object-fit: cover;
}

/* ---------- Stats strip ---------- */
.stats {
    background: var(--cream);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 36px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.stat {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.stat-number {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(28px, 5vw, 40px);
    color: var(--red-primary);
    line-height: 1;
}
.stat-label {
    font-size: 14px;
    color: var(--muted);
    font-weight: 500;
}

/* ---------- Sections ---------- */
.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}

/* ---------- Products ---------- */
.products {
    padding: 96px 0;
    background: var(--white);
}
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.product-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--pink-primary);
}
.product-image {
    aspect-ratio: 4 / 3;
    background: var(--pink-soft);
    overflow: hidden;
}
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-body {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}
.product-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 22px;
    margin: 0;
    color: var(--ink);
}
.product-desc {
    font-size: 15px;
    color: var(--muted);
    margin: 0 0 12px;
    flex-grow: 1;
}
.product-link {
    color: var(--red-primary);
    font-weight: 600;
    font-size: 15px;
    transition: color 0.15s ease;
    align-self: flex-start;
}
.product-link:hover { color: var(--red-dark); }

/* ---------- About ---------- */
.about {
    background: var(--pink-bg);
    padding: 96px 0;
}
.about-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}
.about-image-frame {
    aspect-ratio: 1 / 1;
    background: var(--pink-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    max-width: 460px;
    margin: 0 auto;
    width: 100%;
}
.about-content { max-width: 560px; }
.about-content p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--muted);
    margin: 0 0 16px;
}
.about-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 24px 0 32px;
}
.about-features li {
    padding-left: 26px;
    position: relative;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}
.about-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 16px; height: 16px;
    background: var(--red-primary);
    border-radius: 50%;
    background-image: radial-gradient(circle at center, var(--white) 0 2px, var(--red-primary) 3px);
}

/* ---------- Contact ---------- */
.contact {
    padding: 96px 0;
    background: var(--white);
}
.contact-card {
    background: var(--ink);
    background-image:
        radial-gradient(circle at 20% 20%, rgba(232, 145, 156, 0.15), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(230, 57, 70, 0.18), transparent 50%);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 64px 32px;
    text-align: center;
    max-width: 880px;
    margin: 0 auto;
}
.contact-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2rem, 4.5vw, 2.75rem);
    line-height: 1.1;
    margin: 0 0 16px;
    color: var(--white);
}
.contact-lead {
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
    max-width: 580px;
    margin: 0 auto 32px;
}
.contact-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 56px;
    text-align: left;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.contact-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.contact-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--pink-primary);
    font-weight: 600;
}
.contact-value {
    color: var(--white);
    font-size: 16px;
    font-weight: 500;
}
a.contact-value:hover { color: var(--pink-primary); }

/* ---------- Footer ---------- */
.footer {
    border-top: 1px solid var(--line);
    padding: 32px 0;
    background: var(--cream);
}
.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}
.footer-brand {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 18px;
    color: var(--ink);
}
.footer-meta {
    font-size: 14px;
    color: var(--muted);
}
.footer-meta a { color: var(--red-primary); }
.footer-meta a:hover { color: var(--red-dark); }

/* ============================================================
   Breakpoint ≥768px (tablet)
   ============================================================ */
@media (min-width: 768px) {
    .container { padding: 0 32px; }

    .stats-grid { grid-template-columns: repeat(4, 1fr); }

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

    .contact-details { grid-template-columns: repeat(3, 1fr); }

    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* ============================================================
   Breakpoint ≥1024px (desktop)
   ============================================================ */
@media (min-width: 1024px) {
    .hero { padding: 96px 0 120px; }
    .hero-container {
        grid-template-columns: 1.1fr 1fr;
        gap: 72px;
    }

    .products-grid { grid-template-columns: repeat(3, 1fr); }

    .about-container {
        grid-template-columns: 0.9fr 1.1fr;
        gap: 80px;
    }
}

/* ============================================================
   Mobile (mobile-first): menú hamburguesa
   ============================================================ */
@media (max-width: 767px) {
    .nav-links {
        position: absolute;
        top: 72px;
        left: 0; right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        padding: 16px 20px;
        gap: 4px;
        box-shadow: var(--shadow);
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }
    .nav-links.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .nav-link { padding: 12px 16px; }

    .nav-cta { display: none; }
    .mobile-toggle { display: flex; }

    .stats { padding: 28px 0; }
    .stat-number { font-size: 28px; }

    .products, .about, .contact { padding: 72px 0; }
    .contact-card { padding: 48px 24px; }
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

:focus-visible {
    outline: 3px solid var(--red-primary);
    outline-offset: 2px;
    border-radius: 4px;
}
