/**
 * /contacto · F29 · estilo editorial lujo
 * Solo h1 + lead + formulario centrado. Sin iconos. Sin sidebar.
 * Inputs minimalistas con hairline bottom (estilo high-end).
 */

.contacto-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 8px 24px 140px;
}

/* === HEADER · h1 + lead centrados === */
.contacto-head {
    text-align: center;
    margin-bottom: 56px;
}
.contacto-h1 {
    font-family: 'Inter', sans-serif;
    font-size: 44px;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #0f1d2f;
    margin: 0 0 24px;
}
.contacto-lead {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #4b5563;
    max-width: 540px;
    margin: 0 auto;
    font-weight: 400;
}

/* === Marca ProSilicones64 estilizada en el h1 === */
.ps64-mark {
    display: inline-block;
    white-space: nowrap;
    font-weight: 600;
    color: #0f1d2f;
    letter-spacing: -0.02em;
}
.ps64-mark__pro { color: #0f1d2f; }
.ps64-mark__sil { color: #0f1d2f; }
.ps64-mark__64  { color: #00a8e8; }

/* === FORMULARIO · estilo high-end · hairline bottom === */
.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.cf-row {
    display: grid;
    gap: 24px;
}
.cf-row--2 { grid-template-columns: 1fr 1fr; }

.cf-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}
.cf-field label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6b7280;
}
.cf-field label span[aria-hidden="true"] {
    color: #d97706;
    margin-left: 2px;
}

/* INPUTS minimalistas · sin border, solo hairline bottom */
.cf-field input,
.cf-field textarea {
    border: 0;
    border-bottom: 1px solid #d1d5db;
    background: transparent;
    padding: 10px 0;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #0f1d2f;
    border-radius: 0;
    transition: border-color 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    width: 100%;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}
.cf-field input::placeholder,
.cf-field textarea::placeholder {
    color: #9ca3af;
    opacity: 1;
}
.cf-field input:hover,
.cf-field textarea:hover {
    border-bottom-color: #9ca3af;
}
.cf-field input:focus,
.cf-field textarea:focus {
    outline: none;
    border-bottom-color: #0f1d2f;
}
.cf-field textarea {
    min-height: 130px;
    resize: vertical;
    line-height: 1.65;
}

.cf-meta {
    text-align: right;
    font-size: 11px;
    color: #9ca3af;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

.cf-error {
    display: none;
    font-size: 12px;
    color: #d97706;
    margin-top: 4px;
    font-weight: 500;
}
.cf-error.show { display: block; }

/* === DROPZONE · estilo minimal === */
.cf-field--adjuntos label { margin-bottom: 0; }
.cf-drop {
    border: 1px dashed #d1d5db;
    background: transparent;
    padding: 28px 22px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: border-color 0.28s ease, background 0.28s ease;
}
.cf-drop:hover {
    border-color: #6b7280;
    background: rgba(0, 168, 232, 0.025);
}
.cf-drop__input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.cf-drop__label {
    font-size: 13px;
    color: #6b7280;
    letter-spacing: 0.01em;
}
.cf-drop__lista {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}
.cf-drop__lista .archivo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f6f8fa;
    border: 1px solid #e5e7eb;
    font-size: 12.5px;
    color: #1f2937;
}
.cf-drop__lista .archivo .quitar {
    background: none;
    border: none;
    cursor: pointer;
    color: #ef4444;
    font-weight: 600;
}

/* === reCAPTCHA wrapper === */
.cf-recaptcha {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

/* === FINAL · checkbox + submit === */
.cf-final {
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: stretch;
    margin-top: 16px;
}

.cf-check {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.55;
    padding-top: 4px;
    text-align: center;
}
.cf-check input { display: none; }
.cf-check__box {
    width: 18px;
    height: 18px;
    border: 1px solid #d1d5db;
    background: #fff;
    flex-shrink: 0;
    margin-top: 1px;
    position: relative;
    transition: background 0.22s ease, border-color 0.22s ease;
}
.cf-check input:checked + .cf-check__box {
    background: #0f1d2f;
    border-color: #0f1d2f;
}
.cf-check input:checked + .cf-check__box::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3'><polyline points='5,12 10,17 19,7'/></svg>") center/contain no-repeat;
}
.cf-check__txt a { color: #0f1d2f; text-decoration: underline; text-underline-offset: 3px; }
.cf-check__txt a:hover { color: #00a8e8; }

/* === BOTÓN SUBMIT · navy editorial premium === */
.cf-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 32px;
    background: #0f1d2f;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.32s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
                letter-spacing 0.32s ease;
    align-self: stretch;
    width: 100%;
}
.cf-submit:hover {
    background: #1a2942;
    letter-spacing: 0.22em;
}
.cf-submit:active {
    transform: translateY(1px);
}

/* === STATUS BAR === */
.cf-status {
    padding: 14px 18px;
    font-size: 13px;
    border-left: 2px solid;
    display: none;
    background: #f6f8fa;
}
.cf-status.sending { display: block; border-color: #00a8e8; color: #0f1d2f; }
.cf-status.ok      { display: block; border-color: #10b981; color: #065f46; background: #ecfdf5; }
.cf-status.error   { display: block; border-color: #ef4444; color: #991b1b; background: #fef2f2; }

/* === Embed mode (iframe del modal desktop) === */
.contacto-embed .contacto-head { margin-bottom: 48px; }
.contacto-embed .contacto-h1 { font-size: 28px; }
.contacto-embed .contacto-lead { font-size: 14px; }

/* === F60 · Pantallas de resultado en el embed (sustituyen al form) === */
.embed-result {
    text-align: center;
    padding: 60px 24px;
    max-width: 480px;
    margin: 0 auto;
}
.embed-result__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 0;
    margin-bottom: 24px;
}
.embed-result__icon--ok  { color: #10b981; background: #ecfdf5; }
.embed-result__icon--err { color: #d97706; background: #fffbeb; }
.embed-result__h {
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
    color: #0f1d2f;
    margin: 0 0 12px;
}
.embed-result__p {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
    margin: 0 0 24px;
}

/* === Páginas /contacto-enviado y /contacto-error · F52 === */
.contacto-enviado {                 /* banda gris a sangre (fullbleed) */
    max-width: none;
    margin: 0;
    padding: 44px 24px 100px;
    background: #f4f6f8;
    text-align: center;
}
.contacto-enviado__inner {          /* tarjeta blanca centrada */
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e6e9ee;
    padding: 64px 56px;
}
.contacto-enviado__icon {           /* badge circular con tinte de marca */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    margin: 0 auto 32px;
    border-radius: 50%;
    background: rgba(0, 168, 232, 0.10);
    color: #00a8e8;
    font-size: 36px;
    line-height: 1;
}
.contacto-enviado__icon--error {
    background: rgba(217, 119, 6, 0.10);
    color: #d97706;
}
.contacto-enviado h1 {
    font-family: 'Inter', sans-serif;
    font-size: 38px;
    font-weight: 300;
    letter-spacing: -0.02em;
    color: #0f1d2f;
    margin: 0 0 16px;
}
.contacto-enviado__lead {
    font-size: 16px;
    line-height: 1.7;
    color: #4b5563;
    margin: 0 auto 36px;
    max-width: 440px;
}
.contacto-enviado__hint {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 36px;
}
.contacto-enviado__hint a { color: #00a8e8; text-decoration: underline; text-underline-offset: 3px; }
.contacto-enviado__actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* === Responsive === */
@media (max-width: 720px) {
    .contacto-wrap { padding: 4px 20px 90px; }
    .contacto-head { margin-bottom: 40px; }
    .contacto-h1 { font-size: 30px; }
    .contacto-lead { font-size: 15px; }
    .cf-row--2 { grid-template-columns: 1fr; gap: 28px; }
    .contacto-form { gap: 28px; }
    .contacto-enviado { padding: 24px 16px 72px; }
    .contacto-enviado__inner { padding: 48px 26px; }
    .contacto-enviado h1 { font-size: 28px; }
}
