/*
 * TechDuo — Estilos inspirados en Bootstrap 5 Product Example
 * Complementa a Bootstrap 5.3, no lo reemplaza
 */

/* -------------------------------------------------------
   Variables
------------------------------------------------------- */
:root {
    --td-primary:   #0d6efd;
    --td-dark:      #1a1a2e;
    --td-accent:    #0a58ca;
    --td-light-bg:  #f8f9fa;
    --td-muted:     #6c757d;
    --td-radius:    0.5rem;
    --td-transition: 0.3s ease;
}

/* -------------------------------------------------------
   Base
------------------------------------------------------- */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #212529;
    scroll-behavior: smooth;
}

/* -------------------------------------------------------
   Navbar
------------------------------------------------------- */
.navbar {
    transition: box-shadow var(--td-transition);
}

.navbar.scrolled {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: -0.02em;
    color: var(--td-primary) !important;
}

.navbar-brand span {
    color: var(--td-dark);
}

.nav-link {
    font-weight: 500;
    color: #495057;
    padding: 0.5rem 0.75rem;
    transition: color var(--td-transition);
}

.nav-link:hover,
.nav-link:focus {
    color: var(--td-primary);
}

.lang-switcher {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--td-muted);
    text-decoration: none;
    padding: 0.25rem 0.4rem;
    border-radius: 3px;
    transition: color var(--td-transition);
}

.lang-switcher.active {
    color: var(--td-primary);
}

.lang-switcher:hover {
    color: var(--td-primary);
}

/* -------------------------------------------------------
   Hero
------------------------------------------------------- */
.hero-section {
    min-height: 650px;
    padding: 4.5rem 1.5rem 3.5rem;
    background: var(--td-light-bg);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, #f8f9fa 0%, #f8f9fa 40%, rgba(248, 249, 250, 0.66) 51%, rgba(248, 249, 250, 0.38) 65%, rgba(248, 249, 250, 0.06) 82%, rgba(248, 249, 250, 0) 100%);
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-row {
    min-height: 540px;
}

.hero-copy {
    max-width: 520px;
}

.hero-headline {
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0;
    color: #0a0f1e;
}

.hero-visual {
    position: absolute;
    top: 54%;
    right: 0;
    z-index: 0;
    width: 61vw;
    min-width: 720px;
    max-width: 1120px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    pointer-events: none;
}

.hero-image {
    width: 100%;
    height: auto;
    max-height: 620px;
    max-width: none;
    object-fit: contain;
    object-position: right center;
    display: block;
    filter: contrast(1.08) saturate(1.14) drop-shadow(0 28px 56px rgba(13, 110, 253, 0.14));
}

.hero-image-fade {
    position: absolute;
    inset: -2px;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(248, 249, 250, 0.7) 0%, rgba(248, 249, 250, 0.62) 7%, rgba(248, 249, 250, 0.34) 18%, rgba(248, 249, 250, 0.07) 34%, rgba(248, 249, 250, 0) 52%),
        linear-gradient(180deg, rgba(248, 249, 250, 0.7) 0%, rgba(248, 249, 250, 0.4) 5%, rgba(248, 249, 250, 0.11) 14%, rgba(248, 249, 250, 0) 28%),
        linear-gradient(0deg, rgba(248, 249, 250, 0.7) 0%, rgba(248, 249, 250, 0.1) 12%, rgba(248, 249, 250, 0) 28%);
    pointer-events: none;
}

@media (max-width: 991.98px) {
    .hero-section {
        min-height: auto;
        padding: 4.5rem 1rem 3rem;
        background: var(--td-light-bg);
        text-align: center;
        display: block;
    }

    .hero-section::after {
        display: none;
    }

    .hero-row {
        min-height: auto;
    }

    .hero-copy {
        max-width: 720px;
        margin: 0 auto;
    }

    .hero-copy .d-flex {
        justify-content: center;
    }

    .hero-visual {
        position: relative;
        top: auto;
        right: auto;
        z-index: 1;
        width: min(100%, 720px);
        min-width: 0;
        max-width: none;
        max-height: none;
        margin: 2.5rem auto 0;
        transform: none;
        justify-content: center;
    }

    .hero-image {
        width: 100%;
        height: auto;
        max-height: 420px;
        object-position: center;
    }

    .hero-image-fade {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding-top: 3.5rem;
    }

    .hero-visual {
        max-height: 300px;
    }

    .hero-image {
        max-height: 300px;
    }
}

/* -------------------------------------------------------
   Sección Marketing (3 columnas)
------------------------------------------------------- */
.marketing .col-lg-4 p {
    margin-right: 0.75rem;
    margin-left:  0.75rem;
}

.bi-feature-icon {
    font-size: 3.5rem;
    color: var(--td-primary);
    display: block;
    margin-bottom: 1rem;
}

/* -------------------------------------------------------
   Featurettes (estilo Product Example)
------------------------------------------------------- */
.featurette-divider {
    margin: 5rem 0;
    border-top: 1px solid #dee2e6;
}

.featurette-heading {
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.05rem;
}

.featurette-heading span {
    color: var(--td-muted);
}

.featurette-svg {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 24px rgba(13, 110, 253, 0.10));
}

.why-section {
    padding-top: 1rem;
}

.why-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    border-radius: var(--td-radius);
    background: #fff;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.why-icon {
    width: 3rem;
    height: 3rem;
    flex: 0 0 3rem;
    display: grid;
    place-items: center;
    border-radius: var(--td-radius);
    background: #e9f0ff;
    color: var(--td-primary);
    font-size: 1.35rem;
}

.project-card {
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    border-radius: var(--td-radius);
    background: #fff;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.project-icon {
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
    border-radius: var(--td-radius);
    background: #e9f0ff;
    color: var(--td-primary);
    font-size: 1.35rem;
}

/* -------------------------------------------------------
   Badges de nivel de servicio
------------------------------------------------------- */
.badge-basico {
    background: #d1e7dd;
    color: #0a3622;
}

.badge-intermedio {
    background: #cfe2ff;
    color: #052c65;
}

.badge-avanzado {
    background: #e2d9f3;
    color: #2c0264;
}

/* -------------------------------------------------------
   Cards de Servicios y Blog
------------------------------------------------------- */
.service-card,
.blog-card {
    border: none;
    border-radius: var(--td-radius);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
    transition: transform var(--td-transition), box-shadow var(--td-transition);
    height: 100%;
}

.service-card:hover,
.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--td-primary);
}

/* -------------------------------------------------------
   Sección CTA final (oscura)
------------------------------------------------------- */
.cta-dark {
    background: linear-gradient(135deg, #0a0f1e 0%, #1a1a2e 100%);
    color: #fff;
    padding: 5rem 2rem;
}

/* -------------------------------------------------------
   Footer
------------------------------------------------------- */
.footer {
    background-color: #0d1117;
    color: #adb5bd;
    padding: 4rem 0 2rem;
    border-top: 3px solid var(--td-primary);
}

.footer h6 {
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.footer a {
    color: #adb5bd;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--td-transition);
}

.footer a:hover {
    color: #fff;
}

.footer-social a {
    font-size: 1.4rem;
    margin-right: 0.75rem;
    color: #6c757d;
    transition: color var(--td-transition);
}

.footer-social a:hover {
    color: #fff;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.08);
    margin: 2rem 0 1.5rem;
}

/* -------------------------------------------------------
   Panel Admin
------------------------------------------------------- */
.admin-sidebar {
    min-height: 100vh;
    background: #0a0f1e;
}

.admin-sidebar .nav-link {
    color: #adb5bd;
    border-radius: var(--td-radius);
    padding: 0.6rem 1rem;
    margin-bottom: 0.25rem;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(13, 110, 253, 0.15);
    color: #fff;
}

.admin-sidebar .nav-link i {
    width: 1.25rem;
    text-align: center;
}

/* -------------------------------------------------------
   Utilidades
------------------------------------------------------- */
.text-primary-dark {
    color: var(--td-accent);
}

.bg-light-blue {
    background-color: rgba(13, 110, 253, 0.04);
}

.rounded-lg {
    border-radius: var(--td-radius);
}

/* Scroll suave para anchor links */
html {
    scroll-padding-top: 70px;
}

/* Paginación Bootstrap — ajuste de color */
.page-link {
    color: var(--td-primary);
}

.page-item.active .page-link {
    background-color: var(--td-primary);
    border-color:     var(--td-primary);
}
