/* contacto.html */

    /* Botón de correo directo: oculto en escritorio, visible en teléfono */
    .mail-directo { display: none; }
    .mail-o { display: none; }

    .page-head { padding: 190px 60px 80px; background: var(--navy); color: var(--cream); }
    .page-head h1 { font-size: clamp(38px, 5vw, 60px); margin-bottom: 22px; }
    .page-head .lede { max-width: 540px; }
    .contact-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 88px; align-items: start; }
    .form-note { margin-bottom: 26px; }

    [hidden] { display: none !important; }

    form { display: flex; flex-direction: column; gap: 18px; }
    label { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--slate); display: block; margin-bottom: 7px; }
    .req { color: var(--garnet); margin-left: 2px; }
    .opt { letter-spacing: .06em; text-transform: none; opacity: .7; }
    .form-note { margin-bottom: 26px; }

    input, textarea {
      width: 100%; background: #FFFFFF;
      border: 1px solid var(--rule-l); color: var(--ink);
      font-family: "Inter", sans-serif; font-weight: 300; font-size: 14px;
      padding: 13px 15px; outline: none; border-radius: 0;
      transition: border-color .2s;
    }
    input:focus, textarea:focus { border-color: var(--garnet); }
    textarea { min-height: 150px; resize: vertical; }

    [aria-invalid="true"] { border-color: var(--garnet); }
    .field-error { color: var(--garnet); font-size: 12px; line-height: 1.5; margin-top: 6px; }
    .field-error:empty { display: none; }
    .field-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
    .char-count { font-size: 11px; color: var(--slate); margin-top: 6px; flex-shrink: 0; }

    .field-check { display: flex; align-items: flex-start; gap: 12px; }
    .field-check input[type="checkbox"] {
      width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px;
      accent-color: var(--garnet); cursor: pointer;
    }
    .check-label {
      text-transform: none; letter-spacing: 0; font-size: 13px; line-height: 1.65;
      color: var(--ink); opacity: .82; margin: 0; cursor: pointer;
    }
    .check-label a { color: var(--navy); text-underline-offset: 3px; }

    .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

    .form-status { font-size: 13px; line-height: 1.6; margin-top: 4px; }
    .form-status:empty { display: none; }
    .form-status.error { color: var(--garnet); }
    .form-status a     { color: var(--navy); }
    #submitBtn { align-self: flex-start; }
    #submitBtn:disabled { opacity: .55; cursor: default; }

    .form-ok { border: 1px solid var(--rule-l); background: var(--cream); padding: 44px 36px; outline: none; }
    .form-ok h3 { font-size: 26px; color: var(--navy); margin-bottom: 14px; }
    .form-ok p { font-size: 14px; line-height: 1.75; color: var(--ink); opacity: .85; }
    .form-ok .form-ok-mail { margin-top: 14px; font-size: 12.5px; color: var(--slate); }
    .form-ok .form-ok-mail a { color: var(--navy); }

    .correo-bloque { border-top: 1px solid var(--navy); padding: 30px 0 34px; }
    .correo-etiqueta {
      display: block; font-size: 10px; letter-spacing: .18em;
      text-transform: uppercase; color: var(--slate); margin-bottom: 16px;
    }
    .correo-directo {
      font-family: "Cormorant Garamond", serif; font-weight: 400;
      font-size: clamp(28px, 3.4vw, 42px); line-height: 1.15;
      color: var(--navy); text-decoration: none;
      border-bottom: 1px solid var(--rule-l); padding-bottom: 6px;
      transition: border-color .3s, color .3s; word-break: break-word;
    }
    .correo-directo:hover { color: var(--garnet); border-bottom-color: var(--garnet); }

    .legal-note {
      font-size: 11.5px; line-height: 1.75; color: var(--slate);
      border-top: 1px solid var(--rule-l); padding-top: 18px;
    }
    .legal-note a { color: var(--navy); }

    /* Columna derecha: oficina y mapa */
    .oficina { border-top: 1px solid var(--navy); padding-top: 30px; }
    .oficina h2 { font-size: 24px; color: var(--navy); margin-bottom: 26px; font-weight: 400; }
    .oficina .torre {
      font-family: "Cormorant Garamond", serif; font-size: 28px; font-weight: 400;
      color: var(--navy); line-height: 1.2; margin-bottom: 14px;
    }
    .oficina address {
      font-style: normal; font-size: 14px; line-height: 1.85;
      color: var(--ink); opacity: .82; margin-bottom: 20px;
    }
    .oficina .cita { font-size: 12px; color: var(--slate); line-height: 1.8; margin-bottom: 26px; }
    .mapa {
      position: relative; width: 100%; aspect-ratio: 4 / 3;
      border: 1px solid var(--rule-l); overflow: hidden; background: var(--stone);
    }
    .mapa iframe {
      width: 100%; height: 100%; border: 0; display: block;
      filter: grayscale(1) contrast(1.05); transition: filter .4s ease;
    }
    .mapa:hover iframe, .mapa:focus-within iframe { filter: grayscale(0) contrast(1); }
    @media (hover: none) { .mapa iframe { filter: grayscale(0) contrast(1); } }
    .mapa-pie {
      display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
      margin-top: 14px; font-size: 12px; color: var(--slate);
    }
    .mapa-pie a { color: var(--garnet); text-decoration: none; }
    .mapa-pie a:hover { text-decoration: underline; text-underline-offset: 3px; }

    @media (max-width: 900px) {
      .page-head { padding: 150px 24px 60px; }
      .page-head--photo { min-height: 240px; padding-bottom: 30px; }
      .contact-grid { grid-template-columns: 1fr; gap: 56px; }
      input, textarea { font-size: 16px; padding: 14px 15px; }
      #submitBtn { align-self: stretch; justify-content: center; }
      .form-ok { padding: 34px 24px; }
      .mapa { aspect-ratio: 3 / 2; }
    }

    @media (max-width: 600px) {
      .mail-directo {
        display: flex; align-items: center; gap: 15px;
        background: var(--navy); color: var(--cream);
        padding: 20px 22px; margin-bottom: 22px; border-radius: 0;
        text-decoration: none; transition: background .25s;
      }
      .mail-directo:active { background: var(--navy-d); }
      .mail-directo-ico { color: var(--garnet-lt); flex-shrink: 0; display: flex; }
      .mail-directo-txt { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
      .mail-directo-t { font-size: 14px; letter-spacing: .01em; }
      .mail-directo-arrow { color: var(--garnet-lt); font-size: 18px; flex-shrink: 0; }

      .mail-o {
        display: flex; align-items: center; text-align: center;
        color: var(--slate); font-size: 11px; letter-spacing: .1em;
        text-transform: uppercase; margin: 0 0 22px;
      }
      .mail-o::before, .mail-o::after {
        content: ""; flex: 1; height: 1px; background: var(--rule-l);
      }
      .mail-o span { padding: 0 14px; }
    }
