/* ==========================================================================
   La Forja de Nosolorol — CSS Principal v1.2
   Gamekout theme: Poppins/Oxanium, #ffb303 accent, dark
   ========================================================================== */

:root {
    --lf-bg-page: #1a1a1a;
    --lf-bg-card: #222222;
    --lf-bg-card-hover: #262626;
    --lf-bg-hero: #111111;
    --lf-bg-input: #2a2a2a;
    --lf-border: #313131;
    --lf-border-hover: #444;
    --lf-text-body: #cccccc;
    --lf-text-white: #ffffff;
    --lf-text-muted: #808080;
    --lf-accent: #ffb303;
    --lf-accent-hover: #ffc633;
    --lf-btn-hover-bg: #313131;
    --lf-success: #4cbb6c;
    --lf-danger: #ff4c4c;
    --lf-font-body: 'Poppins', sans-serif;
    --lf-font-display: 'Oxanium', cursive;
    --lf-transition: 0.35s ease;
}

/* ═══ GAP FIX — solo se carga en La Forja ═══ */
.breadcrumb { margin-bottom: 0 !important; }
#content { padding-top: 0 !important; }

/* ═══ BREADCRUMB TITLE — el tema ya estila .breadcrumb .container h1 ═══ */
.laforja-bc-title {
    position: static;
    left: auto;
    top: auto;
    transform: none;
}

#laforja-page { font-family: var(--lf-font-body); color: var(--lf-text-body); font-size: 14px; font-weight: 300; line-height: 26px; letter-spacing: 0.5px; -webkit-font-smoothing: antialiased; }
#laforja-page a { color: var(--lf-text-body); text-decoration: none; transition: color var(--lf-transition); }
#laforja-page a:hover { color: var(--lf-accent); }

/* ═══ HERO — full viewport width ═══ */
.laforja-hero {
    width: 100vw; position: relative; left: 50%; margin-left: -50vw;
    background: var(--lf-bg-hero); border-bottom: 1px solid var(--lf-border);
    padding: 52px 20px 44px; text-align: center; overflow: hidden;
}
.laforja-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 100%, rgba(255,179,3,0.06) 0%, transparent 55%), radial-gradient(ellipse at 80% 0%, rgba(255,154,82,0.04) 0%, transparent 55%); pointer-events: none; }
.laforja-hero__content { position: relative; z-index: 1; animation: lfHeroFade 0.6s ease-out; }
@keyframes lfHeroFade { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:none} }
.laforja-hero__icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: 18px; color: var(--lf-accent); border: 1px solid var(--lf-border); background: rgba(255,179,3,0.05); }
.laforja-hero__icon .material-icons { font-size: 28px; }
.laforja-hero__title { font-family: var(--lf-font-display); font-size: 38px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; line-height: 1; margin-bottom: 14px; color: var(--lf-text-white); }
.laforja-hero__subtitle { font-size: 14px; color: var(--lf-text-body); max-width: 520px; margin: 0 auto 32px; line-height: 26px; }
.laforja-hero__stats { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.laforja-hero__stat { display: flex; flex-direction: column; align-items: center; padding: 14px 28px; border: 1px solid var(--lf-border); background: rgba(255,255,255,0.02); }
.laforja-hero__stat-num { font-family: var(--lf-font-display); font-size: 28px; font-weight: 700; color: var(--lf-accent); line-height: 1; }
.laforja-hero__stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--lf-text-muted); margin-top: 4px; font-weight: 500; }

/* ═══ HOW IT WORKS — full viewport width ═══ */
.laforja-how {
    width: 100vw; position: relative; left: 50%; margin-left: -50vw;
    border-bottom: 1px solid var(--lf-border); padding: 28px 0; background: var(--lf-bg-hero);
}
.laforja-how__steps { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 780px; margin: 0 auto; }
.laforja-how__step { text-align: center; padding: 14px 20px; border-right: 1px solid var(--lf-border); }
.laforja-how__step:last-child { border-right: none; }
.laforja-how__step-icon { color: var(--lf-accent); margin-bottom: 6px; }
.laforja-how__step-icon .material-icons { font-size: 24px; }
.laforja-how__step-num { font-family: var(--lf-font-display); font-size: 10px; font-weight: 600; color: var(--lf-accent); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 4px; }
.laforja-how__step h3 { font-family: var(--lf-font-display); font-size: 14px; font-weight: 600; color: var(--lf-text-white); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.laforja-how__step p { font-size: 12px; color: var(--lf-text-muted); line-height: 1.5; margin: 0; }

/* ═══ SECTIONS ═══ */
.laforja-section { padding: 40px 0; border-bottom: 1px solid var(--lf-border); }
.laforja-section:last-of-type { border-bottom: none; }
.laforja-section__header { text-align: center; margin-bottom: 28px; position: relative; padding-bottom: 14px; }
.laforja-section__header::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 70px; height: 2px; background: var(--lf-accent); }
.laforja-section__title { font-family: var(--lf-font-display); font-size: 24px; font-weight: 600; color: var(--lf-text-white); text-transform: uppercase; letter-spacing: 0.5px; display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.laforja-section__title .material-icons { font-size: 22px; color: var(--lf-accent); vertical-align: middle; }
.laforja-section__subtitle { font-size: 13px; color: var(--lf-text-muted); margin-top: 4px; }

/* ═══ PROJECT CARDS ═══
   Content column determines card height.
   Image fills that height with object-fit:cover. */
.laforja-project-list { display: flex; flex-direction: column; gap: 16px; }
.laforja-project {
    display: grid; grid-template-columns: 400px 1fr;
    background: var(--lf-bg-card); border: 1px solid var(--lf-border);
    overflow: hidden; transition: border-color var(--lf-transition), background var(--lf-transition);
}
.laforja-project:hover { border-color: var(--lf-border-hover); background: var(--lf-bg-card-hover); }
.laforja-project--featured { border-color: var(--lf-accent); }
.laforja-project--featured:hover { border-color: var(--lf-accent-hover); }
.laforja-project--achieved { border-color: var(--lf-success); }

/* Image — absolute so it fills the row without influencing height */
.laforja-project__image-link { display: block; position: relative; overflow: hidden; }
.laforja-project__image-wrap { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: var(--lf-bg-hero); }
.laforja-project__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.laforja-project:hover .laforja-project__img { transform: scale(1.04); }
.laforja-project__placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1f1f1a 0%, #111 100%); }
.laforja-project__placeholder .material-icons { font-size: 56px; color: rgba(255,255,255,0.06); }

/* Badges */
.laforja-project__badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 4px; z-index: 2; }
.laforja-badge { display: inline-block; padding: 3px 10px; font-family: var(--lf-font-display); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: #000; line-height: 1.4; background: var(--lf-accent); }
.laforja-badge--success { background: var(--lf-success); }
.laforja-badge--urgent { background: var(--lf-danger); color: #fff; animation: lfUrgPulse 2s ease-in-out infinite; }
@keyframes lfUrgPulse { 0%,100%{opacity:1} 50%{opacity:.7} }

.laforja-project__achieved-overlay { position: absolute; inset: 0; background: rgba(76,187,108,0.1); display: flex; align-items: center; justify-content: center; z-index: 1; }
.laforja-project__achieved-check { width: 48px; height: 48px; background: var(--lf-success); color: #000; display: flex; align-items: center; justify-content: center; }
.laforja-project__achieved-check .material-icons { font-size: 28px; }

/* Body — determines card height */
.laforja-project__body { padding: 24px 28px 20px; display: flex; flex-direction: column; }
.laforja-project__title { font-family: var(--lf-font-display); font-size: 18px; font-weight: 700; margin-bottom: 6px; line-height: 1.3; color: var(--lf-text-white); text-transform: capitalize; letter-spacing: 0.5px; }
.laforja-project__title a { color: inherit; }
.laforja-project__title a:hover { color: var(--lf-accent); }
.laforja-project__desc { font-size: 13px; color: var(--lf-text-body); line-height: 22px; margin-bottom: 18px; flex: 1; }

/* Progress bar — 20% más gruesa */
.laforja-progress { margin-bottom: 16px; }
.laforja-progress__bar-row { display: flex; align-items: center; gap: 10px; }
.laforja-progress__track { flex: 1; height: 5px; background: var(--lf-bg-input); overflow: hidden; }
.laforja-progress__fill { height: 100%; position: relative; transition: width 1.2s cubic-bezier(0.4,0,0.2,1); }
.laforja-progress__fill--active { background: var(--lf-accent); }
.laforja-progress__fill--success { background: var(--lf-success); }
.laforja-progress__fill::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); animation: lfShimmer 3s ease-in-out infinite; }
.laforja-progress__fill--success::after { animation: none; }
@keyframes lfShimmer { 0%{transform:translateX(-100%)} 100%{transform:translateX(100%)} }
.laforja-progress__pct { font-family: var(--lf-font-display); font-size: 16px; font-weight: 700; color: var(--lf-accent); min-width: 38px; text-align: right; }
.laforja-progress__pct--success { color: var(--lf-success); }
.laforja-progress__stats { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; }
.laforja-progress__stat { display: flex; align-items: baseline; gap: 4px; }
.laforja-progress__stat-val { font-family: var(--lf-font-display); font-size: 18px; font-weight: 700; color: var(--lf-text-white); }
.laforja-progress__stat-label { font-size: 13px; color: var(--lf-text-muted); }

/* Footer + Pricing — empujado al fondo */
.laforja-project__footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; border-top: 1px solid var(--lf-border); margin-top: auto; }
.laforja-project__price-wrap { display: flex; flex-direction: column; gap: 2px; }
.laforja-project__price-original { font-family: var(--lf-font-display); font-size: 14px; font-weight: 400; color: var(--lf-text-muted); text-decoration: line-through; }
.laforja-project__price { font-family: var(--lf-font-display); font-size: 20px; font-weight: 600; color: var(--lf-accent); }
.laforja-project__cta { display: inline-flex; align-items: center; gap: 6px; padding: 11px 28px; font-family: var(--lf-font-display); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; border: none; cursor: pointer; background: var(--lf-accent); color: #000; transition: all 0.5s ease; }
#laforja-page .laforja-project__cta { color: #000; }
#laforja-page .laforja-project__cta:hover { background: var(--lf-btn-hover-bg); color: var(--lf-text-white); }
#laforja-page .laforja-project__cta--success { background: var(--lf-success); color: #000; }
#laforja-page .laforja-project__cta--success:hover { background: var(--lf-btn-hover-bg); color: var(--lf-text-white); }
.laforja-project__cta .material-icons { font-size: 16px; }

/* ═══ FAQ ACCORDION ═══ */
.laforja-faq-section { max-width: 780px; margin-left: auto; margin-right: auto; }
.laforja-faq-list { display: flex; flex-direction: column; gap: 2px; }
.laforja-faq-item { border: 1px solid var(--lf-border); background: var(--lf-bg-card); }
.laforja-faq-item__question {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    width: 100%; padding: 18px 24px; border: none; background: none; cursor: pointer;
    font-family: var(--lf-font-display); font-size: 14px; font-weight: 600;
    color: var(--lf-text-white); text-align: left; letter-spacing: 0.3px;
    transition: color var(--lf-transition);
}
.laforja-faq-item__question:hover { color: var(--lf-accent); }
.laforja-faq-item__question:focus { outline: none; box-shadow: none; }
.laforja-faq-item__icon { transition: transform 0.3s ease; color: var(--lf-accent); font-size: 20px; flex-shrink: 0; }
.laforja-faq-item.is-open .laforja-faq-item__icon { transform: rotate(180deg); }
.laforja-faq-item__answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.laforja-faq-item__answer-inner { padding: 0 24px 20px; font-size: 13px; color: var(--lf-text-body); line-height: 24px; }
.laforja-faq-item__answer-inner p { margin: 0 0 10px; }
.laforja-faq-item__answer-inner p:last-child { margin-bottom: 0; }

/* ═══ EMPTY ═══ */
.laforja-empty { text-align: center; padding: 80px 20px; color: var(--lf-text-muted); }
.laforja-empty .material-icons { font-size: 48px; margin-bottom: 16px; color: var(--lf-border); }

/* ═══ FOOTER LINK ═══ */
.laforja-footer-link { text-align: center; padding: 16px 0; border-top: 1px solid var(--lf-border); }
.laforja-footer-link a { display: inline-flex; align-items: center; gap: 6px; font-family: var(--lf-font-display); font-size: 14px; font-weight: 600; color: var(--lf-accent); text-transform: uppercase; letter-spacing: 0.5px; }
.laforja-footer-link a:hover { color: var(--lf-accent-hover); }
.laforja-footer-link__count { font-family: var(--lf-font-body); font-size: 12px; font-weight: 400; color: var(--lf-text-muted); text-transform: none; letter-spacing: normal; }

/* ═══ ENTRANCE ANIMATIONS ═══ */
.laforja-project { opacity: 0; transform: translateY(12px); animation: lfCardIn 0.4s ease forwards; }
.laforja-project:nth-child(1){animation-delay:.05s}
.laforja-project:nth-child(2){animation-delay:.12s}
.laforja-project:nth-child(3){animation-delay:.19s}
.laforja-project:nth-child(4){animation-delay:.26s}
.laforja-project:nth-child(5){animation-delay:.33s}
@keyframes lfCardIn { to{opacity:1;transform:translateY(0)} }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 820px) {
    .laforja-project { grid-template-columns: 1fr; }
    .laforja-project__image-link { position: static; }
    .laforja-project__image-wrap { position: static; aspect-ratio: 16 / 9; }
    .laforja-hero__title { font-size: 28px; }
    .laforja-hero { padding: 36px 20px 28px; }
    .laforja-how__steps { grid-template-columns: 1fr; }
    .laforja-how__step { border-right: none; border-bottom: 1px solid var(--lf-border); padding: 12px 16px; }
    .laforja-how__step:last-child { border-bottom: none; }
    .laforja-project__body { padding: 18px 20px; }
    .laforja-project__footer { flex-direction: column; align-items: stretch; }
    .laforja-project__cta { justify-content: center; }
    .laforja-faq-item__question { padding: 14px 16px; font-size: 13px; }
    .laforja-faq-item__answer-inner { padding: 0 16px 16px; }
}
