/* ============================================================
   Contacto page — contacto.css
   Split layout: form left / image right, full-viewport height
   ============================================================ */

.contacto-page {
    --ct-green:   #003B3A;
    --ct-accent:  #00AF4C;
    --ct-dark:    #1A2B1A;
    --ct-muted:   #5A6B5A;
    --ct-border:  #DDE5DD;
    --ct-bg:      #F7FAF7;
    --ct-white:   #ffffff;
    --ct-error:   #C0392B;
    --ct-radius:  10px;
    --ct-heading: 'Quicksand', 'Nunito Sans', system-ui, sans-serif;
    --ct-body:    'Lato', 'Open Sans', system-ui, sans-serif;
    --ct-sub:     'Montserrat', system-ui, sans-serif;

    font-family: var(--ct-body);
    background: var(--ct-bg);
    color: var(--ct-dark);
}

/* ── Hero grid ───────────────────────────────────────────────────── */

.ct-hero {
    min-height: 100vh;
}

.ct-hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 100vh;
}

@media (min-width: 900px) {
    .ct-hero__grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ── Form column ─────────────────────────────────────────────────── */

.ct-hero__form-col {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 100px 40px 60px; /* 100px top clears the fixed nav */
    background: var(--ct-white);
}

@media (min-width: 1200px) {
    .ct-hero__form-col {
        padding: 110px 64px 64px;
    }
}

.ct-hero__form-inner {
    width: 100%;
    max-width: 520px;
}

/* Logo */
.ct-hero__logo {
    width: 200px;
    height: auto;
    display: block;
    margin-bottom: 36px;
}

/* Heading */
.ct-hero__title {
    font-family: var(--ct-heading);
    font-size: 34px;
    font-weight: 800;
    color: var(--ct-green);
    margin: 0 0 10px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

@media (min-width: 1200px) { .ct-hero__title { font-size: 40px; } }

.ct-hero__subtitle {
    font-family: var(--ct-body);
    font-size: 15px;
    line-height: 1.7;
    color: var(--ct-muted);
    margin: 0 0 32px;
}

/* ── Notice (success / error) ────────────────────────────────────── */

.ct-notice {
    padding: 14px 18px;
    border-radius: var(--ct-radius);
    font-family: var(--ct-sub);
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 24px;
}

.ct-notice--ok {
    background: rgba(0, 175, 76, 0.1);
    color: #006830;
    border: 1px solid rgba(0, 175, 76, 0.3);
}

.ct-notice--err {
    background: rgba(192, 57, 43, 0.08);
    color: var(--ct-error);
    border: 1px solid rgba(192, 57, 43, 0.25);
}

/* ── Form ────────────────────────────────────────────────────────── */

.ct-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ct-form__row {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

@media (min-width: 480px) {
    .ct-form__row--two {
        flex-direction: row;
    }

    .ct-form__row--two .ct-form__field {
        flex: 1;
    }
}

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

.ct-form__label {
    font-family: var(--ct-sub);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ct-dark);
    letter-spacing: 0.01em;
}

.ct-form__label span {
    color: var(--ct-accent);
}

.ct-form__input {
    font-family: var(--ct-body);
    font-size: 14.5px;
    color: var(--ct-dark);
    background: var(--ct-bg);
    border: 1.5px solid var(--ct-border);
    border-radius: var(--ct-radius);
    padding: 11px 15px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    width: 100%;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
}

.ct-form__input::placeholder {
    color: #9EB09E;
}

.ct-form__input:focus {
    border-color: var(--ct-accent);
    box-shadow: 0 0 0 3px rgba(0, 175, 76, 0.12);
    background: var(--ct-white);
}

.ct-form__select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235A6B5A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}

.ct-form__textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.ct-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: var(--ct-green);
    color: var(--ct-white);
    font-family: var(--ct-sub);
    font-size: 14.5px;
    font-weight: 700;
    border: none;
    border-radius: 100px;
    padding: 14px 32px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
    align-self: flex-start;
    margin-top: 4px;
}

.ct-form__submit:hover {
    background: var(--ct-accent);
    transform: translateY(-1px);
}

.ct-form__submit svg {
    flex-shrink: 0;
}

/* ── Contact info strip ──────────────────────────────────────────── */

.ct-info {
    list-style: none;
    margin: 32px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 28px;
    border-top: 1px solid var(--ct-border);
}

.ct-info__item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--ct-body);
    font-size: 14px;
    color: var(--ct-muted);
}

.ct-info__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--ct-accent);
}

/* ── Image column ────────────────────────────────────────────────── */

.ct-hero__img-col {
    position: relative;
    overflow: hidden;
    /* On mobile renders below the form */
    min-height: 320px;
}

@media (min-width: 900px) {
    .ct-hero__img-col {
        position: sticky;
        top: 0;
        height: 100vh;
        min-height: unset;
    }
}

.ct-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    display: block;
}

.ct-hero__img-ph {
    width: 100%;
    height: 100%;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E8EDE8;
    font-family: monospace;
    font-size: 13px;
    color: #8A9A8A;
}
