/* ============================================================
   home.css — Home moderno Lectum
   Colores: rojo suave #c0392b · azul #006EAF
   Fondo: patron.jpg (mismo que el resto de la plataforma)
   ============================================================ */

/* ══ HERO ══════════════════════════════════════════════════════ */
.h-hero {
    position: relative;
    min-height: 420px;
    background: url("/static/img/design/patron.jpg") center center repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.h-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(60, 60, 60, 0.52);
    pointer-events: none;
}
.h-hero-content {
    position: relative;
    z-index: 2;
    padding: 64px 0 56px;
    width: 100%;
}
.h-hero-eyebrow {
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-bottom: 14px;
}
.h-hero-title {
    font-size: 2.8em;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 20px;
}
.h-hero-sub {
    font-size: 1.05em;
    color: rgba(255,255,255,0.80);
    line-height: 1.75;
    max-width: 560px;
    margin: 0 auto 32px;
}
.h-accent { color: #e87c7c; }

.h-hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ── Botones ───────────────────────────────────────────────── */
.h-btn {
    display: inline-block;
    font-family: 'robotoregular', sans-serif;
    font-size: 13px;
    font-weight: bold;
    padding: 10px 26px;
    border-radius: 2px;
    text-decoration: none !important;
    cursor: pointer;
    transition: opacity .18s, background .18s;
    border: none;
}
.h-btn:hover { opacity: .84; }

.h-btn-primary {
    background: #c0392b;
    color: #fff !important;
}
.h-btn-outline {
    background: transparent;
    color: #fff !important;
    border: 2px solid rgba(255,255,255,.5);
}
.h-btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.h-btn-submit {
    width: 100%;
    background: #c0392b;
    color: #fff !important;
    font-size: 14px;
    padding: 11px;
    margin-top: 4px;
}
.h-btn-submit:hover { background: #a93226; }

.h-btn-blue-sm {
    background: #006EAF;
    color: #fff !important;
    font-size: 12px;
    padding: 6px 14px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Indicador scroll */
.h-scroll-indicator {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.4);
    font-size: 18px;
    cursor: pointer;
    animation: bounce 1.8s infinite;
    z-index: 2;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(6px); }
}

/* ══ SECCIONES ════════════════════════════════════════════════ */
.h-section { padding: 64px 0; }
.h-section-white { background: #fff; }

/* Sección "Cómo funciona": patron.jpg con overlay gris medio */
.h-section-dark {
    position: relative;
    background: url("/static/img/design/patron.jpg") center center repeat;
}
.h-section-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(55, 55, 55, 0.68);
    pointer-events: none;
}
.h-section-dark > .container {
    position: relative;
    z-index: 1;
}

.h-section-header { margin-bottom: 44px; }
.h-section-title {
    font-size: 2em;
    color: #222;
    margin-bottom: 12px;
}
.h-section-sub {
    color: #666;
    font-size: 1em;
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.7;
}

.h-rule {
    width: 48px;
    height: 3px;
    background: #c0392b;
    border-radius: 2px;
    margin: 0 auto 18px;
}
.h-rule-light { background: rgba(255,255,255,.45); }

/* ══ CARDS — ¿Qué es? ═════════════════════════════════════════ */
.h-cards { display: flex; flex-wrap: wrap; }

.h-card {
    background: #fafafa;
    border: 1px solid #ececec;
    border-radius: 4px;
    padding: 32px 24px;
    margin-bottom: 20px;
    text-align: center;
    transition: box-shadow .22s, transform .22s;
    opacity: 0;
    transform: translateY(18px);
}
.h-card.h-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .45s ease, transform .45s ease, box-shadow .22s;
}
.h-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,.10);
    transform: translateY(-3px);
}
.h-card-featured { border-top: 3px solid #006EAF; }

.h-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}
.h-icon-red  { background: #c0392b; }
.h-icon-blue { background: #006EAF; }
.h-card-icon .glyphicon { font-size: 24px; color: #fff; }

.h-card-title { font-size: 1em; color: #222; margin-bottom: 10px; }
.h-card-text  { font-size: 14px; color: #666; line-height: 1.7; }

/* ══ STEPS — Cómo funciona ════════════════════════════════════ */
.h-step {
    text-align: center;
    padding: 0 24px 24px;
    opacity: 0;
    transform: translateY(18px);
}
.h-step.h-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .45s ease, transform .45s ease;
}

.h-step-badge {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.6em;
    font-weight: bold;
    color: #fff;
    font-family: 'robotoregular', sans-serif;
}
.h-badge-red  { background: #c0392b; }
.h-badge-blue { background: #006EAF; }

.h-step-title { font-size: .95em; color: #fff; margin-bottom: 10px; }
.h-step-text  { font-size: 13px; color: rgba(255,255,255,.72); line-height: 1.7; }

/* ══ FORMULARIO ═══════════════════════════════════════════════ */
.h-form-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: 3px solid #c0392b;
    border-radius: 4px;
    padding: 32px 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
    opacity: 0;
    transform: translateY(18px);
}
.h-form-card.h-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .5s ease, transform .5s ease;
}

.h-field { margin-bottom: 18px; }
.h-label { font-size: 13px; color: #444; margin-bottom: 5px; display: block; }
.h-req   { color: #c0392b; font-size: 11px; margin-left: 2px; }

.h-input {
    border: 1px solid #ddd;
    border-radius: 2px;
    font-size: 13px;
    padding: 8px 12px;
    height: auto;
    color: #333;
    transition: border-color .15s;
}
.h-input:focus {
    border-color: #006EAF;
    box-shadow: 0 0 0 2px rgba(0,110,175,.1);
    outline: none;
}

.h-plantilla {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f7f9fb;
    border: 1px solid #dce6ef;
    border-radius: 3px;
    padding: 12px 14px;
    margin-bottom: 20px;
}
.h-plantilla-icon { font-size: 22px; color: #006EAF; flex-shrink: 0; }
.h-plantilla-info { flex: 1; }
.h-captcha-note   { font-size: 11px; color: #bbb; margin-top: 8px; }

/* ══ PÁGINA DE ÉXITO ══════════════════════════════════════════ */
.h-success-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}
.h-success-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: 3px solid #006EAF;
    border-radius: 4px;
    padding: 48px 40px;
    text-align: center;
    max-width: 480px;
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
}
.h-success-icon  { font-size: 52px; color: #006EAF; display: block; margin-bottom: 20px; }
.h-success-title { font-size: 1.5em; color: #222; margin-bottom: 14px; }
.h-success-text  { font-size: 14px; color: #666; line-height: 1.75; margin-bottom: 10px; }

/* ══ RESPONSIVE ═══════════════════════════════════════════════ */
@media (max-width: 768px) {
    .h-hero-title    { font-size: 1.9em; }
    .h-hero-sub      { font-size: .95em; }
    .h-section       { padding: 44px 0; }
    .h-section-title { font-size: 1.6em; }
    .h-card          { margin-bottom: 16px; }
    .h-step          { margin-bottom: 32px; }
    .h-form-card     { padding: 24px 18px; }
    .h-hero-actions  { flex-direction: column; align-items: center; }
    .h-btn           { width: 220px; text-align: center; }
    .h-plantilla     { flex-wrap: wrap; }
}