/* =========================================================
   TECNOSIST — ESTILOS PROPIOS SOBRE BOOTSTRAP 5
   No requiere jQuery, Bootstrap 3, Bootstrap 4 ni otra librería.
   ========================================================= */

:root {
  --navy: #061a49;
  --navy-2: #08265e;
  --blue: #087cff;
  --cyan: #00d8ff;
  --text: #10234b;
  --muted: #61708d;
  --line: #d7e1f0;
  --green: #18bd72;
  --purple: #8b19f6;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
}

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: Inter, Arial, Helvetica, sans-serif;
}

.tecnonav {
  min-height: 70px;
  background: rgba(4, 22, 61, .98);
  border-bottom: 1px solid rgba(255,255,255,.08);
  z-index: 1030;
}

.brand-logo {
  width: 150px;
  height: 70px;
  object-fit: contain;
}

.tecnonav .nav-link {
  color: #fff;
  font-size: .92rem;
  font-weight: 600;
  padding: 1.5rem .8rem !important;
  border-bottom: 2px solid transparent;
}

.tecnonav .nav-link:hover,
.tecnonav .nav-link.active {
  color: #fff;
  border-bottom-color: var(--cyan);
}

.tecnonav .btn-primary,
.btn-primary {
  background: #087ff5;
  border-color: #087ff5;
}

.tecnonav .btn-primary:hover,
.btn-primary:hover {
  background: #006ce0;
  border-color: #006ce0;
}

/* HERO */
.hero-section {
  min-height: 510px;
  padding-top: 70px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 82% 35%, rgba(0,213,255,.45), transparent 25%),
    radial-gradient(circle at 45% 95%, rgba(0,119,255,.65), transparent 40%),
    linear-gradient(120deg, #031640 0%, #032a68 52%, #004ca4 100%);
  border-radius: 0 0 55px 55px;
}

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

.eyebrow,
.section-pill {
  display: inline-block;
  padding: .28rem .75rem;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, #096ce5, #147fff);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .03em;
}

.hero-title {
  margin: .7rem 0 .65rem;
  font-size: clamp(2.6rem, 4.2vw, 4.25rem);
  line-height: .98;
  font-weight: 800;
  letter-spacing: -.045em;
}

.hero-title span {
  color: var(--cyan);
}

.hero-title strong {
  color: #00c9f4;
}

.hero-text {
  max-width: 480px;
  margin-bottom: 1rem;
  font-size: 1.02rem;
  line-height: 1.3;
}

.hero-list {
  font-size: .98rem;
  line-height: 1.55;
}

.hero-list li {
  color: #19c8ff;
  font-weight: 800;
}

.hero-list span {
  color: #fff;
  font-weight: 500;
  margin-left: .35rem;
}

.hero-btn {
  font-size: .95rem;
  padding: .7rem 1.35rem;
}

.payment-label {
  margin-top: .3rem;
  font-size: .75rem;
  opacity: .8;
}

.payment-img {
  max-width: 245px;
  max-height: 38px;
  object-fit: contain;
  object-position: left center;
  margin-top: .2rem;
}

.hero-art img {
  max-height: 390px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* GENERALES */
.section-space {
  padding: 65px 0;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: .45rem 0 .25rem;
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 800;
  letter-spacing: -.035em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.section-pill {
  color: #0876ef;
  background: #e7f3ff;
}

/* PLANES */
.plan-card {
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 500px;
  padding: 25px 23px 18px;
  border: 1px solid #d8e0ee;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 44, 86, .09);
  text-align: center;
  overflow: hidden;
}

.plan-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 130px;
  opacity: .65;
  pointer-events: none;
}

.plan-express::before {
  background: linear-gradient(135deg, #d8fff0, #fff);
}

.plan-pro::before {
  background: linear-gradient(135deg, #d9efff, #fff);
}

.plan-commerce::before {
  background: linear-gradient(135deg, #f0ddff, #fff);
}

.plan-card > * {
  position: relative;
  z-index: 1;
}

.plan-card.featured {
  border-color: #4e9cff;
  box-shadow: 0 20px 55px rgba(0,126,255,.17);
}

.plan-icon {
  width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
  margin: 0 auto 7px;
  color: #087cff;
  font-size: 2rem;
  font-weight: 800;
}

.plan-express .plan-icon { color: #13b96d; }
.plan-commerce .plan-icon { color: var(--purple); }

.plan-card h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 900;
}

.plan-card p {
  min-height: 45px;
  margin: .3rem 0 .2rem;
  font-size: .88rem;
  line-height: 1.3;
}

.price {
  margin-top: .35rem;
  font-size: 1.8rem;
  font-weight: 900;
  color: #091b42;
}

.plan-card small {
  color: #64708a;
}

.plan-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 16px;
  text-align: left;
  font-size: .86rem;
  line-height: 1.55;
  flex-grow: 1;
}

.plan-express .plan-list li { color: #13b96d; }
.plan-pro .plan-list li { color: #087cff; }
.plan-commerce .plan-list li { color: var(--purple); }

.plan-list li::first-letter {
  font-weight: 900;
}

.plan-express .plan-list li,
.plan-pro .plan-list li,
.plan-commerce .plan-list li {
  font-weight: 600;
}

.popular-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -1px);
  background: #087cff;
  color: #fff;
  border-radius: 0 0 12px 12px;
  padding: .3rem 1rem;
  font-size: .68rem;
  font-weight: 900;
}

.recommend-badge {
  position: absolute;
  right: -38px;
  top: 35px;
  transform: rotate(45deg);
  width: 140px;
  padding: .25rem;
  background: #4dbcf4;
  color: #fff;
  font-size: .57rem;
  font-weight: 900;
}

.btn-purple {
  color: #fff;
  background: var(--purple);
  border-color: var(--purple);
}

.btn-purple:hover {
  color: #fff;
  background: #7111d3;
  border-color: #7111d3;
}

.secure-line {
  margin-top: 14px;
  text-align: center;
  color: #6b7489;
  font-size: .76rem;
}

/* PROCESO */
.process-section {
  background: #fbfcff;
}

.process-row {
  align-items: center !important;
}

.step-card {
  text-align: center;
  position: relative;
}

.step-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  border: 1px solid #c8dcff;
  border-radius: 50%;
  background: #eaf4ff;
  color: #087cff;
  font-size: 1.8rem;
  box-shadow: 0 8px 22px rgba(0,126,255,.1);
}

.step-number {
  position: absolute;
  top: 50px;
  left: calc(50% + 18px);
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #087cff;
  color: #fff;
  font-size: .65rem;
  font-weight: 900;
  z-index: 2;
}

.step-card h3 {
  margin-bottom: .35rem;
  font-size: .95rem;
  font-weight: 800;
}

.step-card p {
  margin: 0;
  color: #66728b;
  font-size: .78rem;
  line-height: 1.35;
}

.process-arrow {
  color: #087cff;
  font-size: 2rem;
  text-align: center;
  padding: 0;
}

/* BENEFICIOS */
.benefit-card {
  height: 100%;
  padding: 18px 12px;
  border: 1px solid #d7e0ef;
  border-radius: 12px;
  background: #fff;
  text-align: center;
  box-shadow: 0 10px 25px rgba(16,45,90,.05);
}

.benefit-icon {
  margin-bottom: 6px;
  color: #087cff;
  font-size: 1.5rem;
  font-weight: 900;
}

.benefit-card strong,
.benefit-card small {
  display: block;
}

.benefit-card strong {
  font-size: .83rem;
}

.benefit-card small {
  margin-top: 3px;
  color: #68758d;
  font-size: .7rem;
  line-height: 1.25;
}

.trusted-bar {
  padding: 13px 20px;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(90deg, #082259, #071945);
  box-shadow: 0 12px 28px rgba(0,30,80,.15);
}

.trusted-title {
  margin-bottom: 10px;
  text-align: center;
  font-size: .65rem;
  font-weight: 800;
  opacity: .85;
}

/* CTA */
.cta-box {
  padding: 18px 26px;
  border: 1px solid #9dd7ff;
  border-radius: 15px;
  background: linear-gradient(100deg, #eaf9ff, #d9f0ff);
}

.cta-box span {
  color: #087cff;
  font-size: .63rem;
  font-weight: 900;
}

.cta-box h2 {
  margin: .25rem 0;
  font-size: 1.35rem;
  font-weight: 900;
}

.cta-box p {
  margin: 0;
  color: #5e708c;
  font-size: .82rem;
}

.cta-image {
  max-height: 90px;
}

/* FAQ */
.faq-accordion {
  max-width: 1100px;
  margin: 0 auto;
}

.faq-accordion .accordion-item {
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid #d5dfed !important;
  border-radius: 11px !important;
}

.faq-accordion .accordion-button {
  padding: 1.05rem 1.2rem;
  color: #10254b;
  background: #fff;
  font-weight: 750;
  box-shadow: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
  color: #087cff;
  background: #f5faff;
}

.faq-accordion .accordion-body {
  color: #65718a;
  line-height: 1.6;
}

/* FOOTER */
.site-footer {
  padding: 45px 0 0;
  color: #fff;
  background: #061b4c;
}

.footer-logo {
  width: 130px;
  height: 65px;
  object-fit: contain;
}

.site-footer h3 {
  margin-bottom: 10px;
  font-size: .95rem;
  font-weight: 800;
}

.site-footer a,
.site-footer span {
  display: block;
  margin-bottom: 7px;
  color: #e0e8f8;
  text-decoration: none;
  font-size: .78rem;
}

.site-footer a:hover {
  color: #4fcfff;
}

.site-footer small {
  color: #b9c8e5;
  font-size: .7rem;
}

.socials {
  display: flex;
  gap: 9px;
}

.socials a {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  margin: 0;
  border-radius: 50%;
  background: #123875;
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
}

.footer-bottom {
  margin-top: 35px;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,.13);
  text-align: right;
  color: #b9c8e5;
  font-size: .7rem;
}

.footer-bottom b {
  color: #ff4d67;
}

/* MODALES BOOTSTRAP 5 */
.legal-modal {
  border: 0;
  border-radius: 16px;
  overflow: hidden;
}

.legal-modal .modal-header {
  padding: 1.2rem 1.5rem;
  background: #061b4c;
  color: #fff;
  border: 0;
}

.legal-modal .modal-title {
  margin-top: .2rem;
  font-size: 1.25rem;
  font-weight: 800;
}

.modal-label {
  color: #43c9ff;
  font-size: .7rem;
  font-weight: 900;
}

.legal-modal .btn-close {
  filter: invert(1);
}

.legal-modal .modal-body {
  padding: 1.5rem;
  color: #4f5f78;
  line-height: 1.65;
}

.legal-modal .modal-body h3 {
  margin-top: 1.4rem;
  color: #10234b;
  font-size: 1rem;
  font-weight: 800;
}

.legal-modal .modal-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: .9rem 1.5rem;
  border-top: 1px solid #e0e6ef;
}

.legal-modal .modal-footer span {
  color: #6c7890;
  font-size: .78rem;
}

/* RESPONSIVE */
@media (max-width: 991.98px) {
  .tecnonav .nav-link {
    padding: .65rem .5rem !important;
    border-bottom: 0;
  }

  .tecnonav .btn-primary {
    margin: .5rem 0 1rem;
  }

  .hero-section {
    min-height: auto;
    padding-bottom: 55px;
  }

  .hero-art {
    order: -1;
    padding-top: 20px;
  }

  .hero-art img {
    max-height: 310px;
  }

  .process-arrow {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .brand-logo {
    width: 125px;
  }

  .hero-title {
    font-size: 2.55rem;
  }

  .hero-text br {
    display: none;
  }

  .section-space {
    padding: 48px 0;
  }

  .plan-card {
    min-height: 0;
  }

  .cta-box {
    text-align: center;
    padding: 20px 15px;
  }

  .cta-image {
    max-height: 80px;
  }

  .footer-bottom {
    text-align: center;
  }
}


/* =========================================================
   FAQ — DISEÑO CON DETAILS
   No depende del Accordion de Bootstrap
   ========================================================= */

.faq {
    background: #fff;
}

.faq-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
}

    .faq-grid details {
        border: 1px solid #d5dfed;
        border-radius: 11px;
        background: #fff;
        overflow: hidden;
        transition: border-color .2s ease, box-shadow .2s ease;
    }

        .faq-grid details:hover {
            border-color: #b8cce6;
            box-shadow: 0 6px 18px rgba(16, 45, 90, .06);
        }

    .faq-grid summary {
        position: relative;
        display: flex;
        align-items: center;
        min-height: 58px;
        padding: 1rem 3.2rem 1rem 1.2rem;
        cursor: pointer;
        list-style: none;
        color: #10254b;
        font-size: .92rem;
        font-weight: 750;
        line-height: 1.35;
    }

        /* Quitar marcador nativo */
        .faq-grid summary::-webkit-details-marker {
            display: none;
        }

        .faq-grid summary::marker {
            display: none;
        }

        /* Flecha */
        .faq-grid summary::after {
            content: "+";
            position: absolute;
            right: 1.2rem;
            top: 50%;
            transform: translateY(-50%);
            color: #087cff;
            font-size: 1.35rem;
            font-weight: 400;
            line-height: 1;
            transition: transform .2s ease;
        }

    .faq-grid details[open] summary {
        color: #087cff;
        background: #f5faff;
    }

        .faq-grid details[open] summary::after {
            content: "−";
        }

    /* Respuesta */
    .faq-grid details p {
        margin: 0;
        padding: 0 1.2rem 1.15rem;
        color: #65718a;
        font-size: .84rem;
        line-height: 1.65;
        background: #f5faff;
    }

        .faq-grid details p strong {
            color: #10254b;
        }

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 767.98px) {

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

        .faq-grid summary {
            min-height: 55px;
            padding: .9rem 3rem .9rem 1rem;
            font-size: .88rem;
        }

        .faq-grid details p {
            padding: 0 1rem 1rem;
            font-size: .82rem;
        }
}


/* ==========================================================================
   ESTILOS PARA MODALES LEGALES (TÉRMINOS Y PRIVACIDAD)
   ========================================================================== */

/* 1. Control del Ancho (Anula la deformación de modal-xl) */
#termsModal .modal-dialog,
#privacyModal .modal-dialog {
    max-width: 700px; /* Ancho óptimo para lectura continua */
    width: 92%;
    margin-top: 1.75rem;
    margin-bottom: 1.75rem;
}

/* 2. Estructura y Bordes del Modal */
.legal-modal {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

    /* 3. Encabezado (Header Azul Oscuro TecnoSist) */
    .legal-modal .modal-header {
        background-color: #031430; /* Azul oscuro corporativo */
        color: #ffffff;
        padding: 1.5rem 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        align-items: flex-start;
    }

    .legal-modal .modal-label {
        display: block;
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 1.2px;
        color: #0d6efd; /* Azul brillante */
        text-transform: uppercase;
        margin-bottom: 0.25rem;
    }

    .legal-modal .modal-title {
        font-size: 1.35rem;
        font-weight: 700;
        color: #ffffff;
        margin-bottom: 0.2rem;
        line-height: 1.3;
    }

    .legal-modal .modal-header small {
        color: #94a3b8;
        font-size: 0.85rem;
    }

    /* Icono de cerrar (X) en color blanco */
    .legal-modal .btn-close {
        filter: invert(1) grayscale(100%) brightness(200%);
        opacity: 0.75;
    }

        .legal-modal .btn-close:hover {
            opacity: 1;
        }

    /* 4. Cuerpo del Texto (Lectura Cómoda) */
    .legal-modal .modal-body {
        padding: 2rem;
        font-size: 0.95rem;
        line-height: 1.65;
        color: #475569;
        max-height: 55vh; /* Evita que el modal sea más alto que la pantalla */
    }

        .legal-modal .modal-body h3 {
            font-size: 1.05rem;
            font-weight: 700;
            color: #0f172a;
            margin-top: 1.5rem;
            margin-bottom: 0.5rem;
        }

        .legal-modal .modal-body p {
            margin-bottom: 1rem;
        }

        .legal-modal .modal-body ol {
            padding-left: 1.2rem;
            margin-bottom: 1.25rem;
        }

            .legal-modal .modal-body ol li {
                margin-bottom: 0.4rem;
            }

    /* 5. Pie del Modal (Footer) */
    .legal-modal .modal-footer {
        padding: 1.25rem 2rem;
        background-color: #f8fafc;
        border-top: 1px solid #e2e8f0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
    }

        .legal-modal .modal-footer span {
            font-size: 0.85rem;
            color: #64748b;
            max-width: 70%;
        }

        .legal-modal .modal-footer .btn-primary {
            background-color: #0d6efd;
            border-color: #0d6efd;
            padding: 0.55rem 1.6rem;
            font-weight: 600;
            border-radius: 8px;
        }

            .legal-modal .modal-footer .btn-primary:hover {
                background-color: #0b5ed7;
                border-color: #0a58ca;
            }

/* Ajuste responsivo para celulares */
@media (max-width: 576px) {
    .legal-modal .modal-header,
    .legal-modal .modal-body,
    .legal-modal .modal-footer {
        padding: 1.25rem 1.25rem;
    }

    .legal-modal .modal-footer {
        flex-direction: column;
        text-align: center;
    }

        .legal-modal .modal-footer span {
            max-width: 100%;
        }

        .legal-modal .modal-footer .btn-primary {
            width: 100%;
        }
}

/*<!-- ESTILOS AUXILIARES PARA LOS LOGOS (Añadir a tu stylesheet o layout) -->
*/
.client-logo-box {
    min-height: 90px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.client-logo-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.08) !important;
}

.client-logo {
    max-height: 48px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.client-logo-box:hover .client-logo {
    filter: grayscale(0%);
    opacity: 1;
}



/*<!-- ESTILOS AUXILIARES -->*/

.service-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.8rem 1.6rem rgba(0, 0, 0, 0.08) !important;
}