/* ============================================
   ESTILO IT-AUXILIO - COLORES ROJO, NEGRO Y BLANCO
   Adaptado del estilo original MSDigital
   FULLY RESPONSIVE - Optimizado para todas las pantallas
   Incluye estilos de modales login/registro, menú hamburguesa y panel admin compacto
   + CONTADORES, SECCIÓN PROBLEMAS, BOTÓN FLOTANTE Y MEDIOS DE PAGO 100% RESPONSIVE
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f8f9fa;
    color: #000000;
    line-height: 1.5;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== HEADER ========== */
.header {
    background: #000000;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(227, 30, 36, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    flex-wrap: nowrap;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
    flex-shrink: 0;
    cursor: pointer;
}

.ms-logo {
    font-family: 'Arial Black', sans-serif;
    font-size: 28px;
    color: #ffffff;
    display: inline-block;
    white-space: nowrap;
}

.digital-logo {
    font-family: 'Arial Black', sans-serif;
    font-size: 28px;
    color: #e31e24;
    display: inline-block;
    margin-left: -12px;
    white-space: nowrap;
}

.nav {
    display: flex;
    gap: 25px;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.nav a {
    text-decoration: none;
    font-weight: 500;
    color: #ffffff;
    transition: color 0.2s;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

.nav a:hover,
.nav a.active {
    color: #e31e24;
}

.user-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-shrink: 0;
}

.cart-icon,
.user-icon {
    position: relative;
    cursor: pointer;
    font-size: 18px;
    color: #ffffff;
    transition: color 0.2s;
}

.cart-icon:hover,
.user-icon:hover {
    color: #e31e24;
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -12px;
    background: #e31e24;
    color: white;
    font-size: 10px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-logged {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-logged span {
    font-size: 13px;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ffffff;
}

.user-logged button {
    background: none;
    border: none;
    color: #e31e24;
    cursor: pointer;
    font-size: 16px;
}

.admin-badge {
    background: #e31e24;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
}

/* ========== CONTADORES ========== */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(227, 30, 36, 0.2);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    min-width: 150px;
    flex: 1;
    max-width: 200px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: #e31e24;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: #e31e24;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #555;
}

/* ========== SECCIÓN DE PROBLEMAS ========== */
.problems-section {
    margin: 60px 0;
    text-align: center;
}

.problems-title {
    font-size: 28px;
    margin-bottom: 20px;
    color: #1a1a2e;
}

.problems-subtitle {
    color: #555;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.problem-card {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    padding: 20px;
    text-align: left;
    transition: all 0.3s ease;
}

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(227, 30, 36, 0.1);
    border-color: #e31e24;
}

.problem-icon {
    font-size: 36px;
    color: #e31e24;
    margin-bottom: 15px;
}

.problem-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a1a2e;
}

.problem-description {
    color: #666;
    font-size: 14px;
}

/* ========== BOTONES FLOTANTES ========== */
.float-msdigital {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 999;
    background: #e31e24;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.float-msdigital:hover {
    background: #c01a20;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(227, 30, 36, 0.4);
}

.float-msdigital i {
    font-size: 18px;
}

.float-msdigital span {
    display: inline-block;
}

/* ========== EFECTO DE ESCRITURA ========== */
.cursor {
    display: inline-block;
    width: 3px;
    margin-left: 5px;
    animation: blink 1s infinite;
    color: #e31e24;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

#typed-text {
    border-right: none;
}

/* ========== SOPORTE ADICIONAL ========== */
.support-additional {
    margin-top: 30px;
    text-align: center;
}

.support-additional h4 {
    color: #1a1a2e;
    margin-bottom: 15px;
}

.support-buttons-additional {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-chat {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-chat:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.btn-email {
    background: linear-gradient(135deg, #e31e24, #c41a1f);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-email:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(227, 30, 36, 0.3);
}

/* ========== HERO ========== */
.hero {
    background: linear-gradient(120deg, #f8f9fa 0%, #ffffff 100%);
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #1a1a2e;
}

.hero .highlight {
    color: #e31e24;
}

.hero-badge {
    background: rgba(227, 30, 36, 0.1);
    border: 1px solid rgba(227, 30, 36, 0.2);
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #e31e24;
}

.hero-brand-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #000000;
    padding: 12px 28px;
    border-radius: 60px;
    border: 1px solid rgba(227, 30, 36, 0.5);
    margin: 20px auto 30px;
    transition: all 0.3s ease;
    animation: brandPulse 2s ease-in-out infinite;
    cursor: pointer;
}

.hero-brand-btn:hover {
    transform: translateY(-3px);
    border-color: #e31e24;
    background: #1a1a1a;
    box-shadow: 0 5px 20px rgba(227, 30, 36, 0.3);
}

.hero-brand-btn i {
    font-size: 20px;
    color: #e31e24;
}

.hero-brand-btn span {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.hero-brand-btn span strong {
    color: #e31e24;
    font-weight: 800;
}

.hero-brand-btn .by-ms {
    font-size: 11px;
    background: rgba(227, 30, 36, 0.2);
    padding: 4px 12px;
    border-radius: 30px;
    color: #e31e24;
    font-weight: 500;
    letter-spacing: 0.5px;
}

@keyframes brandPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(227, 30, 36, 0.2);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(227, 30, 36, 0);
    }
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 10px;
    flex-wrap: wrap;
}

/* ========== BOTONES ========== */
.btn {
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #e31e24, #c41a1f);
    color: white;
    box-shadow: 0 4px 15px rgba(227, 30, 36, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(227, 30, 36, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid #e31e24;
    color: #e31e24;
}

.btn-outline:hover {
    background: rgba(227, 30, 36, 0.1);
    transform: translateY(-3px);
}

/* ========== TARJETAS / PASTILLAS ========== */
.section-title {
    font-size: 2rem;
    margin: 48px 0 24px;
    text-align: center;
    color: #1a1a2e;
    word-wrap: break-word;
}

.section-title .highlight {
    color: #e31e24;
}

.pills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    margin: 40px 0;
}

.card {
    background: #ffffff;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.15);
}

/* ========== SOPORTE REMOTO ========== */
.support-card {
    background: white;
    border-radius: 32px;
    padding: 40px;
    border: 1px solid #eef2f6;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    margin-bottom: 40px;
}

.support-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    justify-content: center;
}

.computer-illustration {
    position: relative;
    width: 280px;
    height: 220px;
    margin: 0 auto;
}

.monitor {
    position: relative;
    width: 220px;
    height: 160px;
    background: linear-gradient(135deg, #1a1a2e, #2d2d44);
    border-radius: 16px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.monitor-screen {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    background: linear-gradient(135deg, #0a0a0a, #1a1a2e);
    border-radius: 8px;
    overflow: hidden;
}

.screen-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
}

.screen-content i {
    font-size: 45px;
    color: #e31e24;
    margin-bottom: 8px;
    display: inline-block;
    animation: pulse 2s infinite;
}

.code-line {
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, #e31e24, #ff6b6b, #e31e24);
    margin: 5px auto;
    border-radius: 3px;
    animation: scan 3s ease-in-out infinite;
}

.monitor-stand {
    width: 80px;
    height: 30px;
    background: linear-gradient(135deg, #2d2d44, #1a1a2e);
    margin: 0 auto;
    border-radius: 0 0 8px 8px;
}

.monitor-base {
    width: 140px;
    height: 8px;
    background: linear-gradient(135deg, #1a1a2e, #2d2d44);
    margin: 0 auto;
    border-radius: 4px;
}

.connection-lines {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.connection-line {
    width: 3px;
    height: 30px;
    background: #e31e24;
    border-radius: 2px;
    animation: wave 1.5s ease-in-out infinite;
}

.connection-line:nth-child(1) { animation-delay: 0s; }
.connection-line:nth-child(2) { animation-delay: 0.3s; }
.connection-line:nth-child(3) { animation-delay: 0.6s; }

.support-content {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.support-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(227, 30, 36, 0.1), rgba(255, 107, 107, 0.05));
    color: #e31e24;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(227, 30, 36, 0.2);
}

.support-content h3 {
    color: #1a1a2e;
    margin-bottom: 15px;
    font-size: 28px;
}

.support-content h3 .highlight {
    color: #e31e24;
}

.support-content p {
    color: #4a627a;
    max-width: 500px;
    margin: 0 auto 25px;
    line-height: 1.6;
}

.support-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.dwservice-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #000000;
    border: 2px solid #e31e24;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffffff;
    text-decoration: none;
}

.dwservice-btn i {
    font-size: 16px;
    color: #e31e24;
}

.dwservice-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(227, 30, 36, 0.3);
    background: #1a1a1a;
}

.dwservice-note {
    margin-top: 15px;
    font-size: 12px;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dwservice-note i {
    color: #e31e24;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.benefit-card {
    background: white;
    border-radius: 24px;
    padding: 25px;
    text-align: center;
    border: 1px solid #eef2f6;
    transition: all 0.3s ease;
    cursor: pointer;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(227, 30, 36, 0.1);
    border-color: rgba(227, 30, 36, 0.3);
}

.benefit-card i {
    font-size: 40px;
    color: #e31e24;
    margin-bottom: 15px;
    display: inline-block;
    transition: transform 0.3s;
}

.benefit-card:hover i {
    transform: scale(1.1);
}

.benefit-card h4 {
    color: #1a1a2e;
    margin-bottom: 8px;
    font-size: 18px;
}

.benefit-card p {
    color: #64748b;
    font-size: 14px;
}

/* ========== INCIDENCIAS ========== */
.incidencia-card {
    background: white;
    border-radius: 32px;
    padding: 40px;
    border: 1px solid #eef2f6;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1a1a2e;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e31e24;
}

.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.alert {
    padding: 12px;
    border-radius: 12px;
    margin-top: 16px;
}

.alert.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #e3f2fd;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ========== BIBLIOTECA ========== */
.biblioteca-card {
    background: white;
    border-radius: 32px;
    padding: 40px;
    text-align: center;
    border: 1px solid #eef2f6;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.biblioteca-card i {
    font-size: 48px;
    color: #e31e24;
    margin-bottom: 20px;
    display: inline-block;
}

.biblioteca-card p {
    color: #4a627a;
    margin-bottom: 20px;
}

/* ========== CARRITO ========== */
.cart-sidebar {
    position: fixed;
    right: -420px;
    top: 0;
    width: 380px;
    max-width: 90%;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s;
    z-index: 1000;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eef2f6;
}

.cart-header h3 {
    color: #1a1a2e;
}

.cart-header span {
    font-size: 28px;
    cursor: pointer;
    color: #666;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eef2f5;
    flex-wrap: wrap;
    gap: 10px;
}

.cart-total {
    font-weight: 800;
    font-size: 18px;
    margin: 20px 0;
    display: flex;
    justify-content: space-between;
}

/* ========== MODALES (Login/Registro) ========== */
.login-modal,
.register-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.login-modal.open,
.register-modal.open {
    display: flex;
}

.login-box,
.register-box {
    background: #000000;
    padding: 40px;
    border-radius: 32px;
    width: 90%;
    max-width: 420px;
    border: 1px solid rgba(227, 30, 36, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.login-box h3,
.register-box h3 {
    color: #ffffff;
    margin-bottom: 25px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
}

.login-box h3 i,
.register-box h3 i {
    color: #e31e24;
    margin-right: 10px;
}

.login-box input,
.register-box input {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 16px;
    border: 1px solid #333;
    border-radius: 12px;
    background: #111111;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.2s ease;
}

.login-box input:focus,
.register-box input:focus {
    outline: none;
    border-color: #e31e24;
    background: #1a1a1a;
}

.login-box input::placeholder,
.register-box input::placeholder {
    color: #666;
}

.error-message {
    color: #e31e24;
    font-size: 12px;
    margin-bottom: 15px;
    text-align: center;
    background: rgba(227, 30, 36, 0.1);
    padding: 8px;
    border-radius: 8px;
}

.login-box .btn-primary,
.register-box .btn-primary {
    width: 100%;
    margin-top: 10px;
}

.login-box p,
.register-box p {
    text-align: center;
    margin-top: 20px;
    color: #888;
    font-size: 13px;
}

.login-box p a,
.register-box p a {
    color: #e31e24;
    text-decoration: none;
    font-weight: 600;
}

.login-box p a:hover,
.register-box p a:hover {
    text-decoration: underline;
}

.login-box button:last-of-type,
.register-box button:last-of-type {
    margin-top: 15px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    width: 100%;
    font-size: 13px;
    transition: color 0.2s;
}

.login-box button:last-of-type:hover,
.register-box button:last-of-type:hover {
    color: #e31e24;
}

/* ========== MODAL PAGO ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    z-index: 1100;
}

.modal.open {
    display: flex;
}

.modal-content {
    background: white;
    max-width: 500px;
    width: 90%;
    border-radius: 32px;
    padding: 32px;
    text-align: center;
}

.modal-content p {
    margin: 20px 0;
    color: #4a627a;
}

.modal-content .btn {
    margin: 10px;
}

/* ========== FOOTER ========== */
.footer {
    background: #0a0a0a;
    padding: 60px 0 24px;
    margin-top: 60px;
    border-top: 1px solid rgba(227, 30, 36, 0.3);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    margin-bottom: 15px;
}

.ms-logo-footer {
    font-family: 'Arial Black', sans-serif;
    font-size: 28px;
    color: #ffffff;
    display: inline-block;
    white-space: nowrap;
}

.digital-logo-footer {
    font-family: 'Arial Black', sans-serif;
    font-size: 28px;
    color: #e31e24;
    display: inline-block;
    margin-left: -12px;
    white-space: nowrap;
}

.footer-col h4 {
    color: #e31e24;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-col p {
    color: #cbd5e1;
    line-height: 1.6;
    font-size: 14px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
    color: #cbd5e1;
    font-size: 14px;
}

.footer-col ul li i {
    color: #e31e24;
    margin-right: 8px;
    width: 20px;
}

.footer-col ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-col ul li a:hover {
    color: #e31e24 !important;
    transform: translateX(3px);
}

.footer-col ul li a.active-footer {
    color: #e31e24 !important;
    font-weight: 600;
}

.social-links-footer {
    display: flex;
    gap: 15px;
}

.social-links-footer a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: #cbd5e1;
    font-size: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links-footer a:hover {
    background: #e31e24;
    color: white;
    transform: translateY(-3px);
}

.brand-divider {
    height: 1px;
    background: linear-gradient(90deg, #e31e24, transparent);
    margin: 15px 0;
}

.it-auxilio-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #cbd5e1;
    font-size: 14px;
    margin-top: 10px;
    flex-wrap: wrap;
    text-align: center;
}

.it-auxilio-footer i {
    color: #e31e24;
    font-size: 16px;
}

.it-auxilio-footer strong {
    color: #e31e24;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 13px;
}

/* ============================================
   MEDIOS DE PAGO EN FOOTER - 100% RESPONSIVE
   Funciona con el HTML actual (div con estilo inline)
   ============================================ */

/* Selecciona el div de medios de pago dentro del footer */
.footer-col > div[style*="flex-direction: column"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

/* Cada item de medio de pago se convierte en badge */
.footer-col > div[style*="flex-direction: column"] > div {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(227, 30, 36, 0.3) !important;
    border-radius: 50px !important;
    padding: 8px 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    width: 100% !important;
    justify-content: flex-start !important;
}

.footer-col > div[style*="flex-direction: column"] > div:hover {
    background: #e31e24 !important;
    border-color: #e31e24 !important;
    transform: translateX(5px) !important;
}

.footer-col > div[style*="flex-direction: column"] > div i {
    font-size: 18px !important;
    width: 24px !important;
    text-align: center !important;
    transition: color 0.3s !important;
}

.footer-col > div[style*="flex-direction: column"] > div:hover i {
    color: white !important;
}

.footer-col > div[style*="flex-direction: column"] > div span {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #cbd5e1 !important;
    transition: color 0.3s !important;
}

.footer-col > div[style*="flex-direction: column"] > div:hover span {
    color: white !important;
}

/* Colores específicos para cada método (opcional, mejora visual) */
.footer-col > div[style*="flex-direction: column"] > div:first-child i {
    color: #009ee3 !important;
}
.footer-col > div[style*="flex-direction: column"] > div:first-child:hover {
    background: #009ee3 !important;
}
.footer-col > div[style*="flex-direction: column"] > div:nth-child(2) i {
    color: #4caf50 !important;
}
.footer-col > div[style*="flex-direction: column"] > div:nth-child(2):hover {
    background: #4caf50 !important;
}
.footer-col > div[style*="flex-direction: column"] > div:nth-child(3) i {
    color: #ff9800 !important;
}
.footer-col > div[style*="flex-direction: column"] > div:nth-child(3):hover {
    background: #ff9800 !important;
}

/* ========== RESPONSIVE MEDIOS DE PAGO ========== */
@media (max-width: 768px) {
    /* En móvil: cambia de columna a fila horizontal */
    .footer-col > div[style*="flex-direction: column"] {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 10px !important;
    }
    
    .footer-col > div[style*="flex-direction: column"] > div {
        width: auto !important;
        min-width: 140px !important;
        justify-content: center !important;
        padding: 8px 16px !important;
    }
    
    .footer-col > div[style*="flex-direction: column"] > div i {
        font-size: 16px !important;
        width: 20px !important;
    }
    
    .footer-col > div[style*="flex-direction: column"] > div span {
        font-size: 12px !important;
    }
}

@media (max-width: 480px) {
    .footer-col > div[style*="flex-direction: column"] {
        gap: 8px !important;
    }
    
    .footer-col > div[style*="flex-direction: column"] > div {
        min-width: 120px !important;
        padding: 6px 12px !important;
    }
    
    .footer-col > div[style*="flex-direction: column"] > div i {
        font-size: 14px !important;
        width: 18px !important;
    }
    
    .footer-col > div[style*="flex-direction: column"] > div span {
        font-size: 11px !important;
    }
}

@media (max-width: 380px) {
    /* Si no entran horizontalmente, vuelven a columna */
    .footer-col > div[style*="flex-direction: column"] {
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .footer-col > div[style*="flex-direction: column"] > div {
        width: 100% !important;
        max-width: 200px !important;
        justify-content: center !important;
    }
}

/* ========== MENÚ HAMBURGUESA ========== */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s;
}

.menu-toggle:hover {
    color: #e31e24;
}

/* ========== ANIMACIONES ========== */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

@keyframes scan {
    0%, 100% { width: 30%; opacity: 0.5; }
    50% { width: 80%; opacity: 1; }
}

@keyframes wave {
    0%, 100% { height: 20px; opacity: 0.5; }
    50% { height: 40px; opacity: 1; }
}

/* ============================================
   RESPONSIVE GENERAL
   ============================================ */

@media (max-width: 992px) {
    .header-content {
        gap: 15px;
    }
    .nav {
        gap: 15px;
    }
    .nav a {
        font-size: 12px;
    }
    .ms-logo, .digital-logo {
        font-size: 24px;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    
    .float-msdigital {
        top: 75px;
        right: 15px;
        padding: 10px 18px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    .menu-toggle {
        display: block;
        order: 1;
    }
    .nav {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: #000000;
        flex-direction: column;
        gap: 0;
        padding: 20px;
        border-top: 1px solid rgba(227, 30, 36, 0.3);
        border-bottom: 1px solid rgba(227, 30, 36, 0.3);
        z-index: 99;
    }
    .nav.open {
        display: flex;
    }
    .nav a {
        padding: 12px 20px;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 14px;
        white-space: normal;
    }
    .nav a:last-child {
        border-bottom: none;
    }
    .user-actions {
        order: 2;
    }
    .header-content {
        justify-content: space-between;
    }
    .logo {
        order: 2;
    }
    .menu-toggle {
        order: 1;
    }
    .user-actions {
        order: 3;
    }
    .hero {
        padding: 50px 0;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .section-title {
        font-size: 1.5rem;
        margin: 30px 0 20px;
    }
    .pills-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .two-columns {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .support-grid {
        flex-direction: column;
    }
    .computer-illustration {
        transform: scale(0.8);
    }
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    .login-box, .register-box {
        padding: 30px 20px;
        margin: 20px;
    }
    .support-card {
        padding: 25px;
    }
    .incidencia-card {
        padding: 25px;
    }
    .biblioteca-card {
        padding: 25px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .footer-col {
        text-align: center;
    }
    .footer-logo {
        justify-content: center;
        display: flex;
    }
    .brand-divider {
        margin: 15px auto;
    }
    .it-auxilio-footer {
        justify-content: center;
        text-align: center;
    }
    .footer-col ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .social-links-footer {
        justify-content: center;
    }
    .ms-logo-footer, .digital-logo-footer {
        font-size: 24px;
    }
    
    .float-msdigital {
        top: 70px;
        right: 10px;
        padding: 8px 15px;
        font-size: 12px;
    }
    .float-msdigital i {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 0;
    }
    .hero h1 {
        font-size: 1.5rem;
    }
    .hero-badge {
        font-size: 11px;
        padding: 5px 12px;
    }
    .hero-brand-btn {
        padding: 8px 20px;
        gap: 8px;
    }
    .hero-brand-btn i {
        font-size: 14px;
    }
    .hero-brand-btn span {
        font-size: 12px;
    }
    .hero-brand-btn .by-ms {
        font-size: 9px;
        padding: 2px 8px;
    }
    .support-buttons {
        flex-direction: column;
        align-items: center;
    }
    .support-buttons .btn,
    .support-buttons .dwservice-btn {
        width: 100%;
        justify-content: center;
    }
    .computer-illustration {
        transform: scale(0.7);
    }
    .ms-logo, .digital-logo {
        font-size: 20px;
    }
    .digital-logo {
        margin-left: -8px;
    }
    .nav a {
        font-size: 13px;
        padding: 10px 16px;
    }
    .user-actions {
        gap: 10px;
    }
    .cart-icon, .user-icon {
        font-size: 16px;
    }
    .btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    .card {
        padding: 15px;
    }
    .support-content h3 {
        font-size: 22px;
    }
    .benefit-card {
        padding: 15px;
    }
    .benefit-card i {
        font-size: 30px;
    }
    .benefit-card h4 {
        font-size: 16px;
    }
    .form-group input, 
    .form-group select, 
    .form-group textarea {
        padding: 10px;
        font-size: 13px;
    }
    .login-box h3, .register-box h3 {
        font-size: 20px;
    }
    .login-box, .register-box {
        padding: 25px 20px;
    }
    .footer {
        padding: 40px 0 20px;
        margin-top: 40px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 25px;
    }
    .footer-col ul li {
        font-size: 12px;
    }
    .footer-col h4 {
        font-size: 16px;
    }
    .social-links-footer {
        justify-content: center;
    }
    .footer-bottom p {
        font-size: 11px;
    }
    .ms-logo-footer, .digital-logo-footer {
        font-size: 20px;
    }
    .digital-logo-footer {
        margin-left: -8px;
    }
    
    .float-msdigital {
        top: 65px;
        right: 8px;
        padding: 6px 12px;
        font-size: 11px;
    }
    .float-msdigital i {
        font-size: 12px;
    }
}

/* Ocultar texto en botón flotante en móviles muy pequeños */
@media (max-width: 380px) {
    .float-msdigital span {
        display: none;
    }
    .float-msdigital {
        padding: 8px 12px;
        border-radius: 40px;
    }
    .float-msdigital i {
        margin: 0;
        font-size: 16px;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }
    .hero h1 {
        font-size: 1.3rem;
    }
    .section-title {
        font-size: 1.3rem;
    }
    .nav a {
        font-size: 12px;
        padding: 8px 12px;
    }
    .hero-brand-btn {
        padding: 6px 16px;
    }
    .hero-brand-btn span {
        font-size: 11px;
    }
    .support-content h3 {
        font-size: 18px;
    }
    .support-content p {
        font-size: 13px;
    }
    .btn {
        padding: 6px 12px;
        font-size: 11px;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 30px 0;
    }
    .hero h1 {
        font-size: 1.5rem;
    }
    .nav {
        max-height: 70vh;
        overflow-y: auto;
    }
    .computer-illustration {
        transform: scale(0.6);
    }
    
    .float-msdigital {
        top: 60px;
        right: 10px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    .hero h1 {
        font-size: 3.5rem;
    }
    .pills-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
    
    .float-msdigital {
        top: 85px;
        right: 30px;
        padding: 14px 24px;
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .nav a, 
    .btn, 
    .cart-icon, 
    .user-icon,
    .footer-col ul li a,
    .menu-toggle {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .btn:active {
        transform: scale(0.98);
    }
    input, 
    select, 
    textarea {
        font-size: 16px !important;
    }
}

/* ============================================
   ESTILOS PANEL ADMIN
   ============================================ */

.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px;
}

.admin-header {
    background: #000000;
    padding: 10px 0;
    border-bottom: 2px solid #e31e24;
    margin-bottom: 20px;
}

.admin-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.admin-header .logo {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.admin-header .logo i {
    font-size: 22px;
    color: #e31e24;
}

.admin-header .logo .logo-text {
    font-size: 16px;
    font-weight: 800;
    color: white;
}

.admin-header .logo .logo-text span {
    color: #e31e24;
}

.admin-header .logo .subtitle-text {
    font-size: 9px;
    color: #888;
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.admin-user-info span {
    color: white;
}

.admin-user-info i {
    color: #e31e24;
}

.admin-user-info .separator {
    color: #e31e24;
}

.admin-user-info a {
    color: #e31e24;
    text-decoration: none;
    font-size: 13px;
}

.admin-user-info a:hover {
    text-decoration: underline;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.admin-container .stat-card {
    background: #1a1a2e;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.2s;
}

.admin-container .stat-card:hover {
    transform: translateY(-2px);
}

.admin-container .stat-card i {
    font-size: 24px;
    color: #e31e24;
    margin-bottom: 5px;
}

.admin-container .stat-card h3 {
    font-size: 22px;
    color: white;
    margin: 5px 0;
}

.admin-container .stat-card p {
    color: #fff;
    font-size: 11px;
}

.nav-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.nav-tabs a {
    padding: 8px 16px;
    background: #1a1a2e;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
    font-size: 13px;
}

.nav-tabs a:hover,
.nav-tabs a.active {
    background: #e31e24;
}

.admin-container .card {
    background: #ffffff;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.admin-container .card h2 {
    color: #1a1a2e;
    margin-bottom: 15px;
    font-size: 18px;
    border-left: 3px solid #e31e24;
    padding-left: 12px;
}

.admin-container .card h2 i {
    margin-right: 8px;
    color: #e31e24;
}

.admin-container .card p {
    color: #4a627a;
    font-size: 13px;
    line-height: 1.5;
}

.admin-container .form-group {
    margin-bottom: 12px;
}

.admin-container .form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    color: #1a1a2e;
    font-size: 12px;
}

.admin-container .form-group input,
.admin-container .form-group textarea,
.admin-container .form-group select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #ffffff;
    color: #1a1a2e;
    font-size: 13px;
}

.admin-container .form-group input:focus,
.admin-container .form-group textarea:focus,
.admin-container .form-group select:focus {
    outline: none;
    border-color: #e31e24;
}

.admin-container .form-group small {
    color: #888;
    font-size: 10px;
    display: block;
    margin-top: 3px;
}

.table-responsive {
    overflow-x: auto;
}

.admin-container table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    font-size: 12px;
    border: 1px solid #e9ecef;
}

.admin-container th, 
.admin-container td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
    color: #1a1a2e;
}

.admin-container th {
    background: #1a1a2e;
    color: white;
    font-weight: 600;
    font-size: 12px;
}

.admin-container tr:hover {
    background: #f8f9fa;
}

.price {
    color: #e31e24;
    font-weight: 600;
}

.badge {
    background: #ffc107;
    color: #000;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 9px;
}

.has-files {
    color: #28a745;
    font-size: 11px;
}

.has-files i {
    font-size: 10px;
}

.no-files {
    color: #ffc107;
    font-size: 11px;
}

.no-files i {
    font-size: 10px;
}

.mensaje, .error {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 13px;
}

.mensaje {
    background: #28a745;
    color: white;
}

.error {
    background: #dc3545;
    color: white;
}

.server-limit {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 8px;
    margin-bottom: 12px;
    font-size: 11px;
    color: #856404;
}

.ftp-limit {
    border-color: #e31e24;
    background: #f8d7da;
    color: #721c24;
}

.ftp-instructions {
    background: #f0f0f0;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #1a1a2e;
}

.ftp-instructions code {
    background: #e0e0e0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
}

.ftp-card {
    background: #f8f9fa;
    border: 2px solid #e31e24;
}

.external-link-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.external-link-card h2 {
    color: white;
    border-left-color: white;
}

.external-link-card .form-group label {
    color: white;
}

.external-link-card .form-group small {
    color: rgba(255,255,255,0.7);
}

.files-grid {
    display: grid;
    gap: 10px;
}

.server-file-card, .registered-file-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
    flex-wrap: wrap;
    gap: 10px;
}

.server-file-card:hover {
    border-color: #e31e24;
    background: #fff;
}

.registered-file-card:hover {
    border-color: #28a745;
    background: #fff;
}

.external-file-card {
    border-left: 3px solid #667eea;
}

.file-info {
    flex: 1;
}

.file-name {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.file-name i {
    color: #e31e24;
    margin-right: 6px;
    font-size: 12px;
}

.file-details {
    font-size: 10px;
    color: #6c757d;
}

.file-details i {
    margin-right: 3px;
}

.file-details .size {
    color: #ffc107;
}

.file-details .type {
    color: #17a2b8;
}

.separator-dot {
    margin: 0 5px;
    color: #adb5bd;
}

.file-instructions {
    font-size: 10px;
    color: #28a745;
    margin-top: 4px;
}

.file-instructions i {
    margin-right: 4px;
}

.btn-use-file, .btn-delete-file {
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-use-file {
    background: #e31e24;
    color: white;
}

.btn-use-file:hover {
    background: #c41a1f;
}

.btn-delete-file {
    background: #dc3545;
    color: white;
    text-decoration: none;
    display: inline-block;
}

.btn-delete-file:hover {
    background: #c82333;
}

.empty-files, .empty-state {
    background: #f8f9fa;
    border: 1px dashed #dee2e6;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    color: #6c757d;
}

.empty-files i, .empty-state i {
    font-size: 36px;
    color: #adb5bd;
    margin-bottom: 10px;
}

.empty-files p, .empty-state p {
    margin: 0 0 10px 0;
    font-size: 13px;
}

.empty-hint {
    font-size: 11px !important;
    color: #888 !important;
}

.card-actions {
    margin-top: 15px;
}

.admin-role {
    color: #ffc107;
}

.user-role {
    color: #28a745;
}

.principal-badge {
    color: #888;
    font-size: 11px;
}

.btn-warning {
    background: #ffc107 !important;
    color: #000 !important;
    border: none !important;
}

.btn-warning:hover {
    background: #e0a800 !important;
}

.btn-danger {
    background: #dc3545 !important;
    color: white !important;
    border: none !important;
}

.btn-danger:hover {
    background: #c82333 !important;
}

.download-btn-external {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.external-badge {
    background: #667eea;
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 10px;
    margin-left: 8px;
    display: inline-block;
}

.file-item form input,
.file-item form input:focus {
    background: #ffffff !important;
    color: #1a1a2e !important;
    border: 1px solid #ddd !important;
}

.file-item {
    background: #f8f9fa !important;
    border-radius: 8px;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .admin-container {
        padding: 10px 12px;
    }
    .admin-header-content {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .admin-container .stat-card {
        padding: 8px;
    }
    .admin-container .stat-card h3 {
        font-size: 18px;
    }
    .admin-container .stat-card i {
        font-size: 18px;
    }
    .nav-tabs {
        justify-content: center;
    }
    .nav-tabs a {
        padding: 6px 12px;
        font-size: 11px;
    }
    .admin-container .card {
        padding: 12px;
    }
    .admin-container .card h2 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    .admin-container th, 
    .admin-container td {
        padding: 6px 8px;
        font-size: 11px;
    }
    .server-file-card, .registered-file-card {
        flex-direction: column;
        text-align: center;
    }
    .file-details {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }
    .two-columns {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .admin-container table, 
    .table-responsive {
        font-size: 10px;
    }
    .admin-container th, 
    .admin-container td {
        padding: 5px;
    }
}