/* ============================================
   CONTACT PAGE — full-bleed split hero
   ============================================ */

.contact-page {
  /* override page bg */
}
.contact-page .topbar { background: transparent; }

/* ============ HERO ============ */
.ct-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

/* Split bg: cream/beige left, teal right */
.ct-split {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 58% 42%;
  z-index: 0;
}
.ct-split-l {
  background: linear-gradient(180deg, #d6d4cc 0%, #c7c5bb 100%);
  position: relative;
  overflow: hidden;
}
.ct-split-l::after {
  /* subtle texture on left */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,0.04) 1px, transparent 1.5px);
  background-size: 28px 28px;
}
.ct-split-r {
  background: linear-gradient(180deg, #7cc3ce 0%, #5ec0cf 50%, #4fb3c2 100%);
  position: relative;
  overflow: hidden;
}
.ct-split-r::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.18) 1px, transparent 1.5px);
  background-size: 28px 28px;
}

/* Circuit clusters */
.ct-circuits {
  position: absolute;
  width: 360px;
  height: 280px;
  z-index: 1;
  pointer-events: none;
}
.ct-circuits--tl { top: 80px; left: 0; }
.ct-circuits--bl { bottom: 0; left: 0; }
.ct-circuits--tr { top: 80px; right: 30%; }
.ct-circuits--br { bottom: 40px; right: 0; }

/* Decorative ring near hand */
.ct-circle {
  position: absolute;
  top: 18%;
  left: 42%;
  width: 480px; height: 480px;
  z-index: 2;
  pointer-events: none;
  opacity: 0.7;
  animation: ctRingIn 1400ms 0.8s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes ctRingIn {
  from { opacity: 0; transform: scale(0.6) rotate(-30deg); }
  to   { opacity: 0.7; transform: scale(1) rotate(0); }
}

/* "let's talk" — top center */
.ct-letstalk {
  position: absolute;
  top: 90px;
  left: 50%;
  z-index: 6;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(28px, 5vw, 84px);
  letter-spacing: -0.02em;
  color: #999791;
  pointer-events: none;
  text-shadow: 0 2px 20px rgba(255,255,255,0.4);
  will-change: opacity, transform;
}

/* Character (girl with VR headset) */
.ct-character {
  position: absolute;
  left: 2%;
  bottom: 0;
  height: 96%;
  width: auto;
  max-width: 62%;
  object-fit: contain;
  object-position: bottom left;
  z-index: 4;
  pointer-events: none;
  filter: drop-shadow(0 16px 32px rgba(0,0,0,0.18));
  will-change: opacity, transform;
}

/* CONTACTO — split title, layered with the character */
.ct-title {
  position: absolute;
  top: 38%;
  left: 0; right: 0;
  z-index: 3; /* below character.arm... we'll layer cleverly */
  display: flex;
  align-items: baseline;
  pointer-events: none;
  padding: 0 4%;
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(96px, 17vw, 280px);
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.ct-title-con,
.ct-title-tacto {
  display: inline-block;
  will-change: opacity, transform, filter;
}
.ct-title-con {
  color: #1ba0a8;
  margin-left: 36%;
}
.ct-title-tacto {
  color: rgba(232, 225, 209, 0.95);
  margin-left: -0.04em;
  text-shadow: 0 4px 40px rgba(255,255,255,0.25);
}

/* The character image's reaching arm should appear in front of CON
   To get the through-the-letter effect, we keep character above title */

/* ============ RIGHT-SIDE INFO ============ */
.ct-info {
  position: absolute;
  top: 18%;
  right: 0;
  width: 42%;
  z-index: 5;
  padding: 0 56px 0 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: #2a2a2a;
}
.ct-info-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 14px 0;
  align-items: baseline;
  position: relative;
  margin-top: 28%;
}
.ct-info-row:first-of-type { margin-top: 28%; }
.ct-info-row:not(:first-of-type) { margin-top: 0; }
.ct-info-row:nth-of-type(2) { margin-top: 18px; }
.ct-info-row:nth-of-type(3) { margin-top: 18px; }

.ct-info-label {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: #d72bd3;
  letter-spacing: -0.01em;
}
.ct-info-val {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.9vw, 28px);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: #4a4a4a;
  transition: color 200ms;
  word-break: break-word;
}
.ct-info-val:hover { color: #d72bd3; }

/* Address with circuit indicator */
.ct-address {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  margin-top: 32px;
  align-items: start;
}
.ct-address-line {
  width: 100%;
  height: 100px;
  align-self: start;
  margin-top: 8px;
}
.ct-address-text {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.55;
  color: #5a5a5a;
  font-weight: 400;
}

/* WhatsApp chat */
.ct-chat {
  position: relative;
  margin-top: 32px;
  margin-left: auto;
  width: 100%;
  max-width: 360px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.ct-chat-bubble {
  flex: 1;
  position: relative;
  padding: 18px 22px;
  border: 1.5px solid #2a4a5e;
  border-radius: 18px;
  border-bottom-right-radius: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.25) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #2a2a2a;
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.ct-chat-msg { padding: 0; }
.ct-chat-eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: #2a2a2a;
}
.ct-chat-tail {
  position: absolute;
  bottom: -12px;
  right: -2px;
  width: 22px; height: 22px;
  background: rgba(255,255,255,0.5);
  border-right: 1.5px solid #2a4a5e;
  border-bottom: 1.5px solid #2a4a5e;
  border-bottom-left-radius: 18px;
  clip-path: polygon(0 0, 100% 100%, 100% 0);
}
.ct-chat-wa {
  width: 56px; height: 56px;
  border-radius: 999px;
  background: #25D366;
  display: grid; place-items: center;
  flex: 0 0 auto;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45);
  align-self: flex-start;
  margin-top: -8px;
  transition: transform 200ms;
}
.ct-chat-wa:hover { transform: scale(1.08); }
.ct-chat-wa svg { width: 30px; height: 30px; }

/* Bubble-only variant — chat lives alone in the hero, contact info moved to its own section */
.ct-info--bubble-only {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}
.ct-info--bubble-only .ct-chat {
  margin-top: 0;
}

/* ============ DIRECTORIO ============ */
.ct-directory {
  position: relative;
  padding: 120px 0;
  background: var(--c-bg);
  color: var(--c-text);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.ct-directory::before {
  /* subtle dot grid */
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,0.18) 1px, transparent 1.5px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent 90%);
  pointer-events: none;
  opacity: 0.6;
}
.ct-dir-head {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  margin-bottom: 64px;
  margin-left: auto;
  margin-right: auto;
  max-width: 900px;
}
.ct-dir-title {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(40px, 7vw, 110px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.ct-dir-title em {
  font-style: italic;
  color: var(--c-accent);
  font-weight: 300;
}
.ct-dir-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 420px));
  justify-content: center;
  gap: 18px;
}
.ct-dir-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 32px 26px 28px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(0,0,0,0.14);
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  transition: transform 320ms cubic-bezier(.2,.7,.2,1), background 320ms, border-color 320ms;
  overflow: hidden;
  min-height: 240px;
}
.ct-dir-card::after {
  /* hover accent line */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 400ms cubic-bezier(.2,.7,.2,1);
}
.ct-dir-card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.85);
  border-color: var(--c-accent);
}
.ct-dir-card:hover::after { transform: scaleX(1); }
.ct-dir-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(215, 43, 211, 0.08);
  color: var(--c-accent);
  margin-bottom: 8px;
}
.ct-dir-icon svg { width: 22px; height: 22px; }
.ct-dir-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.55);
}
.ct-dir-val {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #1a1a1a;
  word-break: break-word;
}
.ct-dir-val--sm { font-size: 19px; }
.ct-dir-address {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.45;
  color: #1a1a1a;
  letter-spacing: -0.005em;
}
.ct-dir-foot {
  margin-top: auto;
  padding-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.5);
  transition: color 200ms;
}
.ct-dir-card:hover .ct-dir-foot { color: var(--c-accent); }
.ct-dir-card--address { background: rgba(215, 43, 211, 0.08); }
.ct-dir-card--address .ct-dir-icon { background: var(--c-accent); color: #fff; }

@media (max-width: 1100px) {
  .ct-dir-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .ct-directory { padding: 80px 0; }
  .ct-dir-grid { grid-template-columns: 1fr; }
  .ct-dir-card { min-height: 0; }
  .ct-dir-head { margin-bottom: 40px; }
}

/* ============ FORM SECTION ============ */
.ct-form-section {
  background: var(--c-bg);
  color: var(--c-text);
}
.ct-form-section .block-title em { color: var(--c-accent); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .ct-split { grid-template-columns: 50% 50%; }
  .ct-info { width: 50%; padding: 0 28px 0 20px; }
  .ct-character { max-width: 55%; left: 0; }
  .ct-info-row { grid-template-columns: 130px 1fr; gap: 16px; }
  .ct-info-row:first-of-type { margin-top: 22%; }
  .ct-circuits--tr { right: 50%; }
}
@media (max-width: 820px) {
  .ct-hero { min-height: auto; }
  .ct-split { grid-template-columns: 1fr; grid-template-rows: 60vh auto; }
  .ct-character {
    position: relative;
    height: auto;
    width: 80%;
    max-width: 100%;
    margin: 70px auto 0;
    left: 0;
    bottom: auto;
  }
  .ct-title {
    position: relative;
    top: auto;
    margin-top: -160px;
    padding: 0 16px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: clamp(72px, 18vw, 120px);
    z-index: 5;
  }
  .ct-title-con { margin-left: 0; }
  .ct-letstalk { top: 80px; }
  .ct-circle { display: none; }
  .ct-info {
    position: relative;
    width: 100%;
    padding: 30px 20px 60px;
    top: auto; right: auto;
    background: linear-gradient(180deg, #7cc3ce 0%, #5ec0cf 100%);
  }
  .ct-info-row, .ct-info-row:first-of-type { margin-top: 0; }
  .ct-info-row { grid-template-columns: 1fr; gap: 4px; }
  .ct-address { grid-template-columns: 1fr; }
  .ct-address-line { display: none; }
  .ct-chat { max-width: 100%; }
}
