/* =============================================================
   LIBRERÍA SHIRA — estilos v2 (visual y dinámico)
   ============================================================= */

/* 1. TOKENS */
:root {
  --bg:        #f6f8fb;
  --bg-2:      #e8eef7;
  --bg-warm:   #eef3fa;
  --paper:     #ffffff;
  --ink:       #12244E;
  --ink-soft:  #3a4a66;
  --ink-mute:  #6b7a99;
  --accent:    #176BE0;
  --accent-2:  #0f56b0;
  --gold:      #F2B01E;
  --dark:      #12244E;
  --dark-2:    #0e1c3d;
  --wa:        #25D366;
  --wa-dark:   #1eb959;
  --line:      rgba(18,36,78,0.1);

  --sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --heading: "Poppins", "DM Sans", sans-serif;

  --gutter: 1.5rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 2. RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-tap-highlight-color: rgba(23,107,224,0.15); }
a, button, input, select, textarea, label { touch-action: manipulation; }
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;
}
img, svg { 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 { font-family: var(--heading); text-wrap: balance; line-height: 1.1; letter-spacing: -0.01em; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .institutional :focus-visible, .footer :focus-visible, .lightbox :focus-visible, .nav:not(.is-solid) :focus-visible, .nav.menu-open :focus-visible, .category-card:focus-visible { outline-color: var(--gold); }
.btn-whatsapp:focus-visible, .pl-order:focus-visible, .whatsapp-float:focus-visible { outline-color: var(--ink); }
.hero .btn-whatsapp:focus-visible, .institutional .btn-whatsapp:focus-visible { outline-color: #fff; }

/* 3. BOTONES */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.8rem; font-family: var(--sans); font-size: .92rem; font-weight: 600;
  border-radius: 50px; transition: background-color .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out), box-shadow .3s var(--ease-out), transform .3s var(--ease-out); white-space: nowrap; border: 0;
}
.btn-lg { padding: 1rem 2.2rem; font-size: 1rem; }
.btn svg, .whatsapp-float svg, .mobile-wa-bar svg { flex-shrink: 0; }
.btn-whatsapp { background: #1fb457; color: #fff; box-shadow: 0 6px 24px rgba(37,211,102,0.35); }
.btn-whatsapp:hover { background: var(--wa-dark); transform: translateY(-2px); box-shadow: 0 10px 34px rgba(37,211,102,0.5); color: #fff; }
.btn-ghost-light { border: 1.5px solid rgba(255,255,255,0.5); color: #fff; background: transparent; }
.btn-ghost-light:hover { border-color: var(--gold); color: var(--gold); background: rgba(242,176,30,0.1); }
.btn:active, .pl-order:active, .featured-card:active, .category-card:active { transform: translateY(0) scale(.98); }

/* 4. SPLASH (se quita sola aunque falle el JavaScript) */
.splash { position: fixed; inset: 0; z-index: 9999; background: #fff; display: flex; align-items: center; justify-content: center; pointer-events: none; animation: splashOut .45s var(--ease-out) 1.6s forwards; }
.splash.is-out { opacity: 0; transition: opacity .45s var(--ease-out); }
.splash-logo { width: 200px; height: auto; animation: splashIn .5s var(--ease-out) both; }
@keyframes splashIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes splashOut { to { opacity: 0; visibility: hidden; } }

/* 5. NAV */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 500; padding: .9rem 0; transition: background .35s var(--ease-out), padding .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.nav.is-solid {
  background: rgba(255,255,255,0.94); backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%); box-shadow: 0 1px 0 var(--line); padding: .45rem 0;
}
.nav.menu-open { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 1rem; }
.nav-logo { display: flex; align-items: center; margin-right: auto; position: relative; z-index: 510; }
.nav-logo-img { height: 44px; width: auto; filter: brightness(0) invert(1); transition: filter .35s var(--ease-out); }
.nav.is-solid:not(.menu-open) .nav-logo-img { filter: none; }
.nav-links { display: none; align-items: center; gap: .15rem; }
@media (min-width: 1000px) { .nav-links { display: flex; } }
.nav-link { padding: .4rem .85rem; font-size: .88rem; font-weight: 500; color: rgba(255,255,255,0.85); border-radius: 40px; transition: color .3s, background .3s; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.12); }
.nav.is-solid .nav-link { color: var(--ink-soft); }
.nav.is-solid .nav-link:hover { color: var(--ink); background: rgba(23,107,224,0.07); }
.nav.is-solid .nav-link[aria-current="page"] { color: var(--accent); background: rgba(23,107,224,0.09); }
.nav-cta { flex-shrink: 0; padding: .55rem 1.1rem; font-size: .85rem; position: relative; z-index: 510; }

.nav-hamburger { display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; padding: 10px 9px; margin-right: -9px; position: relative; z-index: 510; }
@media (min-width: 1000px) { .nav-hamburger { display: none; } }
.nav-hamburger span { display: block; height: 2px; width: 100%; background: #fff; border-radius: 2px; transition: transform .3s var(--ease-out), background .3s; }
.nav.is-solid:not(.menu-open) .nav-hamburger span { background: var(--ink); }
.nav-hamburger.is-active span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-hamburger.is-active span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 999px) {
  .nav-links.is-open {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    position: fixed; inset: 0; background: rgba(18,36,78,0.98); gap: 1.1rem; z-index: 505; overscroll-behavior: contain;
  }
  .nav-links.is-open .nav-link { font-size: 1.35rem; padding: .5rem 1.4rem; color: rgba(255,255,255,0.9); }
  .nav-links.is-open .nav-link:hover, .nav-links.is-open .nav-link[aria-current="page"] { color: #fff; background: rgba(255,255,255,0.1); }
}

/* 6. HERO */
.hero { position: relative; min-height: 78vh; min-height: 78svh; display: flex; align-items: center; overflow: hidden; background: var(--dark); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; animation: kenburns 18s ease-out both; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,28,61,0.86) 0%, rgba(18,36,78,0.62) 45%, rgba(14,28,61,0.92) 100%); }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12); } }
.hero-inner { position: relative; z-index: 2; max-width: 860px; margin: 0 auto; padding: 7rem var(--gutter) 4rem; text-align: center; }
.hero-kicker {
  display: inline-block; padding: .3rem 1.1rem; margin-bottom: 1.5rem;
  font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .22em;
  background: rgba(255,255,255,0.1); color: var(--gold);
  border: 1px solid rgba(242,176,30,0.4); border-radius: 50px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hero-title { font-family: var(--heading); font-size: clamp(2.4rem, 6.5vw, 4.4rem); font-weight: 600; line-height: 1.06; color: #fff; margin-bottom: 1.4rem; }
.hero-title span { color: var(--gold); white-space: nowrap; }
.hero-sub { font-size: clamp(1.02rem, 2vw, 1.2rem); font-weight: 400; color: rgba(255,255,255,0.82); max-width: 54ch; margin: 0 auto 2.2rem; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }
.hero-trust { list-style: none; display: grid; grid-template-columns: repeat(3, auto); justify-content: center; gap: 0; }
.hero-trust li { display: flex; flex-direction: column; padding: 0 1.6rem; border-left: 1px solid rgba(255,255,255,0.18); }
.hero-trust li:first-child { border-left: 0; }
.hero-trust strong { font-family: var(--heading); font-size: 1.02rem; font-weight: 600; color: #fff; }
.hero-trust span { font-size: .78rem; color: rgba(255,255,255,0.65); }
@media (max-width: 560px) {
  .hero-trust li { padding: 0 .8rem; }
  .hero-trust strong { font-size: .86rem; }
  .hero-trust span { font-size: .7rem; }
  .hero-actions .btn { width: 100%; }
}

/* 7. BARRA COLORES LITÚRGICOS */
.liturgical-bar { display: flex; height: 8px; }
.liturgical-bar span { flex: 1; }

/* 8. DESTACADOS */
.featured { padding: 1rem var(--gutter) 3.5rem; background: var(--bg); }
.featured-inner { max-width: 1080px; margin: 0 auto; }
.featured-head { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; margin-bottom: 1.3rem; }
.featured-head .section-chip { margin: 0; background: rgba(242,176,30,0.18); color: #8a5e00; }
.featured-title { font-size: 1.35rem; font-weight: 600; color: var(--ink); }
.featured-grid { display: grid; grid-template-columns: 1fr; gap: .9rem; }
@media (min-width: 560px) { .featured-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .featured-grid { grid-template-columns: repeat(4, 1fr); } }
.featured-card {
  display: flex; flex-direction: column; gap: .35rem; padding: 1.2rem 1.2rem 1.1rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 2px 16px rgba(18,36,78,0.04); border-top: 3px solid var(--gold);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.featured-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(18,36,78,0.13); }
.featured-photo { display: block; aspect-ratio: 4 / 3; margin: -.3rem -.3rem .5rem; border-radius: 10px; background: #fbfaf6; overflow: hidden; }
.featured-photo img { width: 100%; height: 100%; object-fit: contain; padding: .5rem; }
.featured-cat { font-size: .74rem; color: var(--ink-mute); }
.featured-name { font-family: var(--heading); font-weight: 600; font-size: 1.02rem; line-height: 1.25; color: var(--ink); }
.featured-note { align-self: flex-start; font-size: .74rem; font-weight: 600; padding: .12rem .6rem; border-radius: 50px; background: rgba(242,176,30,0.2); color: #7a5300; }
.featured-foot { margin-top: auto; padding-top: .8rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.featured-price { font-family: var(--heading); font-size: 1.35rem; font-weight: 700; color: var(--accent); }
.featured-cta { display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; font-weight: 600; color: #0f7a40; }

/* 8b. CÓMO PEDIR */
.steps { padding: 3rem var(--gutter) 2.5rem; background: var(--bg); text-align: center; }
.steps-inner { max-width: 960px; margin: 0 auto; }
.steps-grid { list-style: none; display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 2.2rem; text-align: left; }
@media (min-width: 720px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: 1.5rem 1.4rem; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-bottom: .8rem; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--heading); font-weight: 600; }
.step h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: .3rem; color: var(--ink); }
.step p { font-size: .93rem; color: var(--ink-soft); line-height: 1.6; }

/* 8c. MISIÓN */
.manifesto { padding: 4.5rem var(--gutter); background: var(--bg); position: relative; }
.manifesto-inner { max-width: 960px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .manifesto-inner { grid-template-columns: auto 1fr; gap: 4rem; align-items: center; } }
.manifesto-emblem {
  width: 190px; height: 190px; margin: 0 auto; border-radius: 28px; overflow: hidden;
  background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 16px 48px rgba(18,36,78,0.12);
}
.manifesto-emblem img { width: 100%; height: 100%; object-fit: contain; }
.manifesto-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .18em; color: var(--ink-mute); margin-bottom: .75rem; }
.manifesto-title { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 600; line-height: 1.12; margin-bottom: 1.5rem; color: var(--ink); }
.manifesto-title em { font-style: normal; color: var(--accent); }
.manifesto-text { font-size: 1rem; line-height: 1.8; color: var(--ink-soft); max-width: 54ch; }
@media (max-width: 767px) { .manifesto-content { text-align: center; } .manifesto-text { margin: 0 auto; } }

/* 10. CATEGORIES */
.categories { padding: 3.5rem var(--gutter) 3rem; background: var(--bg); text-align: center; }
.categories-inner { max-width: 1080px; margin: 0 auto; }
.section-chip {
  display: inline-block; padding: .22rem .85rem; margin-bottom: 1rem;
  font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em;
  background: var(--bg-2); color: var(--accent); border-radius: 50px;
}
.section-heading { font-size: clamp(1.9rem, 4.5vw, 2.9rem); font-weight: 600; line-height: 1.08; margin-bottom: .9rem; color: var(--ink); }
.section-heading em { font-style: normal; color: var(--accent); }
.section-sub { font-size: 1rem; color: var(--ink-soft); line-height: 1.7; }
.categories-grid { display: grid; grid-template-columns: 1fr; gap: 1.1rem; margin-top: 3rem; }
@media (min-width: 540px) { .categories-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .categories-grid { grid-template-columns: repeat(4, 1fr); } }
.category-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: .35rem;
  padding: 2.3rem 1.2rem 1.6rem; border-radius: 20px; overflow: hidden; color: #fff;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.category-card::before { content: ""; position: absolute; inset: 0; opacity: .9; transition: transform .5s var(--ease-out); }
.category-card:hover { transform: translateY(-6px); box-shadow: 0 22px 60px rgba(18,36,78,0.22); }
.category-card:hover::before { transform: scale(1.08); }
.cat-biblias::before { background: linear-gradient(150deg, #12244E, #176BE0); }
.cat-liturgia::before { background: linear-gradient(150deg, #8a5a05, #d1930f); }
.cat-vestimenta::before { background: linear-gradient(150deg, #5b2a86, #a54399); }
.cat-articulos::before { background: linear-gradient(150deg, #1b5e20, #2e9e66); }
.category-icon, .category-name, .category-sub, .category-arrow { position: relative; z-index: 1; }
.category-icon { font-size: 2.4rem; margin-bottom: .4rem; }
.category-name { font-family: var(--heading); font-size: 1.15rem; font-weight: 600; }
.category-sub { font-size: .78rem; color: rgba(255,255,255,0.85); text-align: center; line-height: 1.4; }
.category-arrow { margin-top: .7rem; font-size: .82rem; font-weight: 600; padding: .25rem .8rem; border-radius: 50px; background: rgba(255,255,255,0.18); color: #fff; transition: transform .3s var(--ease-out); }
.category-card:hover .category-arrow { transform: translateX(4px); }

/* 11. CATEGORY DETAIL */
.page-inner main { padding-top: 62px; }
.category-detail { padding: 2.5rem var(--gutter) 4rem; background: var(--bg); }
.crumbs { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; font-size: .85rem; color: var(--ink-mute); }
.crumbs a { color: var(--accent); font-weight: 500; }
.crumbs a:hover { text-decoration: underline; }
.category-detail--alt { background: var(--bg-warm); }
.category-inner { max-width: 1080px; margin: 0 auto; }
.category-head { margin-bottom: 1.8rem; }
.category-badge {
  display: inline-block; padding: .3rem 1rem; margin-bottom: .9rem;
  font-size: .82rem; font-weight: 500; background: var(--bg-2); color: var(--accent); border-radius: 50px;
}
.category-title { font-size: clamp(1.9rem, 4.5vw, 2.7rem); font-weight: 600; margin-bottom: .5rem; color: var(--ink); }
.category-desc { font-size: 1.05rem; color: var(--ink-soft); line-height: 1.7; max-width: 62ch; }
.category-block { margin-top: 2.6rem; }
.category-tip { margin-top: .9rem; max-width: 70ch; padding: .8rem 1rem; border-left: 3px solid var(--gold); background: rgba(242,176,30,0.1); border-radius: 0 10px 10px 0; font-size: .92rem; color: var(--ink-soft); line-height: 1.55; }
.category-head .block-head { margin-bottom: .4rem; }

/* Tarjetas de producto */
.product-grid { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
@media (min-width: 720px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 1.1rem; } }
@media (min-width: 1040px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
.product-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 2px 14px rgba(18,36,78,0.04); transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(18,36,78,0.13); }
.product-photo { position: relative; display: block; aspect-ratio: 1 / 1; background: #fbfaf6; border-bottom: 1px solid var(--line); cursor: zoom-in; }
.product-photo img { width: 100%; height: 100%; object-fit: contain; padding: .7rem; transition: transform .5s var(--ease-out); }
.product-card:hover .product-photo img { transform: scale(1.04); }
.product-tag { position: absolute; top: .6rem; right: .6rem; padding: .18rem .6rem; border-radius: 50px; background: var(--gold); color: var(--dark-2); font-size: .7rem; font-weight: 700; letter-spacing: .02em; }
.product-body { display: flex; flex-direction: column; gap: .4rem; flex: 1; padding: .9rem .9rem 1rem; }
.product-name { font-family: var(--heading); font-size: .98rem; font-weight: 600; line-height: 1.25; color: var(--ink); letter-spacing: 0; }
.product-desc { font-size: .84rem; line-height: 1.5; color: var(--ink-soft); }
.product-options { font-size: .8rem; font-weight: 500; color: var(--ink); background: var(--bg-warm); border-radius: 8px; padding: .35rem .55rem; line-height: 1.4; }
.product-foot { margin-top: auto; padding-top: .6rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.product-price { font-family: var(--heading); font-size: 1.15rem; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.product-price--ask { font-size: .9rem; font-weight: 600; color: var(--ink-mute); }
@media (max-width: 480px) {
  .product-body { padding: .7rem .7rem .8rem; }
  .product-name { font-size: .9rem; }
  .product-desc { font-size: .8rem; }
  .product-price { font-size: 1.02rem; }
  .product-foot .pl-order { width: 100%; justify-content: center; }
}
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.block-head .block-title { margin-bottom: 0; }
.block-count { font-size: .82rem; color: var(--ink-mute); white-space: nowrap; }
.block-title { font-size: 1.3rem; font-weight: 600; margin-bottom: .4rem; color: var(--ink); }
.block-note { font-size: .9rem; color: var(--ink-mute); line-height: 1.6; margin-bottom: 1.1rem; }

/* Product list */
.product-list { list-style: none; display: grid; grid-template-columns: 1fr; gap: 0 1.2rem; background: var(--paper); border-radius: 16px; border: 1px solid var(--line); padding: .3rem 1.1rem; box-shadow: 0 2px 16px rgba(18,36,78,0.04); }
@media (min-width: 900px) { .product-list { grid-template-columns: 1fr 1fr; gap: 0 2.4rem; padding: .4rem 1.5rem; } }
.product-list li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--line); min-height: 60px; }
.product-list li:last-child { border-bottom: 0; }
@media (min-width: 900px) { .product-list li:nth-last-child(2):nth-child(odd) { border-bottom: 0; } }
.pl-main { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.pl-name { font-weight: 500; color: var(--ink); line-height: 1.35; }
.pl-note { font-size: .8rem; color: var(--ink-mute); line-height: 1.35; }
.pl-price { font-family: var(--heading); font-weight: 600; font-size: 1.02rem; color: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pl-price--ask { font-size: .82rem; font-weight: 500; color: var(--ink-mute); }
.pl-order {
  display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .8rem; min-height: 36px;
  font-size: .8rem; font-weight: 600; color: #0f7a40; background: rgba(37,211,102,0.13);
  border-radius: 50px; transition: background .25s, color .25s, transform .25s var(--ease-out);
}
.pl-order svg { width: 15px; height: 15px; }
.pl-order:hover { background: #1fb457; color: #fff; transform: translateY(-1px); }
.category-cta-row { margin-top: 1.8rem; display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; }
.category-cta-note { font-size: .85rem; color: var(--ink-mute); }
@media (max-width: 560px) { .category-cta-row .btn { width: 100%; white-space: normal; text-align: center; } }

/* Photo grid (masonry) */
.gallery { margin-top: 2.75rem; }
.photo-grid { columns: 2 150px; column-gap: .8rem; }
@media (min-width: 640px) { .photo-grid { columns: 3 200px; } }
@media (min-width: 900px) { .photo-grid { columns: 4 220px; } }
.photo-thumb {
  display: block; width: 100%; margin-bottom: .8rem; break-inside: avoid;
  border-radius: 14px; overflow: hidden; background: var(--bg-2);
  box-shadow: 0 4px 18px rgba(18,36,78,0.08); transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.photo-thumb img { width: 100%; height: auto; display: block; transition: transform .6s var(--ease-out); }
.photo-thumb:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(18,36,78,0.18); }
.photo-thumb:hover img { transform: scale(1.05); }

/* Catalog strip */
.catalog-strip { margin-top: 2.75rem; }
.gallery-grid { display: flex; gap: .9rem; overflow-x: auto; padding: .25rem 0 1rem; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.gallery-thumb {
  display: block; flex-shrink: 0; width: 168px; height: 222px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-2); scroll-snap-align: start;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.gallery-thumb:hover { box-shadow: 0 8px 24px rgba(18,36,78,0.16); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

/* 12. LIGHTBOX */
html.lb-open { overflow: hidden; }
.lightbox { overscroll-behavior: contain; position: fixed; inset: 0; z-index: 9000; background: rgba(8,14,28,0.96); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .3s var(--ease-out), visibility .3s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-img { max-width: min(92vw, 1100px); max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); width: auto; height: auto; object-fit: contain; border-radius: 6px; transition: opacity .2s; }
.lightbox-img.is-loading { opacity: .35; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.14); color: #fff;
  font-size: 1.7rem; line-height: 1; transition: background .3s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.3); }
.lightbox-close { top: 14px; right: 14px; }
.lightbox-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox-bar { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; align-items: center; justify-content: center; gap: 1rem; }
.lightbox-count { font-size: .85rem; color: rgba(255,255,255,0.7); font-variant-numeric: tabular-nums; }
.lightbox-order { padding: .6rem 1.2rem; border-radius: 50px; background: #1fb457; color: #fff; font-weight: 600; font-size: .88rem; }
.lightbox-order:hover { background: var(--wa-dark); }

/* 13. INSTITUTIONAL */
.institutional { scroll-margin-top: 40px; position: relative; padding: 5rem var(--gutter); background: linear-gradient(150deg, var(--dark-2), var(--dark) 60%, #1c3a74); overflow: hidden; }
.institutional::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 55% 40% at 50% 0%, rgba(242,176,30,0.16) 0%, transparent 70%); }
.institutional-inner { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; text-align: left; }
@media (min-width: 900px) { .institutional-inner { grid-template-columns: 6fr 5fr; gap: 4rem; } }
.institutional-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.btn-gold { background: var(--gold); color: var(--dark-2); }
.btn-gold:hover { background: #ffc233; transform: translateY(-2px); }
.steps-list { list-style: none; display: grid; gap: .8rem; }
.steps-list li { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.2rem; border-radius: 14px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); }
.steps-list .step-num { flex-shrink: 0; margin: 0; background: var(--gold); color: var(--dark-2); }
.steps-list strong { font-family: var(--heading); font-weight: 600; color: #fff; }
.steps-list p { font-size: .9rem; line-height: 1.5; color: rgba(255,255,255,0.72); }
.institutional-chip {
  display: inline-block; padding: .25rem 1rem; margin-bottom: 1.2rem;
  font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em;
  background: rgba(242,176,30,0.14); color: var(--gold); border-radius: 50px; border: 1px solid rgba(242,176,30,0.28);
}
.institutional-title { font-size: clamp(1.8rem, 4.5vw, 2.7rem); font-weight: 600; line-height: 1.1; margin-bottom: 1.2rem; color: #fff; }
.institutional-title em { font-style: normal; color: var(--gold); }
.institutional-desc { font-size: 1rem; line-height: 1.8; color: rgba(255,255,255,0.78); margin-bottom: 2rem; }
.institutional-items { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-bottom: 2.5rem; }
.institutional-items span { padding: .45rem 1.1rem; font-size: .85rem; color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 50px; }

/* 14. CONTACT (dentro de cotización) */
.contact-cards { display: grid; grid-template-columns: 1fr; gap: .7rem; margin-top: 1.8rem; scroll-margin-top: 80px; }
.contact-card { display: flex; align-items: center; gap: .9rem; padding: .9rem 1.1rem; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; text-align: left; transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
a.contact-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(18,36,78,0.1); }
.contact-card-icon { flex-shrink: 0; color: var(--accent); }
.contact-card-icon--wa { color: #128c4b; }
.contact-card-label { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-mute); }
.contact-card-value { display: block; font-family: var(--heading); font-size: .95rem; font-weight: 500; color: var(--ink); }

/* 15. QUOTE FORM */
.quote { padding: 2.5rem var(--gutter) 4.5rem; background: var(--bg-warm); }
.quote-inner { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 2.2rem; align-items: start; }
@media (min-width: 900px) { .quote-inner { grid-template-columns: 5fr 6fr; gap: 3.5rem; } }
.quote-form { display: grid; gap: 1rem; background: var(--paper); border-radius: 20px; padding: 1.6rem; box-shadow: 0 6px 36px rgba(18,36,78,0.07); }
@media (min-width: 640px) { .quote-form { padding: 2rem; } }
.quote-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .quote-row { grid-template-columns: 1fr 1fr; } }
.quote-field { display: flex; flex-direction: column; gap: .4rem; }
.quote-field span { font-size: .78rem; font-weight: 500; color: var(--ink-soft); }
.quote-field input, .quote-field select, .quote-field textarea { font: inherit; font-size: 1rem; padding: .75rem 1rem; border: 1px solid rgba(18,36,78,0.18); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.quote-field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2312244E' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}
.quote-field input:focus-visible, .quote-field select:focus-visible, .quote-field textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 0; border-color: transparent; }
.quote-field input:hover, .quote-field select:hover, .quote-field textarea:hover { border-color: rgba(18,36,78,0.4); }
.quote-submit { justify-self: start; margin-top: .25rem; }
@media (max-width: 560px) { .quote-submit { width: 100%; } }

/* 16. FOOTER */
.footer { background: var(--dark-2); padding: 3rem var(--gutter) 2.5rem; color: rgba(255,255,255,0.7); }
.footer-inner { max-width: 1080px; margin: 0 auto 2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2.5rem; }
.footer-logo { height: 44px; width: auto; filter: brightness(0) invert(1); margin-bottom: .6rem; }
.footer-tagline { font-size: .82rem; color: rgba(255,255,255,0.55); }
.footer-links { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }
.footer-links a { font-size: .9rem; padding: .3rem 0; color: rgba(255,255,255,0.75); transition: color .25s; }
.footer-links a:hover { color: var(--gold); }
.footer-wa { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.1rem; border-radius: 50px; border: 1px solid rgba(255,255,255,0.2); color: #fff; font-weight: 600; font-size: .92rem; transition: background .25s, border-color .25s; }
.footer-wa:hover { background: #1fb457; border-color: #1fb457; }
.footer-copy { max-width: 1080px; margin: 0 auto; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: .78rem; color: rgba(255,255,255,0.45); }

/* 17. WHATSAPP FLOAT + BARRA MÓVIL */
.whatsapp-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 400;
  display: flex; align-items: center; gap: .5rem;
  padding: 0; width: 58px; height: 58px; justify-content: center; background: #1fb457; color: #fff; border-radius: 50px;
  font-weight: 600; font-size: .9rem; box-shadow: 0 8px 28px rgba(37,211,102,0.4);
  transition: background-color .3s, transform .35s var(--ease-spring); animation: waPulse 2.4s var(--ease-out) 3;
}
.whatsapp-float:hover { background: var(--wa-dark); transform: translateY(-3px) scale(1.04); animation: none; color: #fff; }
.whatsapp-float span { display: none; }
@keyframes waPulse { 0%, 100% { box-shadow: 0 8px 28px rgba(37,211,102,0.4); } 50% { box-shadow: 0 8px 34px rgba(37,211,102,0.65), 0 0 0 10px rgba(37,211,102,0.12); } }
@media (max-width: 540px) { .whatsapp-float { display: none; } }

.mobile-wa-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 450; display: none; }
@media (max-width: 540px) {
  .mobile-wa-bar { display: block; }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
}
.mobile-wa-bar a {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  background: #1fb457; color: #fff; padding: .95rem; padding-bottom: calc(.95rem + env(safe-area-inset-bottom, 0px)); font-weight: 600; font-size: 1rem;
}
.mobile-wa-bar a:active { background: var(--wa-dark); }

/* 18. SCROLL PROGRESS + SKIP */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--gold)); transform-origin: 0 0; transform: scaleX(0); z-index: 600; }
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--accent); color: #fff; z-index: 9999; border-radius: 8px; font-weight: 500; }
.skip-link:focus { top: 1rem; }

/* 19. REVEAL */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* 20. BREAKPOINTS */
@media (min-width: 540px) { :root { --gutter: 2rem; } }
@media (min-width: 768px) { :root { --gutter: 2.5rem; } }
@media (min-width: 960px) { :root { --gutter: 3rem; } }

/* 21. REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none; }
  .js .reveal { transform: none; }
  .whatsapp-float { animation: none; }
  .category-card:hover, .contact-card:hover, .photo-thumb:hover, .gallery-thumb:hover, .btn:hover { transform: none; }
  html { scroll-behavior: auto; }
}

/* 22. INICIO VISUAL */
.home-inner { max-width: 1180px; margin: 0 auto; }
.home-cats { padding: 3.5rem var(--gutter) 3rem; background: var(--bg); scroll-margin-top: 56px; }
.home-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 2rem; margin-bottom: 1.6rem; }
.home-head .section-heading { margin: 0; }
.cat-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
@media (min-width: 900px) { .cat-tiles { grid-template-columns: repeat(4, 1fr); gap: 1.1rem; } }
.cat-tile { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: var(--dark); color: #fff; box-shadow: 0 6px 24px rgba(18,36,78,0.12); transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out); }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,28,61,0) 30%, rgba(14,28,61,0.55) 62%, rgba(14,28,61,0.94) 100%); }
.cat-tile-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; flex-direction: column; gap: .2rem; padding: 1.1rem 1.1rem 1.2rem; }
.cat-tile-name { font-family: var(--heading); font-weight: 600; font-size: clamp(1.05rem, 2.2vw, 1.4rem); line-height: 1.15; }
.cat-tile-meta { font-size: .8rem; color: rgba(255,255,255,0.8); }
.cat-tile-cta { align-self: flex-start; margin-top: .6rem; padding: .35rem .9rem; border-radius: 50px; background: var(--gold); color: var(--dark-2); font-size: .8rem; font-weight: 600; transition: transform .3s var(--ease-out); }
.cat-tile:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(18,36,78,0.25); }
.cat-tile:hover img { transform: scale(1.06); }
.cat-tile:hover .cat-tile-cta { transform: translateX(4px); }
.cat-tile:focus-visible { outline-color: var(--gold); outline-offset: 4px; }
@media (max-width: 420px) { .cat-tile-meta { font-size: .72rem; } .cat-tile-body { padding: .8rem; } }

.mosaic-section { padding: 0 var(--gutter) 4rem; background: var(--bg); }
.mosaic { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; gap: .6rem; }
@media (min-width: 720px) {
  .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: .8rem; }
  .mosaic-item:nth-child(1) { grid-row: span 2; }
  .mosaic-item:nth-child(4) { grid-column: span 2; }
  .mosaic-item:nth-child(6) { grid-column: span 2; }
}
.mosaic-item { display: block; border-radius: 16px; overflow: hidden; background: var(--bg-2); }
.mosaic-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.mosaic-item:hover img { transform: scale(1.06); }

/* 23. OTRAS CATEGORÍAS (pie de las páginas interiores) */
.others { padding: 3rem var(--gutter) 4rem; background: var(--bg-warm); }
.others-inner { max-width: 1080px; margin: 0 auto; }
.others-title { font-size: 1.3rem; font-weight: 600; margin-bottom: 1rem; color: var(--ink); }
.others-grid { display: grid; grid-template-columns: 1fr; gap: .8rem; }
@media (min-width: 760px) { .others-grid { grid-template-columns: repeat(3, 1fr); } }
.other-card { display: flex; align-items: center; gap: .9rem; padding: .6rem .9rem .6rem .6rem; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out); }
.other-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(18,36,78,0.12); }
.other-card img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.other-card strong { display: block; font-family: var(--heading); font-weight: 600; color: var(--ink); line-height: 1.2; }
.other-card small { color: var(--ink-mute); font-size: .8rem; }
.other-arrow { margin-left: auto; color: var(--accent); font-weight: 600; }
