/* ============================================================
   index.css — Estilos exclusivos de index.html (BauViTech)
   Requiere: shared.css cargado antes
   ============================================================ */

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center;
    padding: 120px 28px 80px;
    position: relative; overflow: hidden;
}

/* Grid de fondo */
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: .35;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 100%);
    pointer-events: none;
}

/* Blobs */
.blob {
    position: absolute; border-radius: 50%; pointer-events: none;
    filter: blur(90px); opacity: .12;
}
.blob-1 { width: 500px; height: 500px; background: var(--blue);   top: -100px; left: -100px; }
.blob-2 { width: 400px; height: 400px; background: var(--violet); bottom: 0;   right: -80px; }
.blob-3 { width: 300px; height: 300px; background: var(--cyan);   top: 40%; left: 50%; transform: translateX(-50%); opacity: .07; }

/* Badge */
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(37,99,235,.1);
    border: 1px solid rgba(37,99,235,.3);
    color: #60a5fa; font-size: 12px; font-weight: 600;
    padding: 6px 16px; border-radius: 99px;
    letter-spacing: .5px; text-transform: uppercase;
    margin-bottom: 28px;
    position: relative; z-index: 1;
}

.hero-badge .dot {
    width: 6px; height: 6px;
    background: #22d3ee; border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Título */
.hero h1 {
    font-size: clamp(42px, 7vw, 88px);
    font-weight: 800; letter-spacing: -1px;
    color: var(--text);
    position: relative; z-index: 1;
    margin-bottom: 24px;
}

.hero h1 .line2 { display: block; }

/* Subtítulo */
.hero-sub {
    max-width: 620px; font-size: clamp(15px, 2vw, 18px);
    color: var(--text-muted); margin-bottom: 40px;
    position: relative; z-index: 1;
}

/* CTAs */
.hero-actions {
    display: flex; gap: 14px; flex-wrap: wrap; justify-content: center;
    position: relative; z-index: 1;
}

/* Stats */
.hero-stats {
    display: flex; gap: 48px; flex-wrap: wrap; justify-content: center;
    margin-top: 64px; padding-top: 40px;
    border-top: 1px solid var(--border);
    position: relative; z-index: 1;
    width: 100%; max-width: 700px;
}

.stat-item { text-align: center; }

.stat-num {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 36px; font-weight: 800;
}

.stat-label {
    font-size: 12px; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 1.5px; margin-top: 4px;
}

/* ── SERVICES ────────────────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2px;
    border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
    margin-top: 56px;
}

.service-card {
    background: var(--surface); padding: 36px 32px;
    border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
    transition: background .25s;
    position: relative; overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: var(--grad);
    transform: scaleX(0); transform-origin: left;
    transition: transform .3s;
}

.service-card:hover { background: var(--surface2); }
.service-card:hover::after { transform: scaleX(1); }

.service-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: rgba(37,99,235,.12); border: 1px solid rgba(37,99,235,.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; margin-bottom: 20px;
}

.service-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 18px; font-weight: 700;
    color: var(--text); margin-bottom: 10px;
}

.service-desc {
    font-size: 14px; color: var(--text-muted);
    line-height: 1.7; margin-bottom: 16px;
}

.service-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.stag {
    font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 6px;
    background: rgba(255,255,255,.04); border: 1px solid var(--border2);
    color: var(--text-muted);
}

/* ── PRODUCTS ────────────────────────────────────────────────── */
.products-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px; margin-top: 56px;
}

.product-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 16px; overflow: hidden;
    transition: transform .3s, box-shadow .3s, border-color .3s;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0,0,0,.4);
    border-color: var(--border2);
}

.product-img {
    height: 180px; overflow: hidden; position: relative;
    display: flex; align-items: center; justify-content: center;
}

.product-img img { width: 100%; height: 100%; object-fit: cover; }

.product-badge {
    position: absolute; top: 12px; right: 12px;
    background: var(--indigo); color: #fff;
    font-size: 10px; font-weight: 700;
    padding: 3px 10px; border-radius: 99px; letter-spacing: .5px;
}

.product-body { padding: 24px; }

.product-name {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 18px; font-weight: 700;
    color: var(--text); margin-bottom: 8px;
}

.product-desc {
    font-size: 13.5px; color: var(--text-muted);
    line-height: 1.65; margin-bottom: 18px;
}

.product-footer {
    display: flex; align-items: center; justify-content: space-between;
}

.product-tech { display: flex; gap: 6px; flex-wrap: wrap; }

.ptag {
    font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 6px;
    background: rgba(79,70,229,.12); color: #818cf8;
    border: 1px solid rgba(79,70,229,.2);
}

.product-link {
    font-size: 12px; font-weight: 700; color: var(--blue);
    display: flex; align-items: center; gap: 4px;
    transition: gap .2s;
}

.product-link:hover { gap: 8px; }

/* ── WHY US ──────────────────────────────────────────────────── */
.why-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    margin-top: 56px;
    border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
}

.why-left {
    padding: 52px 48px; background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column; justify-content: center;
}

.why-right { display: grid; grid-template-columns: 1fr 1fr; }

.why-item {
    padding: 36px 28px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    transition: background .2s;
}

.why-item:hover { background: var(--surface2); }
.why-item:nth-child(even) { border-right: none; }
.why-item:nth-child(3), .why-item:nth-child(4) { border-bottom: none; }

.why-num {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 40px; font-weight: 800; margin-bottom: 6px;
}

.why-label { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ── PROCESS ─────────────────────────────────────────────────── */
.process-steps {
    display: grid; grid-template-columns: repeat(4,1fr);
    margin-top: 56px;
    border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
}

.process-step {
    padding: 40px 28px; background: var(--surface);
    border-right: 1px solid var(--border);
}

.process-step:last-child { border-right: none; }

.step-num {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 52px; font-weight: 800; line-height: 1;
    color: var(--border2); margin-bottom: 20px;
}

.step-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 16px; font-weight: 700;
    color: var(--text); margin-bottom: 10px;
}

.step-desc { font-size: 13.5px; color: var(--text-muted); line-height: 1.65; }

/* ── TEAM CTA ────────────────────────────────────────────────── */
.team-cta {
    background: var(--surface);
    border: 1px solid var(--border); border-radius: 20px;
    padding: 56px 48px;
    display: grid; grid-template-columns: 1fr auto;
    align-items: center; gap: 40px;
    margin-top: 56px; position: relative; overflow: hidden;
}

.team-cta::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: var(--grad);
}

.team-cta-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 26px; font-weight: 800;
    color: var(--text); margin-bottom: 10px;
}

.team-cta-sub { font-size: 15px; color: var(--text-muted); }

/* ── CONTACT SECTION ─────────────────────────────────────────── */
.contact-section { padding: 96px 28px; }

.contact-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 64px; align-items: start;
}

.contact-cards { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }

.contact-card {
    display: flex; align-items: center; gap: 16px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; padding: 18px 22px;
    transition: border-color .2s, background .2s;
    text-decoration: none;
}

.contact-card:hover { border-color: var(--indigo); background: var(--surface2); }

.contact-icon {
    width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 20px;
    background: rgba(79,70,229,.1); border: 1px solid rgba(79,70,229,.2);
}

.contact-label {
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted);
}

.contact-value { font-size: 15px; font-weight: 600; color: var(--text); margin-top: 2px; }

/* ── RESPONSIVE INDEX ────────────────────────────────────────── */
@media (max-width: 900px) {
    .why-grid { grid-template-columns: 1fr; }
    .why-left { border-right: none; border-bottom: 1px solid var(--border); }
    .why-right { grid-template-columns: 1fr 1fr; }
    .process-steps { grid-template-columns: 1fr 1fr; }
    .process-step { border-bottom: 1px solid var(--border); }
}

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .team-cta { grid-template-columns: 1fr; padding: 36px 28px; }
    .hero-stats { gap: 28px; }
}

@media (max-width: 540px) {
    .process-steps { grid-template-columns: 1fr; }
}
