:root {
  --ecc-navy: #07374c;
  --ecc-navy-deep: #042737;
  --ecc-teal: #0796a0;
  --ecc-aqua: #69e0d9;
  --ecc-gold: #e7b85b;
  --ecc-ink: #0a3550;
  --ecc-muted: #607986;
  --ecc-line: #d7e7e9;
  --ecc-paper: #ffffff;
  --ecc-whatsapp: #1fb96c;
}

body.experta-contact-open {
  overflow: hidden;
}

.experta-contact-widget[hidden],
.experta-contact-view[hidden] {
  display: none !important;
}

.experta-contact-widget {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 24px;
  font-family: "Manrope", Arial, sans-serif;
}

.experta-contact-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(3, 27, 39, 0.76);
  backdrop-filter: blur(9px);
}

.experta-contact-dialog {
  position: relative;
  width: min(980px, 96vw);
  max-height: min(780px, 92vh);
  overflow: auto;
  display: grid;
  grid-template-columns: minmax(270px, 0.82fr) minmax(420px, 1.18fr);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 32px;
  background: var(--ecc-paper);
  box-shadow: 0 34px 100px rgba(2, 28, 40, 0.38);
}

.experta-contact-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(7, 55, 76, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ecc-ink);
  font: 700 25px/1 Arial, sans-serif;
  cursor: pointer;
}

.experta-contact-visual {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(3, 38, 53, 0.3), rgba(3, 38, 53, 0.94)),
    url("https://expertatravel.com/assets/visuales/asesoria-viajeros.webp") center/cover no-repeat;
}

.experta-contact-visual::after {
  content: "";
  position: absolute;
  right: -75px;
  bottom: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(105, 224, 217, 0.25);
}

.experta-contact-live,
.experta-contact-area {
  position: relative;
  z-index: 1;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(3, 44, 60, 0.74);
  padding: 9px 13px;
  color: #d9fffb;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.experta-contact-live::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: #42e6a1;
  box-shadow: 0 0 0 6px rgba(66, 230, 161, 0.15);
}

.experta-contact-visual-copy {
  position: relative;
  z-index: 1;
}

.experta-contact-area {
  margin-bottom: 18px;
  color: #fff4cf;
  background: rgba(129, 92, 22, 0.72);
}

.experta-contact-visual h2 {
  margin: 0 0 13px;
  color: #fff;
  font-size: clamp(31px, 4vw, 48px);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.experta-contact-visual p {
  margin: 0;
  max-width: 29ch;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  line-height: 1.6;
}

.experta-contact-benefits {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 9px;
  margin-top: 24px;
  color: #eafffd;
  font-size: 13px;
  font-weight: 700;
}

.experta-contact-benefits span::before {
  content: "✓";
  margin-right: 8px;
  color: var(--ecc-aqua);
}

.experta-contact-panel {
  min-width: 0;
  padding: 48px;
  background:
    radial-gradient(circle at 100% 0, rgba(105, 224, 217, 0.18), transparent 30%),
    #fff;
}

.experta-contact-kicker {
  margin: 0 0 10px;
  color: var(--ecc-teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.experta-contact-header h2 {
  margin: 0;
  max-width: 15ch;
  color: var(--ecc-ink);
  font-size: clamp(28px, 3.1vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.experta-contact-header > span {
  display: block;
  margin-top: 12px;
  color: var(--ecc-muted);
  font-size: 15px;
  line-height: 1.55;
}

.experta-contact-options {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.experta-contact-option {
  width: 100%;
  min-height: 88px;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--ecc-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  padding: 15px 17px;
  color: var(--ecc-ink);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.experta-contact-option:hover,
.experta-contact-option:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(7, 150, 160, 0.55);
  box-shadow: 0 14px 32px rgba(7, 55, 76, 0.1);
}

.experta-contact-option.whatsapp {
  background: linear-gradient(135deg, #effdf6, #f9fffc);
  border-color: rgba(31, 185, 108, 0.35);
}

.experta-contact-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #e7f7f5;
  color: var(--ecc-teal);
  font-size: 13px;
  font-weight: 900;
}

.experta-contact-option.whatsapp .experta-contact-number {
  background: var(--ecc-whatsapp);
  color: #fff;
}

.experta-contact-option-copy {
  display: grid;
  gap: 4px;
}

.experta-contact-option-copy strong {
  font-size: 16px;
}

.experta-contact-option-copy small {
  color: var(--ecc-muted);
  font-size: 13px;
  line-height: 1.4;
}

.experta-contact-arrow {
  color: var(--ecc-teal);
  font-size: 22px;
  font-weight: 800;
}

.experta-contact-privacy {
  margin: 20px 0 0;
  color: #78909a;
  font-size: 12px;
  line-height: 1.5;
}

.experta-contact-back {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--ecc-teal);
  font: 800 13px/1.3 "Manrope", Arial, sans-serif;
  cursor: pointer;
}

.experta-contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}

.experta-contact-field {
  display: grid;
  gap: 7px;
  color: var(--ecc-ink);
  font-size: 12px;
  font-weight: 800;
}

.experta-contact-field.full,
.experta-contact-consent,
.experta-contact-submit,
.experta-contact-form-message {
  grid-column: 1 / -1;
}

.experta-contact-field input,
.experta-contact-field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--ecc-line);
  border-radius: 13px;
  background: #fff;
  padding: 0 13px;
  color: var(--ecc-ink);
  font: 600 14px/1.3 "Manrope", Arial, sans-serif;
}

.experta-contact-field input:focus,
.experta-contact-field select:focus {
  outline: 3px solid rgba(105, 224, 217, 0.22);
  border-color: var(--ecc-teal);
}

.experta-contact-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ecc-muted);
  font-size: 12px;
  line-height: 1.45;
}

.experta-contact-consent input {
  margin-top: 2px;
}

.experta-contact-submit,
.experta-contact-availability-action {
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--ecc-teal), #08738d);
  padding: 13px 18px;
  color: #fff;
  font: 800 14px/1.2 "Manrope", Arial, sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 25px rgba(7, 150, 160, 0.22);
}

.experta-contact-form-message {
  min-height: 20px;
  margin: 0;
  color: #b44438;
  font-size: 12px;
  line-height: 1.4;
}

.experta-contact-status-card {
  margin-top: 25px;
  border: 1px solid var(--ecc-line);
  border-radius: 22px;
  background: linear-gradient(145deg, #f0fbfa, #fff9ec);
  padding: 23px;
}

.experta-contact-status-card strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ecc-ink);
  font-size: 19px;
}

.experta-contact-status-card p {
  margin: 0 0 18px;
  color: var(--ecc-muted);
  font-size: 14px;
  line-height: 1.55;
}

.experta-contact-availability-actions {
  display: grid;
  gap: 10px;
}

.experta-contact-availability-action.video {
  border: 1px solid rgba(7, 150, 160, 0.3);
  background: #fff;
  color: var(--ecc-teal);
  box-shadow: none;
}

.experta-contact-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 2147482000;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ecc-navy), var(--ecc-teal));
  padding: 8px 18px 8px 9px;
  color: #fff;
  font: 800 13px/1.2 "Manrope", Arial, sans-serif;
  box-shadow: 0 18px 42px rgba(3, 41, 57, 0.28);
  cursor: pointer;
}

.experta-contact-launcher-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ecc-aqua);
  color: var(--ecc-navy-deep);
  font-size: 18px;
}

.experta-contact-launcher::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 42px;
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #32d58e;
}

@media (max-width: 760px) {
  .experta-contact-widget {
    align-items: end;
    padding: 0;
  }

  .experta-contact-dialog {
    width: 100%;
    max-height: 94dvh;
    grid-template-columns: 1fr;
    border-radius: 26px 26px 0 0;
  }

  .experta-contact-visual {
    min-height: 160px;
    padding: 24px 68px 23px 22px;
    background-position: center 38%;
  }

  .experta-contact-live,
  .experta-contact-benefits,
  .experta-contact-visual p {
    display: none;
  }

  .experta-contact-area {
    margin-bottom: 9px;
    padding: 7px 10px;
    font-size: 10px;
  }

  .experta-contact-visual h2 {
    max-width: 12ch;
    font-size: 29px;
  }

  .experta-contact-panel {
    padding: 27px 20px 30px;
  }

  .experta-contact-header h2 {
    font-size: 27px;
  }

  .experta-contact-options {
    margin-top: 20px;
  }

  .experta-contact-option {
    min-height: 74px;
    grid-template-columns: 40px 1fr auto;
    gap: 11px;
    border-radius: 17px;
    padding: 12px;
  }

  .experta-contact-number {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

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

  .experta-contact-field,
  .experta-contact-consent,
  .experta-contact-submit,
  .experta-contact-form-message {
    grid-column: 1;
  }

  .experta-contact-launcher {
    right: 13px;
    bottom: 13px;
    min-height: 52px;
    padding-right: 14px;
  }

  .experta-contact-launcher-icon {
    width: 36px;
    height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .experta-contact-option {
    transition: none;
  }
}
