    :root {
      --portal-bg-1: #0f172a;
      --portal-bg-2: #1e3a8a;
      --portal-card: rgba(255, 255, 255, 0.95);
      --portal-text: #0f172a;
      --portal-muted: #64748b;
      --portal-line: #dbeafe;
    }

    * {
      font-family: 'Montserrat', sans-serif;
    }

    body.portal-login-body {
      min-height: 100vh;
      margin: 0;
      background:
        radial-gradient(circle at 20% 0%, rgba(59, 130, 246, 0.25) 0%, rgba(59, 130, 246, 0) 30%),
        linear-gradient(135deg, var(--portal-bg-1) 0%, var(--portal-bg-2) 100%);
      padding: 1rem;
    }

    .login-shell {
      min-height: calc(100vh - 2rem);
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .login-card {
      width: min(1100px, 100%);
      border: 0;
      border-radius: 1.2rem;
      background: var(--portal-card);
      box-shadow: 0 28px 50px rgba(15, 23, 42, 0.35);
      overflow: hidden;
    }

    .login-side {
      position: relative;
      min-height: 560px;
      background:
        linear-gradient(165deg, rgba(218, 14, 3, 0.94), rgba(244, 1, 37, 0.96)),
        url('../../Imagenes/Fondos/Fondo1.webp') center/cover no-repeat;
      color: #fff;
      padding: 2rem 1.8rem;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
    }

    .login-side::before {
      content: "";
      position: absolute;
      inset: 0;
      background: radial-gradient(circle at 75% 15%, rgba(255, 255, 255, 0.2), transparent 45%);
      pointer-events: none;
    }

    .login-side-content {
      position: relative;
      z-index: 1;
    }

    .login-side h2 {
      font-size: 1.5rem;
      font-weight: 700;
      margin-bottom: .5rem;
    }

    .login-side p {
      margin: 0;
      color: rgba(255, 255, 255, .88);
      font-size: .95rem;
    }

    .login-main {
      padding: clamp(1.2rem, 2.5vw, 2.2rem);
    }

    .brand-logo {
      height: clamp(90px, 14vw, 130px);
      width: auto;
    }

    .login-title {
      color: var(--portal-text);
      font-weight: 700;
      margin-top: .75rem;
      margin-bottom: .25rem;
      font-size: 1.15rem;
    }

    .login-subtitle {
      color: var(--portal-muted);
      margin-bottom: 1rem;
      font-size: .9rem;
    }

    .google-btn {
      background: white;
      border: 1px solid var(--portal-line);
      border-radius: .85rem;
      padding: 12px 16px;
      font-size: 14px;
      font-weight: 600;
      color: #334155;
      cursor: pointer;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      width: 100%;
      text-decoration: none;
    }
    
    .google-btn:hover {
      background: #f8fafc;
      box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
      text-decoration: none;
      color: #334155;
    }
    
    .divider {
      display: flex;
      align-items: center;
      text-align: center;
      margin: 18px 0;
    }
    
    .divider::before,
    .divider::after {
      content: '';
      flex: 1;
      border-bottom: 1px solid #e2e8f0;
    }
    
    .divider span {
      padding: 0 10px;
      color: var(--portal-muted);
      font-size: 13px;
    }
    
    .info-box {
      background: #eef2ff;
      border-left: 4px solid #1d4ed8;
      padding: 12px;
      margin-top: 14px;
      border-radius: .75rem;
    }
    
    .info-box p {
      margin: 0;
      font-size: 13px;
      color: #1e3a8a;
    }
    
    .legacy-login {
      margin-top: 15px;
      text-align: center;
    }
    
    .legacy-login a {
      color: #1d4ed8;
      font-size: 13px;
      text-decoration: none;
      font-weight: 600;
    }
    
    .legacy-login a:hover {
      text-decoration: underline;
    }

    #traditionalLoginForm .form-control {
      border-radius: .8rem;
      border: 1px solid #dbeafe;
      color: #1e293b;
    }

    #traditionalLoginForm .form-control:focus {
      border-color: #3b82f6;
      box-shadow: 0 0 0 .2rem rgba(59, 130, 246, 0.15);
    }

    #traditionalLoginForm .btn {
      border-radius: .8rem;
      font-weight: 600;
      background: linear-gradient(15deg, #f40125d1 0%, #F40125 100%);
      border: 0;
    }

    @media (max-width: 991.98px) {
      body.portal-login-body {
        padding: .75rem;
      }

      .login-shell {
        min-height: calc(100vh - 1.5rem);
      }

      .login-main {
        padding: 1.1rem;
      }
    }

    .sofiHola{
        border-radius: .8rem;
        margin-bottom: 20px;
    }


      body {
      background: radial-gradient(circle at 20% -20%, #dbeafe 0%, #f8fafc 42%, #eef2ff 100%);
    }

    #content-wrapper {
      background: transparent !important;
    }

    .pay-hero {
      border: 0;
      border-radius: 1.1rem;
      background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
      color: #fff;
      padding: 1.05rem 1.2rem;
      margin-bottom: 1rem;
      box-shadow: 0 16px 34px rgba(15, 23, 42, 0.2);
    }

    .pay-hero h1 {
      margin: 0;
      font-size: 1.2rem;
      font-weight: 700;
    }

    .pay-hero p {
      margin: .25rem 0 0;
      color: rgba(255,255,255,.86);
      font-size: .9rem;
    }

    .pay-panel {
      border: 0;
      border-radius: 1rem;
      background: rgba(255,255,255,.95);
      box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    }

    .concept-card {
      border: 1px solid #dbeafe;
      border-radius: .85rem;
      box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
      transition: transform .2s ease, box-shadow .2s ease;
      overflow: hidden;
    }

    .concept-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 14px 25px rgba(15, 23, 42, 0.14);
    }

    .pay-select {
      border: 2px solid #bfdbfe;
      border-radius: .8rem;
      padding: .5rem .75rem;
      font-weight: 600;
      color: #0f172a;
      background-color: #fff;
    }

    .pay-select:focus {
      border-color: #1d4ed8;
      box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .15);
    }

    #nav-tab {
      gap: .4rem;
      border-bottom: 0;
      margin-bottom: .65rem;
      flex-wrap: wrap;
    }

    #nav-tab .nav-link {
      border: 1px solid #dbeafe;
      border-radius: 999px;
      background: #f8fafc;
      color: #1e3a8a;
      font-size: .82rem;
      font-weight: 700;
      padding: .42rem .78rem;
      transition: all .16s ease;
      white-space: nowrap;
    }

    #nav-tab .nav-link.active {
      background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
      border-color: #1e3a8a;
      color: #fff;
      box-shadow: 0 10px 24px rgba(15, 23, 42, .2);
    }

    .concept-grid-item {
      margin-bottom: .9rem;
    }

    .concept-card .card-body {
      display: flex;
      flex-direction: column;
      gap: .55rem;
      padding: .9rem .9rem .85rem;
    }

    .concept-title {
      font-size: .96rem;
      line-height: 1.25;
      min-height: 2.4rem;
      margin: 0;
    }

    .concept-price {
      margin: 0;
      text-align: center;
      color: #0f766e;
      font-size: .88rem;
      font-weight: 700;
      background: #ecfeff;
      border: 1px solid #a5f3fc;
      border-radius: .65rem;
      padding: .2rem .45rem;
    }

    .btn-add-concept {
      margin-top: auto;
      border-radius: .75rem;
      font-weight: 700;
      font-size: .86rem;
      padding: .45rem .6rem;
      border: 1px solid #1d4ed8;
      color: #1d4ed8;
      background: #fff;
    }

    .btn-add-concept:hover {
      background: #1d4ed8;
      color: #fff;
    }

    .btn-add-concept i {
      font-size: 1rem !important;
      margin-right: .2rem;
      color: inherit !important;
    }

    .pay-summary-list {
      border: 1px dashed #cbd5e1;
      border-radius: .8rem;
      background: #f8fafc;
      padding: .55rem;
      min-height: 3rem;
    }

    .btn-pay-now {
      border: 0;
      border-radius: .85rem;
      font-weight: 700;
      padding: .62rem .9rem;
      background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
      box-shadow: 0 10px 20px rgba(22, 163, 74, .25);
    }

    .btn-pay-now:disabled {
      opacity: .55;
      box-shadow: none;
    }

    .modal-portal .modal-dialog {
      width: min(1200px, 96vw);
      max-width: none;
      margin: 1rem auto;
    }

    .modal-portal .modal-content {
      border: 0;
      border-radius: 1rem;
      overflow: hidden;
      box-shadow: 0 20px 40px rgba(15, 23, 42, .28);
      min-height: min(92vh, 900px);
    }

    .modal-portal .modal-header {
      background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
      color: #fff;
      border: 0;
      padding: .75rem 1rem;
    }

    .modal-portal .modal-title {
      color: #fff !important;
      font-size: 1.05rem;
      font-weight: 700;
    }

    .modal-portal .btn-close {
      filter: invert(1);
      opacity: .9;
    }

    .modal-portal .modal-body {
      padding: 0;
      height: min(84vh, calc(100vh - 125px));
      background: #f8fafc;
    }

    .modal-portal iframe {
      width: 100%;
      height: 100%;
      border: 0;
      background: #fff;
    }

    @media (max-width: 767.98px) {
      .modal-portal .modal-dialog {
        width: 100vw;
        margin: 0;
      }

      .modal-portal .modal-content {
        border-radius: 0;
        min-height: 100vh;
      }

      .modal-portal .modal-body {
        height: calc(100vh - 64px);
      }
    }



    /* SERVICIOS */

    .section-hero {
      border: 0;
      border-radius: 1.1rem;
      background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
      color: #fff;
      padding: 1.1rem 1.2rem;
      margin-bottom: 1rem;
      box-shadow: 0 16px 34px rgba(15, 23, 42, 0.2);
    }

    .section-hero h1 {
      font-size: 1.3rem;
      margin: 0;
      font-weight: 700;
    }

    .section-hero p {
      margin: .25rem 0 0;
      color: rgba(255, 255, 255, .86);
      font-size: .92rem;
    }

    .panel-card {
      border: 0;
      border-radius: 1rem;
      background: rgba(255, 255, 255, 0.94);
      box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    }

    .services-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: .85rem;
    }

    .service-card {
      text-decoration: none;
      border: 1px solid #e2e8f0;
      border-radius: .95rem;
      background: #fff;
      color: #0f172a;
      min-height: 270px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: space-between;
      padding: .9rem .8rem .8rem;
      box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
      transition: transform .2s ease, box-shadow .2s ease;
    }

    .service-card:hover {
      color: #0f172a;
      transform: translateY(-2px);
      box-shadow: 0 14px 25px rgba(15, 23, 42, .14);
    }

    .service-card img {
      max-height: 190px;
      width: auto;
      max-width: 100%;
    }

    .service-card b {
      text-align: center;
      font-size: .95rem;
    }

    .section-side-title {
      border-radius: .85rem;
    }

    @media (max-width: 991.98px) {
      .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

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



    .video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Lo manda al fondo */
    overflow: hidden;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Evita que el video se deforme */
    filter: brightness(0.6); /* Oscurece un poco para que resalte el texto */
}

/* Capa opcional para mejorar el contraste de los colores azul/morado */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.1) 0%, rgba(102, 16, 242, 0.2) 100%);
    pointer-events: none;
}

.content {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    padding-top: 10vh;
}