/* Contactenos EvanIA - modal y disparadores */

.ary-contact-teaser {
  padding: 0.7rem 0.9rem 0.85rem;
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(230, 247, 242, 0.92));
  border: 1px solid rgba(18, 161, 130, 0.22);
  box-shadow:
    0 8px 22px rgba(26, 61, 71, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.ary-contact-teaser--login-side {
  margin: 0;
  text-align: left;
}

.ary-contact-teaser-title {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1a3d47;
}

.ary-contact-teaser p {
  margin: 0 0 0.6rem;
  font-size: 0.76rem;
  line-height: 1.35;
  color: #5a7279;
}

button.ary-contact-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  margin-top: 0;
  padding: 0.55rem 0.8rem;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #12a182 0%, #0e8568 45%, #1a3d47 100%);
  box-shadow:
    0 8px 22px rgba(18, 161, 130, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

button.ary-contact-trigger:hover {
  transform: translateY(-1px);
  box-shadow:
    0 12px 28px rgba(18, 161, 130, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

button.ary-contact-trigger:focus-visible {
  outline: 2px solid #12a182;
  outline-offset: 3px;
}

.ary-contact-trigger-icon {
  display: inline-flex;
  width: 1.2rem;
  height: 1.2rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.65rem;
}

body.ary-contact-open {
  overflow: hidden;
}

.ary-contact-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.ary-contact-modal.hidden {
  display: none;
}

.ary-contact-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(18, 161, 130, 0.18), transparent 55%),
    radial-gradient(ellipse at 80% 90%, rgba(212, 175, 55, 0.14), transparent 50%),
    rgba(15, 35, 42, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ary-contact-panel {
  position: relative;
  width: min(560px, 100%);
  max-height: min(92vh, 720px);
  overflow: auto;
  border-radius: 20px;
  padding: 1.5rem 1.5rem 1.25rem;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 248, 247, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow:
    0 28px 80px rgba(10, 30, 36, 0.35),
    0 0 0 1px rgba(18, 161, 130, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  animation: ary-contact-in 0.28s ease;
}

@keyframes ary-contact-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ary-contact-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 50%;
  background: rgba(26, 61, 71, 0.08);
  color: #1a3d47;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.ary-contact-close:hover {
  background: rgba(26, 61, 71, 0.14);
}

.ary-contact-header {
  padding-right: 2rem;
  margin-bottom: 1.1rem;
}

.ary-contact-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0e8568;
}

.ary-contact-header h2 {
  margin: 0 0 0.35rem;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1a3d47;
}

.ary-contact-subtitle {
  margin: 0;
  font-size: 0.92rem;
  color: #5a7279;
}

.ary-contact-options {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ary-contact-card {
  padding: 1rem 1.05rem 1.05rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(26, 61, 71, 0.1);
  box-shadow: 0 6px 18px rgba(26, 61, 71, 0.06);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ary-contact-card.is-featured {
  border-color: rgba(18, 161, 130, 0.35);
  box-shadow:
    0 10px 26px rgba(18, 161, 130, 0.12),
    inset 0 0 0 1px rgba(18, 161, 130, 0.08);
}

.ary-contact-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 0.45rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #0e8568;
  background: linear-gradient(135deg, rgba(18, 161, 130, 0.16), rgba(212, 175, 55, 0.12));
}

.ary-contact-card h3 {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 700;
  color: #1a3d47;
}

.ary-contact-panel-form {
  overflow: hidden;
  max-height: min(96vh, 640px);
  padding: 1.1rem 1.35rem 1rem;
}

.ary-contact-panel-form .ary-contact-header {
  margin-bottom: 0.5rem;
}

.ary-contact-panel-form .ary-contact-header h2 {
  margin-bottom: 0;
  font-size: 1.35rem;
}

.ary-contact-panel-form .ary-contact-subtitle {
  display: none;
}

.ary-contact-panel-form .ary-contact-back {
  margin-bottom: 0.4rem;
}

.ary-contact-panel-form .ary-contact-form-title {
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
}

.ary-contact-panel-form .ary-contact-form {
  gap: 0.42rem;
}

.ary-contact-panel-form .ary-contact-field {
  gap: 0.2rem;
  font-size: 0.76rem;
}

.ary-contact-panel-form .ary-contact-field input,
.ary-contact-panel-form .ary-contact-field textarea {
  padding: 0.42rem 0.6rem;
  font-size: 0.84rem;
  min-height: 2.1rem;
}

.ary-contact-panel-form .ary-contact-field textarea {
  min-height: 3rem;
  resize: none;
}

.ary-contact-panel-form .ary-contact-submit {
  margin-top: 0;
  padding: 0.52rem 1rem;
}

.ary-contact-card p {
  margin: 0 0 0.85rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #5a7279;
}

.ary-contact-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.ary-contact-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ary-contact-action:hover {
  transform: translateY(-1px);
}

.ary-contact-action-mail {
  color: #1a3d47;
  background: rgba(26, 61, 71, 0.08);
  border: 1px solid rgba(26, 61, 71, 0.12);
  font: inherit;
  cursor: pointer;
}

button.ary-contact-action {
  border: none;
}

.ary-contact-action-wa {
  color: #fff;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.28);
}

.ary-contact-footer {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(26, 61, 71, 0.1);
  text-align: center;
}

.ary-contact-footer p {
  margin: 0.2rem 0;
  font-size: 0.78rem;
  color: #5a7279;
}

.ary-contact-footer a {
  color: #0e8568;
  font-weight: 600;
  text-decoration: none;
}

.ary-contact-footer a:hover {
  text-decoration: underline;
}

.hidden {
  display: none !important;
}

.ary-contact-back {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0 0 0.75rem;
  padding: 0;
  border: none;
  background: none;
  color: #0e8568;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.ary-contact-back:hover {
  text-decoration: underline;
}

.ary-contact-form-title {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 700;
  color: #1a3d47;
}

.ary-contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ary-contact-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.ary-contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1a3d47;
}

.ary-contact-field input,
.ary-contact-field textarea {
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(26, 61, 71, 0.14);
  border-radius: 8px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 400;
  color: #1e3238;
  background: #fff;
  resize: vertical;
  min-height: 2.5rem;
}

.ary-contact-field textarea {
  min-height: 5.5rem;
}

.ary-contact-field input:focus,
.ary-contact-field textarea:focus {
  outline: 2px solid rgba(18, 161, 130, 0.35);
  border-color: #12a182;
}

.ary-contact-form-error {
  margin: 0;
  font-size: 0.8rem;
  color: #d93025;
}

.ary-contact-submit {
  width: 100%;
  margin-top: 0.15rem;
  padding: 0.62rem 1rem;
  border: none;
  border-radius: 999px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #12a182 0%, #0e8568 100%);
  box-shadow: 0 6px 16px rgba(18, 161, 130, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ary-contact-submit:hover:not(:disabled) {
  transform: translateY(-1px);
}

.ary-contact-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.ary-contact-success {
  text-align: center;
  padding: 0.5rem 0 0.25rem;
}

.ary-contact-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 0.65rem;
  border-radius: 50%;
  background: #e6f7f2;
  color: #0e8568;
  font-size: 1.25rem;
  font-weight: 700;
}

.ary-contact-success h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: #1a3d47;
}

.ary-contact-success p {
  margin: 0 0 1rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #5a7279;
}

@media (max-width: 520px) {
  .ary-contact-panel {
    padding: 1.25rem 1.1rem 1rem;
    border-radius: 16px;
  }

  .ary-contact-card-actions {
    flex-direction: column;
  }

  .ary-contact-action {
    justify-content: center;
    width: 100%;
  }
}
