.banner-arriba {
  position: fixed;
  top: var(--header-height, 200px);
  left: 0;
  z-index: 1200;
  width: 100%;
  min-height: 90px;
  background: #fff;
  text-align: center;
  overflow: hidden;
}

body:has(> .banner-arriba) {
  padding-top: calc(var(--header-height, 200px) + 90px);
}

.automation-banner {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  width: 728px;
  height: 90px;
  padding: 12px 16px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 12% 0%, rgba(78, 212, 153, 0.34), transparent 32%),
    linear-gradient(115deg, #103f67 0%, #0f6659 68%, #185149 100%);
  text-align: left;
  text-decoration: none;
}

.automation-banner:hover {
  color: #fff;
  text-decoration: none;
}

.automation-banner:focus-visible {
  position: relative;
  z-index: 1;
  outline: 4px solid #4ed499;
  outline-offset: -4px;
}

.automation-banner-mark {
  display: grid;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 16px;
}

.automation-banner-mark svg {
  width: 44px;
  height: 44px;
}

.automation-banner-mark path,
.automation-banner-mark circle {
  fill: none;
  stroke: #fff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.automation-banner-mark circle {
  fill: #4ed499;
  stroke: #103f67;
  animation: automation-banner-pulse 3.2s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.automation-banner-copy {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  line-height: 1.2;
}

.automation-banner-copy strong {
  font-size: 21px;
  letter-spacing: -0.02em;
}

.automation-banner-copy > span {
  margin-top: 5px;
  color: #dff8ef;
  font-size: 14px;
}

.automation-banner-cta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  color: #103f67;
  background: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.automation-banner-cta > span {
  font-size: 19px;
  transition: transform 0.2s ease;
}

.automation-banner:hover .automation-banner-cta > span {
  transform: translateX(3px);
}

.automation-banner-vertical {
  box-sizing: border-box;
  display: flex;
  width: 160px;
  height: 600px;
  padding: 34px 16px 26px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 50% 8%, rgba(78, 212, 153, 0.38), transparent 25%),
    linear-gradient(165deg, #103f67 0%, #0f6659 68%, #185149 100%);
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
}

.automation-banner-vertical:hover {
  color: #fff;
  text-decoration: none;
}

.automation-banner-vertical:focus-visible {
  outline: 4px solid #4ed499;
  outline-offset: -4px;
}

.automation-banner-vertical .automation-banner-mark {
  flex-basis: 70px;
  width: 70px;
  height: 70px;
  margin-bottom: 38px;
  border-radius: 20px;
}

.automation-banner-vertical .automation-banner-mark svg {
  width: 52px;
  height: 52px;
}

.automation-banner-vertical-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
}

.automation-banner-vertical-copy strong {
  max-width: 128px;
  font-size: 27px;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.automation-banner-vertical-copy > span {
  margin-top: 24px;
  color: #dff8ef;
  font-size: 16px;
  line-height: 1.35;
}

.automation-banner-vertical-cta {
  display: flex;
  width: 128px;
  min-height: 70px;
  padding: 12px 10px;
  color: #103f67;
  background: #fff;
  border-radius: 16px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.automation-banner-vertical-cta > span {
  margin-top: 5px;
  font-size: 22px;
  transition: transform 0.2s ease;
}

.automation-banner-vertical:hover .automation-banner-vertical-cta > span {
  transform: translateY(3px);
}

@keyframes automation-banner-pulse {
  0%, 100% { transform: scale(0.88); opacity: 0.8; }
  50% { transform: scale(1.12); opacity: 1; }
}

.automation-eyebrow {
  color: #0f6659;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.automation-modal[hidden] {
  display: none;
}

.automation-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  padding: 20px;
  place-items: center;
}

.automation-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 30, 27, .72);
  backdrop-filter: blur(5px);
}

.automation-modal-panel {
  box-sizing: border-box;
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 40px);
  padding: clamp(24px, 5vw, 42px);
  overflow-y: auto;
  color: #17352f;
  background: #f8fcfa;
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .3);
  text-align: left;
}

.automation-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 42px;
  height: 42px;
  padding: 0;
  color: #17352f;
  background: #e3f1ed;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.7rem;
}

.automation-modal-close:focus-visible,
.automation-submit:focus-visible,
.automation-more-info:focus-visible {
  outline: 4px solid rgba(15, 76, 129, .28);
  outline-offset: 3px;
}

.automation-modal-intro h2 {
  margin: 8px 45px 8px 0;
  font-size: 1.8rem;
}

.automation-modal-intro p {
  margin: 0 0 22px;
  color: #526b65;
}

.automation-form {
  display: grid;
  gap: 16px;
}

.automation-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.automation-form input,
.automation-form select,
.automation-form textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 11px 12px;
  color: #17352f;
  background: #fff;
  border: 1px solid #a9c7bf;
  border-radius: 9px;
  font: inherit;
}

.automation-form textarea {
  resize: vertical;
}

.automation-form input:focus,
.automation-form select:focus,
.automation-form textarea:focus {
  outline: 3px solid rgba(15, 76, 129, .18);
  border-color: #0f4c81;
}

.automation-form-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.automation-form-contact label:last-child {
  grid-column: 1 / -1;
}

.automation-form label span {
  font-size: .82rem;
  font-weight: 400;
}

.automation-consent {
  grid-template-columns: auto 1fr !important;
  align-items: start;
  font-weight: 400 !important;
}

.automation-consent input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.automation-submit {
  padding: 13px 20px;
  color: #fff;
  background: #0f4c81;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font: 700 1rem Arial, sans-serif;
}

.automation-submit:hover {
  background: #0b3d69;
}

.automation-more-info {
  justify-self: center;
  color: #0f4c81;
  font-weight: 700;
}

body.automation-modal-open {
  overflow: hidden;
}

@media (max-width: 727px) {
  body:has(> .banner-arriba) {
    padding-top: calc(var(--header-height-mobile, 120px) + (100vw * 90 / 728));
  }

  .banner-arriba {
    top: var(--header-height-mobile, 120px);
    width: 100vw;
    height: calc(100vw * 90 / 728);
    min-height: calc(100vw * 90 / 728);
  }

  .automation-banner {
    position: absolute;
    top: 0;
    left: 50%;
    width: 728px;
    height: 90px;
    margin-left: -364px;
    transform: scale(calc(100vw / 728px));
    transform-origin: top center;
  }
}

@media (max-width: 600px) {
  .automation-modal {
    padding: 0;
    place-items: stretch;
  }

  .automation-modal-panel {
    width: 100%;
    min-height: 100vh;
    max-height: 100vh;
    padding: 28px 18px;
    border-radius: 0;
  }

  .automation-form-contact {
    grid-template-columns: 1fr;
  }

  .automation-form-contact label:last-child {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .automation-banner-mark circle {
    animation: none;
  }

  .automation-banner-cta > span {
    transition: none;
  }

  .automation-banner-vertical-cta > span {
    transition: none;
  }
}
