/* =====================================================================
   14-contacto.css — Página de contacto (contacto.php)
   Misma línea que la tienda: blanco, tipografía Manrope, color de marca.
   ===================================================================== */

:root {
    --ct-ink: #1b1a19;
    --ct-text: #4a4541;
    --ct-muted: #8a847d;
    --ct-line: #e7e2dc;
    --ct-soft: #f6f3ef;
    --ct-brand: #a83c34;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
    font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--ct-text); background: #fff; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

.ct { display: grid; grid-template-columns: minmax(320px, 5fr) 7fr; min-height: 100vh; }

/* ---------- Columna izquierda ---------- */
.ct-aside {
    position: relative; color: #fff; padding: 36px 48px 48px;
    display: flex; flex-direction: column;
    background: linear-gradient(180deg, rgba(20, 16, 14, .55), rgba(20, 16, 14, .78)),
                url("../../images/jpeg-optimizer_portada_1.jpg") center / cover no-repeat;
}
.ct-back { color: rgba(255, 255, 255, .85); text-decoration: none; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.ct-back:hover { color: #fff; }
.ct-aside-body { margin-top: auto; max-width: 440px; }
.ct-logo img { width: 64px; height: 64px; border-radius: 50%; background: #fff; padding: 4px; display: block; margin-bottom: 26px; }
.ct-kicker { font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .7); margin: 0 0 10px; }
.ct-aside h1 { font-size: clamp(30px, 3.2vw, 42px); line-height: 1.12; font-weight: 700; margin: 0 0 14px; color: #fff; }
.ct-lead { font-size: 16px; line-height: 1.65; color: rgba(255, 255, 255, .85); margin: 0 0 30px; }

.ct-channels { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ct-channels a {
    display: flex; align-items: center; gap: 14px; text-decoration: none;
    padding: 12px 16px; border-radius: 10px; background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16); transition: background .2s, transform .2s;
}
.ct-channels a:hover { background: rgba(255, 255, 255, .2); transform: translateX(3px); }
.ct-channels i { font-size: 20px; width: 24px; text-align: center; }
.ct-channels span { display: flex; flex-direction: column; font-size: 15px; font-weight: 600; }
.ct-channels small { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }

/* ---------- Formulario ---------- */
.ct-main { display: flex; align-items: center; justify-content: center; padding: 56px 48px; background: var(--ct-soft); }
.ct-card {
    width: 100%; max-width: 620px; background: #fff; border-radius: 14px;
    padding: 40px 42px; box-shadow: 0 18px 50px rgba(30, 20, 10, .07);
}
.ct-card h2 { font-size: 26px; font-weight: 700; color: var(--ct-ink); margin: 0 0 6px; }
.ct-sub { margin: 0 0 26px; color: var(--ct-muted); font-size: 15px; }

.ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ct-field { position: relative; margin-bottom: 18px; }
.ct-field label { display: block; font-size: 13px; font-weight: 700; color: var(--ct-ink); margin-bottom: 7px; }
.ct-input { position: relative; }
.ct-input i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--ct-muted); font-size: 15px; pointer-events: none; }
.ct-field input, .ct-field textarea {
    width: 100%; font: inherit; font-size: 15px; color: var(--ct-ink);
    border: 1px solid var(--ct-line); border-radius: 10px; background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.ct-field input { height: 50px; padding: 0 14px 0 42px; }
.ct-field textarea { padding: 14px; resize: vertical; min-height: 150px; line-height: 1.55; }
.ct-field input::placeholder, .ct-field textarea::placeholder { color: #b5aea7; }
.ct-field input:focus, .ct-field textarea:focus { outline: none; border-color: var(--ct-ink); box-shadow: 0 0 0 4px rgba(27, 26, 25, .06); }
.ct-count { position: absolute; right: 12px; bottom: 10px; font-size: 11px; color: var(--ct-muted); pointer-events: none; }
.ct-field.is-invalid .ct-count { bottom: 32px; }

.ct-error { display: none; color: var(--ct-brand); font-size: 12.5px; font-weight: 600; margin-top: 6px; }
.ct-field.is-invalid .ct-error { display: block; }
.ct-field.is-invalid input, .ct-field.is-invalid textarea { border-color: var(--ct-brand); }

.ct-btn {
    width: 100%; height: 54px; border: 0; border-radius: 10px; cursor: pointer;
    background: var(--ct-ink); color: #fff; font: inherit; font-size: 14px; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; transition: background .2s, transform .1s;
}
.ct-btn:hover:not(:disabled) { background: var(--ct-brand); }
.ct-btn:active:not(:disabled) { transform: scale(.99); }
.ct-btn:disabled { opacity: .7; cursor: default; }
.ct-note { margin: 14px 0 0; text-align: center; font-size: 12.5px; color: var(--ct-muted); }
.ct-note i { margin-right: 4px; }

.ct-alert { display: flex; gap: 10px; align-items: flex-start; padding: 13px 16px; border-radius: 10px; margin-bottom: 20px; font-size: 14.5px; font-weight: 600; }
.ct-alert i { margin-top: 2px; }
.ct-alert-ok { background: #ecf6ef; color: #23663a; }
.ct-alert-error { background: #fbeceb; color: #9a2f28; }

/* ---------- Tablet y celular ---------- */
@media (max-width: 991.98px) {
    .ct { grid-template-columns: 1fr; }
    .ct-aside { padding: 22px 22px 30px; min-height: 0; }
    .ct-aside-body { margin-top: 26px; max-width: none; }
    .ct-logo img { width: 52px; height: 52px; margin-bottom: 16px; }
    .ct-lead { margin-bottom: 20px; font-size: 15px; }
    .ct-channels { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
    .ct-main { padding: 22px 14px calc(30px + env(safe-area-inset-bottom)); align-items: flex-start; }
    .ct-card { padding: 26px 20px; border-radius: 14px; }
}
@media (max-width: 575.98px) {
    .ct-row { grid-template-columns: 1fr; gap: 0; }
    .ct-aside h1 { font-size: 28px; }
    .ct-channels a { padding: 10px 14px; }
    /* iOS no hace zoom al tocar un campo con 16px */
    .ct-field input, .ct-field textarea { font-size: 16px; }
}
