﻿/* ============================================================
   TECIA WEB — site.css  v2
   ============================================================ */

:root {
    --blue-500:    #3B82F6;
    --blue-600:    #2563EB;
    --blue-700:    #1D4ED8;
    --dark-950:    #060B18;
    --dark-900:    #0D1526;
    --dark-800:    #162035;
    --dark-700:    #1E2D45;
    --slate-400:   #94A3B8;
    --slate-500:   #64748B;
    --slate-100:   #F1F5F9;
    --slate-50:    #F8FAFC;
    --green-500:   #10B981;
    --white:       #FFFFFF;
    --text-dark:   #0F172A;
    --border:      #E2E8F0;
    --font:        'Inter', system-ui, sans-serif;
    --radius:      12px;
    --radius-lg:   18px;
    --shadow-sm:   0 1px 4px rgba(0,0,0,.06);
    --shadow-md:   0 4px 20px rgba(0,0,0,.10);
    --shadow-lg:   0 8px 40px rgba(0,0,0,.14);
    --t:           .22s ease;
}

/* ── Breadcrumb ── */
.breadcrumb-nav {
    background: var(--slate-50);
    border-bottom: 1px solid var(--border);
}
.breadcrumb-nav .breadcrumb {
    margin: 0;
    font-size: .8rem;
}
.breadcrumb-nav .breadcrumb-item a {
    color: var(--slate-500);
    text-decoration: none;
    transition: color var(--t);
}
.breadcrumb-nav .breadcrumb-item a:hover { color: var(--blue-600); }
.breadcrumb-nav .breadcrumb-item.active { color: var(--slate-400); }
.breadcrumb-nav .breadcrumb-item + .breadcrumb-item::before {
    color: var(--slate-400);
}

/* ── Scroll suave nativo ── */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px; /* compensa navbar sticky */
}
body {
    font-family: var(--font);
    color: var(--text-dark);
    background: #fff;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

/* ── Breadcrumb ── */
.breadcrumb-nav {
    background: var(--slate-50);
    border-bottom: 1px solid var(--border);
    font-size: .8rem;
}
.breadcrumb-nav .breadcrumb { flex-wrap: wrap; }
.breadcrumb-item a { color: var(--slate-500); text-decoration: none; transition: color var(--t); }
.breadcrumb-item a:hover { color: var(--blue-600); }
.breadcrumb-item.active { color: var(--slate-500); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--border); }

/* ── Skip link ── */
.skip-link {
    position: absolute; top: -40px; left: 1rem;
    background: var(--blue-600); color: #fff;
    padding: .4rem .8rem; border-radius: 4px;
    font-size: .85rem; z-index: 9999;
    transition: top var(--t);
}
.skip-link:focus { top: .5rem; }

/* ── Typography ── */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.15; }

.section-label {
    font-size: .72rem; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--blue-500); display: block; margin-bottom: .6rem;
}
.section-title {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    font-weight: 800; margin-bottom: 1rem;
}
.section-subtitle {
    font-size: 1.05rem; color: var(--slate-500); max-width: 560px;
}

/* ── Language Banner ── */
.lang-banner {
    background: var(--dark-900);
    color: rgba(255,255,255,.85);
    padding: .6rem 0; font-size: .85rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
    position: relative; z-index: 1100;
}

/* ── Navbar ── */
#mainNav {
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--t), box-shadow var(--t), background var(--t);
    padding: .7rem 0;
    position: sticky; top: 0; z-index: 1000;
}
#mainNav.scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 2px 16px rgba(0,0,0,.07);
}
#mainNav .container {
    justify-content: space-between !important;
}
#mainNav .navbar-collapse {
    flex-grow: 0;
}
.navbar-brand img { height: 28px; width: auto; }

.nav-link {
    font-size: .875rem; font-weight: 500;
    color: var(--text-dark) !important;
    padding: .4rem .65rem !important;
    border-radius: 7px;
    transition: background var(--t), color var(--t);
}
.nav-link:hover, .nav-link.active {
    background: var(--slate-100);
    color: var(--blue-600) !important;
}

/* ── Lang switcher ── */
.lang-switcher {
    display: flex; align-items: center; gap: .3rem;
    font-size: .78rem; font-weight: 700;
}
.lang-switcher a {
    color: var(--slate-500); text-decoration: none;
    padding: .2rem .5rem; border-radius: 5px;
    transition: color var(--t), background var(--t);
}
.lang-switcher a:hover {
    color: var(--blue-600);
    background: rgba(37,99,235,.08);
}
.lang-switcher a.active {
    color: var(--blue-700);
    background: rgba(37,99,235,.12);
}
.lang-switcher span { color: var(--slate-400); }

/* ── Buttons ── */
.btn-primary {
    background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
    border: none; font-weight: 600; border-radius: 9px;
    transition: opacity var(--t), transform var(--t), box-shadow var(--t);
    box-shadow: 0 2px 12px rgba(37,99,235,.35);
}
.btn-primary:hover {
    opacity: .92; transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37,99,235,.4);
}
.btn-outline-light {
    border-radius: 9px; font-weight: 600;
    border-color: rgba(255,255,255,.25);
    color: rgba(255,255,255,.9);
    transition: all var(--t);
}
.btn-outline-light:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.4);
    transform: translateY(-1px);
}
.btn-outline-primary {
    border-radius: 9px; font-weight: 600;
    border-color: var(--blue-600); color: var(--blue-600);
    transition: all var(--t);
}
.btn-outline-primary:hover {
    background: var(--blue-600); color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37,99,235,.3);
}

/* ── HERO ── */
.hero {
    min-height: calc(100vh - 58px);
    background:
        radial-gradient(ellipse 70% 60% at 65% 40%, rgba(59,130,246,.18) 0%, transparent 65%),
        radial-gradient(ellipse 50% 40% at 20% 80%, rgba(29,78,216,.12) 0%, transparent 60%),
        linear-gradient(160deg, var(--dark-950) 0%, var(--dark-900) 50%, var(--dark-800) 100%);
    color: #fff;
    display: flex; align-items: center;
    padding: 7rem 0 5rem;
    position: relative; overflow: hidden;
}

/* Subtle grid overlay */
.hero::after {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.hero-title {
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 800; line-height: 1.08;
    margin-bottom: 1.4rem;
    letter-spacing: -1.5px;
}
.hero-title .accent {
    background: linear-gradient(90deg, var(--blue-500), #60A5FA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: rgba(255,255,255,.65);
    max-width: 500px; margin-bottom: 2.2rem;
    line-height: 1.7;
}
.hero-badges {
    display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem;
}
.hero-badge {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    color: rgba(255,255,255,.75);
    font-size: .78rem; font-weight: 500;
    padding: .3rem .8rem; border-radius: 100px;
    display: flex; align-items: center; gap: .35rem;
    backdrop-filter: blur(4px);
}
.hero-badge i { color: var(--green-500); }

/* ── Stats bar ── */
.stats-bar {
    background: linear-gradient(90deg, var(--dark-800), var(--dark-700));
    padding: 2.2rem 0;
    border-top: 1px solid rgba(255,255,255,.05);
    border-bottom: 1px solid rgba(255,255,255,.04);
}
.stat-item { text-align: center; }
.stat-number {
    font-size: clamp(2rem, 3.5vw, 2.6rem);
    font-weight: 800; color: #fff; line-height: 1;
    background: linear-gradient(135deg, #fff 40%, rgba(255,255,255,.6));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label { font-size: .78rem; color: rgba(255,255,255,.45); margin-top: .3rem; }

/* ── Sections ── */
.section-white { background: #fff; padding: 5.5rem 0; }
.section-light {
    background: linear-gradient(180deg, var(--slate-50) 0%, #fff 100%);
    padding: 5.5rem 0;
}
.section-dark {
    background: linear-gradient(160deg, var(--dark-900) 0%, var(--dark-800) 100%);
    color: #fff; padding: 5.5rem 0;
}
.section-dark .section-title { color: #fff; }
.section-dark .section-subtitle { color: rgba(255,255,255,.55); }
.section-dark .section-label { color: #60A5FA; }

/* ── Service Cards ── */
.service-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    height: 100%;
    transition: box-shadow var(--t), transform var(--t), border-color var(--t);
    position: relative; overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: linear-gradient(180deg, var(--blue-500), var(--blue-700));
    transform: scaleY(0); transition: transform var(--t);
    transform-origin: bottom;
}
.service-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: rgba(59,130,246,.2);
}
.service-card:hover::before { transform: scaleY(1); }

.service-icon {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, rgba(59,130,246,.12), rgba(29,78,216,.08));
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.35rem; color: var(--blue-600); margin-bottom: 1rem;
}
.service-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .45rem; }
.service-card p  { font-size: .875rem; color: var(--slate-500); margin: 0; }

/* ── Project Cards ── */
.project-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #fff;
    transition: box-shadow var(--t), transform var(--t);
    height: 100%;
}
.project-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}
.project-card-img {
    width: 100%; aspect-ratio: 16/9;
    object-fit: cover; display: block;
    background: var(--slate-50);
}
.project-card-body { padding: 1.25rem 1.5rem 1.5rem; }
.project-tag {
    font-size: .7rem; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--blue-600); margin-bottom: .4rem; display: block;
}
.project-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; }
.project-card p  { font-size: .875rem; color: var(--slate-500); margin-bottom: 1rem; }

/* ── App Cards ── */
.app-card {
    background: linear-gradient(145deg, var(--dark-800), var(--dark-700));
    border: 1px solid rgba(255,255,255,.07);
    border-radius: var(--radius-lg);
    padding: 2rem; height: 100%;
    transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.app-card:hover {
    border-color: rgba(59,130,246,.35);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,.3);
}
.app-icon {
    width: 64px; height: 64px;
    border-radius: 16px; object-fit: cover; margin-bottom: 1rem;
    box-shadow: 0 4px 16px rgba(0,0,0,.3);
}
.app-card h3 { color: #fff; font-size: 1.2rem; margin-bottom: .5rem; }
.app-card p  { color: rgba(255,255,255,.55); font-size: .9rem; margin-bottom: 1.25rem; }

.app-features { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.app-features li {
    font-size: .85rem; color: rgba(255,255,255,.65);
    padding: .28rem 0;
    display: flex; align-items: center; gap: .5rem;
}
.app-features li::before {
    content: ''; width: 5px; height: 5px;
    background: var(--green-500); border-radius: 50%; flex-shrink: 0;
}

.badge-playstore {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    color: #fff; font-size: .8rem; font-weight: 600;
    padding: .5rem 1rem; border-radius: 9px;
    text-decoration: none;
    transition: background var(--t), transform var(--t);
}
.badge-playstore:hover {
    background: rgba(255,255,255,.15); color: #fff;
    transform: translateY(-1px);
}

/* ── Values ── */
.value-number {
    font-size: 2.2rem; font-weight: 800;
    background: linear-gradient(135deg, var(--blue-500), rgba(59,130,246,.2));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1; min-width: 2.5rem;
}

/* ── CTA Section ── */
.cta-section {
    background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-700) 60%, #1e3a8a 100%);
    padding: 5rem 0; text-align: center; color: #fff;
    position: relative; overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(255,255,255,.06), transparent);
    pointer-events: none;
}
.cta-section h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: .75rem; }
.cta-section p  { font-size: 1.05rem; opacity: .8; margin-bottom: 2rem; }

/* ── Contact Form ── */
.contact-form-wrap {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}
.form-control, .form-select {
    border-radius: 9px; border-color: var(--border);
    font-size: .9rem; padding: .65rem 1rem;
    transition: border-color var(--t), box-shadow var(--t);
}
.form-control:focus, .form-select:focus {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}

/* ── Footer ── */
.site-footer {
    background: linear-gradient(160deg, var(--dark-950) 0%, var(--dark-900) 100%);
    color: rgba(255,255,255,.6);
    padding: 4.5rem 0 2rem;
}
.footer-tagline { font-size: .875rem; color: rgba(255,255,255,.45); max-width: 280px; }
.footer-contact { display: flex; flex-direction: column; gap: .45rem; }
.footer-contact a {
    color: rgba(255,255,255,.55); text-decoration: none;
    font-size: .875rem; display: flex; align-items: center; gap: .5rem;
    transition: color var(--t);
}
.footer-contact a:hover { color: #fff; }
.footer-heading {
    font-size: .7rem; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: 1rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a {
    color: rgba(255,255,255,.55); text-decoration: none;
    font-size: .875rem; transition: color var(--t);
}
.footer-links a:hover { color: #fff; }
.footer-address { font-size: .875rem; line-height: 1.9; color: rgba(255,255,255,.45); }
.footer-address a { color: rgba(255,255,255,.55); text-decoration: none; }
.footer-address a:hover { color: #fff; }
.footer-divider { border-color: rgba(255,255,255,.07); margin: 2.5rem 0 1.5rem; }
.footer-bottom { font-size: .78rem; color: rgba(255,255,255,.3); }

.lang-switcher-footer {
    display: flex; align-items: center; gap: .3rem;
    font-size: .78rem; font-weight: 700;
}
.lang-switcher-footer a { color: rgba(255,255,255,.35); text-decoration: none; transition: color var(--t); }
.lang-switcher-footer a:hover, .lang-switcher-footer a.active { color: #fff; }
.lang-switcher-footer span { color: rgba(255,255,255,.15); }

/* ── Scroll to top ── */
.scroll-top {
    position: fixed;
    bottom: 6.5rem;
    right: calc(1.5rem + 6px);
    width: 42px; height: 42px;
    background: var(--blue-600);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 14px rgba(37,99,235,.35);
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .3s ease, transform .3s ease, background var(--t);
    pointer-events: none;
}
.scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.scroll-top:hover {
    background: var(--blue-700);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37,99,235,.45);
}

/* ── WhatsApp Float ── */
.whatsapp-float {
    position: fixed; bottom: 1.5rem; right: 1.5rem;
    width: 54px; height: 54px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(37,211,102,.45);
    text-decoration: none; z-index: 1000;
    transition: transform var(--t), box-shadow var(--t);
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37,211,102,.55);
    color: #fff;
}

/* ── Error page ── */
.error-page { min-height: 60vh; display: flex; align-items: center; }

/* ── Accordion ── */
.accordion-button:not(.collapsed) {
    background: rgba(59,130,246,.06);
    color: var(--blue-700);
    box-shadow: none;
}
.accordion-button:focus { box-shadow: 0 0 0 3px rgba(59,130,246,.12); }

/* ── Responsive ── */
@media (max-width: 991.98px) {
    .hero { padding: 5rem 0 4rem; min-height: auto; }
    .hero-illustration-wrap { display: none; } /* ocultar ilustración en mobile para mejorar LCP */
    .navbar-collapse { padding: 1rem 0; }
    .nav-link { padding: .6rem .5rem !important; }
    .lang-switcher { margin-top: .5rem; }
    .section-white, .section-light, .section-dark { padding: 4rem 0; }
}
@media (max-width: 575.98px) {
    .hero-title { font-size: 2.1rem; letter-spacing: -.5px; }
    .contact-form-wrap { padding: 1.5rem; }
    .app-card { padding: 1.5rem; }
    .whatsapp-float { bottom: 1rem; right: 1rem; }
    .scroll-top { bottom: 5.5rem; right: 1.15rem; width: 38px; height: 38px; }
    .stats-bar .col-6 { border-bottom: 1px solid rgba(255,255,255,.05); padding-bottom: 1rem; }
}

/* ── Tool Cards (Herramientas) ── */
.tool-card {
    border-radius: var(--radius-lg);
    transition: box-shadow var(--t), transform var(--t), border-color var(--t);
    cursor: default;
}
.tool-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: rgba(59,130,246,.2) !important;
}
a .tool-card { cursor: pointer; }
.tool-card--soon {
    opacity: .75;
}
.tool-card--soon:hover {
    opacity: .85;
    transform: translateY(-2px);
}
.tool-icon {
    width: 52px; height: 52px;
    background: linear-gradient(135deg, rgba(59,130,246,.12), rgba(29,78,216,.08));
    border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--blue-600);
}

/* ── Quiz styles ── */
.quiz-option {
    text-align: left;
    border-radius: 9px;
    padding: .75rem 1rem;
    font-size: .9rem;
    transition: background var(--t), border-color var(--t), color var(--t);
}
.quiz-option:hover:not(:disabled) {
    background: rgba(59,130,246,.06);
    border-color: var(--blue-500);
    color: var(--blue-700);
}

/* ── QR Generator — style selector buttons ── */
.qr-dot-btn,
.qr-eye-btn {
    padding: .35rem .5rem;
    border-radius: 8px;
    line-height: 1;
    transition: background var(--t), border-color var(--t), color var(--t);
}
.qr-dot-btn svg,
.qr-eye-btn svg {
    display: block;
    fill: currentColor;
}
.qr-dot-btn.active,
.qr-eye-btn.active {
    background: var(--blue-600);
    border-color: var(--blue-600);
    color: #fff;
}
.qr-dot-btn:hover:not(.active),
.qr-eye-btn:hover:not(.active) {
    background: rgba(59,130,246,.08);
    border-color: var(--blue-500);
    color: var(--blue-600);
}
