/* =========================================================
   Corporate Connect Form — form-corporate-connect.css
   Dominio: inspenet-lite · v2
   ========================================================= */

/* ---- Variables ---- */
:root {
    --cbf-navy: #1e2362;
    --cbf-navy-dark: #161a4f;
    --cbf-cyan: #00e7ff;
    --cbf-bg: #f4f6fb;
    --cbf-white: #ffffff;
    --cbf-border: #d1d5db;
    --cbf-text: #1a1a2e;
    --cbf-muted: #6b7280;
    --cbf-radius: 10px;
    --cbf-shadow: 0 4px 24px rgba(30, 35, 98, .10);
}

/* ---- Contenedor principal ---- */
.cbf-wrapper {
    max-width: 780px;
    margin: 0 auto;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    color: var(--cbf-text);
}

/* ------------------------------------------------------------------ */
/* Encabezado: copy + tarjeta de empresa                               */
/* ------------------------------------------------------------------ */
.cbf-header {
    display: flex;
    flex-direction: row-reverse;
    padding-top: 48px;
    gap: 24px;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.cbf-header-copy {
    flex: 1 1 320px;
}

.cbf-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--cbf-navy);
    margin: 0 0 10px;
    line-height: 1.2;
}

.cbf-intro {
    font-size: 0.97rem;
    color: var(--cbf-muted);
    margin: 0;
    line-height: 1.6;
}

/* ---- Tarjeta empresa destino ---- */
.cbf-company-card {
    flex: 0 0 auto;
    background: var(--cbf-white);
    border: 1.5px solid var(--cbf-border);
    border-radius: var(--cbf-radius);
    padding: 16px 20px;
    box-shadow: var(--cbf-shadow);
    min-width: 200px;
    max-width: 260px;
}

.cbf-company-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--cbf-muted);
    margin-bottom: 10px;
}

.cbf-company-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--cbf-text);
}

.cbf-company-inner:hover .cbf-company-name {
    color: var(--cbf-navy);
    text-decoration: underline;
}

.cbf-company-logo {
    width: auto;
    max-width: 110px;
    object-fit: contain;
    flex-shrink: 0;
}

.cbf-company-initials {
    width: 48px;
    height: 48px;
    background: var(--cbf-navy);
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.cbf-company-name {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--cbf-navy);
}

/* ------------------------------------------------------------------ */
/* Mensajes de estado                                                   */
/* ------------------------------------------------------------------ */
.cbf-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    margin-bottom: 22px;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.4;
}

.cbf-notice-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.cbf-notice.cbf-success {
    color: #065f46;
    background: #d1fae5;
    border: 1px solid #6ee7b7;
}

.cbf-notice.cbf-error {
    color: #7f1d1d;
    background: #fee2e2;
    border: 1px solid #fca5a5;
}

/* ------------------------------------------------------------------ */
/* Formulario                                                           */
/* ------------------------------------------------------------------ */
.cbf-form {
    background: var(--cbf-white);
    border: 1.5px solid var(--cbf-border);
    border-radius: var(--cbf-radius);
    padding: 32px;
    box-shadow: var(--cbf-shadow);
}

/* ---- Fila de dos columnas ---- */
.cbf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 540px) {
    .cbf-row {
        grid-template-columns: 1fr;
    }
}

/* ---- Grupo de campo ---- */
.cbf-group {
    margin-bottom: 20px;
}

.cbf-group:last-of-type {
    margin-bottom: 0;
}

.cbf-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--cbf-navy);
}

.cbf-group input[type="text"],
.cbf-group input[type="email"],
.cbf-group input[type="url"],
.cbf-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--cbf-border);
    border-radius: 7px;
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--cbf-bg);
    color: var(--cbf-text);
    transition: border-color .18s, box-shadow .18s, background .18s;
    box-sizing: border-box;
    outline: none;
}

.cbf-group input:focus,
.cbf-group textarea:focus {
    border-color: var(--cbf-navy);
    background: var(--cbf-white);
    box-shadow: 0 0 0 3px rgba(30, 35, 98, 0.10);
}

.cbf-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.55;
}

/* ---- Footer: privacidad + botón ---- */
.cbf-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.cbf-privacy {
    font-size: 0.78rem;
    color: var(--cbf-muted);
    margin: 0;
    flex: 1 1 220px;
    line-height: 1.5;
}

/* ---- Botón enviar ---- */
.cbf-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--cbf-navy);
    color: #fff;
    padding: 12px 26px;
    border: none;
    border-radius: 7px;
    font-size: 0.97rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background .18s, transform .1s, box-shadow .18s;
    white-space: nowrap;
    flex-shrink: 0;
}

.cbf-submit:hover {
    background: var(--cbf-navy-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(30, 35, 98, 0.22);
}

.cbf-submit:active {
    transform: translateY(0);
    box-shadow: none;
}

.cbf-btn-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ---- Honeypot: siempre oculto ---- */
.cbf-honeypot {
    display: none !important;
    visibility: hidden;
    height: 0;
    overflow: hidden;
}

/* ---- Responsive compacto ---- */
@media (max-width: 600px) {
    .cbf-header {
        flex-direction: column;
    }

    .cbf-company-card {
        max-width: 100%;
        min-width: unset;
    }

    .cbf-form {
        padding: 20px 16px;
    }

    .cbf-title {
        font-size: 1.35rem;
    }

    .cbf-form-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .cbf-submit {
        width: 100%;
        justify-content: center;
    }
}