
/* =========================================================
   PARFUM — PERFUMERÍA DE AUTOR
   Identidad editorial · Premium · Responsive
========================================================= */

/* -------------------------
   01. VARIABLES Y RESET
------------------------- */

:root {
    --cream: #f5f1eb;
    --cream-dark: #eae2d8;
    --paper: #fbf9f5;
    --ink: #27231f;
    --ink-soft: #514941;
    --muted: #6B6156;
    --sand: #c4b29d;
    --line: rgba(39, 35, 31, 0.16);
    --white: #fffdf9;

    --font-display: "Italiana", Georgia, serif;
    --font-body: "Urbanist", Arial, sans-serif;

    --page-padding: clamp(22px, 7.5vw, 120px);
    --section-space: clamp(90px, 12vw, 165px);

    --transition: 260ms ease;
    --transition-slow: 600ms cubic-bezier(.22, 1, .36, 1);

    --shadow-soft: 0 18px 55px rgba(25, 20, 15, 0.10);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--ink);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.cart-open,
body.menu-open {
    overflow: hidden;
}

body,
button,
input,
select {
    font-family: var(--font-body);
}

button,
input,
select {
    font: inherit;
}

button {
    color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--ink);
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
}

img {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 400;
}

em {
    font-weight: 400;
}

::selection {
    color: var(--white);
    background: var(--ink);
}

[hidden] {
    display: none !important;
}

/* -------------------------
   02. ELEMENTOS GENERALES
------------------------- */

.eyebrow {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2.5px;
    line-height: 1.8;
    text-transform: uppercase;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    padding-bottom: 6px;
    border-bottom: 1px solid currentColor;
    font-size: 11px;
    font-weight: 500;
    transition:
        gap var(--transition),
        opacity var(--transition);
}

.text-link:hover {
    gap: 18px;
    opacity: 0.7;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    min-height: 53px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 2px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.4px;
    transition:
        background var(--transition),
        color var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

.button:hover {
    transform: translateY(-2px);
}

.button span {
    font-size: 16px;
    font-weight: 400;
}

.button-light {
    color: var(--ink);
    background: var(--cream);
}

.button-light:hover {
    color: var(--white);
    background: transparent;
    border-color: rgba(255, 255, 255, 0.65);
}

.button-dark {
    color: var(--white);
    background: var(--ink);
}

.button-dark:hover {
    color: var(--ink);
    background: transparent;
    border-color: var(--ink);
}

/* -------------------------
   03. BARRA SUPERIOR
------------------------- */

.announcement-bar {
    position: relative;
    z-index: 30;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 30px;
    padding: 7px 15px;
    color: var(--cream);
    background: var(--ink);
    text-align: center;
}

.announcement-bar p {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1.8px;
}

.announcement-bar span {
    margin: 0 10px;
    color: var(--sand);
}

/* -------------------------
   04. NAVEGACIÓN
------------------------- */

.parfum-header {
    position: relative;
    z-index: 25;
    background: var(--cream);
}

.parfum-navbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 90px;
    padding: 0 var(--page-padding);
    border-bottom: 1px solid var(--line);
}

.parfum-logo {
    width: fit-content;
    font-family: var(--font-display);
    font-size: 29px;
    font-weight: 400;
    letter-spacing: -0.3px;
}

.parfum-logo span {
    color: #9b7d61;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(22px, 3.5vw, 52px);
}

.nav-links a {
    position: relative;
    padding: 8px 0;
    color: var(--ink-soft);
    font-size: 10px;
    transition: color var(--transition);
}

.nav-links a::after {
    position: absolute;
    right: 0;
    bottom: 1px;
    left: 0;
    height: 1px;
    background: currentColor;
    content: "";
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition);
}

.nav-links a:hover {
    color: var(--ink);
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 23px;
}

.search-toggle,
.cart-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 0;
    border: 0;
    background: transparent;
    font-size: 10px;
}

.search-toggle svg,
.cart-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.35;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cart-toggle {
    gap: 7px;
}

.cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 19px;
    height: 19px;
    padding: 0 4px;
    border-radius: 50%;
    color: var(--cream);
    background: var(--ink);
    font-size: 10px;
}

.menu-toggle {
    display: none;
    width: 35px;
    height: 35px;
    padding: 8px 5px;
    border: 0;
    background: transparent;
}

.menu-toggle span {
    display: block;
    width: 23px;
    height: 1px;
    margin: 6px 0;
    background: var(--ink);
    transition:
        transform var(--transition),
        opacity var(--transition);
}

.menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
}

/* Buscador desplegable */

.search-panel {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 24;
    padding: 35px var(--page-padding);
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow-soft);
    animation: panel-enter 220ms ease both;
}

.search-form {
    max-width: 720px;
    margin: 0 auto;
}

.search-form > label {
    display: block;
    margin-bottom: 15px;
    font-family: var(--font-display);
    font-size: 24px;
}

.search-input-wrap {
    display: flex;
    border-bottom: 1px solid var(--ink);
}

.search-input-wrap input {
    width: 100%;
    min-width: 0;
    padding: 14px 0;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 13px;
}

.search-input-wrap input:focus-visible {
    outline: none;
}

.search-input-wrap button {
    flex-shrink: 0;
    padding: 0 12px;
    border: 0;
    background: transparent;
    font-size: 10px;
    font-weight: 600;
}

.search-close {
    margin-top: 15px;
    padding: 5px 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 10px;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* -------------------------
   05. HERO
------------------------- */

.parfum-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: min(780px, calc(100svh - 120px));
    min-height: max(680px, min(780px, calc(100svh - 120px)));
    overflow: hidden;
    color: var(--white);
    background: #453b32;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-image: url("https://images.unsplash.com/photo-1726758004519-7ccecda8b076?auto=format&fit=crop&w=2200&q=85");
    background-position: center 48%;
    background-size: cover;
    transform: scale(1.015);
    animation: hero-image-enter 1.5s cubic-bezier(.22, 1, .36, 1) both;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(24, 20, 17, 0.79) 0%,
            rgba(24, 20, 17, 0.57) 43%,
            rgba(24, 20, 17, 0.13) 100%
        ),
        linear-gradient(
            0deg,
            rgba(24, 20, 17, 0.36),
            transparent 30%
        );
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    padding: 110px var(--page-padding) 125px;
}

.hero-eyebrow {
    margin-bottom: 27px;
    color: #e2d1bf;
}

.hero-content h1 {
    font-size: clamp(62px, 7.5vw, 112px);
    line-height: 0.99;
    letter-spacing: -1.5px;
}

.hero-content h1 em {
    color: #d4bda5;
}

.hero-description {
    max-width: 400px;
    margin-top: 27px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 35px;
}

.hero-secondary {
    color: var(--white);
}

.hero-bottom {
    position: absolute;
    right: var(--page-padding);
    bottom: 27px;
    left: var(--page-padding);
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.27);
    color: rgba(255, 255, 255, 0.75);
    font-size: 10px;
    letter-spacing: 1.7px;
}

.hero-side-note {
    position: absolute;
    top: 50%;
    right: 25px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
    letter-spacing: 2px;
    writing-mode: vertical-rl;
    transform: translateY(-50%);
}

/* -------------------------
   06. INTRODUCCIÓN
------------------------- */

.brand-intro {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 115px 25px 125px;
    text-align: center;
}

.brand-intro .eyebrow {
    color: var(--muted);
}

.brand-intro > p {
    max-width: 790px;
    margin-top: 26px;
    font-family: var(--font-display);
    font-size: clamp(31px, 4.5vw, 59px);
    line-height: 1.28;
    letter-spacing: -0.5px;
}

.brand-intro > p em {
    color: #8d7b69;
}

.intro-symbol {
    margin-top: 30px;
    color: #a18b75;
    font-size: 24px;
}

/* -------------------------
   07. CATÁLOGO
------------------------- */

.collection-section {
    padding: 30px var(--page-padding) var(--section-space);
    border-top: 1px solid var(--line);
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 55px;
}

.section-heading .eyebrow {
    color: var(--muted);
}

.section-heading h2 {
    margin-top: 19px;
    font-size: clamp(46px, 5.7vw, 76px);
    line-height: 1.08;
    letter-spacing: -0.8px;
}

.section-heading h2 em {
    color: #8d7b69;
}

.section-heading > p {
    max-width: 310px;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.9;
}

/* Filtros */

.catalog-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    margin-bottom: 28px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.filter-tabs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-button {
    padding: 9px 13px;
    border: 1px solid transparent;
    border-radius: 30px;
    color: var(--muted);
    background: transparent;
    font-size: 10px;
    transition:
        color var(--transition),
        background var(--transition),
        border-color var(--transition);
}

.filter-button:hover {
    color: var(--ink);
    border-color: var(--line);
}

.filter-button.is-active {
    color: var(--white);
    background: var(--ink);
}

.sort-control {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    color: var(--muted);
    font-size: 10px;
}

.sort-control select {
    max-width: 145px;
    padding: 8px 20px 8px 5px;
    border: 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    background: transparent;
    font-size: 10px;
    cursor: pointer;
}

/* Tarjetas */

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 52px 24px;
}

.product-card {
    min-width: 0;
    animation: card-enter 420ms ease both;
}

.product-card.is-filtered-out {
    display: none;
}

.product-image {
    position: relative;
    height: clamp(320px, 38vw, 500px);
    overflow: hidden;
    background-color: #e4d9cc;
    background-position: center;
    background-size: cover;
    isolation: isolate;
}

.product-image::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        180deg,
        rgba(25, 20, 15, 0.17),
        transparent 26%,
        transparent 68%,
        rgba(25, 20, 15, 0.10)
    );
    content: "";
    pointer-events: none;
}

.product-image-one {
    background-image: url("https://images.unsplash.com/photo-1608571424634-58ae03e6edcf?auto=format&fit=crop&w=900&q=80");
}

.product-image-two {
    background-image: url("https://images.unsplash.com/photo-1622618991746-fe6004db3a47?auto=format&fit=crop&w=900&q=80");
}

.product-image-three {
    background-image: url("https://images.unsplash.com/photo-1574670700790-fa314ab37787?auto=format&fit=crop&w=900&q=80");
}

.product-image-four {
    background-image: url("https://images.unsplash.com/photo-1617954095840-0427f79be4cf?auto=format&fit=crop&w=900&q=80");
}

.product-image-five {
    background-image: url("https://images.unsplash.com/photo-1613750255797-7d4f877615df?auto=format&fit=crop&w=900&q=80");
}

.product-image-six {
    background-image: url("https://images.unsplash.com/photo-1733660227083-12b78ad0073d?auto=format&fit=crop&w=900&q=80");
    background-position: center;
    background-size: cover;
}

.product-index,
.product-tag {
    position: absolute;
    top: 17px;
    z-index: 2;
    color: var(--white);
    font-size: 10px;
    letter-spacing: 1.5px;
}

.product-index {
    left: 16px;
}

.product-tag {
    right: 16px;
    padding: 7px 9px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: rgba(39, 35, 31, 0.2);
    backdrop-filter: blur(6px);
}

.quick-add {
    position: absolute;
    right: 15px;
    bottom: 15px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    border: 0;
    border-radius: 50%;
    color: var(--ink);
    background: var(--cream);
    font-size: 23px;
    font-weight: 300;
    transition:
        color var(--transition),
        background var(--transition),
        transform var(--transition);
}

.quick-add:hover {
    color: var(--white);
    background: var(--ink);
    transform: rotate(90deg);
}

.product-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 0 13px;
}

.product-family {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 1.1px;
}

.product-info h3 {
    font-size: 29px;
    line-height: 1.15;
}

.product-info p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 10px;
}

.product-price {
    flex-shrink: 0;
    padding-top: 19px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.product-add-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 13px 0;
    border: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: transparent;
    font-size: 10px;
    text-align: left;
    transition:
        padding var(--transition),
        color var(--transition);
}

.product-add-button span {
    font-size: 17px;
}

.product-add-button:hover {
    padding-right: 8px;
    padding-left: 8px;
    color: #8d6e51;
}

.catalog-empty {
    padding: 60px 15px;
    color: var(--muted);
    font-family: var(--font-display);
    font-size: 25px;
    text-align: center;
}

.catalog-disclaimer {
    margin-top: 40px;
    color: var(--muted);
    font-size: 10px;
    text-align: center;
}

/* -------------------------
   08. FRAGANCIA DESTACADA
------------------------- */

.featured-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    min-height: 690px;
    background: var(--cream-dark);
}

.featured-visual {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: #b3a08b;
}

.featured-image {
    position: absolute;
    inset: 0;
    background-image: url("https://images.unsplash.com/photo-1726758004519-7ccecda8b076?auto=format&fit=crop&w=1200&q=85");
    background-position: center;
    background-size: cover;
    transition: transform 1s cubic-bezier(.22, 1, .36, 1);
}

.featured-visual:hover .featured-image {
    transform: scale(1.035);
}

.featured-image-caption {
    position: absolute;
    right: 20px;
    bottom: 20px;
    left: 20px;
    color: var(--white);
    font-size: 10px;
    letter-spacing: 1.8px;
}

.featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 85px clamp(30px, 6vw, 90px);
}

.featured-content > .eyebrow {
    color: var(--muted);
}

.featured-number {
    margin-top: 35px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 2px;
}

.featured-content h2 {
    margin-top: 18px;
    font-size: clamp(44px, 5vw, 67px);
    line-height: 1.08;
    letter-spacing: -0.8px;
}

.featured-content h2 em {
    color: #8d7b69;
}

.featured-content > p {
    max-width: 390px;
    margin-top: 22px;
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 2;
}

.scent-notes {
    width: 100%;
    max-width: 390px;
    margin-top: 30px;
    border-top: 1px solid var(--line);
}

.scent-notes > div {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

.scent-notes > div > span {
    color: var(--muted);
    font-size: 10px;
}

.scent-notes p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    gap: 12px;
    color: var(--muted);
    font-size: 10px;
}

.scent-notes strong {
    color: var(--ink);
    font-weight: 500;
    text-align: right;
}

.featured-purchase {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    max-width: 390px;
    margin-top: 28px;
}

.featured-price {
    font-size: 15px;
    font-weight: 600;
}

/* -------------------------
   09. UNIVERSO DE MARCA
------------------------- */

.universe-section {
    position: relative;
    min-height: 680px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 50px var(--page-padding) 28px;
    color: var(--cream);
    background: var(--ink);
}

.universe-top,
.universe-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.universe-top .eyebrow {
    color: #c5b3a0;
}

.universe-mark {
    font-family: var(--font-display);
    font-size: 31px;
    font-weight: 400;
}

.universe-content {
    width: 100%;
    max-width: 880px;
    margin: 90px auto;
    text-align: center;
}

.universe-content h2 {
    font-size: clamp(47px, 6.8vw, 89px);
    line-height: 1.1;
    letter-spacing: -0.8px;
}

.universe-content h2 em {
    color: #c5b3a0;
}

.universe-content > p {
    max-width: 590px;
    margin: 25px auto 0;
    color: rgba(245, 241, 235, 0.68);
    font-size: 12px;
    line-height: 2;
}

.universe-content > p + p {
    margin-top: 12px;
}

.universe-content .text-link {
    margin: 30px auto 0;
}

.universe-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(245, 241, 235, 0.58);
    font-size: 10px;
    letter-spacing: 1.7px;
}

/* -------------------------
   10. SERVICIOS
------------------------- */

.service-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 75px var(--page-padding);
    border-bottom: 1px solid var(--line);
}

.service-item {
    padding: 0 35px;
    text-align: center;
}

.service-item + .service-item {
    border-left: 1px solid var(--line);
}

.service-icon {
    display: inline-block;
    color: #9c856e;
    font-size: 22px;
}

.service-item h3 {
    margin-top: 18px;
    font-size: 23px;
}

.service-item p {
    max-width: 240px;
    margin: 10px auto 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.9;
}

/* -------------------------
   11. CONTACTO
------------------------- */

.contact-section {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: 70px;
    padding: 100px var(--page-padding);
    color: var(--cream);
    background: #38312b;
}

.contact-main > .eyebrow {
    color: #c7b39e;
}

.contact-main h2 {
    margin-top: 24px;
    font-size: clamp(43px, 5.6vw, 73px);
    line-height: 1.08;
    letter-spacing: -0.8px;
}

.contact-main h2 em {
    color: #c7b39e;
}

.contact-main > p {
    max-width: 390px;
    margin-top: 22px;
    color: rgba(245, 241, 235, 0.7);
    font-size: 12px;
    line-height: 1.9;
}

.contact-main .button {
    margin-top: 30px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    padding-left: 35px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-demo-note {
    grid-column: 1 / -1;
    margin-top: 28px;
    color: #B8ADA0;
    font-size: 10px;
    line-height: 1.7;
}

.contact-label {
    color: #c7b39e;
    font-size: 10px;
    letter-spacing: 2px;
}

.contact-details p {
    margin-top: 9px;
    color: rgba(245, 241, 235, 0.85);
    font-size: 12px;
    line-height: 1.9;
}

/* -------------------------
   12. FOOTER
------------------------- */

.parfum-footer {
    padding: 60px var(--page-padding) 20px;
    color: var(--cream);
    background: #27231f;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 0.7fr 1fr;
    gap: 60px;
    padding-bottom: 65px;
}

.footer-brand .parfum-logo {
    display: inline-block;
    font-size: 34px;
}

.footer-brand p {
    margin-top: 16px;
    color: rgba(245, 241, 235, 0.6);
    font-size: 11px;
    line-height: 1.9;
}

.footer-heading {
    display: block;
    margin-bottom: 22px;
    color: #c7b39e;
    font-size: 10px;
    letter-spacing: 2px;
}

.footer-navigation {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.footer-navigation a {
    color: rgba(245, 241, 235, 0.75);
    font-size: 10px;
    transition: color var(--transition);
}

.footer-navigation a:hover {
    color: var(--white);
}

.footer-newsletter p {
    max-width: 290px;
    color: rgba(245, 241, 235, 0.65);
    font-size: 11px;
    line-height: 1.9;
}

.footer-newsletter .text-link {
    margin-top: 22px;
    color: var(--cream);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.17);
    color: rgba(245, 241, 235, 0.55);
    font-size: 10px;
    letter-spacing: 1px;
}

.footer-bottom a {
    transition: color var(--transition);
}

.footer-bottom a:hover {
    color: var(--white);
}

/* -------------------------
   13. CARRITO LATERAL
------------------------- */

.drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(20, 17, 14, 0.55);
    backdrop-filter: blur(3px);
    animation: overlay-enter 220ms ease both;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 81;
    display: flex;
    flex-direction: column;
    width: min(460px, 100%);
    height: 100%;
    height: 100dvh;
    padding: 30px;
    overflow: hidden;
    background: var(--paper);
    box-shadow: -15px 0 60px rgba(0, 0, 0, 0.12);
    transform: translateX(105%);
    transition: transform 360ms cubic-bezier(.22, 1, .36, 1);
}

.cart-drawer.is-open {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--line);
}

.cart-header .eyebrow {
    color: var(--muted);
}

.cart-header h2 {
    margin-top: 8px;
    font-size: 32px;
}

.cart-header h2 span {
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 12px;
}

.cart-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    font-size: 25px;
    font-weight: 300;
    transition:
        color var(--transition),
        background var(--transition);
}

.cart-close:hover {
    color: var(--white);
    background: var(--ink);
}

.cart-items {
    flex: 1;
    min-height: 0;
    padding: 8px 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) auto;
    align-items: start;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.cart-item-image {
    width: 80px;
    height: 100px;
    background-color: var(--cream-dark);
    background-position: center;
    background-size: cover;
}

.cart-item-info h3 {
    font-size: 22px;
}

.cart-item-info p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 10px;
}

.cart-item-price {
    margin-top: 10px;
    font-size: 11px;
    font-weight: 600;
}

.quantity-control {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    margin-top: 13px;
    padding: 5px 8px;
    border: 1px solid var(--line);
}

.quantity-control button {
    width: 17px;
    height: 17px;
    border: 0;
    background: transparent;
    font-size: 15px;
}

.quantity-control span {
    min-width: 10px;
    font-size: 10px;
    text-align: center;
}

.cart-item-remove {
    padding: 5px 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 10px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cart-empty {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 35px 15px;
    text-align: center;
}

.empty-bag-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: #9c856e;
    font-family: var(--font-display);
    font-size: 35px;
}

.cart-empty h3 {
    margin-top: 23px;
    font-size: 27px;
}

.cart-empty p {
    max-width: 250px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.8;
}

.cart-empty .button {
    margin-top: 24px;
}

.cart-footer {
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cart-subtotal span {
    color: var(--muted);
    font-size: 12px;
}

.cart-subtotal strong {
    font-size: 19px;
}

.cart-note {
    margin-top: 12px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.7;
}

.checkout-button {
    width: 100%;
    margin-top: 20px;
}

.continue-link {
    display: block;
    margin: 16px auto 0;
    padding: 7px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 10px;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* -------------------------
   14. AVISOS TOAST
------------------------- */

.toast-message {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 100;
    max-width: min(360px, calc(100vw - 40px));
    padding: 15px 20px;
    color: var(--white);
    background: var(--ink);
    box-shadow: var(--shadow-soft);
    font-size: 11px;
    line-height: 1.6;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition:
        opacity 220ms ease,
        transform 220ms ease;
}

.toast-message.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* -------------------------
   15. REVEAL AL DESPLAZARSE
------------------------- */

.js-ready .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 700ms cubic-bezier(.22, 1, .36, 1),
        transform 700ms cubic-bezier(.22, 1, .36, 1);
}

.js-ready .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.products-grid .product-card:nth-child(3n + 2) {
    transition-delay: 80ms;
}

.products-grid .product-card:nth-child(3n) {
    transition-delay: 150ms;
}

/* -------------------------
   16. ANIMACIONES
------------------------- */

@keyframes hero-image-enter {
    from {
        opacity: 0.65;
        transform: scale(1.07);
    }

    to {
        opacity: 1;
        transform: scale(1.015);
    }
}

@keyframes panel-enter {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes overlay-enter {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes card-enter {
    from {
        opacity: 0.55;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -------------------------
   17. TABLETS
------------------------- */

@media (max-width: 1050px) {
    :root {
        --page-padding: 5%;
    }

    .parfum-navbar {
        min-height: 82px;
    }

    .nav-links {
        gap: 20px;
    }

    .products-grid {
        gap: 40px 18px;
    }

    .product-image {
        height: clamp(290px, 42vw, 420px);
    }

    .featured-section {
        grid-template-columns: 1fr 1fr;
    }

    .featured-content {
        padding: 65px 35px;
    }

    .contact-section {
        gap: 45px;
    }

    .footer-main {
        gap: 35px;
    }
}

/* -------------------------
   18. TABLETS PEQUEÑAS
------------------------- */

@media (max-width: 760px) {
    :root {
        --page-padding: 25px;
        --section-space: 95px;
    }

    .parfum-navbar {
        grid-template-columns: 1fr auto auto;
        gap: 18px;
        min-height: 74px;
    }

    .parfum-logo {
        font-size: 26px;
    }

    .menu-toggle {
        display: block;
        grid-column: 2;
        grid-row: 1;
    }

    .nav-actions {
        grid-column: 3;
        grid-row: 1;
        gap: 15px;
    }

    .cart-label {
        display: none;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px var(--page-padding) 20px;
        border-bottom: 1px solid var(--line);
        background: var(--cream);
        box-shadow: 0 20px 30px rgba(0, 0, 0, 0.05);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition:
            opacity var(--transition),
            visibility var(--transition),
            transform var(--transition);
    }

    .nav-links.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links a {
        padding: 16px 0;
        border-bottom: 1px solid var(--line);
        font-size: 12px;
    }

    .nav-links a:last-child {
        border-bottom: 0;
    }

    .nav-links a::after {
        display: none;
    }

    .search-panel {
        padding: 25px var(--page-padding);
    }

    .parfum-hero {
        min-height: 690px;
        min-height: max(650px, 88svh);
    }

    .hero-background {
        background-position: 58% center;
    }

    .hero-shade {
        background:
            linear-gradient(
                90deg,
                rgba(24, 20, 17, 0.76),
                rgba(24, 20, 17, 0.35)
            ),
            linear-gradient(
                0deg,
                rgba(24, 20, 17, 0.4),
                transparent 45%
            );
    }

    .hero-content {
        padding-top: 85px;
        padding-bottom: 110px;
    }

    .hero-content h1 {
        font-size: clamp(54px, 10vw, 76px);
        letter-spacing: -1px;
    }

    .hero-description {
        max-width: 340px;
        font-size: 12px;
    }

    .hero-bottom {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .hero-side-note {
        right: 10px;
        font-size: 10px;
    }

    .brand-intro {
        padding: 85px 25px 95px;
    }

    .brand-intro > p {
        font-size: clamp(31px, 6.5vw, 44px);
    }

    .collection-section {
        padding-top: 20px;
    }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 35px;
    }

    .section-heading h2 {
        font-size: clamp(45px, 8vw, 62px);
    }

    .section-heading > p {
        max-width: 390px;
    }

    .catalog-tools {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        padding: 14px 0;
    }

    .filter-tabs {
        width: 100%;
        flex-wrap: nowrap;
        padding-bottom: 5px;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .filter-button {
        flex-shrink: 0;
    }

    .sort-control {
        width: 100%;
        justify-content: space-between;
    }

    .sort-control select {
        max-width: 200px;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 36px 14px;
    }

    .product-image {
        height: clamp(240px, 55vw, 400px);
    }

    .product-index,
    .product-tag {
        top: 10px;
        font-size: 10px;
    }

    .product-index {
        left: 9px;
    }

    .product-tag {
        right: 9px;
        padding: 6px;
        letter-spacing: 0.8px;
    }

    .quick-add {
        right: 9px;
        bottom: 9px;
        width: 36px;
        height: 36px;
    }

    .product-info {
        flex-direction: column;
        gap: 5px;
        padding-top: 14px;
    }

    .product-info h3 {
        font-size: 25px;
    }

    .product-price {
        padding-top: 5px;
    }

    .product-add-button {
        font-size: 10px;
    }

    .featured-section {
        grid-template-columns: 1fr;
    }

    .featured-visual {
        min-height: 480px;
    }

    .featured-content {
        padding: 70px var(--page-padding) 80px;
    }

    .featured-content h2 {
        font-size: clamp(45px, 8vw, 62px);
    }

    .universe-section {
        min-height: 620px;
        padding-top: 35px;
    }

    .universe-content {
        margin: 65px auto;
    }

    .universe-content h2 {
        font-size: clamp(43px, 8vw, 64px);
    }

    .service-strip {
        padding-top: 55px;
        padding-bottom: 55px;
    }

    .service-item {
        padding: 0 15px;
    }

    .service-item h3 {
        font-size: 19px;
    }

    .contact-section {
        grid-template-columns: 1fr;
        gap: 45px;
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .contact-main h2 {
        font-size: clamp(45px, 8vw, 64px);
    }

    .contact-details {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 20px;
        padding-top: 30px;
        padding-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        border-left: 0;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 45px 30px;
    }

    .footer-newsletter {
        grid-column: 1 / -1;
    }
}

/* -------------------------
   19. CELULARES
------------------------- */

@media (max-width: 480px) {
    :root {
        --page-padding: 19px;
        --section-space: 80px;
    }

    .announcement-bar p {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .announcement-bar span {
        margin: 0 5px;
    }

    .parfum-navbar {
        gap: 10px;
    }

    .parfum-logo {
        font-size: 24px;
    }

    .nav-actions {
        gap: 12px;
    }

    .search-toggle svg,
    .cart-toggle svg {
        width: 19px;
        height: 19px;
    }

    .cart-count {
        min-width: 17px;
        height: 17px;
        font-size: 10px;
    }

    .parfum-hero {
        min-height: 650px;
        min-height: 86svh;
    }

    .hero-content {
        padding-right: 24px;
        padding-left: 24px;
    }

    .hero-content h1 {
        font-size: clamp(49px, 12vw, 62px);
        letter-spacing: -1px;
    }

    .hero-eyebrow {
        font-size: 10px;
        letter-spacing: 1.7px;
    }

    .hero-description {
        max-width: 290px;
        margin-top: 22px;
        font-size: 11px;
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 19px;
        margin-top: 27px;
    }

    .hero-bottom {
        right: 19px;
        left: 19px;
        gap: 8px;
        font-size: 10px;
        letter-spacing: 0.6px;
    }

    .hero-bottom span:nth-child(2) {
        text-align: center;
    }

    .brand-intro {
        padding: 75px 22px 80px;
    }

    .brand-intro > p {
        font-size: 32px;
    }

    .section-heading h2 {
        font-size: 46px;
        letter-spacing: -0.6px;
    }

    .products-grid {
        gap: 32px 12px;
    }

    .product-image {
        height: clamp(210px, 65vw, 310px);
    }

    .product-family {
        font-size: 10px;
        letter-spacing: 0.7px;
    }

    .product-info h3 {
        font-size: 23px;
    }

    .product-info p {
        font-size: 10px;
    }

    .product-price {
        font-size: 10px;
    }

    .product-add-button {
        gap: 6px;
        font-size: 10px;
    }

    .product-add-button span {
        font-size: 15px;
    }

    .featured-visual {
        min-height: 390px;
    }

    .featured-content {
        padding: 60px 23px 65px;
    }

    .featured-content h2 {
        font-size: 45px;
    }

    .scent-notes p {
        font-size: 10px;
    }

    .scent-notes strong {
        font-size: 10px;
    }

    .featured-purchase {
        align-items: flex-start;
        flex-direction: column;
    }

    .universe-section {
        min-height: 600px;
        padding-right: 20px;
        padding-left: 20px;
    }

    .universe-content h2 {
        font-size: 42px;
        letter-spacing: -0.6px;
    }

    .universe-content > p {
        font-size: 11px;
    }

    .universe-bottom {
        font-size: 10px;
        letter-spacing: 0.8px;
    }

    .service-strip {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 35px 25px;
    }

    .service-item {
        padding: 27px 10px;
    }

    .service-item + .service-item {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .service-item h3 {
        font-size: 23px;
    }

    .contact-section {
        padding: 65px 22px;
    }

    .contact-main h2 {
        font-size: 44px;
        letter-spacing: -0.6px;
    }

    .contact-details {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .parfum-footer {
        padding: 45px 22px 18px;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 38px 20px;
        padding-bottom: 40px;
    }

    .footer-brand .parfum-logo {
        font-size: 29px;
    }

    .footer-navigation a {
        font-size: 10px;
    }

    .footer-newsletter {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        font-size: 10px;
        line-height: 1.6;
    }

    .cart-drawer {
        padding: 22px;
    }

    .cart-item {
        grid-template-columns: 68px minmax(0, 1fr) auto;
        gap: 11px;
    }

    .cart-item-image {
        width: 68px;
        height: 90px;
    }

    .cart-item-info h3 {
        font-size: 19px;
    }

    .cart-item-price {
        font-size: 10px;
    }

    .toast-message {
        right: 15px;
        bottom: 15px;
        left: 15px;
        max-width: none;
        text-align: center;
    }
}

/* -------------------------
   20. MOVIMIENTO REDUCIDO
------------------------- */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .js-ready .reveal {
        opacity: 1;
        transform: none;
    }
}
