/*
 * Contacto — CUEE Sugamuxi
 * Estilos específicos de la página de contacto.
 * No duplicar estas reglas en style.css.
 */

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes heroFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes floatTri {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes floatTriAlt {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

@keyframes dotsDrift {
    from { background-position: 0 0; }
    to { background-position: 72px 72px; }
}

@keyframes barShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes successPop {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Hero */
.ct-hero {
    position: relative;
    padding-top: 150px;
    padding-bottom: 80px;
    min-height: 450px;
    display: block;
    background: linear-gradient(135deg, #0d1f12 0%, #142a1a 40%, #1a3320 70%, #0e2218 100%);
}

.ct-hero__dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(122, 193, 67, 0.16) 1px, transparent 1px);
    background-size: 36px 36px;
    opacity: 0.6;
    animation: dotsDrift 30s linear infinite;
}

.ct-hero__img-wrap {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 44%;
    overflow: hidden;
}

.ct-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    mix-blend-mode: luminosity;
    animation: heroFadeIn 1.6s ease 0.2s both;
}

.ct-hero__img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(13, 31, 18, 1) 0%, transparent 60%);
}

.ct-hero__bar {
    position: absolute;
    top: 0;
    right: 0;
    width: 44%;
    height: 6px;
    background: linear-gradient(90deg, #7AC143, #F5A623, #7AC143);
    background-size: 200% 100%;
    animation: barShimmer 6s linear infinite;
}

.ct-hero__content {
    position: relative;
    z-index: 2;
    padding: 0;
}

.ct-hero__title {
    font-weight: 900;
    font-size: clamp(36px, 4.5vw, 56px);
    line-height: 1.15;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin-bottom: 18px;
    animation: heroFadeUp 0.85s cubic-bezier(.2, .7, .2, 1) 0.18s both;
}

.ct-hero__subtitle {
    color: rgba(255, 255, 255, 0.65);
    font-size: 15px;
    line-height: 1.75;
    max-width: 560px;
    font-weight: 400;
    animation: heroFadeUp 0.8s ease 0.42s both;
}

.ct-tri {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 22px solid transparent;
    border-right: 22px solid transparent;
    border-bottom: 38px solid #7AC143;
    opacity: 0.9;
}

.ct-tri--1 {
    bottom: 12%;
    right: 42%;
    animation: floatTri 4.5s ease-in-out infinite;
}

.ct-tri--2 {
    bottom: 17%;
    right: 38%;
    border-left-width: 15px;
    border-right-width: 15px;
    border-bottom: 26px solid #E73A30;
    opacity: 0.7;
    animation: floatTriAlt 5.5s ease-in-out infinite 0.5s;
}

/* Layout principal */
.contact-main-section {
    padding: 4rem 0;
    background: #f8faf9;
}

.contact-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr);
    gap: 2rem;
    align-items: stretch;
}

.contact-left-column {
    display: grid;
    gap: 1.5rem;
}

.contact-right-column {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 1.5rem;
    min-width: 0;
    height: 100%;
}

.contact-intro-card,
.contact-social-card,
.contact-form-card {
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 18px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, .08);
    padding: 2rem;
}

.contact-map-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .08);
}

.contact-map-card__header {
    padding: 1.4rem 1.5rem .75rem;
}

.contact-map-card__eyebrow {
    display: block;
    margin-bottom: .35rem;
    color: #7ac143;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.contact-map-card__header h2 {
    margin: 0;
    color: #111827;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.contact-map-card__image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .75rem 1rem 1.25rem;
    min-height: 320px;
}

.contact-map-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 420px;
    object-fit: contain;
    object-position: center;
}

.contact-map-card--boyaca {
    min-height: 100%;
    height: 100%;
}

.contact-map-card__image--fill {
    flex: 1;
    flex-grow: 1;
    min-height: 420px;
}

.contact-map-card__image--fill img {
    max-height: none;
    object-fit: contain;
}

.contact-map-placeholder {
    width: 100%;
    min-height: 220px;
    display: grid;
    place-content: center;
    text-align: center;
    padding: 2rem;
    border-radius: 14px;
    border: 1px dashed rgba(15, 23, 42, .2);
    background: #f3f6f4;
    color: #475569;
}

.contact-map-placeholder p {
    font-weight: 700;
    margin: 0 0 .5rem;
    color: #1a1a1a;
}

.contact-map-placeholder small {
    font-size: 12px;
    line-height: 1.5;
    word-break: break-word;
}

.contact-intro-card h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.55rem;
    font-weight: 900;
    color: #1a1a1a;
    margin: 0 0 .75rem;
    letter-spacing: -0.03em;
}

.contact-intro-card p {
    font-size: 14px;
    line-height: 1.7;
    color: #58595B;
    margin: 0 0 1.25rem;
}

.contact-email-link {
    color: #65b32e;
    font-weight: 700;
    word-break: break-word;
    text-decoration: none;
    font-size: clamp(16px, 2vw, 20px);
}

.contact-email-link:hover {
    color: #7ac143;
}

.contact-social-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 .65rem;
}

.contact-social-card > p {
    font-size: 13px;
    line-height: 1.65;
    color: #58595B;
    margin: 0 0 1.1rem;
}

.contact-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
}

.contact-social-link {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .75rem 1rem;
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    transition:
        transform .2s ease,
        border-color .2s ease,
        background .2s ease,
        color .2s ease;
}

.contact-social-link:hover {
    transform: translateY(-2px);
    border-color: #7ac143;
    background: #7ac143;
    color: #ffffff;
}

.contact-social-link svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

/* Formulario */
.contact-form-card .ct-form__title {
    font-size: 24px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.contact-form-card .ct-form__subtitle {
    font-size: 13px;
    color: #58595B;
    margin: 0 0 30px;
}

.ct-label {
    font-size: 11px;
    font-weight: 700;
    color: #58595B;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
    text-transform: uppercase;
    display: block;
}

.ct-input {
    width: 100%;
    padding: 14px 18px;
    font-size: 14px;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    color: #1a1a1a;
    background: #fff;
    transition: all 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

.ct-input:focus {
    border-color: #7AC143;
    box-shadow: 0 0 0 4px rgba(122, 193, 67, 0.1);
}

.ct-type-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.ct-type-btn {
    background: transparent;
    color: #58595B;
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s;
}

.ct-type-btn:hover {
    border-color: #7AC143;
    color: #7AC143;
}

.ct-type-btn.is-active {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

.ct-submit-btn {
    background: #7AC143;
    color: #fff;
    border: none;
    padding: 14px 40px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.ct-submit-btn:hover {
    background: #69a639;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(122, 193, 67, 0.3);
}

.ct-success {
    background: #7AC14318;
    border: 1px solid rgba(122, 193, 67, 0.3);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    animation: successPop 0.5s ease both;
}

.ct-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 18px;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scroll-reveal.revealed {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

@media (max-width: 900px) {
    .contact-main-grid {
        grid-template-columns: 1fr;
    }

    .contact-right-column {
        grid-template-rows: auto auto;
    }

    .contact-map-card--boyaca {
        min-height: auto;
        height: auto;
    }

    .contact-map-card__image,
    .contact-map-card__image--fill {
        min-height: 280px;
    }
}

@media (max-width: 600px) {
    .contact-main-section {
        padding: 2.5rem 0;
    }

    .contact-intro-card,
    .contact-social-card,
    .contact-form-card {
        padding: 1.25rem;
    }

    .contact-map-card__header {
        padding: 1.1rem 1.1rem .6rem;
    }

    .contact-map-card__image,
    .contact-map-card__image--fill {
        min-height: 230px;
        padding: .5rem .75rem 1rem;
    }

    .contact-social-links {
        display: grid;
        grid-template-columns: 1fr;
    }

    .contact-social-link {
        justify-content: center;
    }

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

    .ct-hero__img-wrap {
        width: 100%;
        opacity: 0.2;
    }

    .ct-hero__content {
        text-align: center;
    }

    .ct-hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }
}
