:root {
    --primary: #27ae60;
    --primary-dark: #1e8449;

    --bg-dark: #0f172a;
    --bg-darker: #020617;

    --bg-light: #f8fafc;
    --bg-white: #ffffff;

    --text-main: #0f172a;
    --text-soft: #64748b;

    --border-soft: #e2e8f0;

    --white: #ffffff;

    --danger: #ff4d4f;
    --warning: #f5c542;
}

/* ===== BASE ===== */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background: var(--bg-white);
    line-height: 1.6;
}

/* ===== TITULOS ===== */
h1 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -1px;
}

h2 {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 15px;
}

h4 {
    font-weight: 600;
}

/* ===== NAVBAR ===== */
.custom-navbar {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    border: none;
}

.navbar-brand {
    color: var(--white) !important;
    font-weight: 700;
}

/* ===== HERO / CTA ===== */
.hero,
.cta {
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-darker));
    color: white;
    text-align: center;
    padding: 140px 20px;
}

.hero h1 {
    text-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.hero p {
    text-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.hero p,
.cta p {
    color: #cbd5e1;
    max-width: 650px;
    margin: 0 auto 25px;
}

.hero {
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(39,174,96,0.25) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

/* ===== BOTONES ===== */
.btn-main {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    transition: .3s;
    position: relative;
    overflow: hidden;
}

.btn-main::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.15);
    top: 0;
    left: -100%;
    transition: 0.4s;
}

.btn-main:hover::after {
    left: 100%;
}

.btn-main:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ===== SECCIONES ===== */
.section-modern {
    padding: 100px 20px;
    background: var(--bg-white);
}

.section-modern.alt {
    background: var(--bg-light);
}

/* ===== TEXTOS ===== */
.section-title {
    text-align: center;
    margin-bottom: 10px;
}

.sec-text {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-soft);
    font-size: 16px;
}

/* ===== CARDS ===== */
.card-feature {
    background: white;
    padding: 28px;
    border: 1px solid transparent;
    background-image: linear-gradient(white, white), 
                      linear-gradient(135deg, #27ae60, #20c997);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    border: 1px solid var(--border-soft);
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

button, .btn {
    cursor: pointer;
}

.card-feature:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.card-feature.center {
    text-align: center;
}

.card-feature h4 {
    margin-bottom: 10px;
}

.card-feature p {
    color: var(--text-soft);
    font-size: 14px;
}

.card-feature .icon {
    font-size: 28px;
    margin-bottom: 10px;
}

/* ===== STEPS ===== */
.step-card {
    position: relative;
    padding-top: 50px;
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    
    background: linear-gradient(135deg, var(--primary), #20c997);
    color: white;

    width: 45px;
    height: 45px;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: bold;
    font-size: 18px;

    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* ===== TIMELINE ===== */
#fechas {
    background: linear-gradient(180deg, var(--bg-dark), var(--bg-darker));
    color: white;
    padding: 100px 20px;
}

.sec-lbl {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    color: var(--warning);
    margin-bottom: 10px;
}

.sec-title {
    font-size: 36px;
}

/* ===== TIMELINE HORIZONTAL ===== */
.tl-wrap {
    max-width: 1200px;
    margin: 80px auto 0;
}

.tl-h {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.tl-h::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255,255,255,0.2);
}

.tl-item {
    width: 18%;
    text-align: center;
}

.tl-dot {
    width: 14px;
    height: 14px;
    background: #64748b;
    border-radius: 50%;
    margin: 0 auto 10px;
}

.tl-dot.red {
    background: var(--danger);
}

.tl-dot.gold {
    background: var(--warning);
}

.tl-date {
    font-size: 12px;
    color: #94a3b8;
}

.tl-ev {
    font-size: 14px;
}

/* ===== BADGES ===== */
.tl-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 5px 12px;
    font-size: 11px;
    border-radius: 20px;
    font-weight: 600;
}

.tl-badge.vencido {
    background: rgba(255,77,79,0.15);
    color: var(--danger);
}

.tl-badge.tiempo {
    background: rgba(245,197,66,0.15);
    color: var(--warning);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-dark);
    color: #94a3b8;
    text-align: center;
    padding: 25px;
    font-size: 13px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    h1 { font-size: 32px; }
    h2 { font-size: 26px; }

    .tl-h { display: none; }
}


a {
    transition: all 0.2s ease;
}

.btn {
    border-radius: 10px;
}

.hero-pro {
    padding: 160px 20px 120px;
}

.hero-actions {
    margin-top: 25px;
}

.hero-actions .btn {
    margin: 5px;
}

/* MOCK UI */
.hero-mock {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.mock-window {
    width: 100%;
    max-width: 600px;
    background: #0f172a;
    border-radius: 14px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.4);
    overflow: hidden;
}

.mock-header {
    height: 35px;
    background: #1e293b;
}

.mock-body {
    padding: 20px;
}

.mock-line {
    height: 12px;
    background: #334155;
    margin-bottom: 10px;
    border-radius: 6px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

.mock-line.short {
    width: 60%;
}

.testimonial {
    max-width: 700px;
    margin: 40px auto 0;
    font-size: 18px;
    color: var(--text-soft);
}

.testimonial strong {
    display: block;
    margin-top: 10px;
    color: var(--text-main);
}

.cta-pro {
    background: linear-gradient(135deg, #1e8449, #27ae60);
    color: white;
    padding: 100px 20px;
}

.mock-table {
    font-size: 13px;
    color: #cbd5e1;
}

.mock-table .row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #1e293b;
}

.mock-table .row span {
    width: 33%;
}

.mock-table .ok {
    color: #22c55e;
}

.mock-table .error {
    color: #ef4444;
}

.section-modern {
    position: relative;
    z-index: 1;
}

/* Separador suave tipo ola */
.section-modern::before {
    content: "";
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.03));
}

.demo-container {
    margin: 60px auto 0;
    max-width: 1000px;
    padding: 0 15px;
}

.demo-gif {
    max-width: 900px;
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.4);
}

.demo-gif:hover {
    transform: scale(1.02);
}

html {
    scroll-behavior: smooth;
}