/* QKStudio — Estilos del formulario Conectate al Gas: landing, secciones, form multi-paso, anexo */

/* ══ Reset base ══════════════════════════════════════════════════════════ */
#ccat-wrap *, #ccat-wrap *::before, #ccat-wrap *::after { box-sizing: border-box; }
#ccat-wrap { font-family: 'Inter', 'Segoe UI', Arial, sans-serif; color: #1e293b; line-height: 1.6; }

/* ══ Variables ══════════════════════════════════════════════════════════ */
#ccat-wrap {
    --ccat-blue:     #005B8C;
    --ccat-light:    #29ABE2;
    --ccat-accent:   #0077B6;
    --ccat-bg-light: #F0F8FF;
    --ccat-border:   #CBD5E1;
    --ccat-text:     #1e293b;
    --ccat-muted:    #64748B;
    --ccat-error:    #DC2626;
    --ccat-success:  #16A34A;
    --ccat-radius:   10px;
    --ccat-shadow:   0 4px 24px rgba(0,91,140,.10);
}

/* ══ HERO ════════════════════════════════════════════════════════════════ */
.ccat-hero {
    background: linear-gradient(135deg, #003f63 0%, #005B8C 60%, #0077B6 100%);
    color: #fff;
    padding: 80px 24px;
    text-align: center;
}
.ccat-hero-inner { max-width: 720px; margin: 0 auto; }
.ccat-volanta {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 20px;
    padding: 4px 14px;
    margin-bottom: 18px;
    color: #E0F4FF;
}
.ccat-h1 {
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 16px;
    color: #fff;
}
.ccat-bajada { font-size: 18px; opacity: .88; margin: 0 0 32px; }
.ccat-hero-cta {
    display: inline-block;
    background: #29ABE2;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    transition: background .2s, transform .15s;
}
.ccat-hero-cta:hover { background: #1a9acf; transform: translateY(-1px); color: #fff; }

/* ══ SECCIONES ════════════════════════════════════════════════════════ */
.ccat-section { padding: 64px 24px; }
.ccat-section--light  { background: #F0F8FF; }
.ccat-section--white  { background: #fff; }
.ccat-section--accent { background: linear-gradient(135deg, #003f63 0%, #005B8C 100%); color: #fff; }
.ccat-section--form   { background: #F8FBFE; }

.ccat-container { max-width: 1060px; margin: 0 auto; }

.ccat-intro-text { font-size: 17px; line-height: 1.75; color: #334155; max-width: 800px; margin: 0 auto; text-align: center; }

.ccat-section-title { font-size: 28px; font-weight: 800; text-align: center; margin: 0 0 8px; color: var(--ccat-blue); }
.ccat-section-title--light { color: #fff !important; }
/* Títulos de sección dentro del form card */
.ccat-form-section-title { color: var(--ccat-blue) !important; }
/* Fuerza blanco en todos los textos dentro del hero */
.ccat-hero, .ccat-hero * { color: #fff; }
.ccat-section-subtitle { text-align: center; color: var(--ccat-muted); margin: 0 0 40px; font-size: 15px; }

/* ══ GRID DE INFO ════════════════════════════════════════════════════ */
.ccat-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 48px;
}
.ccat-info-card {
    background: #fff;
    border: 1px solid var(--ccat-border);
    border-radius: var(--ccat-radius);
    padding: 28px 24px;
    box-shadow: var(--ccat-shadow);
}
.ccat-info-icon {
    width: 44px; height: 44px;
    background: var(--ccat-bg-light);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
    color: var(--ccat-blue);
}
.ccat-info-icon svg { width: 22px; height: 22px; }
.ccat-info-title { font-size: 17px; font-weight: 700; color: var(--ccat-blue); margin: 0 0 12px; }
.ccat-info-list { padding-left: 18px; margin: 0; color: #475569; font-size: 14px; }
.ccat-info-list li { margin-bottom: 6px; }
.ccat-info-steps { padding-left: 20px; margin: 0; color: #475569; font-size: 14px; counter-reset: none; }
.ccat-info-steps li { margin-bottom: 8px; }
.ccat-info-text { color: #475569; font-size: 14px; margin: 0 0 8px; }

/* ══ SECCIÓN ACCENT — INFORMACIÓN IMPORTANTE ══════════════════════════ */
.ccat-important-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 32px;
}
.ccat-important-item {
    display: flex; align-items: flex-start; gap: 12px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 8px;
    padding: 18px;
    font-size: 14px;
    color: rgba(255,255,255,.92);
}
.ccat-important-icon { flex-shrink: 0; width: 20px; height: 20px; color: #29ABE2; margin-top: 2px; }
.ccat-important-item p { margin: 0; }

/* ══ INDICADOR DE PASOS ══════════════════════════════════════════════ */
.ccat-steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 36px;
}
.ccat-step {
    display: flex; align-items: center; gap: 8px;
    opacity: .45;
    transition: opacity .25s;
}
.ccat-step--active, .ccat-step--done { opacity: 1; }
.ccat-step-num {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--ccat-border);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    display: flex; align-items: center; justify-content: center;
    transition: background .25s;
}
.ccat-step--active .ccat-step-num { background: var(--ccat-blue); }
.ccat-step--done .ccat-step-num   { background: var(--ccat-success); }
.ccat-step-label { font-size: 13px; font-weight: 600; color: var(--ccat-text); }
.ccat-step-line { flex: 0 0 40px; height: 2px; background: var(--ccat-border); margin: 0 8px; }

/* ══ CARD DEL FORMULARIO ════════════════════════════════════════════ */
.ccat-form-card {
    background: #fff;
    border: 1px solid var(--ccat-border);
    border-radius: 14px;
    padding: 40px 36px;
    box-shadow: var(--ccat-shadow);
    max-width: 860px;
    margin: 0 auto;
}
@media (max-width: 640px) { .ccat-form-card { padding: 24px 16px; } }

/* ══ SECCIONES INTERNAS DEL FORM ═══════════════════════════════════ */
.ccat-form-section { margin-bottom: 36px; padding-bottom: 28px; border-bottom: 1px solid #EEF2F7; }
.ccat-form-section:last-of-type { border-bottom: none; }
.ccat-form-section-title {
    display: flex; align-items: center; gap: 10px;
    font-size: 16px; font-weight: 700; color: var(--ccat-blue);
    margin: 0 0 20px;
}
.ccat-form-section-title svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ══ GRID DE CAMPOS ═════════════════════════════════════════════════ */
.ccat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px 20px;
}
.ccat-full { grid-column: 1 / -1; }

/* ══ CAMPOS ═════════════════════════════════════════════════════════ */
.ccat-group { display: flex; flex-direction: column; gap: 4px; }
.ccat-label { font-size: 13px; font-weight: 600; color: #374151; }
.ccat-hint  { font-weight: 400; color: var(--ccat-muted); font-size: 11px; }
.ccat-req   { color: var(--ccat-error); }
.ccat-input, .ccat-select {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1.5px solid var(--ccat-border);
    border-radius: 8px;
    background: #FAFCFF;
    color: var(--ccat-text);
    transition: border-color .18s, box-shadow .18s;
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
}
.ccat-input:focus, .ccat-select:focus {
    outline: none;
    border-color: var(--ccat-blue);
    box-shadow: 0 0 0 3px rgba(0,91,140,.12);
    background: #fff;
}
.ccat-input.ccat-invalid, .ccat-select.ccat-invalid {
    border-color: var(--ccat-error);
    box-shadow: 0 0 0 3px rgba(220,38,38,.10);
}
.ccat-input:disabled { background: #F1F5F9; color: var(--ccat-muted); cursor: not-allowed; }
.ccat-swrap { position: relative; }
.ccat-swrap::after {
    content: '';
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    border: 5px solid transparent;
    border-top-color: var(--ccat-muted);
    border-bottom: none;
    pointer-events: none;
}
.ccat-swrap .ccat-select { padding-right: 32px; }
.ccat-error { font-size: 12px; color: var(--ccat-error); display: none; }

/* ══ NOTA DDJJ ════════════════════════════════════════════════════ */
.ccat-ddjj-nota {
    background: #FFF8E1;
    border-left: 3px solid #F59E0B;
    border-radius: 0 6px 6px 0;
    padding: 10px 14px;
    font-size: 13px;
    color: #78350F;
    margin-top: 20px;
}

/* ══ DECLARACIONES ════════════════════════════════════════════════ */
.ccat-declarations { display: flex; flex-direction: column; gap: 12px; }
.ccat-check-label  {
    display: flex; align-items: flex-start; gap: 12px;
    cursor: pointer;
    font-size: 14px; color: #374151;
    padding: 12px 14px;
    border: 1.5px solid var(--ccat-border);
    border-radius: 8px;
    transition: border-color .18s, background .18s;
    line-height: 1.5;
}
.ccat-check-label:hover { border-color: var(--ccat-blue); background: #F0F8FF; }
.ccat-check-label--large { font-size: 15px; }
.ccat-check-box { flex-shrink: 0; position: relative; width: 20px; height: 20px; margin-top: 2px; }
.ccat-check-box input[type="checkbox"] {
    position: absolute; opacity: 0; width: 0; height: 0;
    /* Suprime cualquier outline/borde rojo nativo del navegador */
    border: none; outline: none;
}
.ccat-check-custom {
    display: block;
    width: 20px; height: 20px;
    border: 2px solid var(--ccat-border);
    border-radius: 5px;
    background: #fff;
    transition: border-color .18s, background .18s;
    position: relative;
    flex-shrink: 0;
}
.ccat-check-box input:checked + .ccat-check-custom {
    background: var(--ccat-blue);
    border-color: var(--ccat-blue);
}
.ccat-check-box input:checked + .ccat-check-custom::after {
    content: '';
    position: absolute; left: 5px; top: 2px;
    width: 6px; height: 10px;
    border: 2px solid #fff;
    border-top: none; border-left: none;
    transform: rotate(45deg);
}
.ccat-check-text { flex: 1; min-width: 0; }

/* ══ BOTONES ═══════════════════════════════════════════════════════ */
.ccat-step-actions { margin-top: 28px; display: flex; justify-content: flex-end; }
.ccat-step-actions--two { justify-content: space-between; }
.ccat-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 28px;
    border: 2px solid transparent; border-radius: 8px;
    font-size: 15px; font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .15s, border-color .2s;
    font-family: inherit;
    line-height: 1;
    text-decoration: none;
    outline: none;
    box-shadow: none;
}
.ccat-btn svg { flex-shrink: 0; vertical-align: middle; }
.ccat-btn--next, .ccat-btn--submit { background: var(--ccat-blue); color: #fff !important; border-color: var(--ccat-blue); }
.ccat-btn--next:hover, .ccat-btn--submit:hover { background: #004a74; border-color: #004a74; transform: translateY(-1px); color: #fff !important; }
.ccat-btn--back { background: #F1F5F9; color: #475569 !important; border-color: #E2E8F0; }
.ccat-btn--back:hover { background: #E2E8F0; color: #1e293b !important; }
.ccat-btn:focus { outline: none; box-shadow: 0 0 0 3px rgba(41,171,226,.35); }
.ccat-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ══ ANEXO ═════════════════════════════════════════════════════════ */
.ccat-anexo-box {
    border: 1.5px solid var(--ccat-border);
    border-radius: 10px;
    padding: 28px;
    background: #FAFCFF;
    margin-bottom: 24px;
}
.ccat-anexo-titulo {
    font-size: 14px; font-weight: 800; text-transform: uppercase;
    letter-spacing: .5px; color: var(--ccat-blue);
    border-bottom: 2px solid var(--ccat-blue);
    padding-bottom: 10px; margin: 0 0 20px;
}
.ccat-anexo-body { font-size: 14px; color: #374151; line-height: 1.75; }
.ccat-anexo-body p { margin: 0 0 14px; }
.ccat-anexo-body ol { margin: 8px 0 14px 20px; }
.ccat-anexo-body li { margin-bottom: 6px; }
.ccat-anexo-firma {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed var(--ccat-border);
    font-size: 13px; color: #475569;
}
.ccat-anexo-firma p { margin: 4px 0; }
.ccat-anexo-check { margin-top: 20px; }

/* ══ ESTADO DE ÉXITO ═══════════════════════════════════════════════ */
.ccat-success {
    max-width: 560px; margin: 0 auto;
    background: #fff;
    border: 1.5px solid #BBF7D0;
    border-radius: 14px;
    padding: 48px 32px;
    text-align: center;
    box-shadow: var(--ccat-shadow);
}
.ccat-success-icon { width: 56px; height: 56px; color: var(--ccat-success); margin-bottom: 16px; }
.ccat-success-title { font-size: 22px; font-weight: 800; color: var(--ccat-success); margin: 0 0 12px; }
.ccat-success-text  { font-size: 15px; color: #374151; margin: 0; }

/* ══ CONTACTO ══════════════════════════════════════════════════════ */
.ccat-contact-box {
    display: flex; align-items: center; gap: 16px;
    max-width: 600px; margin: 0 auto;
    background: var(--ccat-bg-light);
    border: 1px solid #BAE6FD;
    border-radius: 10px;
    padding: 20px 24px;
    font-size: 14px; color: #334155;
}
.ccat-contact-box svg { width: 28px; height: 28px; flex-shrink: 0; color: var(--ccat-blue); }
.ccat-contact-box p { margin: 4px 0 0; }
.ccat-contact-box a { color: var(--ccat-blue); }

/* ══ RESPONSIVE ════════════════════════════════════════════════════ */
@media (max-width: 600px) {
    .ccat-step-actions--two { flex-direction: column; gap: 10px; }
    .ccat-btn { width: 100%; justify-content: center; }
    .ccat-steps-indicator { gap: 6px; }
    .ccat-step-line { flex: 0 0 20px; }
    .ccat-hero { padding: 48px 16px; }
    .ccat-info-grid { grid-template-columns: 1fr; }
    .ccat-important-grid { grid-template-columns: 1fr; }
}
