/* DISPROQUILIM Website kit — local styles on top of colors_and_type.css */
@import url('colors_and_type.css');

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { font-family: var(--font-sans); color: var(--fg2); background: var(--bg-light); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 48px; }

/* -------- Sections -------- */
.section { padding: 96px 0; position: relative; overflow: hidden; }
.section--white { background: var(--bg-light); }
.section--page { background: var(--bg-page); }
.section--dark { background: var(--bg-dark); color: var(--fg1-on-dark); }
.section--dark .text-eyebrow,
.section--dark .eyebrow-rule__line,
.section--dark .eyebrow-rule__dot { color: var(--accent); }

/* Section header */
.sec-head { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; margin: 0 auto 56px; max-width: 880px; }
.sec-head__title { font-family: var(--font-display); font-size: 40px; font-weight: 800; line-height: 1.15; letter-spacing: -0.015em; color: var(--fg1); }
.sec-head__title .accent { color: var(--accent-strong); }
.sec-head__title .grad {
  background: linear-gradient(135deg, #1916A8 0%, #1299D5 50%, #20E7AF 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sec-head__subtitle { font-size: 16px; line-height: 1.6; color: var(--fg2); max-width: 680px; }
.section--dark .sec-head__title { color: var(--fg1-on-dark); }
.section--dark .sec-head__title .grad {
  background: linear-gradient(135deg, #1299D5 0%, #20E7AF 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section--dark .sec-head__subtitle { color: var(--fg2-on-dark); }

/* -------- Eyebrow rule -------- */
.eyebrow-rule { display: inline-flex; align-items: center; gap: 6px; }
.eyebrow-rule__line { width: 36px; height: 2px; background: var(--accent); border-radius: 2px; }
.eyebrow-rule__dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); }

/* -------- Buttons -------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-sans); font-size: 16px; font-weight: 600; padding: 14px 24px; border-radius: 14px; transition: transform 150ms var(--ease-out), box-shadow 150ms var(--ease-out), filter 150ms var(--ease-out); white-space: nowrap; line-height: 1; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); filter: brightness(0.94); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Primary — brand gradient */
.btn--primary {
  background: linear-gradient(135deg, #152FBE 0%, #1299D5 50%, #20E7AF 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(18,153,213,0.35);
}
.btn--primary:hover { box-shadow: 0 12px 30px rgba(18,153,213,0.5); }

/* Secondary — outlined */
.btn--secondary { background: #fff; color: var(--fg1); border: 1.5px solid var(--border-soft); }
.btn--secondary:hover { border-color: var(--accent-strong); color: var(--accent-strong); }

/* Ghost — for dark backgrounds */
.btn--ghost-white { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.4); }
.btn--ghost-white:hover { border-color: var(--accent); color: var(--accent); }

.btn--ghost-aqua { background: transparent; color: var(--accent-strong); border: 1.5px solid var(--accent); }
.btn--ghost-aqua:hover { background: var(--accent-soft); }

/* -------- Cards -------- */
.card-light {
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out), border-color 220ms var(--ease-out);
}
.card-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--border-aqua); }

.card-dark {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(140,200,255,0.18);
  border-radius: 20px;
  padding: 28px 24px;
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 220ms var(--ease-out), border-color 220ms var(--ease-out);
}
.card-dark:hover { transform: translateY(-2px); border-color: var(--border-aqua); }

/* -------- Icon orbs -------- */
.orb { width: 56px; height: 56px; border-radius: 999px; display: flex; align-items: center; justify-content: center; flex: none; }
.orb--flat-aqua { background: var(--accent); color: #0B3D2A; }
.orb--gradient {
  background: linear-gradient(140deg, #1916A8 0%, #1299D5 50%, #20E7AF 100%);
  color: #fff;
  box-shadow: 0 14px 30px rgba(18,153,213,0.32), 0 4px 10px rgba(25,22,168,0.14);
  position: relative;
}
/* soft turquoise shadow-puddle below-right, like the reference mockups */
.orb--gradient::before {
  content: ''; position: absolute; right: -10px; bottom: -10px;
  width: 70%; height: 70%; border-radius: 999px;
  background: radial-gradient(circle, rgba(32,231,175,0.45), transparent 70%);
  filter: blur(8px); z-index: -1; pointer-events: none;
}
.orb--gradient::after {
  content: ''; position: absolute; inset: -7px; border-radius: 999px;
  background: radial-gradient(circle, rgba(32,231,175,0.22), transparent 70%);
  z-index: -1; pointer-events: none;
}

/* Floating gradient-ring orb — matches the reference mockups (Trust/Solutions/Products/Team) */
.orb--soft {
  position: relative;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(155deg, rgba(32,231,175,0.9) 0%, rgba(18,153,213,0.5) 48%, rgba(232,238,245,0.9) 100%) border-box;
  border: 1.5px solid transparent;
  color: var(--color-azul-cientifico);
  box-shadow: 0 10px 22px rgba(25,22,168,0.10), 0 2px 6px rgba(18,153,213,0.07);
}
.orb--soft::before {
  content: ''; position: absolute; inset: -6px; border-radius: 999px;
  border: 1px solid rgba(32,231,175,0.16);
  background: radial-gradient(circle at 50% 32%, rgba(32,231,175,0.12), transparent 62%);
  z-index: -1; pointer-events: none;
}

.orb--outline { background: transparent; border: 1.5px solid var(--accent); color: var(--accent-strong); }
.orb--outline.on-dark { background: rgba(32,231,175,0.05); color: var(--accent); }

.orb svg { width: 26px; height: 26px; }
.orb--sm { width: 44px; height: 44px; }
.orb--sm svg { width: 20px; height: 20px; }
.orb--lg { width: 72px; height: 72px; }
.orb--lg svg { width: 32px; height: 32px; }

/* -------- Form field -------- */
.field {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  transition: border-color 150ms, box-shadow 150ms;
}
.field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(32,231,175,0.14); }
.field > svg { width: 20px; height: 20px; color: var(--color-azul-cian); flex: none; }
.field-content { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: 2px; }
.field-label { font-size: 11px; color: var(--fg3); font-weight: 500; }
.field-input { font-size: 14px; color: var(--fg1); font-weight: 500; border: none; outline: none; background: transparent; width: 100%; }
.field-input::placeholder { color: var(--fg3); font-weight: 400; }
textarea.field-input { resize: vertical; min-height: 64px; font-family: var(--font-sans); line-height: 1.5; }
select.field-input { -webkit-appearance: none; appearance: none; }

/* -------- Helpers -------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.product-photo {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
  background: linear-gradient(135deg, #F2F4F7 0%, #E0FBF1 100%);
}

/* -------- Hero entrance animations -------- */
.hero-enter-left > * {
  opacity: 0;
  animation: hero-slide-from-left 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-enter-left > *:nth-child(1) { animation-delay: 0.05s; }
.hero-enter-left > *:nth-child(2) { animation-delay: 0.14s; }
.hero-enter-left > *:nth-child(3) { animation-delay: 0.23s; }
.hero-enter-left > *:nth-child(4) { animation-delay: 0.32s; }
.hero-enter-left > *:nth-child(5) { animation-delay: 0.41s; }

/* -------- Hero layered scene -------- */
.hero-scene-wrap {
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: hero-slide-from-right 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

.hero-scene {
  position: relative;
  width: 130%;
  max-width: none;
  aspect-ratio: 512 / 578;
  transform: translateX(-100px);
  isolation: isolate;
  background: transparent;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.hero-parallax {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  transform-style: preserve-3d;
  will-change: transform;
}

.hero-parallax--table { z-index: 1; }
.hero-parallax--bubble { z-index: 2; }
.hero-parallax--grid { z-index: 3; }
.hero-parallax--line { z-index: 4; }

.hero-parallax--product,
.hero-parallax--reflect {
  position: absolute;
  inset: 0;
}

.hero-parallax--product { z-index: 2; }
.hero-parallax--reflect { z-index: 1; }

.hero-scene__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  pointer-events: none;
  display: block;
}

.hero-scene__table { z-index: 1; animation: hero-slide-from-right 0.85s ease-out 0.25s both; }
.hero-scene__circle-tl {
  z-index: 2;
  animation:
    hero-drift 9s ease-in-out 1.1s infinite,
    hero-pulse 5s ease-in-out 1.1s infinite,
    hero-slide-from-right 0.85s ease-out 0.3s both;
}
.hero-scene__circle-br {
  z-index: 2;
  animation:
    hero-drift-reverse 11s ease-in-out 1.2s infinite,
    hero-pulse 6s ease-in-out 1.2s infinite,
    hero-slide-from-right 0.85s ease-out 0.35s both;
}
.hero-scene__grid {
  z-index: 3;
  animation:
    hero-grid-glow 4s ease-in-out 1.1s infinite,
    hero-slide-from-right 0.8s ease-out 0.4s both;
}
.hero-scene__line {
  z-index: 4;
  animation:
    hero-line-pulse 3.5s ease-in-out 1.1s infinite,
    hero-slide-from-right 0.8s ease-out 0.45s both;
}

.hero-scene__products {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: transparent;
}

.hero-scene__product {
  z-index: 2;
  opacity: 0;
  animation:
    hero-drop-in 1s cubic-bezier(0.34, 1.25, 0.64, 1) 0.5s forwards,
    hero-float 5.5s ease-in-out 1.5s infinite;
}
.hero-scene__reflect {
  z-index: 1;
  opacity: 0;
  animation:
    hero-rise-in-bottom 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.65s forwards,
    hero-reflect-shimmer 4s ease-in-out 1.6s infinite;
}

@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes hero-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(8px, -10px) scale(1.04); }
}

@keyframes hero-drift-reverse {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-10px, 8px) scale(1.05); }
}

@keyframes hero-pulse {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 1; }
}

@keyframes hero-grid-glow {
  0%, 100% { opacity: 0.65; filter: brightness(1); }
  50% { opacity: 1; filter: brightness(1.15); }
}

@keyframes hero-line-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.95; }
}

@keyframes hero-reflect-shimmer {
  0%, 100% { opacity: 0.82; }
  50% { opacity: 0.55; }
}

@keyframes hero-slide-from-left {
  from { opacity: 0; transform: translateX(-56px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes hero-slide-from-right {
  from { opacity: 0; transform: translateX(56px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes hero-drop-in {
  from { opacity: 0; transform: translateY(-130px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-rise-in-bottom {
  from { opacity: 0; transform: translateY(90px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-enter-left > *,
  .hero-scene-wrap,
  .hero-scene__table,
  .hero-scene__circle-tl,
  .hero-scene__circle-br,
  .hero-scene__grid,
  .hero-scene__line,
  .hero-scene__product,
  .hero-scene__reflect {
    animation: hero-fade-in 0.5s ease-out both !important;
    opacity: 1;
    transform: none;
  }

  .hero-parallax {
    transition: none !important;
    transform: none !important;
  }
}
