/* CreceFácil · glass controls. Inspired by Distinto's translucent navigation.
   Local CSS only: no canvas, pointer tracking or continuously running animation. */
:root {
  --glass-edge: rgba(255, 255, 255, .92);
  --glass-stroke: rgba(37, 88, 102, .16);
  --glass-light: inset 0 1px 1px rgba(255, 255, 255, .98), inset 0 -1px 1px rgba(79, 123, 133, .1);
  --glass-shadow: 0 3px 6px rgba(24, 57, 73, .035), 0 10px 22px -16px rgba(18, 62, 79, .28);
}

/* The shared material has a bright lip, a translucent body and a fine rim. */
.nav-cluster,
.header-search,
.hero-search,
.hero-chips > a,
.mobile-toggle,
.close-search {
  background-color: #f4f9f8;
  background-image: linear-gradient(155deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.46) 36%, rgba(216,237,233,.32) 73%, rgba(255,255,255,.76) 100%);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-light), 0 0 0 1px var(--glass-stroke), var(--glass-shadow);
  transition: background-color .22s var(--ease), box-shadow .22s var(--ease), transform .22s var(--ease), color .22s;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav-cluster,.header-search,.hero-search,.hero-chips > a,.mobile-toggle,.close-search {
    background-color: rgba(245, 250, 249, .2);
    -webkit-backdrop-filter: blur(16px) saturate(1.45);
    backdrop-filter: blur(16px) saturate(1.45);
  }
}

/* The grouped menu keeps its layout; the material and inner states change. */
.nav-cluster { border-radius: 999px; padding: 5px; gap: 2px; }
.nav-item { border-radius: 999px; color: #3b5364; }
.nav-item:hover,.nav-item[aria-expanded=true],.nav-item:focus-visible {
  background: linear-gradient(155deg,rgba(255,255,255,.88),rgba(192,233,225,.38));
  color: #155a56;
  box-shadow: inset 0 1px 1px white, inset 0 0 0 1px rgba(255,255,255,.75), 0 1px 4px #123c4910;
}
.header-search { border-radius: 999px; color: #496171; padding-left: 15px; }
.header-search kbd {
  background: rgba(255,255,255,.48);
  border-color: rgba(126,156,163,.18);
  box-shadow: inset 0 1px 0 #fff;
  border-radius: 6px;
}
.header-secondary { color: #3d536b; transition: color .18s; }
.header-secondary:hover { color: var(--teal); }

/* Primary: deep blue glass, with a separate translucent arrow lens. */
.button-dark,.hero-search button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: #123659;
  background-image:
    radial-gradient(ellipse at 95% 100%, rgba(0,200,179,.18), transparent 65%),
    linear-gradient(156deg, rgba(66,98,126,.9), rgba(16,42,74,.97) 50%, rgba(8,31,73,.98));
  color: #fff;
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.46), inset 0 -2px 3px rgba(2,18,40,.3), 0 0 0 1px rgba(9,41,64,.26), 0 4px 7px rgba(18,51,65,.12), 0 11px 23px -16px rgba(7,43,62,.65);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background-color .22s;
}
.button-dark { min-height: 45px; padding: 7px 8px 7px 19px; gap: 14px; border-radius: 999px; }
.button-dark::before,.hero-search button::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(163deg, rgba(255,255,255,.19), rgba(255,255,255,.055) 40%, transparent 41%);
  pointer-events: none;
  transition: opacity .22s;
}
.button-dark::after,.hero-search button::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(112deg, transparent 20%, rgba(255,255,255,.22) 45%, transparent 68%);
  opacity: 0;
  transform: translateX(-28%);
  pointer-events: none;
  transition: opacity .3s, transform .4s var(--ease);
}
.button-dark > .icon {
  width: 27px; height: 27px; padding: 5px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.24);
  background: linear-gradient(145deg,rgba(255,255,255,.18),rgba(255,255,255,.035));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
  transition: transform .22s var(--ease);
}

/* The form is a frosted sleeve; its arrow is a darker turquoise glass lens. */
.hero-search {
  border-radius: 999px;
  padding: 8px 9px 8px 25px;
  min-height: 68px;
  background-image: linear-gradient(160deg,rgba(255,255,255,.97),rgba(255,255,255,.35) 55%,rgba(225,244,239,.5));
  box-shadow: inset 0 1px 1px #fff, inset 0 -1px 1px rgba(74,120,126,.1), 0 0 0 1px rgba(99,143,146,.17), 0 8px 13px -9px rgba(22,69,77,.2), 0 18px 36px -25px rgba(18,76,85,.3);
}
.hero-search:focus-within {
  border-color: #fff;
  box-shadow: inset 0 1px 1px #fff, inset 0 -1px 1px #7aafa529, 0 0 0 2px #398d80, 0 13px 30px -20px #194d5959;
}
.hero-search input::placeholder { color: #607879; }
.hero-search button {
  width: 48px; height: 48px; border-radius: 50%;
  background-color: #08625a;
  background-image: radial-gradient(ellipse at 95% 100%,rgba(0,200,179,.24),transparent 64%), linear-gradient(155deg,#34887e,#07685f 52%,#074d49);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.6), inset 0 -2px 3px #023f4a47, 0 0 0 1px #0c6c646b, 0 4px 8px #174f5524;
}
.hero-search button > .icon { width: 24px; height: 24px; transition: transform .22s var(--ease); }

/* Secondary: clear glass capsules with an inset icon, not a second primary CTA. */
.hero-chips { gap: 12px; margin-top: 20px; }
.hero-chips > a {
  min-height: 44px;
  padding: 7px 15px 7px 8px;
  gap: 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  color: #405d65;
}
.hero-chips > a > .icon {
  width: 27px; height: 27px; padding: 5px;
  border-radius: 50%;
  color: #236c64;
  border: 1px solid rgba(118,172,159,.18);
  background: linear-gradient(150deg,rgba(255,255,255,.82),rgba(188,222,211,.26));
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px #3b6f6306;
}
.mobile-toggle,.close-search { border-radius: 50%; color: #356c64; }

/* Pointer and keyboard states share the same material response. */
.button-dark:focus-visible,.hero-search button:focus-visible {
  outline: 2px solid var(--teal); outline-offset: 5px;
}
.button-dark:focus-visible::after,.hero-search button:focus-visible::after { opacity: .7; transform: translateX(28%); }
.hero-chips > a:focus-visible,.header-search:focus-visible,.mobile-toggle:focus-visible,.close-search:focus-visible {
  background-color: rgba(219,242,235,.6);
}
@media (hover:hover) and (pointer:fine) {
  .button-dark:hover {
    background-color: #214b65;
    background-image: radial-gradient(ellipse at 95% 100%,rgba(0,200,179,.23),transparent 65%),linear-gradient(156deg,rgba(66,98,126,.9),rgba(16,42,74,.97) 50%,rgba(8,31,73,.98));
    transform: translateY(-2px);
    box-shadow: inset 0 1px 1px #ffffff88,inset 0 -2px 3px #0212284d,0 0 0 1px #1d58605c,0 6px 10px #1233411f,0 15px 28px -17px #072b3e8c;
  }
  .hero-search button:hover {
    background-color: #0a7469;
    background-image: radial-gradient(ellipse at 95% 100%,rgba(0,200,179,.28),transparent 64%),linear-gradient(155deg,#34887e,#07685f 52%,#074d49);
    transform: translateY(-1px);
  }
  .button-dark:hover::after,.hero-search button:hover::after { opacity: .7; transform: translateX(28%); }
  .button-dark:hover > .icon { transform: rotate(7deg); }
  .hero-search button:hover > .icon { transform: translateY(-1px); }
  .hero-chips > a:hover,.header-search:hover,.mobile-toggle:hover,.close-search:hover {
    background-color: rgba(221,244,238,.48);
    border-color: #fff;
    box-shadow: var(--glass-light),0 0 0 1px rgba(88,155,142,.3),0 4px 8px #18394908,0 14px 25px -17px #124f5547;
    color: #155a56;
    transform: translateY(-2px);
  }
}
.button-dark:active,.hero-search button:active,.hero-chips > a:active,.header-search:active,.mobile-toggle:active,.close-search:active {
  transform: translateY(1px) scale(.98);
  transition-duration: .08s;
}

@media(max-width:1220px) { .header-inner { gap: 16px; } }
@media(max-width:1000px) { .header-search { padding: 11px; } }
@media(max-width:760px) {
  .nav-cluster { border-radius: 22px; padding: 9px; }
  .nav-item { border-radius: 15px; }
  .main-nav[data-open=true] .nav-cluster {
    background-color: rgba(245,251,249,.96);
    box-shadow: var(--glass-light),0 0 0 1px #9ab9b33d,0 18px 36px -15px #0c344438;
  }
  .header-search { padding: 11px; }
  .header-actions .button { padding: 7px 8px 7px 15px; gap: 9px; border-radius: 999px; }
  .header-actions .button > .icon { width: 25px; height: 25px; padding: 5px; }
  .hero-search { min-height: 64px; padding: 7px 8px 7px 19px; }
  .hero-search button { width: 46px; height: 46px; border-radius: 50%; }
  .hero-chips { gap: 10px; }
  .hero-chips > a { font-size: 10px; min-height: 44px; padding: 7px 13px 7px 8px; gap: 7px; }
  .hero-chips > a > .icon { width: 25px; height: 25px; padding: 5px; }
  .close-search { width: 40px; height: 40px; }
}
@media(max-width:420px) {
  .header-inner { gap: 9px; }
  .header-actions { gap: 8px; }
  .header-actions .button { padding: 10px 13px; font-size: 10px; }
  .hero-search { min-height: 62px; padding-left: 17px; border-radius: 999px; }
  .hero-search button { width: 44px; height: 44px; }
  .hero-chips { max-width: 340px; margin-top: 18px; }
  .hero-chips > a { padding-right: 12px; font-size: 9.5px; }
}
/* Avoid sticky legacy hover fills on touch devices. */
@media(hover:none) {
  .button-dark:hover {
    background-color: #123659;
    background-image: radial-gradient(ellipse at 95% 100%,rgba(0,200,179,.18),transparent 65%),linear-gradient(156deg,rgba(66,98,126,.9),rgba(16,42,74,.97) 50%,rgba(8,31,73,.98));
    transform: none;
  }
  .hero-search button:hover {
    background-color: #08625a;
    background-image: radial-gradient(ellipse at 95% 100%,rgba(0,200,179,.24),transparent 64%),linear-gradient(155deg,#34887e,#07685f 52%,#074d49);
    transform: none;
  }
  .hero-chips > a:hover {
    background: linear-gradient(155deg,rgba(255,255,255,.94),rgba(255,255,255,.46) 36%,rgba(216,237,233,.32) 73%,rgba(255,255,255,.76));
    border-color: var(--glass-edge);
    transform: none;
  }
}
@media(prefers-reduced-motion:reduce) {
  .button-dark,.hero-search button,.hero-chips > a,.header-search,.mobile-toggle,.close-search,
  .button-dark > .icon,.hero-search button > .icon { transform: none!important; }
}
@media(forced-colors:active) {
  .nav-cluster,.header-search,.hero-search,.hero-chips > a,.mobile-toggle,.close-search,.button-dark,.hero-search button {
    background: Canvas; color: CanvasText; border: 1px solid ButtonText; box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .button-dark::before,.button-dark::after,.hero-search button::before,.hero-search button::after { display: none; }
}
