/* ==========================================================================
   Contact Page — ct-* namespace
   ========================================================================== */

/* ==========================================================================
   Hero — fondo azul de marca con orbes decorativos
   ========================================================================== */
.ct-hero {
    background: linear-gradient(135deg, #2C3D85 0%, #1e2d66 100%);
    padding: 72px 0 64px;
    position: relative;
    overflow: hidden;
}

.ct-hero::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -100px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: rgba(155, 182, 67, 0.1);
    pointer-events: none;
}

.ct-hero::after {
    content: '';
    position: absolute;
    bottom: -90px;
    left: 25%;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.ct-hero__text {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.ct-hero__eyebrow {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9BB643;
    background: rgba(155, 182, 67, 0.15);
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    margin-bottom: 1.25rem;
}

.ct-hero__title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 1.25rem;
    line-height: 1.1;
    text-transform: uppercase;
}

.ct-hero__subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.75;
    margin: 0;
    max-width: 520px;
}

/* ==========================================================================
   Main section
   ========================================================================== */
.ct-section {
    padding: 3.5rem 0 5rem;
}

.ct-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    align-items: start;
}

/* ==========================================================================
   Form card
   ========================================================================== */
.ct-form-card {
    background: white;
    border-radius: 20px;
    padding: 2.25rem 2.5rem;
    border: 1px solid rgba(44, 61, 133, 0.1);
    box-shadow: 0 4px 32px rgba(44, 61, 133, 0.08);
}

.ct-form-card__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(44, 61, 133, 0.08);
}

.ct-form-card__icon {
    width: 52px;
    min-width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #2C3D85 0%, #3a4ea0 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    box-shadow: 0 4px 14px rgba(44, 61, 133, 0.28);
}

.ct-form-card__title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #2C3D85;
    margin: 0 0 0.2rem;
}

.ct-form-card__subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.83rem;
    color: #94a3b8;
    margin: 0;
}

/* ==========================================================================
   Form fields
   ========================================================================== */
.ct-form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.ct-feedback {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    border-radius: 14px;
    padding: 1rem 1.1rem;
    margin-bottom: 1.5rem;
    font-size: 0.88rem;
    line-height: 1.6;
}

.ct-feedback i {
    font-size: 1rem;
    margin-top: 0.1rem;
}

.ct-feedback strong {
    display: block;
    margin-bottom: 0.15rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
}

.ct-feedback p {
    margin: 0;
}

.ct-feedback--success {
    background: rgba(155, 182, 67, 0.12);
    border: 1px solid rgba(155, 182, 67, 0.3);
    color: #46611a;
}

.ct-feedback--error {
    background: rgba(220, 53, 69, 0.06);
    border: 1px solid rgba(220, 53, 69, 0.22);
    color: #b42318;
}

.ct-validation-summary {
    display: none;
    border-radius: 12px;
    padding: 0.9rem 1rem;
    background: rgba(220, 53, 69, 0.06);
    border: 1px solid rgba(220, 53, 69, 0.22);
    color: #b42318;
    font-size: 0.84rem;
    line-height: 1.6;
}

.ct-validation-summary.validation-summary-errors {
    display: block;
}

.ct-validation-summary ul {
    margin: 0;
    padding-left: 1.1rem;
}

.ct-validation-summary li {
    margin: 0;
}

.ct-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1rem;
    row-gap: 0.9rem;
}

.ct-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.ct-field__label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: #2C3D85;
}

/* Wrapper for icon + input */
.ct-field__wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.ct-field__icon {
    position: absolute;
    left: 0.85rem;
    font-size: 0.82rem;
    color: #94a3b8;
    pointer-events: none;
    transition: color 0.2s ease;
    z-index: 1;
}

/* When input inside wrap is focused, tint the icon */
.ct-field__wrap:focus-within .ct-field__icon {
    color: #2C3D85;
}

.ct-field__input {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    color: #1a2b4a;
    background: #f8faff;
    border: 1.5px solid rgba(44, 61, 133, 0.15);
    border-radius: 10px;
    padding: 0.65rem 0.9rem 0.65rem 2.4rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

/* Textarea has no prefix icon, reset left padding */
.ct-field__input--textarea {
    padding-left: 0.9rem;
}

.ct-field__input::placeholder {
    color: #b0bec5;
    font-size: 0.85rem;
}

.ct-field__input:focus {
    border-color: #2C3D85;
    background: white;
    box-shadow: 0 0 0 3px rgba(44, 61, 133, 0.1);
}

.ct-field__input.input-validation-error {
    border-color: #dc3545;
}

.ct-field__input.input-validation-error:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

.ct-field__input--textarea {
    resize: vertical;
    min-height: 110px;
}

.ct-field__error {
    display: block;
    min-height: 0;
    font-size: 0.78rem;
    line-height: 1.35;
    color: #dc3545;
}

.ct-field__error.field-validation-valid {
    display: none;
}

.ct-recaptcha-field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    margin: 0.15rem 0 -0.3rem;
}

.ct-recaptcha-field + .ct-form__btn {
    margin-top: 0;
}

/* Submit button */
.ct-form__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: #9BB643;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.85rem 2rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 14px rgba(155, 182, 67, 0.35);
    align-self: flex-start;
}

.ct-form__btn:hover {
    background: #8aa63a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(155, 182, 67, 0.45);
}

.ct-form__btn:active {
    transform: translateY(0);
}

/* ==========================================================================
   Contact info column
   ========================================================================== */
.ct-info__title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: #2C3D85;
    margin: 0 0 0.5rem;
}

.ct-info__desc {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.65;
    margin: 0 0 1.75rem;
}

/* Contact cards */
.ct-contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    border: 1px solid rgba(44, 61, 133, 0.1);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    margin-bottom: 0.75rem;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(44, 61, 133, 0.05);
    transition: all 0.25s ease;
}

.ct-contact-card:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(44, 61, 133, 0.1);
    border-color: rgba(44, 61, 133, 0.2);
}

.ct-contact-card__icon {
    width: 46px;
    min-width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: white;
    flex-shrink: 0;
}

.ct-contact-card__icon--blue {
    background: linear-gradient(135deg, #2C3D85 0%, #3a4ea0 100%);
    box-shadow: 0 3px 10px rgba(44, 61, 133, 0.25);
}

.ct-contact-card__icon--green {
    background: linear-gradient(135deg, #9BB643 0%, #b0cc55 100%);
    box-shadow: 0 3px 10px rgba(155, 182, 67, 0.3);
}

.ct-contact-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.ct-contact-card__label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
}

.ct-contact-card__value {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #2C3D85;
}

.ct-contact-card__arrow {
    font-size: 0.7rem;
    color: #cbd5e1;
    transition: color 0.2s ease, transform 0.2s ease;
}

.ct-contact-card:hover .ct-contact-card__arrow {
    color: #9BB643;
    transform: translateX(3px);
}

.ct-contact-note {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    background: rgba(44, 61, 133, 0.06);
    color: #2C3D85;
    font-size: 0.86rem;
    line-height: 1.6;
}

.ct-contact-note i {
    color: #9BB643;
    font-size: 0.95rem;
}


/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .ct-layout {
        grid-template-columns: 1fr 360px;
        gap: 2rem;
    }
}

@media (max-width: 900px) {
    .ct-hero__visual {
        display: none;
    }

    .ct-hero__text {
        max-width: 100%;
    }

    .ct-layout {
        grid-template-columns: 1fr;
    }

    .ct-info-col {
        order: -1;
    }
}

@media (max-width: 640px) {
    .ct-hero {
        padding: 2.5rem 0;
    }

    .ct-section {
        padding: 2.5rem 0 3.5rem;
    }

    .ct-form-card {
        padding: 1.5rem 1.25rem;
    }

    .ct-field-row {
        grid-template-columns: 1fr;
    }

    .ct-form__btn {
        width: 100%;
        justify-content: center;
    }
}
