@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

.oficity-solicitudes-page,
.oficity-form-wrapper {
    font-family: 'Montserrat', sans-serif;
}

/* =========================
   SECCIÓN SOLICITUDES
========================= */

.oficity-solicitudes-page {
    width: 100%;
    padding: 30px 0 10px;
}

.oficity-solicitudes-container {
    max-width: 90%;
    margin: 0 auto;
    padding: 0 20px;
}

.oficity-solicitudes-hero {
    background: #ffffff;
    border: 1px solid #e7edf5;
    border-radius: 28px;
    padding: 42px 38px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    margin-bottom: 28px;
}

.oficity-solicitudes-badge {
    display: inline-block;
    margin-bottom: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eef4ff;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.oficity-solicitudes-hero h1 {
    margin: 0 0 12px;
    font-size: 42px;
    line-height: 1.1;
    font-weight: 700;
    color: #1f2937;
}

.oficity-solicitudes-hero p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #667085;
}

.oficity-solicitudes-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.oficity-solicitud-card {
    background: #ffffff;
    border: 1px solid #e7edf5;
    border-radius: 28px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.oficity-solicitud-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.oficity-solicitud-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.oficity-solicitud-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

.oficity-solicitud-icon span {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.oficity-solicitud-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f3f6fb;
    color: #475467;
    font-size: 13px;
    font-weight: 600;
}

.oficity-solicitud-card h2 {
    margin: 0 0 14px;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
    color: #1f2937;
}

.oficity-solicitud-card p {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.75;
    color: #667085;
}

.oficity-solicitud-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    min-height: 52px;
    padding: 0 35px;
    margin: 10px auto 0; /* esto lo centra */
    border-radius: 14px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.oficity-solicitud-btn:hover {
    opacity: 0.95;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.28);
}

/* =========================
   FORMULARIO ALTA CLIENTE
========================= */

.oficity-form-wrapper {
    max-width: 90%;
    margin: 0 auto;
    padding: 0 20px 30px;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.oficity-form--alta {
    background: #ffffff;
    border: 1px solid #e7edf5;
    border-radius: 28px;
    padding: 8px 32px 32px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.oficity-form-header {
    background: #ffffff;
    border: 1px solid #e7edf5;
    border-radius: 28px;
    padding: 32px 34px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    margin-bottom: 24px;
}

.oficity-form-badge {
    display: inline-block;
    margin-bottom: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eef4ff;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.oficity-form-header h2 {
    margin: 0 0 10px;
    font-size: 40px;
    line-height: 1.1;
    color: #1f2937;
    font-weight: 700;
}

.oficity-form-header p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #667085;
}

.oficity-form-section {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 26px 0;
    margin: 0;
    position: relative;
}

.oficity-form-section + .oficity-form-section {
    border-top: 1px dashed #cbd5e1;
}

.oficity-form-section__head {
    margin-bottom: 20px;
}

.oficity-form-section__head h3 {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.2;
    color: #1f2937;
    font-weight: 700;
}

.oficity-form-section__head p {
    margin: 0;
    color: #667085;
    font-size: 14px;
    line-height: 1.7;
}

.oficity-form-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px 20px;
}

.oficity-col-12 { grid-column: span 12; }
.oficity-col-8  { grid-column: span 8; }
.oficity-col-6  { grid-column: span 6; }
.oficity-col-4  { grid-column: span 4; }

.oficity-field {
    margin-bottom: 0;
}

.oficity-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
}

.oficity-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.oficity-form select,
.oficity-form textarea {
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid #d8e0eb;
    border-radius: 14px;
    box-sizing: border-box;
    background: #ffffff;
    color: #1f2937;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.oficity-form input:focus,
.oficity-form select:focus,
.oficity-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.10);
}

.oficity-form input[type="file"] {
    display: block;
    width: 100%;
    padding: 12px;
    border: 1px dashed #c9d7ea;
    border-radius: 14px;
    background: #f8fbff;
    box-sizing: border-box;
}

.oficity-required {
    color: #e11d48;
}

.oficity-checkbox-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
}

.oficity-checkbox-line input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    flex: 0 0 18px;
}

.oficity-checkbox-line label {
    margin: 0;
    font-weight: 500;
    line-height: 1.6;
}

.top-space {
    margin-top: 18px;
}

.is-hidden {
    display: none !important;
}

/* Contactos */
.oficity-contacts-wrapper {
    width: 100%;
}

.oficity-contact-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 2fr 0.8fr 0.9fr;
    gap: 14px;
    align-items: end;
    margin-bottom: 14px;
}

.oficity-contact-row--head {
    margin-bottom: 12px;
    padding: 0 4px;
    color: #475467;
    font-size: 13px;
    font-weight: 700;
}

.oficity-contact-row--head > div:last-child {
    text-align: center;
}

/* Cuando solo hay un contacto, ocultamos la columna Acción */
.oficity-contacts-wrapper:not(.has-removable-contacts) .oficity-contact-row {
    grid-template-columns: 2fr 1.5fr 2fr 0.8fr;
}

.oficity-contacts-wrapper:not(.has-removable-contacts) .oficity-contact-row--head > div:last-child,
.oficity-contacts-wrapper:not(.has-removable-contacts) .oficity-contact-row > div:last-child {
    display: none;
}

/* Botones de contactos */
.oficity-contact-actions {
    display: flex;
    justify-content: center; /* centra el + Agregar contacto */
    margin-top: 18px;
}

.oficity-contact-remove,
.oficity-secondary-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    min-height: 52px;
    padding: 0 35px;
    margin: 0 auto;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.oficity-contact-remove:hover,
.oficity-secondary-btn:hover {
    opacity: 0.95;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.28);
}

.oficity-contact-row > div:last-child {
    display: flex;
    justify-content: center;
}


/* Captcha placeholder */
.oficity-captcha-placeholder {
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px dashed #c9d7ea;
    border-radius: 14px;
    background: #f8fbff;
    color: #667085;
    font-size: 14px;
}

/* Submit */
.oficity-form-actions {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.oficity-primary-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 34px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.oficity-primary-submit:hover {
    opacity: 0.96;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.28);
}



/* =========================
   ALERTA FLOTANTE MODERNA
========================= */

.oficity-floating-notice {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999;
    width: min(420px, calc(100vw - 32px));
    border-radius: 18px;
    border: 1px solid;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.oficity-floating-notice.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.oficity-floating-notice--success {
    background: rgba(236, 253, 243, 0.97);
    border-color: #a6f4c5;
    color: #027a48;
}

.oficity-floating-notice--error {
    background: rgba(254, 243, 242, 0.98);
    border-color: #fecdca;
    color: #b42318;
}

.oficity-floating-notice__inner {
    padding: 18px 18px 16px;
}

.oficity-floating-notice__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.oficity-floating-notice__title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
}

.oficity-floating-notice__close {
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    opacity: 0.75;
}

.oficity-floating-notice__close:hover {
    opacity: 1;
}

.oficity-floating-notice ul {
    margin: 0;
    padding-left: 18px;
    max-height: 220px;
    overflow: auto;
}

.oficity-floating-notice li {
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.55;
}

.oficity-floating-notice__progress {
    height: 4px;
    width: 100%;
    transform-origin: left center;
    animation: oficityNoticeProgress 5s linear forwards;
}

.oficity-floating-notice--success .oficity-floating-notice__progress {
    background: #12b76a;
}

.oficity-floating-notice--error .oficity-floating-notice__progress {
    background: #f04438;
}

@keyframes oficityNoticeProgress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

/* =========================
   RESALTADO DE ERRORES
========================= */

.oficity-field-error,
.oficity-field-error input,
.oficity-field-error select,
.oficity-field-error textarea {
    border-color: #f04438 !important;
    box-shadow: 0 0 0 4px rgba(240, 68, 56, 0.10) !important;
    background: #fff8f7 !important;
}

.oficity-field-error-wrap label {
    color: #b42318 !important;
}

.oficity-section-error {
    border: 1px dashed #f04438 !important;
    border-radius: 16px;
    padding: 14px;
    background: #fff8f7;
}

@media (max-width: 575px) {
    .oficity-floating-notice {
        top: 14px;
        right: 14px;
        left: 14px;
        width: auto;
    }
}



@media (max-width: 991px) {
    .oficity-form-header {
        padding: 26px 22px;
    }

    .oficity-form-header h2 {
        font-size: 34px;
    }

    .oficity-form-section {
        padding: 18px 0;
    }

    .oficity-col-8,
    .oficity-col-6,
    .oficity-col-4 {
        grid-column: span 12;
    }

    .oficity-contact-row {
        grid-template-columns: 1fr 1fr;
    }

    .oficity-contact-row--head {
        display: none;
    }
}

@media (max-width: 575px) {
    .oficity-form-wrapper {
        padding: 0 14px 20px;
    }

    .oficity-form-header {
        border-radius: 22px;
        padding: 22px 18px;
    }

    .oficity-form-header h2 {
        font-size: 30px;
    }

    .oficity-form-section {
        border-radius: 22px;
        padding: 18px;
    }

    .oficity-form-section__head h3 {
        font-size: 22px;
    }

    .oficity-contact-row {
        grid-template-columns: 1fr;
    }

    .oficity-primary-submit {
        width: 100%;
    }
}


/* Responsive */
@media (max-width: 991px) {
    .oficity-solicitudes-hero {
        padding: 32px 24px;
    }

    .oficity-solicitudes-hero h1 {
        font-size: 34px;
    }

    .oficity-solicitudes-grid {
        grid-template-columns: 1fr;
    }

    .oficity-solicitud-card {
        padding: 24px;
    }

    .oficity-solicitud-card h2 {
        font-size: 26px;
    }
}

@media (max-width: 575px) {
    .oficity-solicitudes-page {
        padding-top: 16px;
    }

    .oficity-solicitudes-container {
        padding: 0 14px;
    }

    .oficity-solicitudes-hero {
        border-radius: 22px;
        padding: 24px 18px;
    }

    .oficity-solicitudes-hero h1 {
        font-size: 30px;
    }

    .oficity-solicitud-card {
        border-radius: 22px;
        padding: 20px;
    }

    .oficity-solicitud-card__top {
        align-items: flex-start;
        flex-direction: column;
    }

    .oficity-solicitud-btn {
        width: 100%;
    }
}