/* =====================================================
   CONTACTO PAGE  —  css/contacto.css
   ===================================================== */

/* ── Layout ────────────────────────────────────────── */
.ct-page {
    background: #F4F6F9;
    min-height: calc(100vh - 80px);
}

.ct-main {
    padding: 5rem 0 6rem;
}

.ct-main__inner {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
    align-items: start;
}

/* ── Left column ────────────────────────────────────── */
.ct-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #0A2342;
    line-height: 1.15;
    margin: 0 0 1rem;
}

.ct-sub {
    font-size: 1.0625rem;
    color: #4B5563;
    line-height: 1.7;
    margin: 0 0 2.5rem;
    max-width: 420px;
}

/* ── Contact info items ─────────────────────────────── */
.ct-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ct-info__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.ct-info__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #0A2342;
    color: #FFBF00;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ct-info__label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #4B5563;
    margin: 0 0 0.2rem;
}

.ct-info__value {
    font-size: 0.9375rem;
    color: #0A2342;
    font-weight: 500;
    text-decoration: none;
    line-height: 1.4;
    word-break: break-word;
}

a.ct-info__value:hover {
    color: #1F77B4;
    text-decoration: underline;
}

/* ── Right column card ──────────────────────────────── */
.ct-right {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 24px rgba(10,35,66,0.08);
}

/* ── Error alert ────────────────────────────────────── */
.ct-alert {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
    border-radius: 8px;
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* ── Form grid ──────────────────────────────────────── */
.ct-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.ct-form__field {
    display: flex;
    flex-direction: column;
}

.ct-form__field--full {
    grid-column: 1 / -1;
}

/* ── Inputs, select, textarea ───────────────────────── */
.ct-form__field input,
.ct-form__field select,
.ct-form__field textarea {
    width: 100%;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    color: #0A2342;
    background: #F4F6F9;
    border: 1.5px solid #E2E8F0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    box-sizing: border-box;
}

.ct-form__field input::placeholder,
.ct-form__field textarea::placeholder {
    color: #9CA3AF;
}

.ct-form__field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='%234B5563'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.25rem;
    cursor: pointer;
    color: #0A2342;
}

.ct-form__field select option[value=""] {
    color: #9CA3AF;
}

.ct-form__field input:focus,
.ct-form__field select:focus,
.ct-form__field textarea:focus {
    border-color: #1F77B4;
    box-shadow: 0 0 0 3px rgba(31,119,180,0.12);
    background: #ffffff;
}

.ct-form__field textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.6;
}

/* ── Policy checkbox ────────────────────────────────── */
.ct-form__policy {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: #4B5563;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    cursor: pointer;
}

.ct-form__policy input[type="checkbox"] {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: #1F77B4;
    cursor: pointer;
}

.ct-form__policy a {
    color: #1F77B4;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ct-form__policy a:hover {
    color: #0A2342;
}

/* ── Submit button ──────────────────────────────────── */
.ct-form__submit {
    display: block;
    width: 100%;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background: #0A2342;
    border: none;
    border-radius: 8px;
    padding: 0.875rem 1rem;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.12s ease;
    letter-spacing: 0.02em;
}

.ct-form__submit:hover {
    background: #1F77B4;
}

.ct-form__submit:active {
    transform: scale(0.98);
}

/* ── Success state ──────────────────────────────────── */
.ct-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
    gap: 0.75rem;
}

.ct-success__icon {
    color: #1F77B4;
    margin-bottom: 0.5rem;
}

.ct-success__title {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #0A2342;
    margin: 0;
}

.ct-success__body {
    font-size: 1rem;
    color: #4B5563;
    line-height: 1.65;
    margin: 0;
    max-width: 340px;
}

.ct-success__btn {
    display: inline-block;
    margin-top: 0.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #ffffff;
    background: #0A2342;
    border-radius: 8px;
    padding: 0.75rem 1.75rem;
    text-decoration: none;
    transition: background 0.18s ease;
}

.ct-success__btn:hover {
    background: #1F77B4;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 900px) {
    .ct-main__inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .ct-sub {
        max-width: 100%;
    }

    .ct-info {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .ct-info__item {
        min-width: 200px;
    }
}

@media (max-width: 600px) {
    .ct-main {
        padding: 3rem 0 4rem;
    }

    .ct-right {
        padding: 1.75rem 1.25rem;
    }

    .ct-form__grid {
        grid-template-columns: 1fr;
    }

    .ct-info {
        flex-direction: column;
    }
}
