/* ══════════════════════════════════════════════
   TWL Contacto V2 — Brutalist Contact Page
   ══════════════════════════════════════════════ */

.twl-contacto-v2 {
  --accent: #ff6a00;
  --accent-glow: rgba(255, 106, 0, 0.25);
  --bg: #0a0a0a;
  --bg-card: #161616;
  --grid-line: #222222;
  --border: #333333;
  --text-muted: #888888;
  --text-body: #999999;
  --text: #ffffff;
  --font-body: 'Conthrax', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Bebas Neue', 'Impact', sans-serif;
  --font-mono: 'Courier New', monospace;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  font-family: var(--font-body) !important;
  background: var(--bg) !important;
  color: var(--text-body) !important;
  line-height: 1.6 !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  z-index: 1;
}

.twl-contacto-v2 * { border-radius: 0 !important; }

/* ── HEADER ── */
.twl-contacto-v2 ~ .top_panel,
body:has(.twl-contacto-v2) .top_panel,
body:has(.twl-contacto-v2) .top_panel .sc_layouts_row,
body:has(.twl-contacto-v2) .top_panel .header-inner {
  background-color: var(--bg, #0a0a0a) !important;
}

/* ── GRID OVERLAY ── */
.twl-cv2-grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
}
.twl-cv2-grid-overlay span {
  border-right: 1px solid rgba(255, 106, 0, 0.04);
}
.twl-cv2-grid-overlay span:first-child {
  border-left: 1px solid rgba(255, 106, 0, 0.04);
}

/* ── VIDEO BG ── */
.twl-cv2-video-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.twl-cv2-video-bg .mejs-container,
.twl-cv2-video-bg .mejs-inner,
.twl-cv2-video-bg .mejs-mediaelement,
.twl-cv2-video-bg mediaelementwrapper {
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
}
.twl-cv2-video-bg .mejs-layers,
.twl-cv2-video-bg .mejs-controls,
.twl-cv2-video-bg .mejs-offscreen {
  display: none !important;
}
.twl-cv2-video-bg video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  opacity: 0.10;
  filter: grayscale(1);
}
.twl-cv2-video-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.6) 40%, rgba(10,10,10,0.6) 60%, rgba(10,10,10,0.85) 100%);
  pointer-events: none;
}

/* ── HERO SPLIT ── */
.twl-cv2-hero-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  position: relative;
  z-index: 1;
  padding-top: 150px;
  padding-bottom: 80px;
}

/* ── SPACING: location section ── */
.twl-contacto-v2 .twl-footer-final {
  padding-top: 80px;
}
.twl-contacto-v2 ~ footer,
.twl-contacto-v2 ~ .footer_wrap,
body:has(.twl-contacto-v2) footer,
body:has(.twl-contacto-v2) .footer_wrap {
  position: relative;
  z-index: 2;
}

.twl-cv2-hero-split__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: clamp(1.5rem, 3vw, 3rem) clamp(2rem, 5vw, 5rem);
  position: relative;
}
.twl-cv2-hero-split__text::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(255,106,0,0.03) 0%, transparent 60%);
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
  pointer-events: none;
  z-index: 0;
}
.twl-cv2-hero-split__text > * {
  position: relative;
  z-index: 1;
}

/* Vertical label */
.twl-contacto-v2 .twl-cv2-vertical-label {
  position: absolute;
  left: clamp(0.5rem, 2vw, 2rem);
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: 'Courier New', monospace !important;
  font-size: 0.65rem !important;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--border) !important;
  z-index: 2;
}

.twl-contacto-v2 .twl-cv2-hero-title,
.twl-contacto-v2 h1.twl-cv2-hero-title {
  display: inline-block !important;
  width: fit-content !important;
  font-family: 'Bebas Neue', 'Impact', sans-serif !important;
  font-size: clamp(5rem, 13vw, 11rem) !important;
  font-weight: 700 !important;
  line-height: 0.85 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
  color: var(--text) !important;
  margin-bottom: 1rem !important;
  padding: 0 !important;
  border: none !important;
}
.twl-cv2-hero-title .dot {
  color: var(--accent);
  text-shadow: 0 0 40px var(--accent-glow);
  font-family: 'Bebas Neue', 'Impact', sans-serif !important;
  font-weight: 700 !important;
}
.twl-cv2-hero-title .dot.twl-cv2-animated-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.3em);
}
.twl-cv2-hero-title.is-visible .dot.twl-cv2-animated-char {
  animation: twlCv2LetterIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.twl-cv2-hero-title__letters span {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.3em);
  font-family: 'Bebas Neue', 'Impact', sans-serif !important;
  font-weight: 700 !important;
}
.twl-cv2-hero-title.is-visible .twl-cv2-hero-title__letters span {
  animation: twlCv2LetterIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes twlCv2LetterIn {
  to { opacity: 1; transform: translateY(0); }
}

.twl-contacto-v2 .twl-cv2-hero-subtitle {
  font-size: clamp(0.85rem, 1.1vw, 1rem) !important;
  color: var(--text-body) !important;
  max-width: 520px;
  font-weight: 300 !important;
  line-height: 1.8 !important;
  font-family: var(--font-body) !important;
}

/* ── FORM COLUMN ── */
.twl-cv2-hero-split__form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 2.5vw, 2.5rem);
  border-left: none;
  position: relative;
}
.twl-cv2-hero-split__form::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.5) 20%, rgba(255,255,255,0.5) 80%, transparent);
}
.twl-cv2-hero-split__form::after {
  content: '';
  position: absolute;
  left: -3px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50% !important;
  background: var(--bg);
}

.twl-cv2-form-card {
  background: var(--bg-card);
  border-left: 4px solid var(--accent);
  padding: clamp(1.5rem, 2.5vw, 2.5rem);
  width: 100%;
  max-width: 600px;
  position: relative;
}
.twl-contacto-v2 .twl-cv2-form-title,
.twl-contacto-v2 h2.twl-cv2-form-title {
  font-family: 'Bebas Neue', 'Impact', sans-serif !important;
  font-size: 1.6rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  margin-bottom: 0.4rem !important;
  color: var(--text) !important;
  line-height: 1.2 !important;
  padding: 0 !important;
  border: none !important;
}
.twl-contacto-v2 .twl-cv2-form-subtitle {
  font-size: 0.82rem !important;
  color: var(--text-muted) !important;
  margin-bottom: 1.5rem !important;
  font-weight: 300 !important;
  font-family: 'Inter', sans-serif !important;
  line-height: 1.6 !important;
}

/* Form fields */
.twl-cv2-form-row { display: grid; gap: 1rem; }
.twl-cv2-form-row-2 { grid-template-columns: 1fr 1fr; }

.twl-cv2-field {
  position: relative;
  margin-bottom: 1rem;
}
.twl-contacto-v2 .twl-cv2-field input,
.twl-contacto-v2 .twl-cv2-field input[type="text"],
.twl-contacto-v2 .twl-cv2-field input[type="email"],
.twl-contacto-v2 .twl-cv2-field input[type="tel"],
.twl-contacto-v2 .twl-cv2-field textarea,
.twl-contacto-v2 .twl-cv2-field select {
  width: 100% !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid var(--border) !important;
  border-radius: 0 !important;
  color: var(--text) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 300 !important;
  padding: 1.4rem 0 0.6rem !important;
  outline: none !important;
  transition: border-color var(--transition) !important;
  -webkit-appearance: none !important;
  min-height: auto !important;
  resize: none;
  box-shadow: none !important;
}
.twl-contacto-v2 .twl-cv2-field input:hover,
.twl-contacto-v2 .twl-cv2-field textarea:hover,
.twl-contacto-v2 .twl-cv2-field select:hover {
  border-bottom-color: var(--text-muted) !important;
}
.twl-contacto-v2 .twl-cv2-field input:focus,
.twl-contacto-v2 .twl-cv2-field textarea:focus,
.twl-contacto-v2 .twl-cv2-field select:focus {
  border-bottom-color: var(--accent) !important;
}
.twl-contacto-v2 .twl-cv2-field input::placeholder,
.twl-contacto-v2 .twl-cv2-field textarea::placeholder {
  color: transparent !important;
  opacity: 1 !important;
}
.twl-contacto-v2 .twl-cv2-field label {
  position: absolute !important;
  top: 1.35rem;
  left: 0;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45) !important;
  font-weight: 300 !important;
  pointer-events: none;
  transition: all var(--transition);
  padding: 0 !important;
  border: none !important;
  background: none !important;
  line-height: 1 !important;
  display: block !important;
}
.twl-contacto-v2 .twl-cv2-field input:focus ~ label,
.twl-contacto-v2 .twl-cv2-field input:not(:placeholder-shown) ~ label,
.twl-contacto-v2 .twl-cv2-field textarea:focus ~ label,
.twl-contacto-v2 .twl-cv2-field textarea:not(:placeholder-shown) ~ label {
  top: -0.1rem !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.2em;
  color: var(--accent) !important;
}
.twl-contacto-v2 .twl-cv2-field-select label {
  top: -0.1rem !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45) !important;
  font-weight: 300 !important;
  transition: color var(--transition);
  z-index: 2 !important;
}
.twl-contacto-v2 .twl-cv2-field-select:focus-within label {
  color: var(--accent) !important;
}
.twl-contacto-v2 .twl-cv2-field .select_container {
  background: transparent !important;
  border: none !important;
  margin-top: 0.6rem !important;
}
.twl-contacto-v2 .twl-cv2-field .select_container::before,
.twl-contacto-v2 .twl-cv2-field .select_container::after {
  display: none !important;
}
.twl-contacto-v2 .twl-cv2-field .select_container select,
.twl-contacto-v2 .twl-cv2-field select {
  background-color: var(--bg-card) !important;
  color: var(--text) !important;
  cursor: pointer;
  padding-right: 1.5rem !important;
}
.twl-contacto-v2 .twl-cv2-field .select_container select:focus,
.twl-contacto-v2 .twl-cv2-field .select_container select:active,
.twl-contacto-v2 .twl-cv2-field select:focus,
.twl-contacto-v2 .twl-cv2-field select:active {
  background-color: var(--bg-card) !important;
  color: var(--text) !important;
}
.twl-contacto-v2 .twl-cv2-field select option {
  background: var(--bg-card) !important;
  color: var(--text) !important;
  padding: 0.5rem;
}
.twl-cv2-field-select {
  position: relative;
}
.twl-cv2-field-select::after {
  content: '';
  position: absolute;
  right: 0; bottom: 1.1rem;
  width: 7px; height: 7px;
  border-right: 1.5px solid var(--text-muted);
  border-bottom: 1.5px solid var(--text-muted);
  transform: rotate(45deg);
  pointer-events: none;
  transition: border-color var(--transition);
}
.twl-cv2-field-select:focus-within::after {
  border-color: var(--accent);
}
.twl-contacto-v2 .twl-cv2-field textarea {
  resize: vertical !important;
  min-height: 56px !important;
  line-height: 1.6 !important;
}

/* Submit */
.twl-contacto-v2 .twl-cv2-submit-btn,
.twl-contacto-v2 button.twl-cv2-submit-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100% !important;
  background: var(--accent) !important;
  color: #fff !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  padding: 1.1rem 2rem !important;
  border: none !important;
  border-radius: 0 !important;
  border-width: 0 !important;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  white-space: normal !important;
  line-height: 1.2 !important;
}
.twl-cv2-submit-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.25) 50%, transparent 100%);
  transition: left 0.5s ease;
}
.twl-cv2-submit-btn:hover::before {
  left: 100%;
}
.twl-cv2-submit-btn:hover {
  box-shadow: 0 0 30px rgba(255, 106, 0, 0.3);
}
.twl-cv2-submit-btn:active { transform: scale(0.98); }
.twl-cv2-submit-btn svg {
  width: 16px; height: 16px;
  transition: transform var(--transition);
}
.twl-cv2-submit-btn:hover svg {
  transform: translateX(4px);
}

/* ── FILE UPLOAD ── */
.twl-cv2-field-upload { margin-top: 0.25rem; }
.twl-cv2-field-upload label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
  margin-bottom: 0.5rem;
}
.twl-cv2-file-input {
  width: 100%;
  padding: 0.75rem;
  background: rgba(255,255,255,0.04);
  border: 1px dashed #444;
  border-radius: 6px;
  color: #ccc;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.3s ease;
}
.twl-cv2-file-input:hover,
.twl-cv2-file-input:focus { border-color: var(--accent); }
.twl-cv2-upload-hint {
  font-size: 0.7rem;
  color: #666;
  margin-top: 0.35rem;
}

/* ── SCROLL REVEAL ── */
.twl-contacto-v2 [data-reveal] {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}
.twl-contacto-v2 [data-reveal="left"]  { transform: translateX(-60px); }
.twl-contacto-v2 [data-reveal="right"] { transform: translateX(60px); }
.twl-contacto-v2 [data-reveal="scale"] { transform: scale(0.92); }
.twl-contacto-v2 [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}
.twl-contacto-v2 [data-parallax] {
  will-change: transform;
}

/* ── SCROLLBAR ── */
.twl-contacto-v2 ::-webkit-scrollbar { width: 6px; }
.twl-contacto-v2 ::-webkit-scrollbar-track { background: var(--bg); }
.twl-contacto-v2 ::-webkit-scrollbar-thumb { background: #333; }
.twl-contacto-v2 ::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── SELECTION ── */
.twl-contacto-v2 ::selection { background: var(--accent); color: #fff; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .twl-cv2-hero-split {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 60px;
    padding-bottom: 40px;
  }
  .twl-contacto-v2 .twl-footer-final {
    padding-top: 40px;
  }
  .twl-cv2-hero-split__text {
    padding: clamp(3rem, 8vw, 5rem) clamp(2rem, 5vw, 4rem);
  }
  .twl-cv2-hero-split__text::after {
    clip-path: none;
  }
  .twl-cv2-hero-split__form {
    border-left: none;
    border-top: 1px solid var(--grid-line);
    padding: clamp(2rem, 4vw, 3rem);
  }
  .twl-cv2-form-card {
    margin: 0 -1rem;
    padding: clamp(1.5rem, 3vw, 2.5rem);
  }
  .twl-cv2-vertical-label { display: none; }
  .twl-contacto-v2 .twl-cv2-hero-title,
  .twl-contacto-v2 h1.twl-cv2-hero-title { font-size: clamp(3.7625rem, 15.3vw, 7rem) !important; }
  .twl-cv2-form-row-2 { grid-template-columns: 1fr; }
}

/* ── Mobile 480px contacto refinements ── */
@media (max-width: 480px) {
  .twl-cv2-hero-split { padding-top: 100px; }
  .twl-cv2-hero__title { font-size: clamp(1.8rem, 8vw, 2.5rem); }
}
