@charset "UTF-8";

/* Star Mark Records — Phase 8.1: Contact */
.contact-page {
  --contact-booking: 210, 165, 72;
  --contact-alliance: 153, 105, 255;
  --contact-general: 74, 198, 216;
}

/* The contact headline uses longer Spanish words than the application page.
   A slightly tighter desktop scale prevents clipping without weakening hierarchy. */
.contact-page .form-hero h1 {
  font-size: clamp(3.15rem, 4.7vw, 5.9rem);
  line-height: .92;
  letter-spacing: -.064em;
}

.contact-page .form-hero-lead { margin-top: 23px; }
.contact-page .form-hero-actions { margin-top: 28px; }
.contact-page .form-hero-signals { margin-top: 34px; }

.contact-router {
  position: relative;
  min-height: 650px;
  isolation: isolate;
}

.contact-router canvas {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .88;
}

.router-core {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  width: clamp(185px, 20vw, 240px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 36px;
  border: 1px solid rgba(var(--accent-rgb), .4);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255,255,255,.12), transparent 23%),
    radial-gradient(circle, rgba(var(--accent-rgb), .12), rgba(3,8,20,.94) 68%);
  box-shadow: 0 0 0 14px rgba(var(--accent-rgb),.025), 0 0 68px rgba(var(--accent-rgb),.19), inset 0 0 46px rgba(var(--accent-rgb),.06);
  transform: translate(-50%, -50%);
}
.router-core::before,
.router-core::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.router-core::before { inset: -30%; border: 1px dashed rgba(var(--accent-rgb), .17); animation: contact-orbit 24s linear infinite; }
.router-core::after { inset: -55%; border: 1px solid rgba(var(--accent-rgb), .09); animation: contact-orbit 37s linear infinite reverse; }
.router-core img { width: 79%; filter: drop-shadow(0 0 22px rgba(var(--accent-rgb), .42)); }

.router-path {
  position: absolute;
  z-index: 1;
  height: 1px;
  left: 50%;
  top: 50%;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), .52), rgba(var(--accent-rgb), .05));
  box-shadow: 0 0 13px rgba(var(--accent-rgb), .18);
}
.router-path::after {
  content: "";
  position: absolute;
  width: 6px;
  aspect-ratio: 1;
  top: -2.5px;
  left: 16%;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 14px rgba(var(--accent-rgb), .8);
  animation: contact-signal 3.2s linear infinite;
}
.router-path--booking { width: 40%; transform: rotate(-143deg); }
.router-path--alliance { width: 40%; transform: rotate(-36deg); }
.router-path--general { width: 39%; transform: rotate(95deg); }
.router-path--alliance::after { animation-delay: -1.1s; }
.router-path--general::after { animation-delay: -2.1s; }

.router-department {
  position: absolute;
  z-index: 6;
  width: clamp(150px, 15vw, 205px);
  padding: 18px;
  border: 1px solid rgba(255,255,255,.105);
  border-radius: 19px;
  background: rgba(5,10,24,.78);
  box-shadow: 0 22px 50px rgba(0,0,0,.27), inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter: blur(18px);
  animation: contact-float 5.2s ease-in-out infinite;
}
.router-department > span { display: block; margin-bottom: 10px; color: var(--accent-bright); font-size: .56rem; font-weight: 840; letter-spacing: .13em; text-transform: uppercase; }
.router-department strong { display: block; font-size: .9rem; }
.router-department small { display: block; margin-top: 6px; color: var(--muted-2); font-size: .62rem; line-height: 1.45; }
.router-department--booking { top: 17%; left: 0; }
.router-department--alliance { top: 17%; right: 0; animation-delay: -1.6s; }
.router-department--general { left: 50%; bottom: 7%; transform: translateX(-50%); animation-delay: -3s; }
.router-department--general:hover { transform: translateX(-50%) translateY(-4px); }

.router-status {
  position: absolute;
  z-index: 7;
  top: 8%;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid rgba(114,231,173,.2);
  border-radius: 999px;
  color: rgba(225,255,239,.8);
  background: rgba(4,17,13,.72);
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  transform: translateX(-50%);
}
.router-status i { width: 7px; aspect-ratio: 1; border-radius: 50%; background: var(--form-success); box-shadow: 0 0 12px rgba(114,231,173,.65); }

.contact-routing-section::after {
  content: "";
  pointer-events: none;
  position: absolute;
  width: 720px;
  aspect-ratio: 1;
  left: -450px;
  top: 14%;
  border: 1px solid rgba(var(--accent-rgb), .055);
  border-radius: 50%;
  box-shadow: inset 0 0 180px rgba(var(--accent-rgb), .025);
}

.department-readout {
  display: grid;
  gap: 9px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(var(--accent-rgb), .19);
  border-radius: 17px;
  background: rgba(var(--accent-rgb), .036);
}
.department-readout span { color: var(--accent-bright); font-size: .59rem; font-weight: 830; letter-spacing: .12em; text-transform: uppercase; }
.department-readout strong { font-size: .95rem; }
.department-readout p { margin: 0; color: var(--muted-2); font-size: .7rem; line-height: 1.55; }

.contact-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.contact-quick-card {
  min-height: 235px;
  display: grid;
  align-content: space-between;
  gap: 26px;
  padding: 26px;
  border: 1px solid rgba(255,255,255,.095);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(3,8,20,.72));
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}
.contact-quick-card:hover { transform: translateY(-6px); border-color: rgba(var(--accent-rgb), .35); background: linear-gradient(145deg, rgba(var(--accent-rgb),.055), rgba(3,8,20,.78)); }
.contact-quick-card svg { width: 48px; padding: 12px; border: 1px solid rgba(var(--accent-rgb), .25); border-radius: 15px; fill: none; stroke: var(--accent-bright); stroke-width: 1.45; }
.contact-quick-card span { display: block; color: var(--accent-bright); font-size: .6rem; font-weight: 820; letter-spacing: .13em; text-transform: uppercase; }
.contact-quick-card h3 { margin: 8px 0 0; font-size: 1.27rem; }
.contact-quick-card p { margin: 11px 0 0; color: var(--muted-2); font-size: .74rem; line-height: 1.58; }
.contact-quick-card a { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.86); font-size: .75rem; font-weight: 760; }
.contact-quick-card a:hover { color: var(--accent-bright); }

@keyframes contact-orbit { to { transform: rotate(360deg); } }
@keyframes contact-signal { from { left: 4%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { left: 94%; opacity: 0; } }
@keyframes contact-float { 50% { transform: translateY(-8px); } }

html[data-motion="off"] .router-core::before,
html[data-motion="off"] .router-core::after,
html[data-motion="off"] .router-path::after,
html[data-motion="off"] .router-department { animation: none !important; }

@media (max-width: 980px) {
  .contact-router { min-height: 600px; max-width: 720px; width: 100%; margin-inline: auto; }
  .contact-quick-grid { grid-template-columns: 1fr; }
  .contact-quick-card { min-height: 190px; }
}

@media (max-width: 720px) {
  .contact-router { min-height: 500px; margin-top: 20px; }
  .router-core { width: 145px; }
  .router-department { width: 125px; padding: 13px; }
  .router-department--booking { top: 14%; }
  .router-department--alliance { top: 14%; }
  .router-department strong { font-size: .72rem; }
  .router-department small { font-size: .53rem; }
  .router-path--booking,
  .router-path--alliance { width: 37%; }
  .router-path--general { width: 34%; }
}

@media (max-width: 430px) {
  .contact-router { min-height: 455px; }
  .router-core { width: 120px; }
  .router-department { width: 104px; padding: 10px; }
  .router-department span { font-size: .47rem; }
  .router-department strong { font-size: .62rem; }
  .router-department small { display: none; }
  .router-status { top: 3%; font-size: .51rem; }
}

@media (prefers-reduced-motion: reduce) {
  .router-core::before,
  .router-core::after,
  .router-path::after,
  .router-department { animation: none !important; }
}
