:root {
    --color-primary: #0066cc;
    --color-primary-dark: #0052a3;
    --color-primary-light: #e6f2ff;
    --color-secondary: #00b4d8;
    --color-accent: #0096d1;
    --color-success: #06a77d;
    --color-danger: #d62828;
    --color-warning: #f77f00;
    --color-info: #00b4d8;
    --color-light: #f5f9ff;
    --color-gray-dark: #2d3436;
    --color-gray-light: #dfe6e9;
}

/* ========================================
   RESET Y CONFIGURACIÓN GENERAL
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(circle at top right, rgba(0, 150, 209, 0.07), transparent 35%), #ffffff;
    color: var(--color-gray-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-accent);
}

/* ========================================
   NAVBAR/ENCABEZADO
   ======================================== */
.navbar {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    box-shadow: 0 8px 24px rgba(0, 80, 160, 0.18);
    padding: 1rem 0;
    backdrop-filter: blur(6px);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    font-size: 1.8rem;
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.navbar .nav-link:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.2);
}

.navbar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.3);
    border-bottom: 3px solid white;
}

.navbar .login-nav-btn {
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    padding: 0.48rem 1rem !important;
    margin-left: 0.8rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
    color: #fff !important;
    font-weight: 700;
    letter-spacing: 0.2px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 8px 18px rgba(3, 43, 110, 0.24);
}

.navbar .login-nav-btn:hover,
.navbar .login-nav-btn.active {
    background: #fff;
    color: var(--color-primary) !important;
    border-color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(0, 60, 130, 0.28);
}

.navbar .login-nav-btn i {
    font-size: 0.95rem;
}

.navbar-toggler {
    border: none;
    outline: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ========================================
   SECCIÓN HERO/INICIO
   ======================================== */
.hero-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 72px;
    background: linear-gradient(to right bottom, transparent 50%, #fff 50%);
    opacity: 0.85;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

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

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-icons {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.hero-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    padding: 1rem 1.2rem;
    min-width: 150px;
}

.hero-icon-item i {
    font-size: 2.5rem;
    opacity: 0.9;
}

/* ========================================
   BOTONES
   ======================================== */
.btn-primary,
.btn-primary:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--color-primary);
    border-color: var(--color-primary);
    font-weight: 600;
}

.btn-outline-primary:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.btn-secondary {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
}

.btn-secondary:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

/* ========================================
   TARJETAS (CARDS)
   ======================================== */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
}

.services-section .card {
    position: relative;
}

.services-section .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.15);
}

.card-header {
    background: linear-gradient(135deg, var(--color-primary-light) 0%, rgba(0, 180, 216, 0.1) 100%);
    border: none;
    padding: 2rem 1.5rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.card-title {
    color: var(--color-gray-dark);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.card-text {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ========================================
   SECCIONES
   ======================================== */
section {
    padding: 80px 0;
    border-bottom: 1px solid var(--color-gray-light);
}

section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   SECCIÓN SERVICIOS
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    border-radius: 18px;
    border: 1px solid rgba(0, 120, 210, 0.12);
    background: linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
}

.service-card .card-header {
    background: transparent;
    padding: 1.5rem 1.5rem 0.75rem;
}

.service-card .card-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.12), rgba(0, 180, 216, 0.18));
    margin-bottom: 0.25rem;
}

.service-card .card-icon i {
    font-size: 1.85rem;
    color: var(--color-primary);
}

.service-card .card-body {
    padding-top: 0.5rem;
}

.service-card .card-title {
    font-size: 1.1rem;
}

.service-card .text-muted {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    background: rgba(0, 102, 204, 0.08);
    border-radius: 999px;
    font-size: 0.78rem;
    color: #0f5ea3 !important;
}

/* ========================================
   SECCIÓN NOSOTROS
   ======================================== */
.about-section {
    background-color: var(--color-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-card {
    background: #fff;
    border-radius: 18px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 114, 200, 0.14);
    box-shadow: 0 14px 35px rgba(0, 89, 179, 0.1);
}

.about-text h3 {
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 1rem;
}

.about-text p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-list {
    list-style: none;
    margin-top: 1.5rem;
}

.about-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: #666;
}

.about-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: bold;
    font-size: 1.2rem;
}

.about-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.15);
}

.about-image-card {
    border-radius: 18px;
    border: 1px solid rgba(0, 102, 204, 0.12);
}

.about-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, transparent 100%);
}

.about-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

/* ========================================
   SECCIÓN NORMATIVIDAD
   ======================================== */
.normatividad-section {
    background-color: white;
}

.normatividad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.normatividad-card {
    background: linear-gradient(160deg, #ffffff 0%, #f4faff 100%);
    padding: 1.7rem;
    border-radius: 18px;
    border: 1px solid rgba(0, 102, 204, 0.12);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.normatividad-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.normatividad-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 34px rgba(0, 80, 160, 0.16);
    border-color: rgba(0, 120, 210, 0.25);
}

.norma-badge {
    display: inline-flex;
    width: fit-content;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #0d5798;
    background: rgba(0, 102, 204, 0.1);
    border: 1px solid rgba(0, 102, 204, 0.14);
}

.normatividad-card h4 {
    color: #0f5ea3;
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    line-height: 1.35;
    font-size: 1.02rem;
}

.normatividad-card h4 i {
    min-width: 30px;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 102, 204, 0.1);
    color: var(--color-primary);
    font-size: 0.9rem;
    margin-top: 1px;
}

.normatividad-card p {
    color: #5f6b76;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.55;
}

.norma-meta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #16735a;
    background: #ecfaf5;
    border: 1px solid #ccefe2;
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    font-size: 0.78rem;
    font-weight: 600;
}

.norma-meta i {
    font-size: 0.86rem;
}

/* ========================================
   SECCIÓN PAGAR RECIBO
   ======================================== */
.payment-section {
    background-color: var(--color-light);
}

.payment-form-container {
    max-width: 700px;
    margin: 0 auto;
    background: linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 18px 38px rgba(0, 70, 150, 0.12);
    border: 1px solid rgba(0, 102, 204, 0.12);
}

.payment-top-banner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 1.5rem;
}

.payment-top-banner span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(0, 102, 204, 0.1);
    color: #0f5ea3;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
}

.payment-top-banner i {
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--color-gray-dark);
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    border: 2px solid var(--color-gray-light);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.15);
    outline: none;
}

.form-control::placeholder {
    color: #aaa;
}

.payment-method-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.payment-method {
    position: relative;
}

.payment-method input[type="radio"] {
    display: none;
}

.payment-method label {
    display: block;
    padding: 1.5rem;
    border: 2px solid var(--color-gray-light);
    border-radius: 14px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    user-select: none;
    background-color: #fff;
}

.payment-method label i {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.payment-method label span {
    display: block;
    font-weight: 600;
    color: var(--color-gray-dark);
}

.payment-method input[type="radio"]:checked + label {
    border-color: var(--color-primary);
    background: linear-gradient(180deg, rgba(0, 102, 204, 0.1), rgba(0, 180, 216, 0.08));
    color: var(--color-primary);
    box-shadow: 0 10px 22px rgba(0, 90, 170, 0.15);
}

.form-result {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 8px;
    display: none;
}

.form-result.success {
    display: block;
    background-color: #e9f8f2;
    border: 1px solid #bcebd9;
    color: #146a4d;
}

.form-result.error {
    display: block;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.amount-display {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(90deg, rgba(0, 102, 204, 0.08), rgba(0, 180, 216, 0.06));
    border-left: 5px solid var(--color-primary);
    border-radius: 14px;
    text-align: center;
    box-shadow: inset 0 0 0 1px rgba(0, 102, 204, 0.05);
}

.amount-display p {
    color: #666;
    margin: 0;
}

.amount-display .amount-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0.5rem 0;
}

.file-upload {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-upload input[type="file"] {
    display: none;
}

.file-upload-label {
    display: block;
    padding: 2rem;
    border: 2px dashed var(--color-primary);
    border-radius: 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
}

.file-upload.highlight .file-upload-label {
    background-color: var(--color-primary-light);
    border-color: var(--color-accent);
    box-shadow: 0 0 0 0.25rem rgba(0, 150, 209, 0.15);
}

.file-upload input[type="file"]:focus + .file-upload-label,
.file-upload-label:hover {
    background-color: var(--color-primary-light);
    border-color: var(--color-accent);
}

.file-upload-label i {
    font-size: 2rem;
    color: var(--color-primary);
    display: block;
    margin-bottom: 0.5rem;
}

.file-upload-label span {
    display: block;
    color: var(--color-gray-dark);
    font-weight: 600;
}

.file-upload-label small {
    display: block;
    color: #999;
    margin-top: 0.5rem;
}

.file-name {
    margin-top: 0.5rem;
    color: var(--color-success);
    font-weight: 600;
    display: none;
}

/* ========================================
   SECCIÓN CONTACTO
   ======================================== */
.contact-section {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-panel {
    background: #fff;
    border-radius: 20px;
    padding: 0.8rem;
    border: 1px solid rgba(0, 102, 204, 0.12);
    box-shadow: 0 18px 38px rgba(0, 72, 140, 0.12);
}

.contact-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    padding: 0.75rem 0.85rem;
    border-radius: 14px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.contact-item:hover {
    background: linear-gradient(90deg, rgba(0, 102, 204, 0.08), rgba(0, 180, 216, 0.06));
    transform: translateX(6px);
    border-color: rgba(0, 102, 204, 0.15);
}

.contact-item i {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-top: 0.15rem;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(0, 102, 204, 0.1);
}

.contact-item-content h4 {
    color: var(--color-gray-dark);
    font-weight: 700;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.contact-item-content p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

.contact-social-item {
    background: linear-gradient(90deg, rgba(0, 102, 204, 0.08), rgba(0, 180, 216, 0.06));
    border-color: rgba(0, 102, 204, 0.15);
}

.contact-section .social-links {
    margin-top: 0.6rem;
    gap: 0.65rem;
}

.contact-section .social-links a {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(0, 102, 204, 0.1);
    border: 1px solid rgba(0, 102, 204, 0.15);
    color: #0f5ea3;
    font-size: 1rem;
    box-shadow: none;
}

.contact-section .social-links a:hover {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
}

.map-container {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 72, 145, 0.15);
    height: 570px;
    border: 1px solid rgba(0, 102, 204, 0.15);
    background-color: #fff;
}

.map-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0, 102, 204, 0.12);
    background: linear-gradient(90deg, rgba(0, 102, 204, 0.08), rgba(0, 180, 216, 0.08));
}

.map-header h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--color-primary);
    font-weight: 700;
}

.map-header p {
    margin: 0.25rem 0 0;
    color: #4f5d6b;
    font-size: 0.92rem;
}

.map-container iframe {
    width: 100%;
    height: calc(100% - 65px);
    border: none;
}

/* ========================================
   SECCIÓN LOGIN
   ======================================== */
.login-section {
    background-color: var(--color-light);
    display: none;
}

.login-form-container {
    max-width: 500px;
    margin: 0 auto;
    background-color: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.login-form-container h3 {
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 2rem;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
    position: relative;
}

/* ==========================================
   PAGOS WEB
   ========================================== */

/* Animaciones */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-15px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Sección de Pagos */
.payment-section { background-color: var(--color-light); }
.payment-form-container { max-width: 1200px; margin: 0 auto; }

/* Mensajes */
#mensajeAviso { animation: slideDown 0.3s ease-out; margin-bottom: 2rem; }
#mensajeAviso .alert { border-radius: 10px; border: none; }

/* Pasos */
.payment-step {
    background: white;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    animation: slideUp 0.4s ease-out;
}
.step-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0,102,204,0.03) 0%, rgba(0,180,216,0.03) 100%);
    border-bottom: 2px solid #f0f0f0;
}
.step-header h5 {
    margin: 0; color: var(--color-primary); font-weight: 700;
    display: flex; align-items: center; gap: 10px; font-size: 1.1rem;
}
.step-header h6 {
    margin: 0; color: var(--color-primary); font-weight: 700;
    display: flex; align-items: center; gap: 8px; font-size: 0.95rem;
}
.step-header i { font-size: 1.2rem; }
.step-body { padding: 2rem; }

/* Sidebar sticky */
.pago-sidebar { position: sticky; top: 80px; }

/* Tarjetas de Conexión */
.conn-card {
    border: 2px solid #e9ecef; border-radius: 10px;
    margin-bottom: 1rem; background: white;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}
.conn-card-active {
    border-color: var(--color-primary);
    box-shadow: 0 4px 16px rgba(0,102,204,0.12);
}
.conn-card-header {
    padding: 1.25rem 1rem 1.25rem 1.5rem;
    background: #fafafa;
    display: flex;
    align-items: center;
}
.conn-card-active .conn-card-header { background: rgba(0,102,204,0.04); }
.conn-check-label {
    display: flex; align-items: flex-start; gap: 14px;
    cursor: pointer; margin: 0; flex: 1; min-width: 0;
}
.conn-check-label input[type="checkbox"] {
    flex-shrink: 0; width: 20px; height: 20px;
    margin-top: 3px; accent-color: var(--color-primary); cursor: pointer;
}
.conn-info { flex: 1; min-width: 0; }
.conn-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.conn-icon { color: var(--color-primary); font-size: 1.05rem; }
.conn-address { color: #555; font-weight: 400; font-size: 0.95rem; }
.conn-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 0.85rem; color: #666; }
.conn-meta i { color: var(--color-primary); margin-right: 3px; }
.conn-tariff { font-weight: 700; color: var(--color-primary) !important; }
.conn-months-container {
    border-top: 2px solid #f0f0f0;
    animation: slideDown 0.25s ease-out;
    background: #fafbfc;
}
.conn-chevron-btn {
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 6px 10px;
    cursor: pointer;
    color: #aaa;
    align-self: stretch;
    display: flex;
    align-items: center;
    border-radius: 6px;
    transition: background 0.2s ease, color 0.2s ease;
}
.conn-chevron-btn:hover {
    background: rgba(0,0,0,0.05);
    color: var(--color-primary);
}
.conn-chevron {
    font-size: 0.85rem;
    transition: transform 0.25s ease;
    pointer-events: none;
}

/* Grid de Meses */
.meses-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px; margin: 0;
}
.mes-item-large { position: relative; }
.mes-item-large input[type="checkbox"] { position: absolute; opacity: 0; cursor: pointer; }
.mes-item-large .mes-label-large {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 100%; padding: 16px; border: 2px solid #ddd; border-radius: 10px;
    cursor: pointer; background: white; transition: all 0.3s ease;
    text-align: center; min-height: 110px;
}
.mes-number { font-size: 1.8rem; font-weight: 700; color: var(--color-primary); line-height: 1; }
.mes-name { font-size: 0.85rem; color: #666; margin-top: 8px; font-weight: 600; }
.mes-item-large input[type="checkbox"]:checked + .mes-label-large {
    border-color: var(--color-primary);
    background: rgba(0,102,204,0.08);
    color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(0,102,204,0.15);
}
.mes-item-large input[type="checkbox"]:disabled + .mes-label-large {
    background: #f5f5f5; color: #999; cursor: not-allowed; border-color: #ddd; opacity: 0.6;
}
.mes-item-large .mes-label-large:hover:not(:disabled) {
    border-color: var(--color-primary);
    background: rgba(0,102,204,0.04);
}

/* Resumen Box */
.resumen-box {
    background: #f8f9fa; border: 2px solid #e9ecef;
    border-radius: 10px; padding: 1.5rem;
}
.resumen-title {
    margin: 0 0 1rem 0; color: var(--color-primary); font-weight: 700;
    display: flex; align-items: center; gap: 8px; font-size: 1rem;
}
.resumen-content { max-height: 250px; overflow-y: auto; padding-right: 10px; }
.resumen-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.75rem 0; border-bottom: 1px solid #e0e0e0;
    font-size: 0.95rem; color: #333;
}
.resumen-item:last-child { border-bottom: none; }
.resumen-price { font-weight: 700; color: var(--color-primary); }
.resumen-total {
    display: flex; justify-content: space-between; align-items: center;
    font-weight: 700; color: var(--color-primary); font-size: 1.1rem;
}
.total-amount { font-size: 1.3rem; color: var(--color-secondary); }

/* Resumen agrupado por conexión */
.resumen-conn-group {
    margin-bottom: 0.75rem; padding-bottom: 0.5rem;
    border-bottom: 1px dashed #ddd;
}
.resumen-conn-group:last-child { border-bottom: none; margin-bottom: 0; }
.resumen-conn-code {
    font-size: 0.8rem; font-weight: 700; color: #888;
    text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px;
}
.resumen-conn-code i { margin-right: 4px; }
.resumen-month-chips {
    font-size: 0.88rem; color: #444; font-weight: 500; line-height: 1.5;
    flex: 1; margin-right: 10px;
}
.resumen-conn-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-top: 4px;
}

/* Métodos de Pago */
.payment-methods {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 1rem;
}
.payment-method-item { position: relative; }
.payment-method-item input[type="radio"] { position: absolute; opacity: 0; cursor: pointer; }
.payment-method-item label {
    display: flex; flex-direction: row; align-items: center; justify-content: center;
    gap: 10px; padding: 0.6rem 1rem; border: 2px solid #ddd; border-radius: 10px;
    cursor: pointer; background: white; transition: all 0.3s ease; font-weight: 600; margin: 0;
}
.payment-method-item label i { font-size: 1.1rem; color: var(--color-primary); }
.payment-method-item input[type="radio"]:checked + label {
    border-color: var(--color-primary);
    background: rgba(0,102,204,0.08);
    color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(0,102,204,0.15);
}
.payment-method-item label:hover { border-color: var(--color-primary); }

/* QR Box */
.qr-box {
    background: white; border: 2px solid #e9ecef; border-radius: 10px;
    padding: 1.5rem; text-align: center; animation: slideDown 0.3s ease-out;
}
.qr-code {
    width: 150px; height: 150px; object-fit: contain;
    background: #f8f9fa; padding: 10px; border-radius: 8px;
}

/* File Input */
.file-name {
    font-size: 0.85rem; color: var(--color-success);
    margin-top: 0.5rem; display: flex; align-items: center; gap: 6px;
}

/* Botón confirmar deshabilitado */
#btnConfirmar:disabled { opacity: 0.55; cursor: not-allowed; }

/* Pagos - Responsivo */
@media (max-width: 992px) {
    .step-body { padding: 1.5rem; }
    .meses-grid-large { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 12px; }
    .pago-sidebar { position: static; }
}
@media (max-width: 768px) {
    .payment-form-container { padding: 1.5rem; }
    .step-header { padding: 1.25rem; }
    .step-body { padding: 1.25rem; }
    .meses-grid-large { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; }
    .mes-item-large .mes-label-large { padding: 10px; min-height: 90px; }
    .mes-number { font-size: 1.4rem; }
    .mes-name { font-size: 0.75rem; }
    .resumen-box { margin-bottom: 1.5rem; }
    .total-amount { font-size: 1.2rem; }
    .qr-code { width: 120px; height: 120px; }
    .conn-card-header { padding: 1rem 1.25rem; }
    .conn-meta { gap: 8px; }
}
@media (max-width: 576px) {
    .payment-form-container { padding: 1rem; }
    .step-body { padding: 1rem; }
    .meses-grid-large { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; }
    .btn-lg { padding: 0.65rem 1.8rem; font-size: 0.95rem; }
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.35);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h5 {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
    margin-left: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: white;
    color: var(--color-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom p {
    margin: 0;
}

/* ========================================
   OFFSET PARA NAVBAR FIJA
   ======================================== */
.navbar.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-icons {
        gap: 1.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .map-container {
        height: 300px;
    }

    .payment-form-container {
        padding: 1.5rem;
    }

    .payment-method-group {
        grid-template-columns: 1fr;
    }

    .navbar .login-nav-btn {
        margin: 0.5rem 0 0;
        justify-content: center;
        width: 100%;
    }

    section {
        padding: 50px 0;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 60px 0;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .hero-icons {
        gap: 1rem;
        flex-direction: column;
    }

    .services-grid,
    .normatividad-grid {
        grid-template-columns: 1fr;
    }
}
