/* Misma línea visual que comparador/ y contratar/: cabecera WP + fondo claro GO. */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Open Sans', Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 960px;
    margin: 40px auto;
    padding: 0 20px;
    flex: 1;
}

.form-header {
    text-align: center;
    margin-bottom: 16px;
    background: white;
    padding: 40px 36px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-header h1 {
    color: #2c5282;
    font-size: 2.4rem;
    margin-bottom: 16px;
    line-height: 1.2;
}

.form-header p {
    color: #666;
    font-size: 1.1rem;
    margin: 0 auto 12px;
    max-width: 680px;
}

.form-header p:last-child { margin-bottom: 0; }

.section-title {
    color: #2c5282;
    font-size: 1.45rem;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #8BC53F;
}

.lead {
    color: #666;
    margin-bottom: 20px;
}

.trust {
    margin-bottom: 32px;
}

.trust-intro {
    background: #f0f8e8;
    border: 2px solid #8BC53F;
    border-radius: 12px;
    padding: 22px 24px;
    margin-bottom: 20px;
    color: #2f4a14;
}

.trust-intro h2 {
    color: #2c5282;
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.trust-intro p { margin-bottom: 10px; }
.trust-intro p:last-child { margin-bottom: 0; }

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

.trust-card {
    background: white;
    border-radius: 10px;
    padding: 24px 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 3px solid transparent;
}

.trust-card .icon {
    font-size: 2rem;
    color: #8BC53F;
    text-align: center;
    margin-bottom: 12px;
}

.trust-card h3 {
    color: #2c5282;
    font-size: 1.05rem;
    text-align: center;
    margin-bottom: 10px;
}

.trust-card p {
    color: #666;
    font-size: 0.95rem;
    text-align: center;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 32px;
}

.step {
    background: white;
    border-radius: 10px;
    padding: 20px 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.step .num {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    border-radius: 50%;
    background: #8BC53F;
    color: #fff;
    font-weight: 700;
    margin-bottom: 10px;
}

.step h3 {
    color: #2c5282;
    font-size: 1rem;
    margin-bottom: 6px;
}

.step p { color: #666; font-size: 0.92rem; }

.form-container {
    background: white;
    border-radius: 15px;
    padding: 36px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 32px;
}

.upload-zone {
    border: 2px dashed #cbd5e0;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    position: relative;
    background: #f8f9fa;
    transition: border-color 0.2s, background 0.2s;
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: #8BC53F;
    background: #f0f8e8;
}

.upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.upload-zone .icon { font-size: 2.4rem; margin-bottom: 8px; }
.upload-zone p { color: #666; }
.upload-zone strong { color: #2c5282; }
.file-selected {
    display: none;
    margin-top: 10px;
    color: #2f855a;
    font-weight: 600;
}

.submit-btn {
    background-color: #8BC53F;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    margin-top: 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.submit-btn:hover { background-color: #7ba82f; color: white; }
.submit-btn:disabled { background: #cbd5e0; cursor: not-allowed; }

#processingPanel { display: none; text-align: center; padding: 20px 0; }
.progress-ring { width: 64px; height: 64px; margin: 0 auto 1rem; }
.progress-ring svg { transform: rotate(-90deg); }
.progress-ring circle { fill: none; stroke-width: 4; }
.progress-ring .bg { stroke: #e2e8f0; }
.progress-ring .fg {
    stroke: #8BC53F;
    stroke-linecap: round;
    stroke-dasharray: 176;
    stroke-dashoffset: 44;
    animation: spin-ring 1.5s linear infinite;
}
@keyframes spin-ring { to { stroke-dashoffset: -176; } }
.step-label-current { color: #2c5282; font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.step-hint { color: #666; font-size: 0.92rem; }
.step-track { display: flex; justify-content: center; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.step-pill {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid #e2e8f0;
    color: #718096;
    background: #fff;
}
.step-pill.active { background: #f0f8e8; border-color: #8BC53F; color: #2f855a; }
.step-pill.done { background: #e8f6d8; border-color: #8BC53F; color: #276749; }

.error-box {
    background: #fed7d7;
    color: #c53030;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.ahorro-publico { text-align: center; }
.ahorro-publico .kicker {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8BC53F;
    margin-bottom: 8px;
}
.ahorro-publico h2 {
    color: #2c5282;
    font-size: 1.7rem;
    margin-bottom: 22px;
}
.ahorro-publico-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 18px;
}
.ahorro-publico-card {
    background: #f0f8e8;
    border: 2px solid #8BC53F;
    border-radius: 12px;
    padding: 22px 16px;
}
.ahorro-publico-card .lbl {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #4a6a22;
    margin-bottom: 6px;
}
.ahorro-publico-card .num {
    font-size: 2.4rem;
    font-weight: 800;
    color: #2c5282;
    line-height: 1.1;
}
.ahorro-publico-card .sub { margin-top: 8px; font-size: 0.92rem; color: #4a5568; }
.ahorro-publico .nota { color: #4a5568; margin: 8px 0 18px; }
.cta-row { display: flex; flex-direction: column; gap: 10px; }
.cta-secondary {
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: 5px;
    border: 2px solid #8BC53F;
    color: #2f4a14;
    font-weight: 700;
    text-decoration: none;
    background: #fff;
}
.cta-secondary:hover { background: #f0f8e8; }

.privacidad {
    margin-top: 22px;
    padding: 18px 20px;
    background: #f8f9fa;
    border-left: 4px solid #8BC53F;
    border-radius: 0 8px 8px 0;
    color: #4a5568;
    font-size: 0.95rem;
}
.privacidad strong { color: #2c5282; }

.help-box {
    background: white;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
}
.help-box h2 { color: #2c5282; font-size: 1.2rem; margin-bottom: 8px; }
.help-box p { color: #666; }
.help-box a { color: #2c5282; font-weight: 600; }

.new-btn {
    display: inline-block;
    margin-top: 18px;
    padding: 8px 18px;
    background: transparent;
    border: 1px solid #8BC53F;
    color: #2f4a14;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
}
.new-btn:hover { background: #f0f8e8; }

.aviso-interno {
    background: #fff7ed;
    border: 1px solid #fdba74;
    color: #9a3412;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    font-weight: 600;
}

.informe-tecnico {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 2px solid #8BC53F;
    text-align: left;
}
.informe-tecnico > summary {
    cursor: pointer;
    color: #2c5282;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 14px;
}
.informe-tecnico h3 {
    color: #2c5282;
    font-size: 1rem;
    margin: 16px 0 6px;
}
.informe-tecnico .data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 16px 0;
}
.periodo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin: 12px 0 16px;
}
.periodo-table th {
    text-align: left;
    padding: 8px;
    color: #2c5282;
    border-bottom: 2px solid #8BC53F;
}
.periodo-table td {
    padding: 8px;
    border-bottom: 1px solid #e2e8f0;
    color: #333;
}
.informe-tecnico pre {
    background: #1a202c;
    color: #e2e8f0;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.78rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.site-footer {
    background: #fff;
    border-top: 1px solid #e2e8f0;
    padding: 22px 20px;
    text-align: center;
    color: #666;
    font-size: 0.92rem;
}
.site-footer a { color: #2c5282; text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: #8BC53F; }

@media (max-width: 768px) {
    .form-header { padding: 28px 18px; }
    .form-header h1 { font-size: 1.75rem; }
    .form-container { padding: 24px 18px; }
    .trust-grid,
    .steps,
    .ahorro-publico-grid { grid-template-columns: 1fr; }
    .ahorro-publico-card .num { font-size: 2rem; }
    .informe-tecnico .data-grid { grid-template-columns: 1fr; }
}
