/* ══ LAYOUT PRINCIPAL — split full height ══ */
    .main {
      min-height: 100vh;
      display: grid;
      grid-template-columns: 1fr 1.1fr;
      padding-top: 0;
    }

/* ── LADO IZQUIERDO ── */
    .left {
      padding: 40px 64px 60px 52px;
      border-right: 1px solid var(--line);
      display: flex; flex-direction: column; justify-content: space-between;
      position: sticky; top: 68px; height: calc(100vh - 68px);
      overflow: hidden;
    }

/* Marca de agua */
    .left-wm {
      position: absolute; right: -40px; bottom: -20px;
      font-size: 220px; font-weight: 900; letter-spacing: -10px;
      color: rgba(255,255,255,.022); line-height: 1;
      pointer-events: none; user-select: none;
    }

.left-top { position: relative; }

.eyebrow {
      display: flex; align-items: center; gap: 12px;
      font-size: 11px; font-weight: 600; letter-spacing: 2.5px;
      text-transform: uppercase; color: var(--orange); margin-bottom: 28px;
    }

.left-title {
      font-size: clamp(40px, 5vw, 72px);
      font-weight: 900; letter-spacing: -2.5px; line-height: .92;
      color: #f0f0f0; margin-bottom: 24px;
    }

.left-title em { font-style: normal; color: var(--orange); display: block; }

.left-sub {
      font-size: 15px; color: var(--muted); line-height: 1.75; max-width: 380px;
    }

/* Canales de contacto */
    .contact-channels { display: flex; flex-direction: column; gap: 0; position: relative; }

.channel {
      display: flex; align-items: center; gap: 18px;
      padding: 20px 0; border-bottom: 1px solid var(--line);
      transition: background .2s;
    }

.channel:last-child { border-bottom: none; }

.ch-icon {
      width: 42px; height: 42px; flex-shrink: 0;
      background: rgba(255,255,255,.03); border: 1px solid var(--line2); border-radius: 8px;
      display: flex; align-items: center; justify-content: center;
    }

.ch-icon svg { width: 17px; height: 17px; color: var(--orange); }

.ch-label { font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: .5px; margin-bottom: 2px; }

.ch-val { font-size: 15px; font-weight: 700; color: #f0f0f0; }

.ch-val a { transition: color .2s; }

.ch-val a:hover { color: var(--orange); }

/* Divisiones rápidas */
    .left-divs {
      display: flex; flex-direction: column; gap: 8px; position: relative;
    }

.left-divs-label {
      font-size: 10px; font-weight: 700; letter-spacing: 2.5px;
      text-transform: uppercase; color: var(--muted); margin-bottom: 4px;
    }

.left-div {
      display: flex; align-items: center; gap: 10px;
      font-size: 13px; color: var(--soft); font-weight: 500;
    }

.ld-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }

/* ── LADO DERECHO — formulario ── */
    .right {
      padding: 40px 52px 60px 64px;
      display: flex; flex-direction: column;
    }

/* Selector de división — el formulario se adapta */
    /* ── Selector de división — barra horizontal deslizable ── */
    /* ── Cápsula exterior del selector ── */
    .div-selector-wrap {
      position: relative;
      margin-bottom: 40px;
      /* Ancho de cápsula: muestra 3 píldoras completas + ~25% de la 4ª */
      max-width: 520px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,0.1);
      background: #0d0d0d;
      overflow: hidden;
      /* Fade en bordes para indicar continuación */
      -webkit-mask-image: linear-gradient(to right, black 0%, black 82%, transparent 100%);
      mask-image: linear-gradient(to right, black 0%, black 82%, transparent 100%);
    }

.div-selector {
      display: flex; flex-direction: row; gap: 0;
      overflow-x: auto; overflow-y: hidden;
      -webkit-overflow-scrolling: touch;
      padding: 5px;
      scrollbar-width: none;
      scroll-behavior: auto;
    }

.div-selector::-webkit-scrollbar { display: none; }

/* Cada píldora: ancho fijo para que siempre se vean 3 + recorte */
    .div-btn {
      background: transparent; border: none; border-radius: 999px;
      cursor: pointer; padding: 11px 0; white-space: nowrap;
      display: flex; align-items: center; gap: 8px; flex-shrink: 0;
      transition: background .2s; font-family: inherit;
      /* 3 píldoras + 25% = max-width/3.25 ≈ 160px cada una */
      width: 150px; justify-content: center;
    }

.div-btn:hover { background: rgba(255,255,255,0.05); }

.div-btn.active { background: rgba(255,255,255,0.08); }

.db-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

.db-name { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .3px; transition: color .2s; }

.div-btn.active .db-name, .div-btn:hover .db-name { color: #f0f0f0; }

/* Separador vertical entre píldoras */
    .div-btn + .div-btn { border-left: 1px solid rgba(255,255,255,0.06); }

/* Indicador de división activa */
    .div-context {
      padding: 14px 20px; border-radius: 5px; margin-bottom: 32px;
      background: rgba(245,166,35,.06); border: 1px solid rgba(245,166,35,.12);
      display: flex; align-items: center; gap: 12px;
      transition: background .3s, border-color .3s, opacity .25s, max-height .3s;
      overflow: hidden; max-height: 80px;
    }

.div-context.hidden {
      opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: 0;
      border-color: transparent; pointer-events: none;
    }

.div-context-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; background: var(--orange); transition: background .3s; }

.div-context-text { font-size: 13px; color: var(--soft); }

.div-context-text strong { color: #f0f0f0; font-weight: 600; }

/* Formulario */
    .contact-form { display: flex; flex-direction: column; gap: 16px; }

.field-division { display: none; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field input, .field select, .field textarea {
      background: #0d0d0d; border: 1px solid var(--line2);
      border-radius: 6px; padding: 13px 16px;
      font-size: 14px; color: #f0f0f0; font-family: inherit;
      transition: border-color .2s; appearance: none; -webkit-appearance: none;
    }

.field input::placeholder, .field textarea::placeholder { color: #2a2a2a; }

.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); }

.field textarea { resize: vertical; min-height: 120px; }

/* Asunto dinámico por división */
    .field-asunto { transition: opacity .3s; }

.form-submit {
      background: var(--orange); color: #000;
      font-size: 15px; font-weight: 700; padding: 17px;
      border-radius: 6px; border: none; cursor: pointer; width: 100%;
      font-family: inherit; transition: opacity .2s, transform .2s; margin-top: 4px;
      display: flex; align-items: center; justify-content: center; gap: 9px;
    }

.form-submit:hover { opacity: .88; transform: translateY(-1px); }

.form-legal { font-size: 11px; color: #333; text-align: center; line-height: 1.5; }

.form-legal a { color: #444; text-decoration: underline; }

/* Estado éxito */
    .form-success {
      display: none; text-align: center; padding: 60px 20px;
      flex-direction: column; align-items: center; gap: 20px;
    }

.form-success.show { display: flex; }

.success-ring {
      width: 72px; height: 72px; border-radius: 50%;
      border: 1.5px solid rgba(91,168,90,.3);
      display: flex; align-items: center; justify-content: center;
    }

.success-ring svg { width: 28px; height: 28px; color: var(--green); }

.success-title { font-size: 24px; font-weight: 900; letter-spacing: -1px; color: #f0f0f0; }

.success-sub { font-size: 15px; color: var(--muted); line-height: 1.7; max-width: 380px; }

.success-div {
      font-size: 12px; font-weight: 600; letter-spacing: 1px;
      text-transform: uppercase; color: var(--orange); margin-top: 4px;
    }

/* ══ MAPA / UBICACIÓN ══ */
    .s-ubicacion {
      background: var(--surface);
      border-top: 1px solid var(--line);
      padding: 100px 52px;
    }

.ubicacion-inner {
      max-width: 1400px; margin: 0 auto;
      display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
    }

.ubi-title {
      font-size: clamp(28px, 3.5vw, 44px); font-weight: 900;
      letter-spacing: -1.5px; line-height: 1; color: #f0f0f0; margin-bottom: 28px;
    }

.ubi-datos { display: flex; flex-direction: column; gap: 0; }

.ubi-dato {
      display: flex; gap: 16px; padding: 18px 0;
      border-bottom: 1px solid var(--line); align-items: flex-start;
    }

.ubi-dato:last-child { border-bottom: none; }

.ud-icon {
      width: 36px; height: 36px; flex-shrink: 0;
      background: rgba(245,166,35,.06); border: 1px solid rgba(245,166,35,.1);
      border-radius: 6px; display: flex; align-items: center; justify-content: center;
    }

.ud-icon svg { width: 15px; height: 15px; color: var(--orange); }

.ud-label { font-size: 11px; color: var(--muted); font-weight: 500; margin-bottom: 2px; }

.ud-val { font-size: 14px; font-weight: 600; color: #f0f0f0; }

.ud-val a { color: var(--orange); transition: opacity .2s; }

.ud-val a:hover { opacity: .75; }

/* Mapa placeholder */
    .mapa-ph {
      aspect-ratio: 4/3; border-radius: 8px;
      background: #0d0d0d; border: 1px solid var(--line);
      display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
      overflow: hidden; position: relative;
    }

/* Grid de mapa ficticio */
    .mapa-ph::before {
      content: '';
      position: absolute; inset: 0;
      background-image:
        repeating-linear-gradient(0deg, transparent 0, transparent 39px, rgba(255,255,255,.03) 39px, rgba(255,255,255,.03) 40px),
        repeating-linear-gradient(90deg, transparent 0, transparent 39px, rgba(255,255,255,.03) 39px, rgba(255,255,255,.03) 40px);
    }

.mapa-pin {
      position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px;
    }

.mapa-pin-icon {
      width: 48px; height: 48px; background: var(--orange); border-radius: 50% 50% 50% 0;
      transform: rotate(-45deg); display: flex; align-items: center; justify-content: center;
      box-shadow: 0 4px 20px rgba(245,166,35,.3);
    }

.mapa-pin-icon svg { transform: rotate(45deg); width: 20px; height: 20px; color: #000; }

.mapa-pin-label {
      background: rgba(10,10,10,.9); border: 1px solid var(--line2);
      padding: 8px 14px; border-radius: 5px;
      font-size: 12px; font-weight: 600; color: #f0f0f0; white-space: nowrap;
    }

.mapa-sub { font-size: 11px; color: var(--muted); }

/* ▼ PARA AÑADIR GOOGLE MAPS REAL: sustituir .mapa-ph por:
       <iframe src="https://maps.google.com/maps?q=Calle+Álamos+37+Alhaurín+de+la+Torre&output=embed"
               width="100%" height="100%" style="border:0;border-radius:8px" allowfullscreen loading="lazy"></iframe>
    */

    /* ══ REVEAL ══ */
/* ══ RESPONSIVE ══ */
    @media (max-width: 1100px) {
      .main { grid-template-columns: 1fr; }
      .left {
        position: static; height: auto;
        padding: 100px 24px 56px;
        border-right: none; border-bottom: 1px solid var(--line);
      }
      .left-wm { display: none; }
      .right { padding: 56px 24px 72px; }
      .div-selector-wrap { max-width: 100%; border-radius: 999px; }
      .div-btn { width: 140px; }
      .ubicacion-inner { grid-template-columns: 1fr; gap: 48px; }
    }

@media (max-width: 900px) {
      .nav { padding: 0 24px; }
      .nav-links { display: none; }
      .ham { display: flex; }
      .s-ubicacion { padding: 72px 24px; }
}

@media (max-width: 600px) {
      .form-row { grid-template-columns: 1fr; }
      /* pill bar stays flex/scroll on mobile */
}
