/* ============================================================
   QAPPITALCODE — identidad de marca sobre la plantilla TechLab
   Este archivo se carga DESPUÉS de styles.css y sobrescribe
   colores y agrega los componentes propios de la landing.
   Paleta (tomada de los logos):
     azul profundo  #034CAE   celeste  #38b6ff
     cian           #5ee1e6   morado   #c64fff
   ============================================================ */

:root {
    --primary-color: #38b6ff;
    --secondary-color: #5ee1e6;
    --purple: #c64fff;
    --cyan: #5ee1e6;
    --deep-blue: #034CAE;
    --neon-shadow: 0 0 15px rgba(56, 182, 255, 0.5);
}

/* En secciones de fondo claro el celeste no contrasta: se usa el
   azul profundo del logo y un morado más oscuro. */
.about,
.solutions,
.pricing,
.blueprints,
.process,
.faq {
    --primary-color: #034CAE;
    --purple: #8f2fe0;
}

.btn-primary:hover {
    background-color: #1ea1f2;
    border-color: #1ea1f2;
}

.about .btn-primary,
.solutions .btn-primary,
.pricing .btn-primary {
    color: #fff;
}

.about .btn-primary:hover,
.solutions .btn-primary:hover,
.pricing .btn-primary:hover {
    background-color: #0a63d3;
    border-color: #0a63d3;
}

/* ---------- Navbar con logo ---------- */
.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
}

.navbar-brand .brand-logo {
    height: 46px;
    width: auto;
    display: block;
}

.nav-cta {
    margin-left: 10px;
}

.nav-cta .btn {
    border-radius: 50px;
    padding: 9px 20px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.nav-cta .btn i {
    margin-right: 6px;
}

@media (max-width: 991.98px) {
    .navbar-brand .brand-logo {
        height: 38px;
    }

    .nav-cta {
        margin: 12px 10px 4px;
    }
}

/* ---------- Hero ---------- */
.hero {
    margin-bottom: 60px;
}

@media (min-width: 1200px) {
    .hero-title {
        font-size: 3.6rem;
    }
}

.hero-stat-value {
    text-shadow: 0 2px 10px rgba(56, 182, 255, 0.35);
}


/* ---------- Franja de integraciones ---------- */
.clients-title {
    color: #444;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.client-carousel .client-logo {
    background: #fff;
    border: 1px solid #e6e6ea;
}

.client-carousel .client-logo:hover {
    background: #fff;
    border-color: var(--deep-blue);
}

.integration-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #333;
    text-align: center;
}

.integration-chip i {
    font-size: 1.5rem;
    color: var(--deep-blue);
}

.integration-chip span {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.2;
}

.client-carousel .slick-prev:before,
.client-carousel .slick-next:before {
    color: var(--deep-blue);
}

/* ---------- Suites ---------- */
.suites-group-title {
    color: #fff;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
}

.suites-group-title i {
    color: var(--secondary-color);
}

.suites-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.suite-card {
    padding: 28px 20px 24px;
}

.suite-card .service-icon {
    width: 68px;
    height: 68px;
    font-size: 1.7rem;
    margin-bottom: 16px;
}

.suite-card h3 {
    font-size: 1.35rem;
    margin-bottom: 2px;
}

.suite-kicker {
    color: var(--secondary-color);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 12px;
}

.suite-card p {
    font-size: 0.9rem;
    margin-bottom: 16px;
    flex-grow: 0;
}

.suite-modules {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    text-align: left;
    flex-grow: 1;
}

.suite-modules li {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    padding: 7px 0 7px 22px;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.suite-modules li::before {
    content: "\e64c";
    /* ti-check */
    font-family: 'themify';
    position: absolute;
    left: 0;
    top: 8px;
    color: var(--secondary-color);
    font-size: 0.8rem;
}

.services .btn-outline-light {
    border-radius: 50px;
}

/* ---------- Escenarios ---------- */
.solution-suite-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--deep-blue);
    line-height: 1.2;
}

.solutions h3 {
    color: #222;
}

/* ---------- Modelo de adopción ---------- */
.plan-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--deep-blue);
    background: rgba(3, 76, 174, 0.08);
    padding: 4px 12px;
    border-radius: 30px;
    margin-bottom: 8px;
}

.badge-featured {
    background: linear-gradient(135deg, #8f2fe0, #38b6ff);
    box-shadow: 0 3px 8px rgba(143, 47, 224, 0.3);
    animation: none;
}

.price .plan-amount {
    font-size: 1.6rem;
    color: var(--deep-blue);
}

/* ---------- Proceso ---------- */
.process {
    background-color: #f5f3f3 !important;
    color: #333;
}

.process .section-title {
    color: #222;
}

.process .section-subtitle {
    color: #666;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.process-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 30px 26px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.04);
}

.process-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-color: var(--deep-blue);
}

.process-step {
    position: absolute;
    top: 18px;
    right: 22px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: rgba(3, 76, 174, 0.12);
    line-height: 1;
}

.process-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--deep-blue), #38b6ff);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 18px;
    box-shadow: 0 8px 20px rgba(3, 76, 174, 0.25);
}

.process-card h4 {
    font-size: 1.15rem;
    color: #222;
    margin-bottom: 10px;
}

.process-card p {
    color: #666;
    font-size: 0.93rem;
    line-height: 1.6;
    margin: 0;
}


/* ---------- Mapa de la plataforma (hero) ---------- */
.platform-map {
    position: relative;
    max-width: 900px;
    margin: 60px auto 0;
    padding: 46px 26px 26px;
    border-radius: 20px;
    background: rgba(12, 14, 28, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(56, 182, 255, 0.12);
    text-align: center;
}

.pm-caption {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.pm-row {
    display: grid;
    gap: 14px;
    position: relative;
}

.pm-transversal,
.pm-base {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 560px;
    margin: 0 auto;
}

.pm-business {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-top: 34px;
}

.pm-base {
    margin-top: 34px;
}

.pm-tile {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 16px 10px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.pm-tile:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    background: rgba(56, 182, 255, 0.12);
}

.pm-tile i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.pm-tile.pm-platform i {
    color: var(--purple);
}

.pm-tile span {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    color: #fff;
    font-size: 1rem;
    line-height: 1.2;
}

.pm-tile small {
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.25;
}

/* lineas de conexion hacia el bus de integracion */
.pm-transversal::after,
.pm-business .pm-tile::after,
.pm-base .pm-tile::before {
    content: "";
    position: absolute;
    left: 50%;
    width: 2px;
    height: 34px;
    background: repeating-linear-gradient(to bottom, rgba(94, 225, 230, 0.7) 0 5px, transparent 5px 9px);
}

.pm-transversal::after {
    bottom: -34px;
}

.pm-business .pm-tile::after {
    bottom: -35px;
}

.pm-base .pm-tile::before {
    top: -35px;
}

.pm-bus {
    margin-top: 34px;
    padding: 16px 20px;
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(3, 76, 174, 0.85), rgba(56, 182, 255, 0.85) 50%, rgba(198, 79, 255, 0.85));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    box-shadow: 0 10px 30px rgba(56, 182, 255, 0.25);
}

.pm-bus i {
    font-size: 1.4rem;
}

.pm-bus span {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
}

.pm-bus small {
    font-size: 0.8rem;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

@media (max-width: 767.98px) {
    .platform-map {
        padding: 44px 14px 18px;
        margin-top: 40px;
    }

    .pm-business {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pm-business .pm-tile:last-child {
        grid-column: 1 / -1;
    }

    .pm-transversal::after,
    .pm-business .pm-tile::after,
    .pm-base .pm-tile::before {
        display: none;
    }

    .pm-business,
    .pm-base,
    .pm-bus {
        margin-top: 14px;
    }
}

/* ---------- Componentes de cada suite ---------- */
.blueprints {
    background-color: #ffffff !important;
    color: #333;
}

.blueprints .section-title {
    color: #222;
}

.blueprints .section-subtitle {
    color: #666;
}

.blueprint-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}

.blueprint {
    background: #fff;
    border: 1px solid #e6e8ee;
    border-radius: 18px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    scroll-margin-top: 110px;
}

.blueprint:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--deep-blue);
}

.blueprint-platform {
    background: linear-gradient(180deg, #fbf8ff, #fff 60%);
}

.blueprint-header {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding-bottom: 18px;
    border-bottom: 1px dashed #dfe3ea;
    margin-bottom: 18px;
}

.blueprint-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--deep-blue), #38b6ff);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 8px 20px rgba(3, 76, 174, 0.25);
}

.blueprint-platform .blueprint-icon {
    background: linear-gradient(135deg, #8f2fe0, #c64fff);
    box-shadow: 0 8px 20px rgba(143, 47, 224, 0.25);
}

.blueprint-kind {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--deep-blue);
    margin-bottom: 4px;
}

.blueprint-platform .blueprint-kind {
    color: #8f2fe0;
}

.blueprint-header h3 {
    font-size: 1.25rem;
    color: #222;
    margin-bottom: 6px;
}

.blueprint-header p {
    color: #666;
    font-size: 0.93rem;
    margin: 0;
    line-height: 1.55;
}

.blueprint-modules {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    flex-grow: 1;
}

.blueprint-modules li {
    background: #f7f8fb;
    border: 1px solid #edf0f5;
    border-left: 3px solid var(--deep-blue);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.blueprint-platform .blueprint-modules li {
    border-left-color: #8f2fe0;
}

.blueprint-modules strong {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 600;
    font-size: 0.93rem;
    color: #1d2433;
    line-height: 1.3;
}

.blueprint-modules span {
    font-size: 0.83rem;
    color: #5b6472;
    line-height: 1.45;
}

.blueprint-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px dashed #dfe3ea;
}

.blueprint-footer-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #8a93a3;
    margin-right: 4px;
}

.blueprint-footer .chip {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--deep-blue);
    background: rgba(3, 76, 174, 0.07);
    border: 1px solid rgba(3, 76, 174, 0.15);
    border-radius: 30px;
    padding: 4px 11px;
}

.blueprint-platform .blueprint-footer .chip {
    color: #7a25c4;
    background: rgba(143, 47, 224, 0.07);
    border-color: rgba(143, 47, 224, 0.18);
}

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

@media (max-width: 575.98px) {
    .blueprint {
        padding: 20px;
    }

    .blueprint-modules {
        grid-template-columns: 1fr;
    }

    .blueprint-header {
        flex-direction: column;
        gap: 12px;
    }
}

/* ---------- FAQ ---------- */
.faq {
    background-color: #ffffff !important;
    color: #333;
}

.faq .section-title {
    color: #222;
}

.faq .section-subtitle {
    color: #666;
}

.faq-accordion .accordion-item {
    border: 1px solid #e9ecef;
    border-radius: 12px !important;
    margin-bottom: 12px;
    overflow: hidden;
    background: #fff;
}

.faq-accordion .accordion-header {
    margin: 0;
}

.faq-accordion .accordion-button {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: #222;
    background: #fff;
    padding: 18px 22px;
    box-shadow: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--deep-blue);
    background: rgba(3, 76, 174, 0.05);
}

.faq-accordion .accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(3, 76, 174, 0.15);
    border-color: transparent;
}

.faq-accordion .accordion-body {
    color: #555;
    line-height: 1.7;
    padding: 6px 22px 20px;
}

/* ---------- Contacto ---------- */
.contact-form .form-select {
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.contact-form .form-select option {
    color: #222;
}

.info-content a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.info-content a:hover {
    color: var(--primary-color);
}

.contact-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-benefits li {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    padding: 3px 0 3px 20px;
    position: relative;
}

.contact-benefits li::before {
    content: "\e64c";
    font-family: 'themify';
    position: absolute;
    left: 0;
    top: 6px;
    font-size: 0.75rem;
    color: var(--primary-color);
}

.info-item {
    align-items: flex-start;
}

/* ---------- Footer ---------- */
.footer-brand .footer-logo {
    height: 44px;
    width: auto;
    display: block;
    margin-bottom: 18px;
}

/* ---------- Ajustes generales ---------- */
.section-title::after {
    background: linear-gradient(90deg, var(--primary-color), var(--purple));
}

::selection {
    background: rgba(56, 182, 255, 0.35);
}

/* ---------- Logo de marca: banner (icono + wordmark) ---------- */
.navbar-brand .brand-logo {
    height: 64px;
}

.navbar.scrolled .navbar-brand .brand-logo {
    height: 54px;
}

@media (max-width: 991.98px) {
    .navbar-brand .brand-logo,
    .navbar.scrolled .navbar-brand .brand-logo {
        height: 48px;
    }
}

.footer-brand .footer-logo {
    height: 84px;
    margin-left: -6px;
}

/* ---------- Modalidades de despliegue ---------- */
.deploy-block {
    margin-top: 70px;
    padding-top: 50px;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.deploy-title {
    font-size: 1.6rem;
    color: #222;
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
}

.deploy-title i {
    color: var(--deep-blue);
}

.deploy-subtitle {
    color: #666;
    max-width: 640px;
    margin: 0 auto 36px;
}

.deploy-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    text-align: left;
}

.deploy-card {
    position: relative;
    background: #fdfdfd;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 30px 26px;
    transition: all 0.3s ease;
}

.deploy-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.deploy-featured {
    border: 2px solid var(--deep-blue);
    box-shadow: 0 12px 30px rgba(3, 76, 174, 0.12);
}

.deploy-tag {
    position: absolute;
    top: -13px;
    left: 24px;
    background: linear-gradient(135deg, var(--deep-blue), #38b6ff);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 30px;
}

.deploy-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(3, 76, 174, 0.08);
    color: var(--deep-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.deploy-featured .deploy-icon {
    background: linear-gradient(135deg, var(--deep-blue), #38b6ff);
    color: #fff;
}

.deploy-card h4 {
    font-size: 1.2rem;
    color: #222;
    margin-bottom: 10px;
}

.deploy-card p {
    color: #666;
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 14px;
}

.deploy-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.deploy-card li {
    font-size: 0.88rem;
    color: #444;
    padding: 5px 0 5px 22px;
    position: relative;
}

.deploy-card li::before {
    content: "\e64c";
    font-family: 'themify';
    position: absolute;
    left: 0;
    top: 7px;
    font-size: 0.75rem;
    color: var(--deep-blue);
}

@media (max-width: 991.98px) {
    .deploy-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }
}

/* ---------- Consentimiento y avisos de privacidad ---------- */
.consent-check {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 14px 16px 14px 44px;
    position: relative;
}

.consent-check .form-check-input {
    position: absolute;
    left: 16px;
    top: 17px;
    margin: 0;
    width: 18px;
    height: 18px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
}

.consent-check .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.consent-check .form-check-input.is-invalid {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.25);
}

.consent-check .form-check-input.is-invalid ~ .invalid-feedback {
    display: block;
}

.consent-check .form-check-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.5;
    cursor: pointer;
}

.consent-check a,
.privacy-note a,
.newsletter-note a,
.privacy-bar a {
    color: var(--primary-color);
    text-decoration: underline;
}

.privacy-note {
    font-size: 0.78rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 22px;
}

.newsletter-note {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 10px 0 0;
    line-height: 1.5;
}

.footer-legal {
    font-size: 0.78rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.55);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 22px;
    margin: 30px 0 0;
}

.privacy-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    background: rgba(12, 14, 28, 0.96);
    border-top: 1px solid rgba(56, 182, 255, 0.35);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    padding: 14px 0 calc(14px + env(safe-area-inset-bottom, 0px));
}

.privacy-bar-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.privacy-bar p {
    margin: 0;
    flex: 1 1 420px;
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}

.privacy-bar p i {
    color: var(--primary-color);
}

.privacy-bar .btn {
    border-radius: 50px;
    white-space: nowrap;
}

/* ---------- Páginas legales (privacidad, términos) ---------- */
.legal-page .navbar {
    background: rgba(20, 20, 30, 0.95) !important;
}

.legal {
    background-color: #ffffff !important;
    color: #333;
    margin-top: 96px;
    padding: 70px 0 90px;
}

.legal-header {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 28px;
    margin-bottom: 36px;
}

.legal-header .badge-container {
    justify-content: flex-start;
}

.legal h1 {
    font-size: 2.4rem;
    color: #1d2433;
    margin-bottom: 8px;
}

.legal-updated {
    font-size: 0.85rem;
    color: #8a93a3;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.legal-intro {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.7;
}

.legal-summary {
    background: #f4f8ff;
    border: 1px solid rgba(3, 76, 174, 0.15);
    border-left: 4px solid var(--deep-blue);
    border-radius: 12px;
    padding: 22px 26px;
    margin-bottom: 40px;
}

.legal-summary-title {
    font-size: 1.1rem;
    color: var(--deep-blue);
    margin: 0 0 12px;
    display: flex;
    align-items: center;
}

.legal-summary ul {
    margin: 0;
    padding-left: 20px;
}

.legal-summary li {
    margin-bottom: 6px;
    color: #444;
    font-size: 0.95rem;
}

.legal h2 {
    font-size: 1.4rem;
    color: #1d2433;
    margin: 36px 0 12px;
    padding-top: 6px;
}

.legal h3 {
    font-size: 1.05rem;
    color: var(--deep-blue);
    margin: 20px 0 8px;
}

.legal p,
.legal li {
    color: #4a5261;
    line-height: 1.75;
    font-size: 0.97rem;
}

.legal ul {
    padding-left: 22px;
    margin-bottom: 16px;
}

.legal a {
    color: var(--deep-blue);
    text-decoration: underline;
}

.legal-rights li {
    margin-bottom: 4px;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin: 10px 0 16px;
}

.legal-table th,
.legal-table td {
    border: 1px solid #e6e8ee;
    padding: 12px 14px;
    vertical-align: top;
    text-align: left;
}

.legal-table th {
    background: #f4f8ff;
    color: var(--deep-blue);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
}

.legal-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 44px;
    padding-top: 28px;
    border-top: 1px solid #e9ecef;
}

.legal .btn-primary {
    color: #fff;
}

@media (max-width: 767.98px) {
    .legal {
        margin-top: 80px;
        padding: 50px 0 60px;
    }

    .legal h1 {
        font-size: 1.8rem;
    }
}

/* ---------- Quiénes somos ---------- */
.nosotros {
    background: url('../images/team-bg.jpg') no-repeat center center/cover;
    position: relative;
    z-index: 1;
    color: #fff;
}

.nosotros::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 12, 30, 0.9), rgba(8, 12, 30, 0.82));
    backdrop-filter: blur(3px);
    z-index: -1;
}

.nosotros .section-title,
.nosotros .section-subtitle {
    color: #fff;
}

.nosotros .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.founder-grid {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

.founder-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    padding: 34px 28px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
}

.founder-avatar {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    margin: 0 auto 18px;
    background: linear-gradient(135deg, var(--purple), var(--primary-color));
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(56, 182, 255, 0.35);
    border: 3px solid rgba(255, 255, 255, 0.25);
}

.founder-card h3 {
    font-size: 1.35rem;
    margin-bottom: 4px;
    color: #fff;
}

.founder-role {
    color: var(--secondary-color);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 22px;
}

.founder-facts {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.founder-facts li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.founder-facts strong {
    font-family: 'Space Grotesk', sans-serif;
    color: #fff;
    font-size: 1rem;
}

.founder-facts span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    line-height: 1.4;
}

.founder-card .btn {
    border-radius: 50px;
}

.founder-story h3 {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 18px;
}

.founder-story p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.02rem;
    line-height: 1.75;
}

.founder-quote {
    margin: 24px 0;
    padding: 20px 24px;
    border-left: 4px solid var(--primary-color);
    background: rgba(56, 182, 255, 0.08);
    border-radius: 0 14px 14px 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    line-height: 1.55;
    color: #fff;
}

.founder-domains {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
}

.founder-domains-label {
    width: 100%;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 4px;
}

.chip-dark {
    font-size: 0.8rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 5px 12px;
}

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

    .founder-card {
        max-width: 420px;
        margin: 0 auto;
    }
}

/* ---------- Navbar compacta en pantallas medianas ---------- */
@media (min-width: 992px) and (max-width: 1399.98px) {
    .navbar .nav-link {
        margin: 0 1px;
        padding: 8px 9px;
        font-size: 0.88rem;
    }

    .navbar .nav-link i {
        display: none;
    }

    .nav-cta {
        margin-left: 4px;
    }

    .nav-cta .btn {
        padding: 8px 14px;
        font-size: 0.82rem;
    }

    .navbar-brand .brand-logo {
        height: 54px;
    }
}

/* ---------- Foto del fundador (con iniciales como respaldo) ---------- */
.founder-avatar {
    position: relative;
    width: 150px;
    height: 150px;
    overflow: hidden;
}

.founder-initials {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.founder-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 50%;
    display: block;
}

/* Campos inválidos bien visibles sobre fondo oscuro */
.contact-form .form-control.is-invalid {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.2);
}
