/* ============================================================
   Torlika 3D — layout / sections
   ============================================================ */

/* background texture: subtle grid + gradient glow blobs */
.bg-fx { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bg-fx .grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 78%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: var(--glow); }
.blob.cool { width: 46vw; height: 46vw; background: var(--grad-cool); top: -12vw; left: -10vw; }
.blob.warm { width: 42vw; height: 42vw; background: var(--grad-warm); top: 24vw; right: -14vw; }
.blob.duo  { width: 40vw; height: 40vw; background: var(--grad-duo); bottom: -16vw; left: 30vw; opacity: calc(var(--glow) * .7); }

main { position: relative; z-index: 1; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(16px) saturate(1.3);
  background: var(--nav-bg);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 38px; width: auto; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.brand-name b { font-weight: 700; }
.brand-name .d { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-weight: 500; font-size: 15px; color: var(--text-dim);
  padding: 9px 15px; border-radius: 100px; transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-burger { display: none; width: 44px; height: 44px; border: 1px solid var(--border-2); background: var(--surface-2); border-radius: 12px; cursor: pointer; align-items: center; justify-content: center; color: var(--text); }
.nav-burger svg { width: 22px; height: 22px; }

/* mobile menu */
.mobile-menu { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(60px, 9vw, 120px); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 { font-size: clamp(42px, 6.6vw, 80px); letter-spacing: -.035em; }
.hero h1 .grad-text { display: inline; }
.hero .lead { margin-top: 26px; font-size: clamp(17px, 2vw, 21px); color: var(--text-dim); max-width: 30ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 36px; }
.hero-trust .t { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--text-dim); }
.hero-trust .t svg { width: 19px; height: 19px; color: var(--accent-solid); flex: none; }

/* hero visual */
.hero-visual { position: relative; aspect-ratio: 1 / 1; }
.hero-card {
  position: absolute; inset: 6% 4% 6% 8%;
  border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow); overflow: hidden;
  transform: rotate(-3deg);
}
.hero-card image-slot { --is-frame: transparent; }
.hero-cubes {
  position: absolute; z-index: 3; width: clamp(96px, 16vw, 168px);
  right: -2%; top: -6%;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.35));
  animation: float 6s var(--ease) infinite;
}
.hero-chip {
  position: absolute; z-index: 4;
  display: flex; align-items: center; gap: 9px;
  padding: 11px 16px; border-radius: 100px;
  background: var(--surface-solid); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); font-weight: 600; font-size: 14px;
  font-family: var(--font-display);
}
.hero-chip svg { width: 18px; height: 18px; }
.hero-chip.c1 { left: -6%; top: 22%; animation: float 7s var(--ease) infinite; }
.hero-chip.c2 { right: -4%; bottom: 16%; animation: float 5.5s var(--ease) .6s infinite; }
.hero-chip .dot { width: 22px; height: 22px; border-radius: 7px; background: var(--grad-cool); display: grid; place-items: center; color: #07241f; }
.hero-chip.c2 .dot { background: var(--grad-warm); color: #3a1300; }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .hero-cubes, .hero-chip { animation: none !important; } }
[data-anim="off"] .hero-cubes, [data-anim="off"] .hero-chip { animation: none !important; }

/* logo-strip / brands trust (optional small) */
.minibar { margin-top: clamp(40px, 6vw, 72px); display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; color: var(--text-faint); font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; }
.minibar .sep { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .5; }

/* ============================================================
   shared section padding
   ============================================================ */
.band { padding: clamp(64px, 9vw, 120px) 0; }
.band.alt { background: var(--bg-2); }

/* ============================================================
   SERVICIOS
   ============================================================ */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 54px; }
.svc-card {
  position: relative; padding: 34px 30px 32px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
  overflow: hidden;
}
.svc-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--accent-grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s; pointer-events: none; }
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.svc-card:hover::after { opacity: 1; }
.svc-icon {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  color: #fff; margin-bottom: 22px;
}
.svc-icon svg { width: 28px; height: 28px; }
.svc-icon.cool { background: var(--grad-cool); color: #06302a; box-shadow: 0 12px 28px -12px var(--brand-cyan); }
.svc-icon.warm { background: var(--grad-warm); box-shadow: 0 12px 28px -12px var(--brand-pink); }
.svc-icon.duo  { background: var(--grad-duo); box-shadow: 0 12px 28px -12px var(--brand-magenta); }
.svc-card h3 { font-size: 23px; margin-bottom: 12px; }
.svc-card p { color: var(--text-dim); font-size: 16px; }
.svc-num { position: absolute; top: 26px; right: 30px; font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); letter-spacing: .1em; }

/* ============================================================
   FEATURE / ATENCIÓN
   ============================================================ */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 84px); align-items: center; }
.feature-quote { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.16; letter-spacing: -.02em; }
.feature-points { margin-top: 38px; display: flex; flex-direction: column; gap: 18px; }
.fp { display: flex; gap: 16px; align-items: flex-start; }
.fp-ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--accent-solid); }
.fp-ic svg { width: 20px; height: 20px; }
.fp h4 { font-size: 17.5px; margin-bottom: 3px; }
.fp p { font-size: 15px; color: var(--text-dim); }
.feature-visual { position: relative; aspect-ratio: 4/5; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--surface); }

/* ============================================================
   GALERÍA
   ============================================================ */
.gallery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.gallery-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 168px; gap: 16px; margin-top: 48px;
}
.g-cell { border-radius: var(--r-md); overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.g-cell.big   { grid-column: span 3; grid-row: span 2; }
.g-cell.tall  { grid-column: span 2; grid-row: span 2; }
.g-cell.wide  { grid-column: span 3; grid-row: span 1; }
.g-cell.sq    { grid-column: span 2; grid-row: span 1; }
.g-cell.sq3   { grid-column: span 3; grid-row: span 1; }
.g-cell image-slot { --is-frame: transparent; }

/* ============================================================
   CONTACTO
   ============================================================ */
.contact-card {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl); padding: clamp(40px, 6vw, 76px);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  text-align: center;
}
.contact-card .cc-glow { position: absolute; inset: 0; background: var(--accent-grad); opacity: .14; pointer-events: none; }
.contact-card .cc-glow.b2 { background: var(--grad-cool); opacity: .1; mix-blend-mode: normal; }
.contact-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.contact-card h2 { font-size: clamp(32px, 5vw, 58px); }
.contact-card p { margin-top: 18px; font-size: clamp(16px, 1.9vw, 20px); color: var(--text-dim); }
.contact-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.contact-mail { margin-top: 26px; font-family: var(--font-mono); font-size: 14px; color: var(--text-dim); }
.contact-mail a { color: var(--accent-solid); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--border); padding: clamp(48px, 6vw, 76px) 0 38px; position: relative; z-index: 1; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer .brand { margin-bottom: 18px; }
.footer-tag { color: var(--text-dim); font-size: 15px; max-width: 30ch; }
.footer-col h5 { font-family: var(--font-display); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 16px; }
.footer-col a { display: flex; align-items: center; gap: 10px; color: var(--text-dim); font-size: 15px; padding: 6px 0; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-col a svg { width: 18px; height: 18px; flex: none; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; color: var(--text-faint); font-size: 13.5px; font-family: var(--font-mono); }

/* social pills */
.socials { display: flex; gap: 10px; margin-top: 4px; }
.socials a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); transition: transform .25s var(--ease), border-color .25s, color .25s; }
.socials a:hover { transform: translateY(-3px); border-color: var(--accent-solid); }
.socials a svg { width: 20px; height: 20px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 460px; margin: 0 auto; width: 100%; }
  .svc-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-visual { max-width: 420px; }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .g-cell.big { grid-column: span 4; }
  .g-cell.tall, .g-cell.sq, .g-cell.wide, .g-cell.sq3 { grid-column: span 2; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-col.brandcol { grid-column: 1 / -1; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}
@media (max-width: 600px) {
  .nav-right .btn-primary { display: none; }
  .nav-inner { height: 66px; }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .g-cell.big, .g-cell.tall, .g-cell.sq, .g-cell.wide, .g-cell.sq3 { grid-column: span 2; grid-row: span 1; }
  .g-cell.big { grid-row: span 2; }
  .hero-cta .btn, .contact-cta .btn { flex: 1 1 auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200; background: var(--bg);
  flex-direction: column; padding: 24px var(--gut);
  transform: translateY(-100%); transition: transform .4s var(--ease); display: flex; visibility: hidden;
}
.mobile-menu.open { transform: translateY(0); visibility: visible; }
.mobile-menu .mm-top { display: flex; justify-content: space-between; align-items: center; height: 74px; margin: 0 calc(-1 * 0px); }
.mobile-menu .mm-links { display: flex; flex-direction: column; gap: 6px; margin-top: 28px; }
.mobile-menu .mm-links a { font-family: var(--font-display); font-size: 28px; font-weight: 600; padding: 12px 0; border-bottom: 1px solid var(--border); }
.mobile-menu .btn { margin-top: 28px; }
.mm-close { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border-2); background: var(--surface-2); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.mm-close svg { width: 22px; height: 22px; }

/* ============================================================
   ANIMALITOS 3D — bloque destacado en el home
   ============================================================ */
.animalitos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.animalitos-lead { margin-top: 22px; font-size: clamp(16px, 1.9vw, 19px); color: var(--text-dim); max-width: 40ch; }
.animalitos-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.atag { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 100px; background: var(--surface-2); border: 1px solid var(--border); font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--text-dim); }
.atag svg { color: var(--accent-solid); flex: none; }
.animalitos-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }

/* cluster of overlapping photo cards */
.animalitos-cluster { position: relative; display: block; aspect-ratio: 1 / 1; width: 100%; text-decoration: none; }
.acard { position: absolute; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.acard img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acard.a0 { width: 46%; height: 46%; left: 2%;  top: 4%;   transform: rotate(-5deg); z-index: 4; }
.acard.a1 { width: 40%; height: 40%; right: 4%; top: 0%;   transform: rotate(4deg);  z-index: 3; }
.acard.a2 { width: 34%; height: 34%; left: 0%;  bottom: 6%;transform: rotate(3deg);  z-index: 3; }
.acard.a3 { width: 42%; height: 42%; right: 2%; bottom: 2%;transform: rotate(-3deg); z-index: 5; }
.acard.a4 { width: 28%; height: 28%; left: 33%; top: 30%;  transform: rotate(6deg);  z-index: 6; }
.acard.a5 { width: 26%; height: 26%; right: 30%;bottom: 30%;transform: rotate(-7deg); z-index: 2; opacity: .9; }
.animalitos-cluster:hover .acard.a0 { transform: rotate(-7deg) translate(-4px,-4px); }
.animalitos-cluster:hover .acard.a3 { transform: rotate(-1deg) translate(4px,4px); }
.animalitos-cluster:hover .acard.a4 { transform: rotate(2deg) scale(1.05); }
.animalitos-badge { position: absolute; z-index: 8; left: 50%; bottom: -14px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 100px; background: var(--accent-grad); color: #3a1300; font-family: var(--font-display); font-weight: 700; font-size: 14px; box-shadow: var(--shadow-sm); white-space: nowrap; }
.animalitos-badge svg { width: 17px; height: 17px; }
[data-anim="on"] .acard.a4 { animation: float 6.5s var(--ease) infinite; }
[data-anim="on"] .acard.a1 { animation: float 7.5s var(--ease) .5s infinite; }
[data-anim="off"] .acard { animation: none !important; }

@media (max-width: 940px) {
  .animalitos-grid { grid-template-columns: 1fr; gap: 52px; }
  .animalitos-cluster { max-width: 460px; margin: 0 auto; }
}
