/* =========================================
   CentroTecnia — Custom Styles
   ========================================= */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; }

/* Offset para anchors bajo navbar fijo */
#software, #reparacion, #perifericos { scroll-margin-top: 148px; }

/* ── Inner page banner ── */
.page-banner {
    background:
        radial-gradient(ellipse at 10% 50%, rgba(34,211,238,0.06) 0%, transparent 55%),
        radial-gradient(ellipse at 90% 20%, rgba(167,139,250,0.06) 0%, transparent 55%),
        #0F172A;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.banner-orb { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(70px); }
.banner-orb-1 { width: 400px; height: 400px; background: rgba(34,211,238,0.05); top: -10%; left: -5%; }
.banner-orb-2 { width: 300px; height: 300px; background: rgba(167,139,250,0.05); bottom: 0; right: 5%; }

/* ── Tech badge (Servicios) ── */
.tech-badge {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0.4rem; padding: 1rem 0.75rem;
    background: #1E293B; border: 1px solid rgba(255,255,255,0.06);
    border-radius: 1rem; text-align: center;
    transition: border-color 0.2s, transform 0.2s;
}
.tech-badge:hover { border-color: rgba(34,211,238,0.3); transform: translateY(-2px); }
.tech-badge i { font-size: 1.5rem; }
.tech-badge span { font-size: 0.7rem; color: #64748B; font-weight: 500; }

/* ── Value card (Nosotros) ── */
.value-card {
    background: #1E293B; border: 1px solid rgba(255,255,255,0.06);
    border-radius: 1.25rem; padding: 1.75rem;
    transition: border-color 0.3s, transform 0.3s;
}
.value-card:hover { border-color: rgba(34,211,238,0.2); transform: translateY(-3px); }

/* ── Team card ── */
.team-card {
    background: #1E293B; border: 1px solid rgba(255,255,255,0.06);
    border-radius: 1.5rem; padding: 2rem; text-align: center;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.team-card:hover { border-color: rgba(34,211,238,0.2); box-shadow: 0 0 25px rgba(34,211,238,0.08); }
.team-avatar {
    width: 5rem; height: 5rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: 700; margin: 0 auto 1rem;
}

/* ── Process detail card ── */
.process-detail-card {
    background: #1E293B; border: 1px solid rgba(255,255,255,0.06);
    border-radius: 1.5rem; padding: 2rem;
    transition: border-color 0.3s;
}
.process-detail-card:hover { border-color: rgba(34,211,238,0.2); }

/* ── Testimonial grid card ── */
.testi-card {
    background: #1E293B; border: 1px solid rgba(255,255,255,0.06);
    border-radius: 1.5rem; padding: 1.75rem;
    transition: border-color 0.3s, transform 0.3s;
    height: 100%;
}
.testi-card:hover { border-color: rgba(34,211,238,0.2); transform: translateY(-3px); }

/* ── Rating summary ── */
.rating-bar-fill { height: 6px; border-radius: 9999px; background: linear-gradient(90deg, #22D3EE, #3B82F6); transition: width 0.8s ease; }
.rating-bar-bg { height: 6px; border-radius: 9999px; background: rgba(255,255,255,0.06); flex: 1; overflow: hidden; }

/* ── FAQ category tabs ── */
.faq-tab {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.6rem 1.25rem; border-radius: 9999px;
    font-size: 0.875rem; font-weight: 500; cursor: pointer;
    border: 1px solid rgba(255,255,255,0.08);
    background: #1E293B; color: #94A3B8;
    transition: all 0.2s;
}
.faq-tab:hover { border-color: rgba(34,211,238,0.3); color: #22D3EE; }
.faq-tab.active { background: rgba(34,211,238,0.1); border-color: rgba(34,211,238,0.4); color: #22D3EE; }

/* ── Contact map placeholder ── */
.map-placeholder {
    background: #1E293B; border: 1px solid rgba(255,255,255,0.06);
    border-radius: 1.5rem; overflow: hidden; position: relative;
    display: flex; align-items: center; justify-content: center;
    min-height: 280px;
}

/* ── Gradient text ── */
.gradient-text {
    background: linear-gradient(135deg, #22D3EE, #A78BFA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Section helpers ── */
.section-label {
    display: inline-block;
    color: #22D3EE;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(1.75rem, 4vw, 3rem);
    line-height: 1.15;
}
.section-desc {
    color: #94A3B8;
    font-size: 1.125rem;
    max-width: 42rem;
    margin: 0.75rem auto 0;
}

/* ── Primary button ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #22D3EE, #3B82F6);
    color: #fff;
    font-weight: 600;
    transition: box-shadow 0.3s, transform 0.3s;
    text-decoration: none;
}
.btn-primary:hover {
    box-shadow: 0 0 30px rgba(34,211,238,0.35);
}

/* ── Navbar scrolled ── */
.navbar-scrolled {
    background: rgba(15,23,42,0.92);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 30px rgba(34,211,238,0.08);
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

/* ── Hero ── */
.hero-bg {
    background:
        radial-gradient(ellipse at 15% 50%, rgba(34,211,238,0.06) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 20%, rgba(167,139,250,0.06) 0%, transparent 55%),
        #0F172A;
}
#particles-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
}
.orb-1 { width: 500px; height: 500px; background: rgba(34,211,238,0.04); top: 10%; left: -10%; }
.orb-2 { width: 400px; height: 400px; background: rgba(167,139,250,0.04); bottom: 10%; right: -5%; }

/* ── Typed cursor ── */
.typed-cursor { color: #22D3EE; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ── Glass card ── */
.glass-card {
    background: rgba(30,41,59,0.8);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
}

/* ── Mini cards (hero) ── */
.mini-card {
    background: rgba(15,23,42,0.8);
    border-radius: 1rem;
    padding: 1rem;
    cursor: default;
}
.mini-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Hero badge floats ── */
.badge-float {
    position: absolute;
    border-radius: 1rem;
    padding: 0.75rem;
    text-align: center;
    color: #fff;
}
.badge-top  { top: -1rem; right: -1rem; }
.badge-bottom { bottom: -1rem; left: -1rem; }

/* ── Stats shimmer ── */
.shimmer-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(34,211,238,0.04), transparent);
    background-size: 200% 100%;
    animation: shimmer 4s infinite;
}
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}
.stat-number { font-family: 'Space Grotesk', sans-serif; }

/* ── Service cards ── */
.service-card {
    background: #1E293B;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
}
.service-card:hover {
    box-shadow: 0 0 35px rgba(34,211,238,0.15);
    transform: translateY(-4px);
    border-color: rgba(34,211,238,0.2);
}
.service-icon-wrap {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}
.service-card:hover .service-icon-wrap { transform: scale(1.1) rotate(5deg); }

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.service-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #CBD5E1;
}
.service-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.2s;
}
.popular-badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #22D3EE, #3B82F6);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    white-space: nowrap;
}

/* ── Why us feature boxes ── */
.feature-box {
    background: rgba(15,23,42,0.8);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.05);
    transition: border-color 0.3s;
}
.feature-box:hover { border-color: rgba(34,211,238,0.2); }
.check-icon-wrap {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(34,211,238,0.15);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

/* ── Process ── */
.process-step {
    text-align: center;
    position: relative;
}
.process-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    position: relative;
    z-index: 1;
}
.process-connector {
    position: absolute;
    top: 2rem;
    left: calc(50% + 2rem);
    width: calc(100% - 4rem);
    height: 1px;
    background: linear-gradient(90deg, rgba(34,211,238,0.5), transparent);
}
.step-badge {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
}

/* ── Testimonials ── */
.testimonial-card {
    background: #0F172A;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 1.5rem;
    padding: 2rem;
    margin: 0 0.5rem;
    height: 100%;
    transition: border-color 0.3s;
}
.testimonial-card:hover { border-color: rgba(34,211,238,0.2); }
.stars { color: #FBBF24; font-size: 0.875rem; letter-spacing: 2px; }
.avatar-circle {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    flex-shrink: 0;
}
.swiper-pagination-bullet-active { background: #22D3EE !important; }

/* ── FAQ ── */
.faq-item {
    background: #1E293B;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 1rem;
    overflow: hidden;
    transition: border-color 0.3s;
}
.faq-item.open { border-color: rgba(34,211,238,0.2); }
.faq-btn {
    width: 100%;
    text-align: left;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}
.faq-btn:hover { background: rgba(255,255,255,0.02); }
.faq-icon { color: #22D3EE; flex-shrink: 0; transition: transform 0.3s; }
.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    padding: 0 1.5rem;
}
.faq-body.open { max-height: 400px; padding-bottom: 1.25rem; }
.faq-body p { color: #94A3B8; font-size: 0.875rem; line-height: 1.75; }

/* ── Contact ── */
.contact-info-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #0F172A;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    transition: border-color 0.3s;
}
.contact-info-card:hover { border-color: rgba(34,211,238,0.2); }
.contact-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(34,211,238,0.15);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.form-label { display: block; font-size: 0.875rem; font-weight: 500; color: #CBD5E1; margin-bottom: 0.5rem; }
.form-input {
    width: 100%;
    background: #1E293B;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: #fff;
    font-size: 0.9375rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: 'Inter', sans-serif;
}
.form-input::placeholder { color: #475569; }
.form-input:focus {
    outline: none;
    border-color: rgba(34,211,238,0.5);
    box-shadow: 0 0 0 3px rgba(34,211,238,0.1);
}
.form-input option { background: #1E293B; }

/* ── Social buttons ── */
.social-btn {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(15,23,42,0.8);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
    text-decoration: none;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.social-btn:hover { color: #22D3EE; background: rgba(34,211,238,0.1); border-color: rgba(34,211,238,0.3); }
.social-btn.whatsapp-social:hover { color: #25D366; background: rgba(37,211,102,0.1); border-color: rgba(37,211,102,0.3); }

.social-btn-sm {
    width: 2.25rem;
    height: 2.25rem;
    background: rgba(255,255,255,0.05);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748B;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}
.social-btn-sm:hover { color: #22D3EE; background: rgba(34,211,238,0.1); }
.social-btn-sm.whatsapp-social:hover { color: #25D366; background: rgba(37,211,102,0.1); }

/* ── Footer ── */
.footer-heading {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #CBD5E1;
    margin-bottom: 1rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { color: #475569; font-size: 0.875rem; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: #22D3EE; }

/* ── WhatsApp float ── */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3.5rem;
    height: 3.5rem;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    animation: pulse-green 2.5s infinite;
    transition: transform 0.2s;
}
.whatsapp-float:hover { transform: scale(1.1); }
@keyframes pulse-green {
    0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.6); }
    70%  { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ── Scroll-to-top ── */
.scroll-top-btn {
    position: fixed;
    bottom: 6rem;
    right: 1.5rem;
    width: 3rem;
    height: 3rem;
    background: #1E293B;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
    z-index: 50;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s, border-color 0.2s, color 0.2s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.scroll-top-btn:hover { border-color: rgba(34,211,238,0.4); color: #22D3EE; }
.scroll-top-btn.visible { opacity: 1; pointer-events: auto; }

/* ── Loading spinner ── */
.spinner { animation: spin 0.8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Swal custom dark theme ── */
.swal2-popup { font-family: 'Inter', sans-serif !important; }
