/* ============================================================
PrintStudio — Landing V2 Design System
Namespace: .l2-
============================================================ */
html {
    scroll-behavior: smooth;
    /* Compensa la altura del header sticky automáticamente */
    scroll-padding-top: 100px; 
}


/* ── Layout Base ───────────────────────────────────────────── */
.l2-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

body {
    background-color: var(--color-bg);
    background-image: var(--bg-dots);
}


.l2-section {
    padding: var(--space-16) 0;
}

.l2-section--bg {
    background-color: var(--color-bg-panel2);
}

.l2-header-sticky {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
}

/* ── Nav Pill ──────────────────────────────────────────────── */
.l2-nav-wrapper {
    margin-top: 0; /* Reset */
}

.l2-nav {
    display: inline-flex;
    align-items: center;
    padding: 6px;
    background-color: var(--color-bg-muted);
    border-radius: 9999px;
    border: 1px solid var(--color-border);
    gap: var(--space-1);
}

.l2-nav-link {
    padding: 8px 16px;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    border-radius: 9999px;
    transition: all var(--transition-fast);
}

.l2-nav-link:hover {
    color: var(--color-text-primary);
}

.l2-nav-link.is-active {
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
}

/* Estilo del botón de login con icono */
.l2-btn-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--color-brand);
    color: #fff;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 600;
    transition: all 0.2s;
}

.l2-btn-login:hover {
    background: var(--color-brand-hover);
    transform: translateY(-1px);
}

.l2-card-btn-pedir:hover {
    background: var(--color-brand);
    color: var(--color-bg);
    border-color: var(--color-brand);
}

.l2-card-btn-pedir i {
    width: 12px;
    height: 12px;
}

/* ── Info Bar ──────────────────────────────────────────────── */
.l2-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) 0;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.l2-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--color-success);
    border-radius: 50%;
    margin-right: 6px;
    position: relative;
}

.l2-status-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background-color: var(--color-success);
    opacity: 0.3;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* ── Hero Grid ─────────────────────────────────────────────── */
.l2-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
    align-items: center;
}

.l2-hero-content {
    max-width: 600px;
}

.l2-headline {
    font-size: 4rem; /* ~64px */
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--color-text-primary);
    margin-bottom: var(--space-6);
}

.l2-subheadline {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-8);
}

.l2-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 14px 28px;
    background-color: var(--color-brand);
    color: #fff;
    border-radius: var(--radius-lg);
    font-weight: 600;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.l2-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Mockup Container */
.l2-mockup-container {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    position: relative;
}

.l2-mockup-header {
    height: 40px;
    background: var(--color-bg-muted);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    padding: 0 var(--space-4);
    gap: var(--space-2);
}

.l2-mockup-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-border-strong);
}

/* ── Cards Grid (Services/Benefits) ───────────────────────── */
.l2-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}

.l2-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.l2-card:hover {
    border-color: var(--color-border-strong);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.l2-card-icon {
    width: 48px;
    height: 48px;
    background: var(--color-bg-muted);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
    color: var(--color-text-primary);
}

.l2-card-title {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-2);
    color: var(--color-text-primary);
}

.l2-card-desc {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: var(--space-8);
}

.l2-card-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; /* Forzar ancho completo */
}

.l2-card-price .price-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Precio alineado a la izquierda */
}

.l2-card-price span {
    font-size: var(--text-base);
    font-weight: 800;
    color: var(--color-text-primary);
}

.l2-card-btn-pedir {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--color-bg-muted);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-text-primary);
    transition: all 0.2s;
}

/* ── Steps / Process ──────────────────────────────────────── */
.l2-steps-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-16);
    align-items: start;
}

.l2-step-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    position: relative;
}

/* Línea conectora vertical */
.l2-step-list::before {
    content: '';
    position: absolute;
    left: 19px; /* Centrado con el badge */
    top: 24px;
    bottom: 24px;
    width: 2px;
    background-color: var(--color-border);
    z-index: 0;
}

.l2-step-item {
    display: flex;
    gap: var(--space-4);
    position: relative;
    z-index: 1;
}

.l2-step-badge {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--color-text-primary);
    color: #fff;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: var(--text-sm);
    border: 4px solid var(--color-bg-panel); /* Efecto corte en la línea */
}

.l2-step-card {
    flex-grow: 1;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
}

.l2-step-tags {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-3);
}

.l2-tag {
    font-size: 10px;
    padding: 4px 8px;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* ── FAQ ──────────────────────────────────────────────────── */
.l2-faq-item {
    border-bottom: 1px solid var(--color-border);
}

.l2-faq-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-5) 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--color-text-primary);
}

.l2-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    line-height: 1.6;
}

.l2-faq-item.is-open .l2-faq-answer {
    max-height: 200px;
    padding-bottom: var(--space-5);
}

.l2-faq-icon {
    transition: transform 0.3s ease;
}

.l2-faq-item.is-open .l2-faq-icon {
    transform: rotate(180deg);
}

@media (min-width: 1024px) {
    .l2-hero-grid {
        grid-template-columns: 1.1fr 0.9fr; /* Texto a la izq, Mockup a la der */
        gap: var(--space-16);
    }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .l2-hero-grid, .l2-steps-wrapper {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .l2-headline {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .l2-headline {
        font-size: 2.5rem;
    }
}