/* =====================================================================
   PACore — Portal Público (Landing + Registro)
   Institucional dominicana: azul marino profundo + verde bandera
   ===================================================================== */

:root {
    --navy:       #0a1628;
    --navy-light: #132240;
    --navy-mid:   #1a3058;
    --green:      #00883a;
    --green-dark: #006b2d;
    --green-light:#00a848;
    --blue:       #2563eb;
    --blue-light: rgba(59, 130, 246, 0.08);
    --gold:       #c9a020;
    --text-1:     #1a2236;
    --text-2:     #4a5568;
    --text-3:     #718096;
    --border:     #e2e8f0;
    --bg:         #f8fafc;
    --white:      #ffffff;
    --radius:     10px;
    --radius-lg:  16px;
    --shadow:     0 4px 20px rgba(10, 22, 40, 0.1);
    --shadow-lg:  0 8px 40px rgba(10, 22, 40, 0.16);
    --transition: all 0.2s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body.public-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    color: var(--text-1);
    background: var(--white);
    line-height: 1.6;
}

/* ── NAVBAR ────────────────────────────────────────────────────────── */
.pub-nav {
    background: var(--navy);
    padding: 0 max(24px, calc((100vw - 1200px) / 2));
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}
.pub-nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.3px;
}
.pub-nav-brand-icon {
    width: 36px;
    height: 36px;
    background: var(--blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.pub-nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}
.pub-nav-link {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: var(--transition);
}
.pub-nav-link:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.pub-nav-cta {
    background: var(--green);
    color: var(--white) !important;
    font-weight: 600;
    padding: 9px 18px !important;
}
.pub-nav-cta:hover { background: var(--green-dark) !important; }

/* ── HERO ──────────────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #1e3a6e 100%);
    padding: 80px max(24px, calc((100vw - 1200px) / 2)) 90px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 560px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 70% 50%, rgba(0,136,58,0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 10% 80%, rgba(201,160,32,0.08) 0%, transparent 50%);
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,136,58,0.2);
    border: 1px solid rgba(0,168,72,0.3);
    color: #4ade80;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.hero h1 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}
.hero h1 em {
    color: #4ade80;
    font-style: normal;
}
.hero-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 36px;
    line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-hero-primary {
    background: var(--green);
    color: var(--white);
    padding: 14px 28px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-hero-primary:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,136,58,0.35);
}
.btn-hero-secondary {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    padding: 14px 28px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.2);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.4);
}

/* Hero visual */
.hero-visual {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-mockup {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 24px;
    width: 100%;
    max-width: 440px;
    backdrop-filter: blur(12px);
}
.hero-mockup-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.hero-mockup-dot {
    width: 10px; height: 10px; border-radius: 50%;
}
.hero-mockup-dot.red   { background: #ef4444; }
.hero-mockup-dot.amber { background: #f59e0b; }
.hero-mockup-dot.green { background: #10b981; }
.hero-mockup-title { color: rgba(255,255,255,0.6); font-size: 0.8rem; margin-left: 4px; }
.hero-kpi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}
.hero-kpi {
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 12px 14px;
}
.hero-kpi-val {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}
.hero-kpi-val.green { color: #4ade80; }
.hero-kpi-val.amber { color: #fbbf24; }
.hero-kpi-label { font-size: 0.72rem; color: rgba(255,255,255,0.5); margin-top: 2px; }
.hero-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.hero-bar-label { font-size: 0.72rem; color: rgba(255,255,255,0.5); width: 70px; flex-shrink: 0; }
.hero-bar-track { flex: 1; height: 6px; background: rgba(255,255,255,0.08); border-radius: 4px; }
.hero-bar-fill  { height: 100%; border-radius: 4px; }
.hero-bar-fill.green { background: #4ade80; }
.hero-bar-fill.blue  { background: #60a5fa; }
.hero-bar-fill.amber { background: #fbbf24; }

/* ── SECCIONES ────────────────────────────────────────────────────── */
.pub-section {
    padding: 70px max(24px, calc((100vw - 1200px) / 2));
}
.pub-section.bg-light { background: var(--bg); }
.section-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 10px;
}
.section-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 14px;
    line-height: 1.25;
}
.section-sub {
    font-size: 1rem;
    color: var(--text-2);
    max-width: 560px;
    line-height: 1.7;
}
.section-hd { margin-bottom: 48px; }
.section-hd.centered { text-align: center; }
.section-hd.centered .section-sub { margin: 0 auto; }

/* ── SERVICE CARDS ───────────────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.service-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: var(--transition);
}
.service-card:hover {
    border-color: var(--blue);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}
.service-icon {
    width: 56px;
    height: 56px;
    background: var(--blue-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: var(--blue);
}
.service-icon svg {
    width: 28px;
    height: 28px;
}
.service-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}
.service-card p {
    font-size: 0.9rem;
    color: var(--text-2);
    line-height: 1.65;
}

/* ── STEPS ───────────────────────────────────────────────────────── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}
.step {
    text-align: center;
    padding: 24px 16px;
}
.step-num {
    width: 48px;
    height: 48px;
    background: var(--navy);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.step h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}
.step p {
    font-size: 0.875rem;
    color: var(--text-2);
}

/* ── BENEFITS ────────────────────────────────────────────────────── */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.benefit-icon {
    width: 44px;
    height: 44px;
    background: var(--blue-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--blue);
}
.benefit-icon svg {
    width: 20px;
    height: 20px;
}
.benefit-item h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}
.benefit-item p { font-size: 0.85rem; color: var(--text-2); }

/* ── CTA FINAL ───────────────────────────────────────────────────── */
.cta-section {
    background: var(--navy);
    padding: 70px max(24px, calc((100vw - 1200px) / 2));
    text-align: center;
}
.cta-section h2 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    color: var(--white);
    margin-bottom: 16px;
}
.cta-section p {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    margin-bottom: 32px;
}
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ──────────────────────────────────────────────────────── */
.pub-footer {
    background: #060e1b;
    padding: 32px max(24px, calc((100vw - 1200px) / 2));
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}
.pub-footer-links { display: flex; gap: 20px; }
.pub-footer-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: var(--transition);
}
.pub-footer-links a:hover { color: rgba(255,255,255,0.8); }

/* ── FORMULARIO DE REGISTRO ──────────────────────────────────────── */
.registro-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 380px 1fr;
}
.registro-panel-left {
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 100%);
    padding: 48px 36px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.registro-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 40px;
}
.registro-panel-left h2 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 1.6rem;
    color: var(--white);
    margin-bottom: 12px;
    line-height: 1.3;
}
.registro-panel-left > p {
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 36px;
}
.reg-benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.8);
    font-size: 0.875rem;
}
.reg-benefit-icon {
    width: 32px;
    height: 32px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #93c5fd;
}
.reg-benefit-icon svg {
    width: 16px;
    height: 16px;
}
.registro-panel-right {
    background: var(--bg);
    padding: 48px max(32px, 5vw);
    overflow-y: auto;
}
.registro-form-header {
    margin-bottom: 36px;
}
.registro-form-header h1 {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
}
.registro-form-header p { color: var(--text-2); font-size: 0.9rem; }

/* Form fieldsets */
.form-fieldset {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 26px;
    margin-bottom: 20px;
}
.form-fieldset legend {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-3);
    padding: 0 8px;
    margin-bottom: 6px;
}
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 16px;
}
.form-group:last-child { margin-bottom: 0; }
.form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-1);
}
.form-label .req { color: #e53e3e; margin-left: 2px; }
.form-control {
    padding: 10px 13px;
    border: 1px solid var(--border);
    border-radius: 7px;
    font-size: 0.9rem;
    color: var(--text-1);
    background: var(--white);
    transition: var(--transition);
    width: 100%;
}
.form-control:focus {
    outline: none;
    border-color: var(--navy-mid);
    box-shadow: 0 0 0 3px rgba(26,48,88,0.08);
}
.form-control.is-invalid { border-color: #e53e3e; }
.form-control::placeholder { color: var(--text-3); }
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23718096' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 34px;
}
textarea.form-control { resize: vertical; min-height: 80px; }
.form-error {
    font-size: 0.78rem;
    color: #e53e3e;
    margin-top: 3px;
}
.form-hint { font-size: 0.78rem; color: var(--text-3); margin-top: 3px; }

.btn-submit {
    background: var(--green);
    color: var(--white);
    border: none;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}
.btn-submit:hover { background: var(--green-dark); transform: translateY(-1px); }

/* ── PÁGINA DE CONFIRMACIÓN ──────────────────────────────────────── */
.confirm-page {
    min-height: 100vh;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}
.confirm-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 56px 48px;
    text-align: center;
    max-width: 520px;
    width: 100%;
    box-shadow: var(--shadow-lg);
}
.confirm-icon {
    width: 72px;
    height: 72px;
    background: var(--blue-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--blue);
}
.confirm-icon svg {
    width: 32px;
    height: 32px;
}
.confirm-icon.confirm-icon-error {
    background: rgba(239,68,68,0.08);
    color: #dc2626;
}
.confirm-card h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}
.confirm-card p {
    color: var(--text-2);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 8px;
}
.confirm-email {
    font-weight: 600;
    color: var(--navy);
}
.confirm-note {
    background: rgba(0,136,58,0.06);
    border: 1px solid rgba(0,136,58,0.15);
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 0.875rem;
    color: var(--green-dark);
    margin: 24px 0;
}
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-2);
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 8px;
    transition: var(--transition);
}
.btn-back:hover { color: var(--navy); }
.btn-resend {
    display: inline-block;
    padding: 10px 24px;
    background: transparent;
    color: var(--green);
    border: 2px solid var(--green);
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.btn-resend:hover {
    background: var(--green);
    color: white;
}

/* ── CUENTA SUSPENDIDA ───────────────────────────────────────────── */
.suspended-page {
    min-height: 100vh;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}
.suspended-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-lg);
}
.suspended-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--navy);
}
.suspended-icon svg {
    width: 36px;
    height: 36px;
}
.suspended-icon.icon-pending { background: rgba(234,179,8,0.1); color: #d97706; }
.suspended-icon.icon-rejected { background: rgba(239,68,68,0.08); color: #dc2626; }
.suspended-icon.icon-expired { background: rgba(59,130,246,0.08); color: #2563eb; }
.suspended-icon.icon-suspended { background: rgba(107,114,128,0.08); color: #4b5563; }
.suspended-icon.icon-locked { background: rgba(107,114,128,0.08); color: #374151; }
.suspended-card h1 { font-size: 1.5rem; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.suspended-card p { color: var(--text-2); font-size: 0.9rem; line-height: 1.65; margin-bottom: 10px; }
.status-box {
    border-radius: 8px;
    padding: 14px 18px;
    margin: 20px 0;
    font-size: 0.875rem;
    text-align: left;
}
.status-box.pending  { background: rgba(234,179,8,0.08);  border: 1px solid rgba(234,179,8,0.2);  color: #92400e; }
.status-box.rejected { background: rgba(239,68,68,0.07);  border: 1px solid rgba(239,68,68,0.2);  color: #991b1b; }
.status-box.suspended{ background: rgba(107,114,128,0.08);border: 1px solid rgba(107,114,128,0.2);color: #374151; }
.status-box-label { font-weight: 700; margin-bottom: 4px; }

/* ── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 960px) {
    .hero { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { display: none; }
    .services-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr 1fr; }
    .benefits-grid { grid-template-columns: 1fr; }
    .registro-layout { grid-template-columns: 1fr; }
    .registro-panel-left { position: static; height: auto; }
}
@media (max-width: 560px) {
    .steps-grid { grid-template-columns: 1fr; }
    .form-row-2 { grid-template-columns: 1fr; }
    .confirm-card, .suspended-card { padding: 36px 24px; }
}
