/* Joyería Carrillo · capa visual inspirada en la estructura de una joyería online clásica:
   cabecera mínima con menú lateral, portada a pantalla completa, pestañas, tarjetas grises, teselas a sangre. */
:root { --ff: 'Cormorant Garamond', Georgia, 'Times New Roman', serif; --ff-h: 'Cormorant Garamond', Georgia, 'Times New Roman', serif; --ink: #1c1c1c; --soft: #f7f7f7; --line: #e6e6e6; --mut: #6b6b6b; --hd: 74px; }
body { font-family: var(--ff); font-size: 1.12rem; font-weight: 500; color: var(--ink); font-variant-numeric: lining-nums; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--ff-h); font-weight: 500; }
b, strong { font-weight: 600; }
/* aviso superior */
.topbar { position: relative; background: #1c1c1c; color: #fff; text-align: center; padding: 9px 44px; font-size: .92rem; letter-spacing: .02em; text-transform: none; }
.topbar[hidden] { display: none; }
.tb-x { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #fff; cursor: pointer; font-size: 1rem; padding: 6px; }
/* cabecera */
.site-header { border-bottom: 0; background: #fff; }
.hd { display: grid; grid-template-columns: 1fr minmax(0, 300px) 1fr; align-items: center; gap: 18px; min-height: var(--hd); padding: 0 clamp(16px, 3.5vw, 50px); width: 100%; }
.hd-l { display: flex; align-items: center; gap: 22px; }
.nav-toggle { display: grid !important; place-items: center; width: 36px; height: 36px; background: none; border: 0; cursor: pointer; padding: 0; }
.burger { display: grid; gap: 5px; width: 18px; } .burger b { display: block; height: 1.5px; background: var(--ink); } .burger b:nth-child(2) { width: 12px; }
.brand { gap: 10px; } .brand img { width: 34px; height: 34px; border-radius: 0; } .brand img.wm { width: auto; height: 21px; max-width: 54vw; object-fit: contain; }
.brand img.mark { width: 38px; height: 38px; flex: none; object-fit: contain; } @media (max-width: 380px) { .hd { gap: 8px; padding: 0 12px; } .hd-l { gap: 8px; } .brand { gap: 6px; } .brand img.mark { width: 26px; height: 26px; } .brand img.wm { height: 16px; max-width: 40vw; } .hd-actions .tl { white-space: nowrap; font-size: .8rem; } }
.brand b { font-family: var(--ff-h); font-weight: 600; font-size: 1.7rem; letter-spacing: .14em; line-height: .95; text-transform: uppercase; } .brand small { font-family: var(--ff); font-size: .62rem; letter-spacing: .3em; margin-top: 4px; }
.hd-search { display: flex; align-items: center; border-bottom: 1px solid var(--ink); } .hd-search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: .9rem; letter-spacing: .04em; padding: 6px 0; outline: 0; color: var(--ink); } .hd-search input::placeholder { color: var(--ink); opacity: 1; }
.hd-search button { background: none; border: 0; cursor: pointer; font-size: .9rem; padding: 4px; }
.hd-actions { justify-self: end; display: flex; gap: 22px; } .hd-actions .tl { font-size: 1rem; text-transform: uppercase; letter-spacing: .02em; } .hd-actions .tl:hover { text-decoration: underline; text-underline-offset: 4px; }
/* menú lateral (siempre) */
.nav { position: fixed; inset: 0 auto 0 0; width: min(440px, 92vw); background: #fff; display: block; transform: translateX(-105%); transition: transform .3s; z-index: 60; box-shadow: 0 0 60px rgba(0,0,0,.18); overflow-y: auto; padding: 0; }
body.menu-open .nav { transform: none; } .scrim { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 55; display: none; } body.menu-open .scrim { display: block; }
.nav-close { display: grid !important; position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; background: none; border: 0; cursor: pointer; font-size: 1.2rem; }
.nav-in { padding: 78px 40px 40px; display: grid; gap: 4px; } .nav .big { font-size: 1.9rem; line-height: 1.25; padding: 7px 0; border: 0; text-transform: none; letter-spacing: 0; font-weight: 500; display: block; } .nav .big:hover { text-decoration: underline; text-underline-offset: 6px; }
.nav-sub { margin-top: 26px; display: grid; gap: 6px; border-top: 1px solid var(--line); padding-top: 20px; } .nav-sub span { font-size: .78rem; text-transform: uppercase; letter-spacing: .22em; color: var(--mut); margin-bottom: 4px; } .nav-sub a { font-size: 1.15rem; padding: 3px 0; border: 0; text-transform: none; letter-spacing: 0; } .nav-sub a:hover { text-decoration: underline; }
/* portada */
.hero { height: calc(100vh - 118px); min-height: 460px; max-height: 860px; background: #1c1c1c; }
.slide { place-items: end start; text-align: left; background: #1c1c1c; }
.slide.plain { background: radial-gradient(ellipse at 72% 40%, #2c2c2c 0, #1c1c1c 62%); }
.slide.plain::after { background-position: 74% 46%; background-size: min(64vh, 560px); opacity: .1; }
.slide-in { padding: 0 clamp(18px, 3vw, 40px) 38px; max-width: 900px; }
.slide h1, h2.h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); font-weight: 400; letter-spacing: .01em; text-shadow: none; } .slide p { text-transform: none; letter-spacing: .02em; font-size: 1.2rem; margin: 8px 0 0; font-weight: 400; max-width: 50ch; text-shadow: none; }
.ul { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; } .slide .ul { display: inline-block; margin-top: 14px; font-size: 1.15rem; } .ul.sp { letter-spacing: .14em; font-size: .95rem; }
.slide.photo::before { background: linear-gradient(to top, rgba(0,0,0,.42), transparent 55%); }
.h-arrow { background: none; border: 0; color: #fff; font-size: 2.2rem; width: 64px; opacity: .85; } .h-arrow:hover { background: none; opacity: 1; } .h-dots { bottom: 40px; right: 40px; left: auto; transform: none; }
/* bloques */
.blk { padding: 64px 0 0; } .blk > h2, .blk-head h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); text-transform: uppercase; font-weight: 500; letter-spacing: .02em; }
.blk-head { display: flex; justify-content: space-between; align-items: center; gap: 22px; flex-wrap: wrap; padding: 0 clamp(16px, 3.5vw, 50px); margin-bottom: 30px; }
.blk > h2 { padding: 0 clamp(16px, 3.5vw, 50px); } .blk .sub { padding: 8px clamp(16px, 3.5vw, 50px) 0; color: #555; font-size: 1rem; letter-spacing: .04em; }
.pills { display: flex; gap: 10px; flex-wrap: wrap; } .pills button { font: inherit; font-size: .8rem; text-transform: uppercase; letter-spacing: .2em; padding: 9px 20px; border: 1px solid var(--line); border-radius: 30px; background: #fff; cursor: pointer; color: var(--ink); } .pills button.on, .pills button:hover { border-color: var(--ink); }
.more { text-align: center; padding: 38px 0 6px; }
/* tarjetas */
.rail .carousel { gap: 8px; padding: 0; } .rail .carousel > .card { flex: 0 0 calc((100% - 24px) / 4); scroll-snap-align: start; }
.r-btn { position: absolute; top: 36%; z-index: 4; width: 60px; height: 40px; background: none; border: 0; font-size: 2rem; cursor: pointer; color: var(--ink); line-height: 1; } .r-btn:hover { background: none; } .r-prev { left: 12px; } .r-next { right: 12px; } .r-btn:disabled { opacity: .25; }
.card { background: transparent; }
.pic { aspect-ratio: 4 / 5; background: var(--soft) !important; } .pic img { object-fit: contain; }
.pic .art { width: 58%; max-width: 280px; } .pic .tags { top: 14px; left: 14px; }
.tag { border-radius: 0; background: #fff; color: var(--ink); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; box-shadow: none; } .tag i { display: none; } .tag.sale { background: var(--ink); color: #fff; }
.card { position: relative; } .card .info { padding: 14px 16px 0; gap: 3px; } .info h3 { font-family: var(--ff); font-size: 1.28rem; font-weight: 500; line-height: 1.22; } .price { padding-top: 2px; } .price b { font-size: 1rem; font-weight: 500; } .price s { font-size: .95rem; }
/* teselas */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 64px; }
.tile { position: relative; height: clamp(300px, 28vw, 400px); display: grid; place-items: center; overflow: hidden; background: #efefed; } .tile:nth-child(2) { background: #e6e3de; } .tile:nth-child(3) { background: #f3f3f3; } .tile:nth-child(4) { background: #ddd9d2; }
.tile .art { width: 46%; max-width: 190px; color: #b8975a; transition: transform .6s cubic-bezier(.2,.7,.2,1); } .tile:nth-child(2) .art, .tile:nth-child(3) .art { color: #8e949b; } .tile:hover .art { transform: scale(1.08); }
.tile span { position: absolute; left: 24px; bottom: 22px; font-size: 2.1rem; color: var(--ink); line-height: 1; }
/* favoritos */
.fav-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: 8px; padding: 26px clamp(16px, 3.5vw, 50px) 0; } .fav-grid .big { grid-row: span 2; } .fav-grid .big .pic { aspect-ratio: auto; height: calc(100% - 84px); min-height: 420px; }
.fav-grid .big .card { height: 100%; display: flex; flex-direction: column; } .fav-grid .big .pic .art { max-width: 380px; }
/* dos bloques */
.split { display: grid; grid-template-columns: 1fr 1fr; margin-top: 70px; }
.split a { position: relative; min-height: 420px; padding: 44px clamp(18px, 3vw, 40px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.sp-a { background: #1c1c1c; color: #fff; } .sp-b { background: #f1efeb; color: var(--ink); }
.split h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 8px; } .split p { max-width: 44ch; opacity: .85; margin-bottom: 14px; }
.split .orn { position: absolute; right: -40px; top: -30px; width: 340px; opacity: .12; z-index: -1; } .split .art { position: absolute; right: 8%; top: 12%; width: 220px; color: #b8975a; opacity: .55; z-index: -1; }
.perks2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 40px clamp(16px, 3.5vw, 50px); border-bottom: 1px solid var(--line); } .perks2 b { display: block; text-transform: uppercase; letter-spacing: .14em; font-size: .82rem; margin-bottom: 4px; } .perks2 span { color: #555; font-size: 1.02rem; }
/* pie claro */
.site-footer { background: #fff; color: var(--ink); } .site-footer h4, .site-footer li { color: var(--ink); } .site-footer h4 { text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; font-family: var(--ff); font-weight: 600; } .site-footer a:hover { text-decoration: underline; color: var(--ink); }
.site-footer .legal-bar { border-top-color: var(--line); color: #666; } .site-footer .social a { border-color: var(--line); color: var(--ink); } .site-footer .social a:hover { background: var(--ink); color: #fff; }
.site-footer .news { border-color: var(--ink); } .site-footer .news input { color: var(--ink); } .site-footer .news button { background: var(--ink); color: #fff; }
.site-footer .wrap, .wrap { width: min(1500px, 100% - clamp(32px, 7vw, 100px)); }
/* catálogo y ficha */
.page-head { text-align: left; padding: 38px 0 0; } .page-head h1 { font-size: clamp(2rem, 3.4vw, 2.8rem); text-transform: uppercase; letter-spacing: .02em; font-weight: 500; }
.crumbs { text-transform: none; letter-spacing: 0; font-size: .95rem; }
.grid { grid-template-columns: repeat(3, 1fr); gap: 34px 8px; }
.shop { grid-template-columns: 230px 1fr; gap: 36px; } .filters h4 { font-family: var(--ff); font-size: .78rem; letter-spacing: .18em; }
.chipset a, .fl a { border-radius: 30px; }
.btn { border-radius: 0; letter-spacing: .16em; font-family: var(--ff); font-size: .78rem; } .pd h1 { font-size: clamp(1.9rem, 3vw, 2.6rem); } .pd .pic { aspect-ratio: 1 / 1; }
.sec-head h2 span { box-shadow: none; }
/* móvil */
@media (max-width: 900px) {
  .hd { grid-template-columns: 1fr auto; } .hd-search { display: none; } .hd-actions { gap: 16px; } .hide-m { display: none; }
  .rail .carousel > .card { flex-basis: calc((100% - 8px) / 2); } .r-btn { display: none; }
  .tiles { grid-template-columns: 1fr 1fr; } .tile { height: 240px; } .tile span { font-size: 1.6rem; left: 16px; bottom: 16px; }
  .fav-grid { grid-template-columns: 1fr; } .fav-grid .big { grid-row: auto; } .fav-grid .big .pic { height: auto; min-height: 0; aspect-ratio: 4 / 5; }
  .split { grid-template-columns: 1fr; } .split a { min-height: 320px; } .perks2 { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 26px 8px; } .shop { grid-template-columns: 1fr; }
  .hero { height: calc(100vh - 130px); min-height: 420px; } .topbar { font-size: .8rem; padding: 8px 36px; } .tb-x { right: 10px; }
  .brand small { display: none; } .brand b { font-size: 1.4rem; }
}
.pw { position: relative; } .bagbtn { position: absolute; right: 14px; bottom: 14px; z-index: 2; width: 42px; height: 42px; display: grid; place-items: center; background: #fff; border-radius: 6px; font-size: 1.05rem; }
.fav-grid .big .pw { flex: 1; display: flex; } .fav-grid .big .pw .pic { flex: 1; height: auto; min-height: 420px; }
.blk-head { flex-wrap: nowrap; } .pills { flex-wrap: wrap; justify-content: flex-end; } .pills button { padding: 8px 16px; letter-spacing: .14em; font-size: .74rem; } .blk-head h2 { white-space: nowrap; }
@media (max-width: 900px) { .blk-head { flex-wrap: wrap; } .pills { justify-content: flex-start; } .blk-head h2 { white-space: normal; } }
.fav-grid > div:not(.big) .pic { aspect-ratio: 1 / 1; } .fav-grid .big .card { height: 100%; } .fav-grid .big .pic { min-height: 0; }
@media (max-width: 900px) { .fav-grid > div:not(.big) .pic { aspect-ratio: 4 / 5; } .fav-grid .big .pic { min-height: 0; aspect-ratio: 4 / 5; flex: none; } }
.split .orn, .slide.plain::after { -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 38%, transparent 70%); mask-image: radial-gradient(circle at 50% 50%, #000 38%, transparent 70%); }
.site-footer { padding-top: 0; } .perks2 { border-bottom: 0; }
.nav { box-shadow: none; visibility: hidden; transition: transform .3s, visibility .3s; } body.menu-open .nav { visibility: visible; box-shadow: 0 0 60px rgba(0,0,0,.18); }
.page-head .crumbs { justify-content: flex-start; } .page-head h1 { font-size: clamp(2rem, 3.4vw, 2.8rem) !important; }
@media (max-width: 900px) { .hd-actions .tl:first-child { display: none; } .hd { gap: 8px; } }

/* menú desplegable: marcas y categorías con subcategorías */
.nav details.grp { border: 0; } .nav details.grp summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; } .nav details.grp summary::-webkit-details-marker { display: none; }
.nav details.grp summary i { font-size: .8rem; opacity: .55; transition: transform .2s; } .nav details.grp[open] summary i { transform: rotate(180deg); }
.nav .subs { display: grid; gap: 1px; padding: 2px 0 12px 14px; border-left: 1px solid var(--line); margin: 0 0 6px 2px; } .nav .subs a { font-size: 1.08rem; padding: 4px 0; border: 0; text-transform: none; letter-spacing: 0; color: var(--mut, #555); } .nav .subs a:hover { color: #000; text-decoration: underline; text-underline-offset: 4px; }
.fl a.sub { padding-left: 34px; font-size: .92rem; opacity: .85; } .fl a.sub.on { opacity: 1; font-weight: 600; }
/* WhatsApp */
.wa { position: fixed; right: 18px; bottom: 18px; z-index: 45; }
.wa-fab { width: 58px; height: 58px; border-radius: 50%; border: 0; background: #25d366; color: #fff; font-size: 1.9rem; display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 26px rgba(0,0,0,.25); transition: transform .2s; } .wa-fab:hover { transform: scale(1.06); }
.wa-pop { position: absolute; right: 0; bottom: 72px; width: min(340px, calc(100vw - 36px)); background: #fff; border-radius: 14px; box-shadow: 0 18px 60px rgba(0,0,0,.28); overflow: hidden; animation: waIn .22s ease; } .wa-pop[hidden] { display: none; }
@keyframes waIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.wa-hd { background: #075e54; color: #fff; display: flex; gap: 12px; align-items: center; padding: 14px 16px; } .wa-hd b { display: block; font-size: 1rem; } .wa-hd small { opacity: .85; font-size: .78rem; }
.wa-av { width: 40px; height: 40px; border-radius: 50%; background: #25d366; display: grid; place-items: center; font-size: 1.4rem; flex: none; } .wa-x { margin-left: auto; background: none; border: 0; color: #fff; font-size: 1.1rem; cursor: pointer; opacity: .8; }
.wa-bd { padding: 16px; background: #efeae2; display: grid; gap: 10px; } .wa-msg { background: #fff; border-radius: 0 12px 12px 12px; padding: 11px 13px; margin: 0; font-size: .95rem; line-height: 1.45; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.wa-qs { display: grid; gap: 6px; } .wa-qs a { background: #fff; border: 1px solid #d6d0c6; border-radius: 999px; padding: 8px 14px; font-size: .88rem; text-align: center; text-transform: none; letter-spacing: 0; } .wa-qs a:hover { border-color: #25d366; }
.wa-go { background: #25d366; color: #fff; border-color: #25d366; justify-content: center; margin-top: 4px; }
.cart-fab { bottom: 88px !important; }
@media (prefers-reduced-motion: reduce) { .wa-pop { animation: none; } }

/* móvil estrecho: nada se sale por la derecha (cuadrículas con minmax(0,1fr) y hijos que pueden encogerse) */
.fav-grid > *, .foot > *, .grid > *, .hd > * { min-width: 0; }
@media (max-width: 900px) { .fav-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .foot { grid-template-columns: minmax(0, 1fr); } .foot input, .foot .news { min-width: 0; max-width: 100%; } }
.flashes { max-width: calc(100vw - 24px); }
