/* Capa visual progresiva. El contenido permanece visible sin JavaScript. */
:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-ui: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Un único lenguaje de iconos: trazos redondeados, verde y acentos lima. */
.ui-icon {
  display: block;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.service-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.service-top .number {
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.icon-tile {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  color: var(--green);
  background: #e4f0e6;
  border: 1px solid #d1e3d6;
  border-radius: 16px 16px 5px 16px;
  transition:
    background 0.3s,
    border-radius 0.4s var(--ease-ui),
    transform 0.4s var(--ease-out);
}
.icon-tile .ui-icon {
  transition: transform 0.45s var(--ease-out);
}
.service {
  position: relative;
  isolation: isolate;
  transition:
    background 0.3s,
    box-shadow 0.3s,
    transform 0.4s var(--ease-out);
}
.service::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 30px;
  right: 30px;
  height: 3px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.service:focus-within {
  background: white;
  box-shadow: inset 0 0 0 1px #85b494;
}
.service:focus-within::after {
  transform: scaleX(1);
}
.benefit-list article {
  position: relative;
  gap: 18px;
  transition:
    border-color 0.3s,
    background 0.3s;
}
.benefit-list article > span:first-child {
  position: absolute;
  left: 0;
  top: 84px;
  width: 42px;
  text-align: center;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  opacity: 0.8;
}
.benefit-list article:first-child > span:first-child {
  top: 60px;
}
.benefit-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 48px;
  flex-shrink: 0;
  border: 1px solid #ffffff30;
  border-radius: 12px;
  background: #ffffff06;
  transition:
    background 0.3s,
    transform 0.4s var(--ease-out),
    border-color 0.3s;
}
.benefit-icon .ui-icon {
  width: 25px;
  height: 25px;
}
.benefit-list article > div {
  padding-bottom: 12px;
}
.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}
.steps .step-top > span {
  margin: 0;
}
.steps .step-icon {
  width: 42px;
  background: transparent;
  border-radius: 0;
  transition: transform 0.4s var(--ease-out);
}
.steps li {
  position: relative;
}
.steps li::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease-out);
}
.steps li.is-revealed::before {
  transform: scaleX(1);
}

/* Detalles gráficos estáticos, sin bucles de animación. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  flex-shrink: 0;
  width: 23px;
  height: 2px;
  background: currentColor;
}
.benefits,
.closing {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.benefits::before,
.closing::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 380px;
  height: 380px;
  right: -200px;
  top: -210px;
  border: 1px solid #c0f35f20;
  border-radius: 50%;
  box-shadow:
    0 0 0 40px #c0f35f06,
    0 0 0 80px #c0f35f04;
  pointer-events: none;
}
.sectors li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sectors li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green);
}

/* Botones y enlaces: respuesta breve al foco, hover y pulsación. */
.button {
  position: relative;
  transition:
    background 0.25s,
    color 0.25s,
    box-shadow 0.25s,
    transform 0.25s var(--ease-ui);
}
.button > span[aria-hidden],
.text-link > span[aria-hidden] {
  display: inline-block;
  transition: transform 0.3s var(--ease-out);
}
.button:focus-visible > span[aria-hidden],
.text-link:focus-visible > span[aria-hidden] {
  transform: translate(3px, -2px);
}
.button:active {
  transform: translateY(1px) scale(0.985);
}
.text-link {
  text-decoration-thickness: 1px;
  transition:
    color 0.25s,
    text-decoration-color 0.25s;
}
.brand-mark {
  transition:
    transform 0.4s var(--ease-out),
    background 0.3s;
}

/* Navegación: subrayado de sección, icono que pasa a cerrar y menú suave. */
.header {
  transition:
    box-shadow 0.3s,
    border-color 0.3s;
}
.header.has-scrolled {
  box-shadow: 0 6px 22px #0034200c;
  border-color: #bcd2c2;
}
.header nav a {
  position: relative;
}
.header nav a::after {
  content: "";
  height: 2px;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.header nav a[aria-current="location"]::after,
.header nav a:focus-visible::after {
  transform: scaleX(1);
}
.header nav a[aria-current="location"] {
  color: var(--green);
}
.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.25s;
}
.menu-glyph {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 16px;
}
.menu-glyph i {
  display: block;
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition:
    transform 0.25s var(--ease-ui),
    opacity 0.15s;
}
.menu-glyph i:nth-child(1) {
  top: 1px;
}
.menu-glyph i:nth-child(2) {
  top: 7px;
  width: 13px;
}
.menu-glyph i:nth-child(3) {
  top: 13px;
}
[aria-expanded="true"] .menu-glyph i:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
[aria-expanded="true"] .menu-glyph i:nth-child(2) {
  opacity: 0;
}
[aria-expanded="true"] .menu-glyph i:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Imágenes: zoom recortado en su área, sin desplazar títulos ni contenido. */
.equipment {
  transition:
    box-shadow 0.4s,
    border-color 0.3s,
    transform 0.4s var(--ease-out);
}
.equipment img {
  clip-path: inset(0);
  transition:
    clip-path 0.6s var(--ease-out),
    filter 0.5s;
}
.equipment > div {
  position: relative;
  background: white;
}
.equipment h3 {
  transition: color 0.3s;
}
.form-panel {
  position: relative;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}
.form-panel:focus-within {
  border-color: #77a98a;
  box-shadow: 0 16px 44px #00342012;
}
.field label {
  transition: color 0.2s;
}
.field:focus-within label {
  color: var(--green);
}
.field input,
.field textarea,
.field select {
  transition:
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}
.field:focus-within input,
.field:focus-within textarea,
.field:focus-within select {
  background: #fff;
}
.field.is-filled input:not([aria-invalid="true"]),
.field.is-filled textarea:not([aria-invalid="true"]),
.field.is-filled select:not([aria-invalid="true"]) {
  border-color: #6d9c7f;
}
.field .error:not(:empty) {
  border-left: 2px solid #a71b22;
  padding-left: 8px;
}
#form-status:not(:empty) {
  border-left: 3px solid var(--green);
  padding: 12px 14px;
  background: var(--paper);
  border-radius: 0 6px 6px 0;
}
.faq-list details {
  transition: border-color 0.25s;
}
.faq-list summary {
  transition: color 0.2s;
}
.faq-list details[open] {
  border-color: #75a587;
}
.faq-list details[open] summary {
  color: var(--green);
}
.faq-list summary::after {
  content: "+";
  transition: transform 0.25s var(--ease-out);
}
.faq-list details[open] summary::after {
  content: "+";
  transform: rotate(45deg);
}

@media (hover: hover) and (pointer: fine) {
  .service:hover {
    background: #fff;
    transform: translateY(-4px);
    box-shadow: 0 14px 28px #00342010;
    z-index: 1;
  }
  .service:hover::after {
    transform: scaleX(1);
  }
  .service:hover .icon-tile {
    background: #d7efad;
    border-radius: 16px 5px 16px 16px;
  }
  .service:nth-child(3n + 1):hover .ui-icon {
    transform: translateY(-3px);
  }
  .service:nth-child(3n + 2):hover .ui-icon {
    transform: translateX(3px);
  }
  .service:nth-child(3n):hover .ui-icon {
    transform: rotate(-7deg);
  }
  .benefit-list article:hover {
    border-color: #c0f35780;
  }
  .benefit-list article:hover .benefit-icon {
    background: #c0f35f12;
    border-color: #c0f35f80;
    transform: translateY(-2px);
  }
  .steps li:hover .step-icon {
    transform: translateX(4px);
  }
  .steps li:hover::before {
    transform: scaleX(1);
  }
  .equipment:hover {
    transform: translateY(-5px);
    border-color: #85b494;
    box-shadow: 0 16px 30px #00342012;
  }
  .equipment:hover img {
    clip-path: inset(6px 6px 0 round 8px);
    filter: saturate(1.08);
  }
  .equipment:hover h3 {
    color: var(--green);
  }
  .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 18px #0034201c;
  }
  .button:hover > span[aria-hidden],
  .text-link:hover > span[aria-hidden] {
    transform: translate(3px, -2px);
  }
  .floating-contact .button:hover > span:first-child {
    transform: scale(1.08);
  }
  .brand:hover .brand-mark {
    transform: rotate(8deg);
    background: var(--green);
  }
  .header nav a:hover {
    text-decoration: none;
  }
  .header nav a:hover::after {
    transform: scaleX(1);
  }
  .faq-list summary:hover {
    color: var(--green);
  }
}

/* Entradas puntuales: el observer deja de observar cada elemento tras aparecer. */
@keyframes reveal-rise {
  from {
    opacity: 0.25;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes reveal-side {
  from {
    opacity: 0.3;
    transform: translateX(-16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes reveal-focus {
  from {
    opacity: 0.35;
    transform: scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes reveal-line {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-7px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .reveal-rise.is-revealed {
    animation: reveal-rise 0.65s var(--ease-out) both;
  }
  .reveal-side.is-revealed {
    animation: reveal-side 0.65s var(--ease-out) both;
  }
  .reveal-focus.is-revealed {
    animation: reveal-focus 0.7s var(--ease-out) both;
  }
  .steps li.is-revealed::before {
    animation: reveal-line 0.8s var(--ease-out) both;
  }
  .is-revealed.stagger-1 {
    animation-delay: 65ms;
  }
  .is-revealed.stagger-2 {
    animation-delay: 130ms;
  }
  .faq-list details[open] p {
    animation: reveal-rise 0.3s var(--ease-out);
  }
  .error:not(:empty) {
    animation: reveal-side 0.25s var(--ease-out);
  }
}
@media (max-width: 850px) and (prefers-reduced-motion: no-preference) {
  .header.menu-ready nav.is-open {
    animation: menu-in 0.25s var(--ease-out);
  }
}
@media (max-width: 850px) {
  .header nav a::after {
    left: 12px;
    right: 12px;
  }
}
@media (max-width: 600px) {
  .header-inner {
    gap: 8px;
  }
  .menu-toggle {
    gap: 7px;
    padding: 10px;
    font-size: 0.85rem;
  }
  .service-top {
    margin-bottom: 22px;
  }
  .icon-tile {
    width: 50px;
    height: 50px;
  }
  .step-top {
    margin-bottom: 22px;
  }
  .benefit-list article {
    gap: 16px;
  }
  .is-revealed.stagger-1,
  .is-revealed.stagger-2 {
    animation-delay: 0ms;
  }
}
@media (max-width: 380px) {
  .header .brand {
    font-size: 0.93rem;
    gap: 8px;
  }
  .header .brand small {
    font-size: 0.44rem;
  }
  .header .brand-mark {
    width: 28px;
    height: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .service:hover,
  .equipment:hover,
  .button:hover,
  .button:active,
  .icon-tile,
  .ui-icon,
  .step-icon,
  .benefit-icon,
  .button > span[aria-hidden],
  .text-link > span[aria-hidden],
  .brand-mark {
    transform: none !important;
  }
}
@media print {
  .is-revealed {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
