/* HOME by So Cool — catálogo web. Paleta y tipografías del manual de marca. */

@font-face { font-family: 'Montserrat'; src: url('assets/fonts/Montserrat.ttf') format('truetype'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url('assets/fonts/PlayfairDisplay.ttf') format('truetype'); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url('assets/fonts/PlayfairDisplay-Italic.ttf') format('truetype'); font-weight: 400 900; font-style: italic; font-display: swap; }

:root {
  --negro: #141414;
  --carbon: #1D1B18;
  --hueso: #FAF8F3;
  --arena: #E9E1D3;
  --arena-suave: #F2ECE1;
  --piedra: #B9B3A7;
  --taupe: #8B8175;
  --dorado: #B99859;
  --linea: #DDD5C6;
  --pad: clamp(22px, 6vw, 96px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Montserrat', sans-serif; color: var(--negro); background: var(--hueso); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.serif { font-family: 'Playfair Display', serif; font-weight: 500; }
.serif em { font-style: italic; }

.eyebrow { font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; font-weight: 600; color: var(--taupe); }
.eyebrow.gold { color: var(--dorado); }

/* ---------- botones ---------- */
.btn { display: inline-block; padding: 14px 28px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; border: 1px solid transparent; transition: all .25s ease; cursor: pointer; text-align: center; }
.btn-solid { background: var(--hueso); color: var(--negro); }
.btn-solid:hover { background: var(--dorado); color: var(--hueso); }
.btn-ghost { border-color: rgba(250,248,243,0.55); color: var(--hueso); }
.btn-ghost:hover { border-color: var(--dorado); color: var(--dorado); }
.btn-dark { background: var(--negro); color: var(--hueso); }
.btn-dark:hover { background: var(--dorado); }
.btn-gold { background: var(--dorado); color: var(--hueso); }
.btn-gold:hover { background: var(--negro); }

/* ---------- nav ---------- */
#nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 14px var(--pad); transition: background .3s ease, box-shadow .3s ease; }
#nav .nav-logo img { height: 34px; }
#nav .logo-dark { display: none; }
#nav .logo-light { display: block; }
#nav.solido { background: rgba(250,248,243,0.96); box-shadow: 0 1px 0 var(--linea); backdrop-filter: blur(8px); }
#nav.solido .logo-dark { display: block; }
#nav.solido .logo-light { display: none; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600; color: var(--hueso); transition: color .2s; }
#nav.solido .nav-links a { color: var(--negro); }
.nav-links a:hover { color: var(--dorado) !important; }
.nav-cta { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; color: var(--hueso); border: 1px solid var(--dorado); padding: 9px 18px; transition: all .2s; }
#nav.solido .nav-cta { color: var(--negro); }
.nav-cta:hover { background: var(--dorado); color: var(--hueso) !important; }
@media (max-width: 760px) { .nav-links { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 24s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero-velo { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,0.45) 0%, rgba(10,10,10,0.12) 40%, rgba(10,10,10,0.62) 100%); }
.hero-content { position: relative; text-align: center; color: var(--hueso); padding: 0 var(--pad); max-width: 900px; }
.hero-logo { width: clamp(120px, 16vw, 180px); margin: 0 auto 34px; }
.hero h1 { font-family: 'Playfair Display', serif; font-weight: 500; font-size: clamp(38px, 7vw, 76px); line-height: 1.08; }
.hero h1 em { font-style: italic; }
.hero-sub { margin-top: 20px; font-weight: 300; font-size: clamp(14px, 2vw, 17px); color: rgba(250,248,243,0.9); }
.hero-ctas { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-meta { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(250,248,243,0.75); }

/* ---------- marca ---------- */
.marca { padding: clamp(70px, 10vw, 130px) var(--pad); max-width: 1100px; margin: 0 auto; }
.marca h2 { font-size: clamp(26px, 4vw, 42px); line-height: 1.25; margin-top: 18px; max-width: 760px; }
.pilares { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 54px; }
.pilar { border-top: 2px solid var(--dorado); padding-top: 16px; }
.pilar h4 { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; margin-bottom: 6px; }
.pilar p { font-size: 13px; color: var(--taupe); font-weight: 300; }
@media (max-width: 760px) { .pilares { grid-template-columns: repeat(2, 1fr); } }

/* ---------- colecciones ---------- */
.colecciones { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.col-card { position: relative; height: clamp(380px, 60vh, 620px); overflow: hidden; }
.col-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.col-card:hover img { transform: scale(1.05); }
.col-card-velo { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,0.05) 40%, rgba(10,10,10,0.72) 100%); }
.col-card-info { position: absolute; left: clamp(24px, 4vw, 48px); bottom: clamp(24px, 4vw, 44px); color: var(--hueso); }
.col-card-info h3 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; margin: 10px 0 14px; }
.col-card-link { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600; color: var(--dorado); border-bottom: 1px solid var(--dorado); padding-bottom: 3px; }
@media (max-width: 760px) { .colecciones { grid-template-columns: 1fr; } }

/* ---------- catálogo ---------- */
.catalogo { padding: clamp(70px, 9vw, 120px) var(--pad); }
.cat-head { max-width: 780px; }
.cat-head h2 { font-size: clamp(30px, 4.6vw, 52px); line-height: 1.15; margin-top: 14px; }
.cat-desc { margin-top: 16px; font-weight: 300; font-size: 15px; color: var(--taupe); max-width: 560px; }
.catalogo-dark { background: var(--negro); color: var(--hueso); }
.catalogo-dark .cat-desc { color: var(--piedra); }

.filtros { display: flex; gap: 10px; flex-wrap: wrap; margin: 38px 0 30px; }
.filtro { font-family: 'Montserrat', sans-serif; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--linea); background: transparent; color: inherit; cursor: pointer; transition: all .2s; }
.catalogo-dark .filtro { border-color: rgba(250,248,243,0.25); }
.filtro:hover { border-color: var(--dorado); color: var(--dorado); }
.filtro.activo { background: var(--dorado); border-color: var(--dorado); color: var(--hueso); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.card { cursor: pointer; transition: transform .3s ease; }
.card:hover { transform: translateY(-4px); }
.card-foto { position: relative; aspect-ratio: 4 / 4.6; background: var(--arena-suave); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.catalogo-dark .card-foto { background: var(--carbon); }
.card-foto img { width: 88%; height: 88%; object-fit: contain; transition: transform .5s ease; }
.card:hover .card-foto img { transform: scale(1.05); }
.card-foto .sin-foto { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--piedra); }
.card-velo { position: absolute; inset: 0; background: rgba(20,20,20,0); transition: background .3s; display: flex; align-items: center; justify-content: center; }
.card-velo span { font-family: 'Playfair Display', serif; font-style: italic; font-size: 19px; color: var(--hueso); opacity: 0; transform: translateY(8px); transition: all .3s; }
.card:hover .card-velo { background: rgba(20,20,20,0.42); }
.card:hover .card-velo span { opacity: 1; transform: translateY(0); }
.card-nombre { font-family: 'Playfair Display', serif; font-size: 19px; font-weight: 600; margin-top: 14px; }
.card-tipo { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dorado); font-weight: 600; margin-top: 3px; }
.card-ref { font-size: 10.5px; color: var(--piedra); letter-spacing: 0.08em; margin-top: 3px; }

/* ---------- interludio ---------- */
.interludio { position: relative; height: clamp(360px, 62vh, 560px); overflow: hidden; }
.interludio img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.interludio-velo { position: absolute; inset: 0; background: rgba(10,10,10,0.32); }
.interludio-frase { position: absolute; left: 0; right: 0; bottom: 44px; text-align: center; font-style: italic; font-size: clamp(20px, 3vw, 30px); color: var(--hueso); text-shadow: 0 2px 18px rgba(0,0,0,0.6); }

/* ---------- descargas ---------- */
.descargas { padding: clamp(70px, 9vw, 110px) var(--pad); background: var(--arena); text-align: center; }
.descargas h2 { font-size: clamp(28px, 4vw, 44px); margin-top: 12px; }
.descargas-btns { margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- footer ---------- */
footer { position: relative; overflow: hidden; color: var(--hueso); }
.footer-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.footer-velo { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,0.72) 0%, rgba(10,10,10,0.9) 100%); }
.footer-inner { position: relative; padding: clamp(70px, 9vw, 110px) var(--pad); text-align: center; }
.footer-logo { width: 140px; margin: 0 auto 22px; }
.footer-frase { font-style: italic; font-size: 20px; color: var(--arena); margin-bottom: 30px; }
.footer-contacto { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.footer-redes { margin-top: 26px; display: flex; gap: 12px; justify-content: center; font-size: 13px; color: var(--piedra); flex-wrap: wrap; }
.footer-redes a:hover { color: var(--dorado); }
.footer-ubicacion { margin-top: 26px; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--dorado); }
.footer-small { margin-top: 12px; font-size: 11px; color: rgba(250,248,243,0.45); }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.abierto { display: block; }
.modal-fondo { position: absolute; inset: 0; background: rgba(10,10,10,0.72); backdrop-filter: blur(3px); }
.modal-caja { position: absolute; inset: 0; margin: auto; width: min(940px, calc(100% - 32px)); height: min(640px, calc(100% - 48px)); background: var(--hueso); display: flex; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.4); }
.modal-cerrar { position: absolute; top: 10px; right: 14px; z-index: 2; font-size: 30px; line-height: 1; background: none; border: none; cursor: pointer; color: var(--taupe); }
.modal-cerrar:hover { color: var(--negro); }
.modal-foto { width: 44%; background: var(--arena-suave); display: flex; align-items: center; justify-content: center; }
.modal-foto img { max-width: 86%; max-height: 86%; object-fit: contain; }
.modal-info { width: 56%; padding: 40px 36px; overflow-y: auto; }
.modal-info h3 { font-size: 32px; margin-top: 8px; }
.modal-tipo { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dorado); font-weight: 600; margin-top: 6px; }
.modal-ref { font-size: 12px; color: var(--taupe); letter-spacing: 0.08em; margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chip { font-size: 11px; padding: 5px 12px; border: 1px solid var(--piedra); border-radius: 999px; }
.chip.gold { border-color: var(--dorado); }
.chips-titulo { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--taupe); font-weight: 600; margin-top: 16px; }
.modal-specs { width: 100%; border-collapse: collapse; margin-top: 18px; }
.modal-specs td { font-size: 12.5px; padding: 7px 0; vertical-align: top; border-top: 1px solid var(--linea); }
.modal-specs td.k { color: var(--taupe); font-weight: 600; width: 40%; padding-right: 14px; }
.modal-wa { margin-top: 22px; width: 100%; }
@media (max-width: 760px) {
  .modal-caja { flex-direction: column; height: calc(100% - 32px); }
  .modal-foto { width: 100%; height: 34%; flex-shrink: 0; }
  .modal-info { width: 100%; padding: 24px 22px 30px; }
}

/* ---------- reveals ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visto { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg img { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}

/* tarjetas sin foto: compactas, la REF es la protagonista */
.card-foto.compacta { aspect-ratio: 4 / 2; }
.card-foto.compacta .sin-foto { font-family: 'Playfair Display', serif; font-style: italic; font-size: 17px; letter-spacing: 0.04em; text-transform: none; color: var(--taupe); }

/* ============ V2 UX: redes arriba, menú móvil, paginación, FAB ============ */

.nav-derecha { display: flex; align-items: center; gap: 16px; }
.nav-redes { display: flex; gap: 12px; }
.nav-redes a, .hero-redes a, .menu-redes a { display: inline-flex; }
.nav-redes svg { width: 19px; height: 19px; color: var(--hueso); transition: color .2s; }
#nav.solido .nav-redes svg { color: var(--negro); }
.nav-redes a:hover svg { color: var(--dorado); }
@media (max-width: 760px) { .nav-redes { display: none; } .nav-cta { display: none; } }

.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-burger span { width: 24px; height: 2px; background: var(--hueso); transition: background .2s; }
#nav.solido .nav-burger span { background: var(--negro); }
@media (max-width: 760px) { .nav-burger { display: flex; } }

.menu { position: fixed; inset: 0; z-index: 90; background: #141414; display: none; }
.menu.abierto { display: block; }
.menu-inner { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; padding: 24px; text-align: center; }
.menu-logo { width: 120px; }
.menu-links { display: flex; flex-direction: column; gap: 18px; }
.menu-links a { font-family: 'Playfair Display', serif; font-size: 26px; color: var(--hueso); }
.menu-links a:active, .menu-links a:hover { color: var(--dorado); }
.menu-wa { width: min(320px, 86vw); }
.menu-redes { display: flex; gap: 22px; }
.menu-redes svg { width: 26px; height: 26px; color: var(--piedra); }
.menu-redes a:hover svg { color: var(--dorado); }
.menu-ubicacion { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--dorado); }

.hero-redes { margin-top: 26px; display: flex; gap: 20px; justify-content: center; }
.hero-redes svg { width: 22px; height: 22px; color: rgba(250,248,243,0.85); transition: color .2s; }
.hero-redes a:hover svg { color: var(--dorado); }

/* paginación de grids */
.card.oculta-pag { display: none !important; }
.mas-wrap { text-align: center; margin-top: 34px; }
.btn-mas { background: transparent; border: 1px solid var(--dorado); color: var(--hueso); font-family: 'Montserrat', sans-serif; }
.btn-mas:hover { background: var(--dorado); }
.btn-mas-claro { color: var(--negro); }
.btn-mas.agotado { display: none; }

/* filtros: fila con scroll horizontal en móvil */
@media (max-width: 760px) {
  .filtros { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); padding: 0 var(--pad) 6px; }
  .filtros::-webkit-scrollbar { display: none; }
  .filtro { flex-shrink: 0; }
}

/* móvil compacto: secciones que respiran sin sábana */
@media (max-width: 760px) {
  .hero { min-height: 520px; }
  .col-card { height: 300px; }
  .interludio { height: 300px; }
  .marca, .catalogo, .descargas { padding-top: 56px; padding-bottom: 56px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card-nombre { font-size: 16px; }
  .card-tipo { font-size: 9px; }
}

/* FAB WhatsApp */
.fab-wa { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 54px; height: 54px; border-radius: 50%; background: var(--dorado); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,0.3); transition: transform .2s, background .2s; }
.fab-wa svg { width: 28px; height: 28px; color: var(--hueso); }
.fab-wa:hover { transform: scale(1.08); background: var(--negro); }


/* fix: hamburguesa siempre encima del menú, animada a X */
#nav.sobre-menu { z-index: 95; background: transparent !important; box-shadow: none !important; backdrop-filter: none !important; }
#nav.sobre-menu .logo-dark { display: none !important; }
#nav.sobre-menu .logo-light { display: block !important; }
#nav.sobre-menu .nav-burger span { background: var(--hueso) !important; }
.nav-burger span { transition: transform .25s ease, opacity .2s ease; }
.nav-burger.x span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.x span:nth-child(2) { opacity: 0; }
.nav-burger.x span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ============ imágenes horizontales: hero editorial + bandas ============ */
@media (min-width: 761px) {
  .hero-content { text-align: left; margin-right: auto; max-width: 620px; padding-left: var(--pad); }
  .hero-logo { margin: 0 0 30px; }
  .hero-ctas, .hero-redes { justify-content: flex-start; }
  .hero-velo { background: linear-gradient(90deg, rgba(10,10,10,0.52) 0%, rgba(10,10,10,0.18) 55%, rgba(10,10,10,0.05) 100%),
    linear-gradient(180deg, rgba(10,10,10,0.25) 0%, rgba(10,10,10,0) 30%, rgba(10,10,10,0.35) 100%); }
  .hero-meta { text-align: left; padding-left: var(--pad); }
}
.interludio-claro img { object-position: center; }
.descargas { position: relative; overflow: hidden; }
.descargas-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.descargas-velo { position: absolute; inset: 0; background: rgba(250,248,243,0.78); }
.descargas-contenido { position: relative; }

/* ---------- descargas: catalogo madre + linea bajo pedido ---------- */
.descargas-nota { position: relative; margin: 26px auto 0; max-width: 470px; font-size: 13px; line-height: 1.65; color: #4A463F; }
.descargas-secundarias { margin-top: 14px; }
.btn-linea { background: rgba(250,248,243,0.55); color: var(--negro); border: 1px solid rgba(26,26,26,0.38); font-size: 11px; padding: 11px 20px; }
.btn-linea:hover { border-color: var(--dorado); color: var(--dorado); background: transparent; }
.filtros:empty { display: none; }
.modal-nota { margin-top: 14px; font-size: 12.5px; line-height: 1.6; opacity: 0.7; font-style: italic; }
