/* =============================================================
   Petite & Chic — hoja de estilos única
   1 Tokens · 2 Reset · 3 Utilidades · 4 Tipografía · 5 Componentes
   6 Secciones · 7 Efectos · 8 Responsive · 9 Reduced-motion
   ============================================================= */

/* 1. Tokens ---------------------------------------------------- */
:root {
  --bg:        #fbf7f4;
  --surface:   #ffffff;
  --surface-2: #f4ece7;
  --ink:       #2a2320;
  --ink-soft:  #6b5f58;
  --line:      #e7ddd5;
  --accent:    #c24d6a;      /* rosa frambuesa */
  --accent-ink:#ffffff;
  --accent-soft:#f6e3e8;
  --gold:      #c79a4e;
  --ok:        #2f7d5b;
  --bad:       #b4503f;
  --dark:      #221b19;

  --radar-1: rgba(194,77,106,.55);
  --radar-1-line: #c24d6a;
  --radar-2: rgba(63,110,162,.45);
  --radar-2-line: #3f6ea2;
  --radar-3: rgba(199,154,78,.45);
  --radar-3-line: #c79a4e;
  --radar-4: rgba(47,125,91,.42);
  --radar-4-line: #2f7d5b;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;

  --container: 1180px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(42,35,32,.08);
  --shadow-lg: 0 18px 50px rgba(42,35,32,.14);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 2. Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; overflow-x: clip; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px; line-height: 1.6;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip; overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.08; letter-spacing: -0.015em; font-family: var(--serif); font-weight: 600; }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* 3. Utilidades ------------------------------------------------ */
.container { width: min(100% - 2.4rem, var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--ink); color: #fff; z-index: 9999; border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.muted { color: var(--ink-soft); }
.center { text-align: center; }
.eyebrow { font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.section { padding-block: clamp(3rem, 6vw, 5.5rem); }
.section-head { max-width: 46rem; margin-bottom: 2.2rem; }
.section-head.center { margin-inline: auto; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin: .4rem 0 .6rem; }

/* 4. Tipografía ------------------------------------------------ */
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); }

/* 5. Componentes ----------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  transition: transform .25s var(--ease-out), background .25s var(--ease-out), box-shadow .25s var(--ease-out); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px rgba(194,77,106,.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(194,77,106,.36); }
.btn-amazon { background: #ffa41c; color: #141414; box-shadow: 0 6px 18px rgba(255,164,28,.3); }
.btn-amazon:hover { background: #ff9900; transform: translateY(-2px); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.02rem; }

.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-soft); font-size: .8rem; font-weight: 600; }
.chip svg { width: 1em; height: 1em; flex: none; }
.chip-accent { background: var(--accent-soft); color: var(--accent); }
.badge-sample { background: var(--gold); color: #fff; }
.badge-offer { background: var(--bad); color: #fff; }

.stars { display: inline-flex; align-items: center; gap: .3rem; color: var(--gold); font-weight: 700; }
.stars .star-ico { width: 1.05em; height: 1.05em; }
.stars .count { color: var(--ink-soft); font-weight: 500; font-size: .85rem; }

/* tarjeta de producto */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.4rem; }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out); }
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.pcard-media { position: relative; aspect-ratio: 4/5; background: var(--surface-2); overflow: hidden; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.pcard:hover .pcard-media img { transform: scale(1.04); }
.pcard-flags { position: absolute; top: .7rem; left: .7rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.pcard-flags .chip { font-size: .72rem; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.pcard-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.pcard-cat { font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: var(--accent); text-transform: uppercase; }
.pcard-name { font-size: 1.1rem; font-family: var(--serif); }
.pcard-name a:hover { color: var(--accent); }
.pcard-meta { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; font-size: .85rem; }
.price { font-weight: 700; font-size: 1.15rem; }
.price .was { color: var(--ink-soft); text-decoration: line-through; font-weight: 500; font-size: .9rem; margin-right: .4rem; }
.price .now { color: var(--accent); }
.pcard-actions { margin-top: auto; display: flex; gap: .5rem; padding-top: .4rem; }
.pcard-actions .btn { flex: 1; padding-inline: .6rem; font-size: .85rem; }
.price-note { font-size: .72rem; color: var(--ink-soft); }

/* nav */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(251,247,244,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 1.2rem; padding-block: .8rem; }
.brand { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; display: flex; align-items: center; gap: .5rem; }
.brand b { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: .3rem; margin-left: auto; }
.nav-links a { padding: .5rem .8rem; border-radius: 999px; font-weight: 500; font-size: .95rem; color: var(--ink-soft); transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.nav-links a.nav-cta, .nav-links a.nav-cta:hover { color: var(--accent-ink); background: var(--accent); }
.nav-links a.nav-cta .pill { background: #fff; color: var(--accent); border-radius: 999px; padding: 0 .45rem; margin-left: .35rem; font-size: .78rem; font-weight: 700; }
.nav-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }

/* hero */
.hero { position: relative; padding-block: clamp(3rem, 7vw, 6rem); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); margin: .6rem 0 1rem; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lead { max-width: 34rem; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-art { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hero-art .pcard-media { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.hero-art .pcard-media:nth-child(1) { margin-top: 2rem; }

/* hero con foto de fondo (portada) */
.hero--photo {
  padding-block: 0;
  background-image:
    linear-gradient(90deg, var(--bg) 0%, var(--bg) 26%, rgba(251,247,244,.78) 46%, rgba(251,247,244,.28) 66%, rgba(251,247,244,0) 100%),
    url("assets/img/hero.webp");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--line);
}
.hero--photo .hero-inner {
  min-height: clamp(460px, 66vh, 620px);
  display: flex;
  align-items: center;
}
.hero--photo .hero-copy { max-width: 37rem; }
@media (max-width: 760px) {
  .hero--photo {
    background-image:
      linear-gradient(180deg, rgba(251,247,244,.95) 0%, rgba(251,247,244,.86) 40%, rgba(251,247,244,.5) 100%),
      url("assets/img/hero.webp");
    background-position: center top;
  }
  .hero--photo .hero-inner {
    min-height: clamp(440px, 80vh, 580px);
    align-items: flex-start;
    padding-top: 1.6rem;
  }
}

/* bloque "cómo elegimos" */
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1.2rem; }
.how-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.how-card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: .8rem; }
.how-card .ico svg { width: 24px; height: 24px; }
.how-card h3 { font-size: 1.12rem; margin-bottom: .35rem; }
.how-card p { font-size: .92rem; color: var(--ink-soft); }

/* categorías entrada */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 1rem; }
.cat-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/2; display: flex; align-items: flex-end; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); padding: 1rem; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; transition: transform .3s var(--ease-out); }
.cat-card:hover { transform: translateY(-4px); color: var(--accent); }

/* ficha */
.ficha-top { display: grid; gap: 2.2rem; }
.gallery-main { aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: .6rem; margin-top: .7rem; flex-wrap: wrap; }
.gallery-thumbs button { width: 72px; aspect-ratio: 4/5; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: var(--surface-2); }
.gallery-thumbs button[aria-current="true"] { border-color: var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.ficha-head h1 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin: .3rem 0 .6rem; }
.ficha-brand { color: var(--ink-soft); font-weight: 600; }
.ficha-price { display: flex; align-items: baseline; gap: .6rem; margin: 1rem 0 .3rem; }
.ficha-price .price { font-size: 1.9rem; }
.ficha-buy { margin: 1.2rem 0; }
.ficha-block { margin-top: 2.6rem; }
.ficha-block h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.cuerpo-editorial p { margin-bottom: .9rem; color: var(--ink); }

/* radar */
.radar-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.radar-wrap svg { width: 100%; height: auto; }
.radar-legend { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; margin-top: .8rem; font-size: .85rem; }
.radar-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.radar-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.radar-note { font-size: .78rem; color: var(--ink-soft); margin-top: .6rem; }

/* tabla specs */
.spec-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-table th, .spec-table td { text-align: left; padding: .7rem 1rem; border-bottom: 1px solid var(--line); font-size: .92rem; vertical-align: top; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { font-weight: 600; color: var(--ink-soft); width: 42%; font-family: var(--sans); }
.spec-group-row td { background: var(--surface-2); font-weight: 700; font-family: var(--serif); color: var(--ink); }
.best-cell { background: var(--accent-soft); font-weight: 700; color: var(--accent); }
.size-wrap { overflow-x: auto; margin: 1rem 0 1.4rem; }
.size-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .92rem; min-width: 480px; }
.size-table th, .size-table td { text-align: left; padding: .6rem .85rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.size-table thead th { background: var(--accent-soft); color: var(--accent); font-weight: 600; font-family: var(--sans); }
.size-table tbody tr:last-child td { border-bottom: 0; }
.size-table td:first-child, .size-table th:first-child { font-weight: 600; }

/* pros / contras */
.pc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.pc-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.pc-col h3 { display: flex; align-items: center; gap: .5rem; font-size: 1.1rem; margin-bottom: .7rem; font-family: var(--sans); }
.pc-col h3 svg { width: 1.2em; height: 1.2em; flex: none; }
.pc-col.pros h3 { color: var(--ok); }
.pc-col.contras h3 { color: var(--bad); }
.pc-col li { display: flex; gap: .5rem; padding: .3rem 0; font-size: .93rem; }
.pc-col li svg { width: 1.1em; height: 1.1em; flex: none; margin-top: .25em; }
.pc-col.pros li svg { color: var(--ok); }
.pc-col.contras li svg { color: var(--bad); }
.ideal { background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin-top: 1.2rem; }
.ideal strong { color: var(--accent); }

/* reseñas */
.reviews-summary { background: var(--surface-2); border-radius: var(--radius); padding: 1.2rem; font-style: italic; }

/* comparador */
.cmp-pick { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; margin-bottom: 1.6rem; box-shadow: var(--shadow); }
.cmp-slots { display: flex; gap: 1rem; flex-wrap: wrap; }
.cmp-slot { position: relative; width: 150px; }
.cmp-slot .thumb { aspect-ratio: 4/5; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.cmp-slot .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cmp-slot .slot-name { font-size: .82rem; margin-top: .4rem; font-weight: 600; }
.cmp-slot .remove-badge { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 1rem; line-height: 1; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.cmp-slot-empty { width: 150px; aspect-ratio: 4/5; border: 2px dashed var(--line); border-radius: var(--radius-sm); display: grid; place-items: center; color: var(--ink-soft); font-size: .85rem; text-align: center; padding: .6rem; }
.cmp-add { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.1rem; }
.cmp-add select { padding: .6rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: inherit; }
.cmp-table-wrap { overflow-x: auto; }
.cmp-empty { text-align: center; padding: 3rem 1rem; color: var(--ink-soft); }

/* filtros categoría */
.filters { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.6rem; }
.filters label { font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.filters select { padding: .55rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-size: .9rem; }

/* guía */
.guide-body { max-width: 48rem; }
.guide-body h2 { font-size: 1.6rem; margin: 2rem 0 .8rem; }
.guide-body p, .guide-body li { color: var(--ink); margin-bottom: .8rem; }
.guide-body ul { list-style: disc; padding-left: 1.4rem; }
.guide-pick { display: flex; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin: 1rem 0; box-shadow: var(--shadow); }
.guide-pick img { width: 90px; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius-sm); flex: none; }
.guide-pick h3 { font-size: 1.1rem; }

/* faq */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .4rem 1rem; margin-bottom: .7rem; }
.faq summary { padding: .7rem 0; font-weight: 600; cursor: pointer; font-family: var(--serif); }
.faq p { padding-bottom: .9rem; color: var(--ink-soft); }

/* disclosure */
.disclosure { background: var(--surface-2); border-radius: var(--radius-sm); padding: .9rem 1.1rem; font-size: .82rem; color: var(--ink-soft); display: flex; gap: .6rem; align-items: flex-start; }
.disclosure svg { width: 1.2em; height: 1.2em; flex: none; margin-top: .15em; color: var(--gold); }

/* legal */
.legal-body { max-width: 46rem; }
.legal-body h2 { font-size: 1.4rem; margin: 1.6rem 0 .6rem; }
.legal-body p, .legal-body li { color: var(--ink-soft); margin-bottom: .7rem; }
.legal-body ul { list-style: disc; padding-left: 1.4rem; }

/* footer */
.footer { background: var(--dark); color: #d9cfc9; margin-top: 3rem; padding-block: 2.6rem 1.6rem; }
.footer a { color: #e9dfd9; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer .brand { color: #fff; }
.footer h4 { color: #fff; margin-bottom: .7rem; font-family: var(--sans); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.footer li { margin-bottom: .4rem; font-size: .92rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1.2rem; font-size: .82rem; color: #a99e97; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-disclosure { font-size: .8rem; color: #b7aca5; margin-top: 1rem; max-width: 60ch; }

/* breadcrumb */
.crumbs { font-size: .85rem; color: var(--ink-soft); padding-top: 1.2rem; }
.crumbs a:hover { color: var(--accent); }

/* 7. Efectos --------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
[data-reveal].is-revealed { opacity: 1; transform: none; }
.is-ready [data-reveal] { will-change: opacity, transform; }

/* 8. Responsive ------------------------------------------------ */
@media (min-width: 720px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; }
  .ficha-top { grid-template-columns: 1fr 1fr; align-items: start; }
}
@media (min-width: 960px) {
  .ficha-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2.4rem; align-items: start; }
}
@media (max-width: 719px) {
  .nav-links { position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; background: var(--surface); border-bottom: 1px solid var(--line); padding: .8rem 1.2rem 1.2rem; gap: .2rem; box-shadow: var(--shadow); transform: translateY(-120%); transition: transform .3s var(--ease-out); }
  .nav-links.is-open { transform: none; }
  .nav-links a { padding: .8rem; }
  .nav-toggle { display: inline-flex; }
  .pc-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
}

/* 9. Reduced motion ------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { transition: none; }
}
