:root {
    --marino: #0A1A3C;
    --marino-claro: #13275c;
    --azul-bandera: #1E3799;
    --rojo-bandera: #C8102E;
    --negro: #0A1A3C;
    --oro: #F2B705;
    --crema: #F5EFE6;
    --gris: #9aa3bd;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--negro);
    color: var(--crema);
    line-height: 1.5;
}

h1, h2, h3 {
    font-family: 'Archivo Black', sans-serif;
    line-height: 1.15;
}

a { color: inherit; text-decoration: none; }

.content-block {
    max-width: 960px;
    margin: 0 auto;
    padding: 100px 24px;
}

.section-label {
    color: var(--oro);
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-lead {
    max-width: 700px;
    color: var(--gris);
    font-size: 1.1rem;
    margin: 20px 0;
}

.valores-block {
    display: flex;
    align-items: center;
    gap: 48px;
}
.valores-text { flex: 1.2; }
.valores-media { flex: 1; }
.valores-media img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #23366e;
    display: block;
}

/* Legal pages */
.legal-doc { padding-top: 140px; }
.legal-doc h1 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin: 12px 0 32px;
    color: var(--crema);
}
.legal-doc h2 {
    font-size: 1.15rem;
    color: var(--oro);
    margin: 40px 0 14px;
}
.legal-doc h3 {
    font-size: 1.05rem;
    color: var(--crema);
    margin-bottom: 12px;
}
.legal-doc p {
    color: var(--gris);
    margin: 0 0 14px;
    max-width: 720px;
}
.legal-doc ul {
    margin: 0 0 14px;
    padding-left: 22px;
    color: var(--gris);
    max-width: 720px;
}
.legal-doc li { margin-bottom: 8px; }
.legal-accept {
    margin-top: 48px;
    padding: 28px;
    background: var(--marino-claro);
    border: 1px solid #23366e;
    border-radius: 10px;
}
.legal-accept p { margin-bottom: 0; }

/* Nav */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 10;
    background: transparent;
    box-shadow: none;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}
nav.scrolled {
    background: var(--negro);
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.nav-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1rem;
    letter-spacing: 1px;
}
.logo span { color: var(--oro); }

.nav-links { display: flex; gap: 28px; font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: var(--oro); }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--crema);
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(10,26,60,0.95) 0%, rgba(10,26,60,0.55) 55%, rgba(10,26,60,0.15) 100%),
        url('../images/hero-people-flag-1920w.webp') 74% center/cover no-repeat;
    background-attachment: fixed;
}

.hero-inner {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

.flag-stripe {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    display: flex;
    height: 8px;
}
.flag-stripe span { flex: 1; }
.flag-stripe .amarillo { background: var(--oro); flex: 2; }
.flag-stripe .azul { background: var(--azul-bandera); }
.flag-stripe .rojo { background: var(--rojo-bandera); }

.hero-content { max-width: 720px; }

.hero-tag {
    display: inline-block;
    border: 1px solid var(--oro);
    color: var(--oro);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

#hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    color: var(--crema);
}

.hero-sub {
    margin: 24px 0 36px;
    font-size: 1.15rem;
    color: #d8d0c4;
    max-width: 560px;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
}
.btn-primary { background: var(--oro); color: var(--negro); }
.btn-primary:hover { background: #ffce33; }
.btn-outline { border: 1px solid var(--crema); }
.btn-outline:hover { background: rgba(255,255,255,0.08); }

/* Identidad */
#identidad { background: var(--oro); }
.identidad-row {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    padding: 32px 24px;
    flex-wrap: wrap;
}
.identidad-item {
    flex: 1;
    min-width: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border-left: 1px solid rgba(10,26,60,0.25);
}
.identidad-item:first-child { border-left: none; }
.identidad-item span:last-child {
    font-family: 'Archivo Black', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    color: var(--negro);
    line-height: 1.4;
}
.identidad-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.identidad-icon svg { width: 24px; height: 24px; stroke: var(--negro); fill: none; }

/* Milagros */
.milagros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 40px;
}
.milagro-card {
    background: var(--marino-claro);
    border: 1px solid #23366e;
    border-radius: 10px;
    padding: 32px 20px;
    text-align: center;
}
.milagro-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--negro);
    border: 2px solid var(--oro);
    border-radius: 50%;
}
.milagro-icon svg { width: 26px; height: 26px; stroke: var(--oro); fill: none; }
.milagro-card h3 {
    font-size: 1rem;
    margin: 4px 0 12px;
    color: var(--crema);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--oro);
    display: inline-block;
}
.milagro-card p { color: var(--gris); font-size: 0.92rem; }

/* Colombia Patria Milagro */
#pilares-hero {
    position: relative;
    min-height: 46vh;
    display: flex;
    align-items: center;
    padding-top: 90px;
    background:
        linear-gradient(90deg, rgba(10,26,60,0.95) 0%, rgba(10,26,60,0.7) 60%, rgba(10,26,60,0.4) 100%),
        url('../images/patria-milagro-banner.jpg') center/cover no-repeat,
        var(--marino-claro);
}
#pilares-hero .hero-content { max-width: 680px; }
#pilares-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); color: var(--crema); margin-top: 16px; }

.pilar-quote {
    font-family: 'Archivo Black', sans-serif;
    color: var(--oro);
    font-size: 1.4rem;
    margin: 24px 0 0;
}

.pilares-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}
@media (max-width: 900px) {
    .pilares-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .pilares-grid { gap: 12px; }
}
.pilar-card {
    background: var(--marino-claro);
    border: 1px solid #23366e;
    border-radius: 10px;
    padding: 24px 22px;
}
@media (max-width: 480px) {
    .pilar-card { padding: 16px 14px; }
    .pilar-card h3 { font-size: 0.9rem; }
    .pilar-card p { font-size: 0.82rem; }
}
.pilar-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 2px solid var(--oro);
    border-radius: 50%;
    color: var(--oro);
    font-family: 'Archivo Black', sans-serif;
    font-size: 0.85rem;
    margin-bottom: 14px;
}
.pilar-card h3 { font-size: 1rem; color: var(--crema); margin-bottom: 8px; }
.pilar-card p { color: var(--gris); font-size: 0.9rem; }

.link-more {
    display: inline-block;
    margin-top: 32px;
    color: var(--oro);
    font-weight: 600;
    border-bottom: 1px solid var(--oro);
    padding-bottom: 2px;
}

/* Unete */
#unete { background: var(--marino-claro); text-align: center; }
#unete h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
#unete .section-lead { margin-left: auto; margin-right: auto; }

.btn-cta {
    display: inline-block;
    margin-top: 16px;
    background: var(--oro);
    color: var(--negro);
    padding: 16px 32px;
    border-radius: 6px;
    font-weight: 700;
}
.btn-cta:hover { background: #e8c968; }

/* Footer */
footer { border-top: 1px solid #23366e; }

.footer-main {
    text-align: center;
    padding: 56px 24px 32px;
}
.footer-logo {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.7rem;
    letter-spacing: 1px;
    color: var(--crema);
}
.footer-logo span { color: var(--oro); }
.footer-tagline { margin-top: 16px; }
.footer-tagline a {
    color: var(--gris);
    font-size: 0.95rem;
}
.footer-tagline a:hover { color: var(--oro); }

.footer-bar { background: #060f24; }
.footer-bar-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--gris);
}
.footer-bar-inner a { color: var(--gris); }
.footer-bar-inner a:hover { color: var(--oro); }
.footer-legal a:first-child { margin-right: 8px; }
.footer-legal a:last-child { margin-left: 8px; }

@media (max-width: 860px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--negro);
        box-shadow: 0 8px 16px rgba(0,0,0,0.3);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
    }
    .nav-links.open { max-height: 260px; }
    .nav-links a { padding: 16px 24px; border-top: 1px solid rgba(245,239,230,0.08); }
}

@media (max-width: 640px) {
    .footer-bar-inner { flex-direction: column; text-align: center; }
    .valores-block { flex-direction: column; }
    .identidad-item { border-left: none; border-top: 1px solid rgba(10,26,60,0.25); padding-top: 20px; }
    .identidad-item:first-child { border-top: none; }
    .identidad-row { flex-direction: column; gap: 20px; }

    /* la foto es un banner muy ancho y corto: en pantallas altas y angostas
       hay que bajar el alto del hero y mover el foco, o solo se ve una tira de cielo */
    #hero {
        min-height: 62vh;
        background-attachment: scroll;
        background-position: 82% 55%;
    }
}

/* Formulario de inscripción */
.form-page { padding-top: 140px; padding-bottom: 60px; }

.form-header { text-align: center; margin-bottom: 40px; }
.form-header h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 12px 0; }

.progress-track {
    height: 6px;
    background: var(--marino-claro);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 8px;
}
.progress-fill {
    height: 100%;
    background: var(--oro);
    width: 6.66%;
    transition: width 0.25s ease;
}
.progress-label {
    text-align: right;
    font-size: 0.8rem;
    color: var(--gris);
    margin-bottom: 40px;
}

.form-card {
    background: var(--marino-claro);
    border: 1px solid #23366e;
    border-radius: 14px;
    padding: 40px;
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.step { display: none; }
.step.active { display: block; animation: step-in 0.2s ease; }
@keyframes step-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.step-eyebrow { color: var(--oro); font-size: 0.8rem; font-weight: 700; letter-spacing: 1.5px; margin-bottom: 8px; }
.step h2 { font-size: 1.5rem; margin-bottom: 24px; }

.field { margin-bottom: 22px; }
.field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--crema);
}
.field .hint { display: block; font-weight: 400; color: var(--gris); font-size: 0.82rem; margin-top: 4px; }

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
    width: 100%;
    background: var(--negro);
    border: 1px solid #2c3f77;
    color: var(--crema);
    border-radius: 8px;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 0.95rem;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--oro);
}
.field select {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23F2B705" stroke-width="2"><path d="M6 9l6 6 6-6"/></svg>');
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    padding-right: 40px;
}

.check-grid, .pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.check-chip {
    position: relative;
}
.check-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.check-chip label {
    display: inline-block;
    margin: 0;
    padding: 9px 16px;
    border: 1px solid #2c3f77;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gris);
    cursor: pointer;
    transition: all 0.15s ease;
}
.check-chip input:checked + label {
    background: var(--oro);
    border-color: var(--oro);
    color: var(--negro);
    font-weight: 700;
}
.check-chip input:disabled + label { opacity: 0.35; cursor: not-allowed; }
.check-chip input:focus-visible + label { outline: 2px solid var(--oro); outline-offset: 2px; }

.pill-group { gap: 0; display: inline-flex; border: 1px solid #2c3f77; border-radius: 999px; overflow: hidden; }
.pill-group .check-chip label {
    border: none;
    border-radius: 0;
    margin: 0;
    background: transparent;
}
.pill-group .check-chip:not(:last-child) label { border-right: 1px solid #2c3f77; }

.range-field { display: flex; align-items: center; gap: 16px; }
.range-field input[type="range"] {
    flex: 1;
    accent-color: var(--oro);
}
.range-value {
    font-family: 'Archivo Black', sans-serif;
    color: var(--oro);
    font-size: 1.4rem;
    min-width: 32px;
    text-align: center;
}

.subfield { margin-top: 14px; padding-left: 2px; }

.declaracion-box {
    background: var(--negro);
    border: 1px solid #2c3f77;
    border-radius: 10px;
    padding: 20px;
    font-style: italic;
    color: var(--gris);
    margin-bottom: 24px;
}

.check-line { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.check-line input { margin-top: 4px; }
.check-line label { font-size: 0.9rem; color: var(--gris); font-weight: 400; }
.check-line a { color: var(--oro); text-decoration: underline; }

.step-nav { display: flex; justify-content: space-between; margin-top: 32px; }
.step-nav button {
    padding: 13px 26px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.btn-prev { background: transparent; color: var(--crema); border: 1px solid var(--crema) !important; }
.btn-next, .btn-submit { background: var(--oro); color: var(--negro); margin-left: auto; }
.btn-next:hover, .btn-submit:hover { background: #ffce33; }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.form-message {
    display: none;
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
}
.form-message.show { display: block; }
.form-message.error { background: rgba(200,16,46,0.15); border: 1px solid var(--rojo-bandera); color: #ffb4c0; }

.form-success {
    display: none;
    text-align: center;
    padding: 20px 0;
}
.form-success.show { display: block; }
.form-success h2 { color: var(--oro); margin-bottom: 12px; }
.form-success p { color: var(--gris); max-width: 480px; margin: 0 auto; }

@media (max-width: 640px) {
    .form-card { padding: 24px; }
    .pill-group { display: flex; width: 100%; }
    .pill-group .check-chip { flex: 1; }
    .pill-group .check-chip label { text-align: center; width: 100%; }
}
