/* ============================================================
   DEARS · estilos de componentes  ·  dears.css
   ------------------------------------------------------------
   Pega este archivo en tu proyecto y enlázalo en el <head>:
     <link rel="stylesheet" href="dears.css">
   (o copia su contenido al final de tu styles.css)

   Requiere la fuente Montserrat (Google Fonts). Si no la cargas
   ya, añade en tu <head>:
     <link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">

   Todas las clases llevan prefijo .dears- para no chocar con
   tus estilos actuales.
   ============================================================ */

:root{
  --dears-ink:#2a2521;
  --dears-ink-soft:#6b6660;
  --dears-muted:#9a948c;
  --dears-line:rgba(42,37,33,.14);
  --dears-bg:#f7f8f9;
}

/* ===== Base compartida (solo afecta a los componentes Dears) ===== */
.dears-cmp,.dears-cmp *{box-sizing:border-box;}
.dears-cmp{font-family:'Montserrat',system-ui,sans-serif;-webkit-font-smoothing:antialiased;color:var(--dears-ink);}

/* botones / swatches compartidos */
.dears-cta{font-family:'Montserrat',sans-serif;font-weight:600;letter-spacing:.02em;background:#2a2521;color:#fff;border:none;cursor:pointer;border-radius:2px;transition:background .2s ease,transform .15s ease;}
.dears-cta:hover{background:#000;transform:translateY(-1px);}
.dears-sw{appearance:none;border:none;padding:0;cursor:pointer;border-radius:50%;transition:transform .15s ease;box-shadow:0 0 0 1px var(--dears-line);}
.dears-sw:hover{transform:scale(1.18);}
.dears-sw[aria-pressed="true"]{box-shadow:0 0 0 2px #fff,0 0 0 4px #2a2521;}
.dears-navb{appearance:none;border:1px solid rgba(42,37,33,.18);background:rgba(255,255,255,.7);backdrop-filter:blur(6px);cursor:pointer;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#2a2521;font-family:'Montserrat',sans-serif;transition:background .15s ease,border-color .15s ease,color .15s ease;}
.dears-navb:hover{background:#2a2521;color:#fff;border-color:#2a2521;}
.dears-colorline{display:flex;align-items:center;gap:9px;}
.dears-colorline .dot{width:14px;height:14px;border-radius:50%;box-shadow:0 0 0 1px var(--dears-line);}
.dears-colorline .nm{font-size:14px;font-weight:600;color:var(--dears-ink);}
.dears-colorline .cd{font-family:monospace;font-size:12px;color:var(--dears-muted);letter-spacing:.04em;}
.dears-eyebrow{display:flex;align-items:center;gap:10px;margin-bottom:18px;font-size:12px;font-weight:600;letter-spacing:.28em;color:#7a756d;text-transform:uppercase;}
.dears-eyebrow .dot{width:9px;height:9px;border-radius:50%;box-shadow:0 0 0 4px rgba(0,0,0,.04);}

/* ---------- 1 · HERO CARRUSEL (full-width desktop) ---------- */
.dears-hero{position:relative;width:100%;min-height:600px;border-radius:3px;overflow:hidden;background:#eceef0 url('assets/fondo.png') center/cover no-repeat;box-shadow:0 1px 3px rgba(0,0,0,.08),0 12px 40px rgba(0,0,0,.05);}
.dears-hero::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(247,248,249,.94) 0%,rgba(247,248,249,.75) 38%,rgba(247,248,249,0) 62%);}
.dears-hero__row{position:relative;height:100%;display:flex;align-items:stretch;}
.dears-hero__copy{flex:1 1 0;max-width:660px;padding:44px 0 44px 64px;display:flex;flex-direction:column;justify-content:center;}
.dears-hero__logo{width:160px;height:auto;margin:0 0 30px;}
.dears-hero h1{margin:0;font-size:clamp(34px,3.4vw,50px);line-height:1.04;font-weight:700;letter-spacing:-.015em;text-wrap:balance;}
.dears-hero p{margin:16px 0 0;font-size:17px;line-height:1.5;color:var(--dears-ink-soft);max-width:420px;}
.dears-hero__actions{display:flex;align-items:center;gap:22px;margin-top:26px;}
.dears-hero__actions .num{font-family:monospace;font-size:13px;color:var(--dears-muted);letter-spacing:.06em;}
.dears-hero__swatches{display:flex;flex-wrap:wrap;gap:9px;margin-top:12px;max-width:430px;}
.dears-hero__stage{flex:0 0 46%;position:relative;display:flex;align-items:center;justify-content:center;padding:30px 50px 30px 0;}
.dears-halo{position:absolute;border-radius:50%;filter:blur(30px);pointer-events:none;}
.dears-hero__img{position:relative;width:100%;height:88%;background-size:contain;background-position:center;background-repeat:no-repeat;filter:drop-shadow(0 26px 42px rgba(0,0,0,.20));transition:background-image .15s ease;}

/* ---------- 2 · BANNER CUADRADO (redes/anuncios) ---------- */
.dears-square{position:relative;width:540px;max-width:100%;aspect-ratio:1/1;border-radius:3px;overflow:hidden;background:#eceef0 url('assets/fondo.png') center/cover no-repeat;box-shadow:0 1px 3px rgba(0,0,0,.08),0 12px 40px rgba(0,0,0,.05);container-type:inline-size;}
.dears-square::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(247,248,249,.92) 0%,rgba(247,248,249,.4) 30%,rgba(247,248,249,0) 55%,rgba(247,248,249,.5) 100%);}
.dears-square__in{position:relative;height:100%;display:flex;flex-direction:column;align-items:center;text-align:center;padding:7% 8% 6%;}
.dears-square__logo{width:44%;height:auto;margin-top:2%;}
.dears-square__stage{position:relative;flex:1 1 0;width:100%;display:flex;align-items:center;justify-content:center;}
.dears-square__img{position:relative;width:100%;height:86%;background-size:contain;background-position:center;background-repeat:no-repeat;filter:drop-shadow(0 28px 46px rgba(0,0,0,.20));}
.dears-square__swatches{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-bottom:6%;}

/* ---------- 3 · FICHA DE PRODUCTO (selector) ---------- */
.dears-product{display:flex;flex-wrap:wrap;background:#fff;border-radius:3px;overflow:hidden;box-shadow:0 1px 3px rgba(0,0,0,.08),0 12px 40px rgba(0,0,0,.05);}
.dears-product__stage{flex:1 1 440px;position:relative;min-height:420px;background:linear-gradient(180deg,#fbfbfc,#f1f2f4);display:flex;align-items:center;justify-content:center;}
.dears-product__img{position:relative;width:86%;height:89%;background-size:contain;background-position:center;background-repeat:no-repeat;filter:drop-shadow(0 24px 40px rgba(0,0,0,.18));}
.dears-product__detail{flex:1 1 420px;padding:52px;display:flex;flex-direction:column;}
.dears-product__logo{width:150px;height:auto;margin-bottom:30px;}
.dears-product__detail .kicker{font-size:11px;font-weight:600;letter-spacing:.28em;color:var(--dears-muted);text-transform:uppercase;}
.dears-product__name{display:flex;align-items:baseline;gap:14px;margin-top:10px;}
.dears-product__name h2{margin:0;font-size:40px;font-weight:700;letter-spacing:-.01em;}
.dears-product__name .cd{font-family:monospace;font-size:15px;color:#b4afa7;letter-spacing:.04em;}
.dears-product__detail .desc{margin:14px 0 0;font-size:15px;line-height:1.55;color:var(--dears-ink-soft);max-width:380px;}
.dears-product__picker{margin-top:auto;}
.dears-product__picker .lbl{font-size:11px;font-weight:600;letter-spacing:.16em;color:var(--dears-muted);text-transform:uppercase;margin-bottom:14px;}
.dears-product__swatches{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:28px;}

/* ---------- 4 · CATÁLOGO (grid 18 colores) ---------- */
.dears-catalog{background:#fff;border-radius:3px;padding:48px;box-shadow:0 1px 3px rgba(0,0,0,.08),0 12px 40px rgba(0,0,0,.05);}
.dears-catalog__head{display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:16px;margin-bottom:34px;}
.dears-catalog__head h2{margin:0;font-size:32px;font-weight:700;letter-spacing:-.01em;}
.dears-catalog__head p{margin:8px 0 0;font-size:15px;color:var(--dears-ink-soft);}
.dears-catalog__head img{width:130px;height:auto;}
.dears-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:20px;}
.dears-tile{border-radius:4px;overflow:hidden;background:#f6f6f7;box-shadow:0 1px 3px rgba(0,0,0,.08);cursor:pointer;transition:transform .18s ease,box-shadow .18s ease;}
.dears-tile:hover{transform:translateY(-3px);box-shadow:0 10px 26px rgba(0,0,0,.10);}
.dears-tile__img{position:relative;height:170px;display:flex;align-items:center;justify-content:center;}
.dears-tile__img .ph{position:absolute;inset:0;background-size:88%;background-position:center;background-repeat:no-repeat;filter:drop-shadow(0 12px 18px rgba(0,0,0,.14));}
.dears-tile__meta{padding:13px 15px;display:flex;align-items:center;justify-content:space-between;background:#fff;}
.dears-tile__meta .nm{font-size:14px;font-weight:600;}
.dears-tile__meta .cd{font-family:monospace;font-size:11px;color:#b4afa7;}

/* ---------- Responsive ---------- */
@media(max-width:760px){
  .dears-hero__row{flex-direction:column;}
  .dears-hero__copy{max-width:none;padding:32px 28px 0;}
  .dears-hero__stage{flex:1 1 auto;padding:10px 28px 28px;min-height:240px;}
  /* En una sola columna el padre no tiene altura definida y el height:% de la
     imagen no resuelve (colapsaría a 0). Fijamos altura para que el auricular
     se vea también en móvil. */
  .dears-hero__img{height:240px;}
  .dears-product__detail{padding:32px;}
  .dears-product__img{height:300px;}
}

/* ============================================================
   HERO INTERACTIVO (selector de color) sobre el hero OSCURO del sitio.
   Reutiliza el layout .hero de styles.css; aquí solo se re-tematizan a
   oscuro los elementos Dears injertados. Los componentes claros
   (.dears-product / .dears-square / .dears-catalog) quedan intactos para
   el futuro apartado "Diseños".
   ============================================================ */
#hero .hero-color{margin:1.5rem 0 1.9rem;}
#hero .hero-color-lbl{display:block;font-size:.7rem;font-weight:600;letter-spacing:.28em;text-transform:uppercase;color:var(--muted);margin-bottom:.8rem;}
#hero .dears-colorline{display:flex;align-items:center;gap:9px;}
#hero .dears-colorline .nm{color:var(--text);font-weight:600;}
#hero .dears-colorline .cd{color:var(--muted);}
#hero .dears-colorline .dot{box-shadow:0 0 0 1px rgba(255,255,255,.28);}
#hero .hero-swatches{display:flex;flex-wrap:wrap;gap:9px;margin:.95rem auto 0;max-width:440px;}
#hero .dears-sw{box-shadow:0 0 0 1.5px rgba(255,255,255,.5);background-image:linear-gradient(145deg,rgba(255,255,255,.30),rgba(255,255,255,0) 60%) !important;}
#hero .dears-sw[aria-pressed="true"]{box-shadow:0 0 0 2px #0b0b0b,0 0 0 4px var(--gold);}
#hero .hero-art{position:relative;}
#hero .hero-art .dears-halo{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(460px,92%);aspect-ratio:1;filter:blur(40px);z-index:0;}
#hero .hero-iem{position:relative;z-index:1;width:min(430px,86%);height:clamp(240px,34vh,420px);background-size:contain;background-position:center;background-repeat:no-repeat;filter:drop-shadow(0 26px 46px rgba(0,0,0,.6));}
/* Hero en columna ÚNICA y centrada: la carcasa (dos IEMs) va justo debajo
   del titular/frase, luego "Elige tu color" y el selector, y el resto de la
   estructura (CTAs, prueba social, stats) continúa. Respeta los márgenes del
   contenedor .wrap. */
#hero .hero-main{display:block;}
#hero .hero-copy{max-width:720px;margin-left:auto;margin-right:auto;text-align:center;}
#hero .hero-logo{margin-left:auto;margin-right:auto;}
#hero .hero-copy .lead{margin-left:auto;margin-right:auto;}
#hero .hero-art{margin:2.2rem auto .2rem;}
#hero .hero-color{margin-top:1.8rem;}
#hero .hero-cta,#hero .cta-trust,#hero .hero-proof,#hero .hero-swatches,#hero .dears-colorline{justify-content:center;}
