
/*==========================================================
    CONTENIDO PRINCIPAL
    ¡NO BORRAR ESTA REGLA! Aunque parezca redundante con la de
    indexcss.css (usa los mismos valores a propósito), esta
    copia es un respaldo: si por cualquier motivo indexcss.css
    no carga actualizado en el servidor, la página igual se ve
    bien porque no depende 100% de ese archivo externo. Sin
    esto, el padding-bottom desaparece y el footer queda pegado
    al contenido.
==========================================================*/

.main-content {
    width: min(1400px, 94%);
    margin: 0 auto;
    padding-top: calc(var(--header-height, 90px) + 24px);
    padding-bottom: 60px;
}


/*==========================================================
    HERO
==========================================================*/

.contact-hero {

    padding: 48px 40px;
    border-radius: 28px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    background:
        radial-gradient(420px circle at 92% 15%, rgba(29, 78, 216,.10), transparent 60%),
        radial-gradient(360px circle at 10% 90%, rgba(237, 0, 21,.08), transparent 60%),
        linear-gradient(135deg, var(--secondary) 0%, #FEEBEB 100%);

    overflow: hidden;

}

.contact-hero-text {
    max-width: 640px;
}

.contact-tag {
    display: inline-block;
    background: rgba(29, 78, 216, .1);
    color: var(--accent-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 14px;
}

.contact-hero-text h1 {
    font-size: 38px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.contact-hero-text p {
    font-size: 14.5px;
    color: var(--gray);
    line-height: 1.7;
}

.contact-hero-text p strong {
    color: var(--primary);
}

.contact-hero-art {
    flex-shrink: 0;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    box-shadow: var(--shadow);
}

.contact-hero-art i {
    font-size: 52px;
    color: var(--primary);
}


/*==========================================================
    LAYOUT (info + formulario)
==========================================================*/

.contact-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 26px;
    align-items: start;
    margin-top: 30px;
}


/*==========================================================
    TARJETA DE INFORMACIÓN
==========================================================*/

.contact-info-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 26px 24px;
}

.contact-info-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.contact-info-header i {
    color: var(--primary);
    font-size: 15px;
}

.contact-info-header h2 {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--text);
}

.contact-info-item {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-top: 1px solid #F1EDEB;
}

.contact-info-item:first-of-type {
    border-top: none;
    padding-top: 0;
}

.contact-info-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-blue-soft, rgba(29, 78, 216, 0.08));
    color: var(--accent-blue, #1D4ED8);
    font-size: 15px;
}

.contact-info-item h3 {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.contact-info-item p {
    font-size: 12.5px;
    color: var(--gray);
    line-height: 1.55;
}

.contact-info-item p a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}


/*==========================================================
    TARJETA DEL FORMULARIO
==========================================================*/

.contact-form-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 30px 32px 34px;
}

.contact-form-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 26px;
}

.contact-form-header i {
    color: var(--primary);
    font-size: 18px;
    margin-top: 2px;
}

.contact-form-header h2 {
    font-size: 19px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.contact-form-header p {
    font-size: 12.5px;
    color: var(--gray);
}

.contact-success {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #E7F5EC;
    color: #2E9E5B;
    border-radius: 14px;
    padding: 14px 18px;
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 22px;
}

.contact-success i {
    font-size: 18px;
}

.contact-error {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #FCEBEC;
    color: #ED0015;
    border-radius: 14px;
    padding: 14px 18px;
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 22px;
}

.contact-login-required {
    text-align: center;
    padding: 48px 24px;
    background: var(--secondary, #FFF5F5);
    border-radius: 18px;
}

.contact-login-required i {
    font-size: 34px;
    color: var(--primary, #ED0015);
    margin-bottom: 14px;
    display: block;
}

.contact-login-required h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text, #1D1D1D);
}

.contact-login-required p {
    font-size: 14px;
    color: var(--gray, #6E6E6E);
    max-width: 420px;
    margin: 0 auto 22px;
    line-height: 1.6;
}

.contact-login-required .submit-button {
    display: inline-flex;
    text-decoration: none;
}


/*==========================================================
    FORMULARIO
==========================================================*/

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.input-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0 14px;
    background: #FAFAFC;
    transition: var(--transition);
}

.input-icon:focus-within {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(237, 0, 21,.06);
}

.input-icon i {
    color: #999;
    font-size: 14px;
}

.input-icon input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    padding: 13px 0;
    font-size: 13.5px;
    color: var(--text);
}

.form-group select {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 13px 14px;
    font-size: 13.5px;
    color: var(--text);
    background: #FAFAFC;
    transition: var(--transition);
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(237, 0, 21,.06);
}

.form-group textarea {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 13px 14px;
    font-size: 13.5px;
    color: var(--text);
    background: #FAFAFC;
    resize: vertical;
    min-height: 110px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(237, 0, 21,.06);
}

.char-counter {
    align-self: flex-end;
    font-size: 11px;
    color: #AAA;
    margin-top: 6px;
}


/*==========================================================
    PÍLDORAS DE MOTIVO
==========================================================*/

.motive-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.motive-pill {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 118px;
    padding: 14px 10px;
    border: 1px solid var(--border);
    border-radius: 14px;
    cursor: pointer;
    text-align: center;
    background: #FAFAFC;
    transition: var(--transition);
}

.motive-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.motive-pill i {
    font-size: 16px;
    color: var(--primary);
}

.motive-pill span {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

.motive-pill:hover {
    border-color: var(--primary);
}

.motive-pill:has(input:checked) {
    background: var(--primary);
    border-color: var(--primary);
}

.motive-pill:has(input:checked) i,
.motive-pill:has(input:checked) span {
    color: var(--white);
}


/*==========================================================
    ADJUNTAR ARCHIVO
==========================================================*/

.file-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    border: 1.5px dashed var(--border);
    border-radius: 14px;
    padding: 26px 20px;
    cursor: pointer;
    background: #FAFAFC;
    transition: var(--transition);
}

.file-drop:hover,
.file-drop.dragging {
    border-color: var(--primary);
    background: var(--soft-purple);
}

.file-drop i {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 4px;
}

.file-drop span {
    font-size: 13px;
    color: var(--text);
}

.file-drop small {
    font-size: 11px;
    color: #AAA;
}

.file-drop input[type="file"] {
    display: none;
}

.file-name {
    margin-top: 8px;
    font-size: 12.5px;
    color: var(--primary);
    font-weight: 600;
}


/*==========================================================
    CHECKBOX DE PRIVACIDAD
==========================================================*/

.checkbox-privacy {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 6px 0 24px;
    cursor: pointer;
}

.checkbox-privacy input {
    margin-top: 3px;
    accent-color: var(--primary);
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.checkbox-privacy span {
    font-size: 12.5px;
    color: var(--gray);
    line-height: 1.5;
}

.checkbox-privacy a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}


/*==========================================================
    BOTÓN DE ENVÍO
==========================================================*/

.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 26px;
    border: none;
    border-radius: 999px;
    background: var(--primary);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.submit-button:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(237, 0, 21,.25);
}

/*==========================================================
    RESPONSIVE
==========================================================*/

@media(max-width:1100px){

    .contact-layout {
        grid-template-columns: 280px 1fr;
    }

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

}


@media(max-width:900px){

    .contact-hero {
        flex-direction: column-reverse;
        text-align: center;
        padding: 36px 26px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

}


@media(max-width:600px){

    .contact-hero-text h1 {
        font-size: 28px;
    }

    .contact-hero-art {
        width: 90px;
        height: 90px;
    }

    .contact-hero-art i {
        font-size: 36px;
    }

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

    .motive-pill {
        width: calc(50% - 5px);
    }

    .contact-form-card,
    .contact-info-card {
        padding: 22px 18px;
    }

}


@media(prefers-reduced-motion:reduce){

    * {
        transition: none !important;
        animation: none !important;
    }

}


.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}
