/* ── ProyCore — Estilos ─────────────────────────── */

:root {
    --pc-primary: #2563eb;
    --pc-dark: #1e293b;
    --pc-accent: #10b981;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #334155;
}

/* ── Hero ──────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--pc-dark) 0%, #0f172a 100%);
    color: #fff;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.hero h1 { font-size: 2.8rem; font-weight: 800; }
.hero .lead { font-size: 1.25rem; opacity: 0.9; }

/* ── Secciones ─────────────────────────────────── */
.section { padding: 4rem 0; }
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.section-subtitle {
    color: #64748b;
    margin-bottom: 2rem;
}

/* ── Cards ─────────────────────────────────────── */
.card { border: none; box-shadow: 0 1px 3px rgba(0,0,0,0.1); transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.card .card-icon { font-size: 2.5rem; color: var(--pc-primary); margin-bottom: 1rem; }

/* ── Service / Project Cards ───────────────────── */
.service-card, .project-card {
    height: 100%;
}
.project-card img {
    height: 200px;
    object-fit: cover;
}

/* ── Rating Stars ──────────────────────────────── */
.stars { color: #f59e0b; }
.stars .empty { color: #d1d5db; }

/* ── Testimonials ──────────────────────────────── */
.testimonial-card {
    border-left: 4px solid var(--pc-primary);
}
.testimonial-card .quote-icon {
    font-size: 2rem;
    color: var(--pc-primary);
    opacity: 0.3;
}

/* ── WhatsApp Float ────────────────────────────── */
.whatsapp-float {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    text-decoration: none;
    transition: transform 0.2s;
}
.whatsapp-float:hover { transform: scale(1.1); color: #fff; }

/* ── Asistente Widget ──────────────────────────── */
.assistant-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: var(--pc-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1001;
    cursor: pointer;
    transition: transform 0.2s;
}
.assistant-toggle:hover { transform: scale(1.1); }

.assistant-widget {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 350px;
    max-height: 450px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    z-index: 1002;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.assistant-header {
    background: var(--pc-primary);
    color: #fff;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}
.assistant-body {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    max-height: 300px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.assistant-msg {
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    max-width: 85%;
    font-size: 0.9rem;
    line-height: 1.4;
}
.assistant-msg.bot {
    background: #f1f5f9;
    align-self: flex-start;
}
.assistant-msg.user {
    background: var(--pc-primary);
    color: #fff;
    align-self: flex-end;
}
.assistant-msg .suggested-links {
    margin-top: 0.5rem;
    font-size: 0.8rem;
}
.assistant-msg .suggested-links a {
    display: block;
    color: var(--pc-primary);
}
.assistant-input {
    padding: 0.5rem;
    border-top: 1px solid #e2e8f0;
}

/* ── Planner Wizard ────────────────────────────── */
.wizard-step { display: none; }
.wizard-step.active { display: block; }
.wizard-progress { height: 6px; background: #e2e8f0; border-radius: 3px; margin-bottom: 2rem; }
.wizard-progress .bar { height: 100%; background: var(--pc-primary); border-radius: 3px; transition: width 0.3s; }

/* ── Pipeline badges ───────────────────────────── */
.pipeline-stage {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ── Admin ─────────────────────────────────────── */
.admin-sidebar {
    min-height: 100vh;
    background: #1e293b;
}
.admin-sidebar .nav-link {
    color: #94a3b8;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.08);
}
.admin-sidebar .nav-link i {
    width: 24px;
    text-align: center;
    margin-right: 0.5rem;
}
.admin-sidebar .sidebar-heading {
    color: #64748b;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 1rem 1rem 0.25rem;
}
.stat-card {
    border-left: 4px solid var(--pc-primary);
}
.stat-card .stat-number {
    font-size: 1.8rem;
    font-weight: 700;
}

/* ── Checkout ──────────────────────────────────── */
.plan-card.selected { border-color: var(--pc-primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.2); }

/* ── Responsive ────────────────────────────────── */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .assistant-widget { width: calc(100vw - 48px); right: 24px; }
    .whatsapp-float { bottom: 150px; }
}
