/* Login page styles */
.login-page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 120px);
    padding: 20px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
}

.login-title {
    color: #333;
    font-size: 24px;
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #333;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.form-group input:focus {
    outline: none;
    border-color: #00bcd4;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: #00bcd4;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.3s ease;
    margin-bottom: 15px;
}

.btn-login:hover {
    background: #00a5bb;
}

.login-actions {
    text-align: center;
    margin-top: 20px;
}

.btn-cancel {
    display: inline-block;
    padding: 10px 30px;
    background: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background 0.3s ease;
}

.btn-cancel:hover {
    background: #5a6268;
}

.error-container {
    background: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    margin: 50px auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.error-message {
    color: #e74c3c;
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.5;
}

.btn-return {
    display: inline-block;
    padding: 12px 30px;
    background: #00bcd4;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background 0.3s ease;
}

.btn-return:hover {
    background: #00a5bb;
}

/* Error page specific */
.error-page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 120px);
    padding: 20px;
}

@media (max-width: 768px) {
    .error-page-container {
        min-height: calc(100vh - 80px);
        padding-top: 40px;
    }
    
    .error-container {
        margin: 20px auto;
        padding: 30px 20px;
    }
}
/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #1e1e5e 0%, #4040a1 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Wrapper principal para todo el contenido excepto el footer */
.page-wrapper {
    display: flex;
    flex: 1;
}

/* Sidebar styles */
.sidebar {
    width: 300px;
    background: #1a1a4a;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 900;
}

.logo {
    width: 120px;
    height: 120px;
    margin-bottom: 30px;
}

.company-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 40px;
    letter-spacing: 3px;
}

.btn-session {
    background: #00bcd4;
    color: #1a1a4a;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 40px;
    text-transform: uppercase;
    width: 90%;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.welcome-user {
    color: #00bcd4;
    font-size: 16px;
    margin-bottom: 20px;
    text-align: center;
}

.nav-section {
    width: 100%;
    margin-bottom: 30px;
}

.nav-item {
    display: block;
    color: #c5c5d9;
    text-decoration: none;
    padding: 15px 20px;
    text-align: center;
    border-bottom: 2px solid #00bcd4;
    text-transform: uppercase;
    font-size: 13px;
    transition: all 0.3s ease;
}

.nav-item:hover, .nav-item.active {
    border-bottom: 2px solid #ffffff;
    color: #ffffff;
}

/* Negritas solo para opciones seleccionadas */
.nav-item.active {
    font-weight: bold;
}

/* Main content styles */
.main-content {
    margin-left: 300px;
    padding: 60px;
    flex: 1;
    overflow-y: auto;
}

.section {
    display: none;
}

.section.active {
    display: block;
}

h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

h2 {
    font-size: 36px;
    margin-bottom: 30px;
}

h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.welcome-text {
    font-size: 18px;
    margin-bottom: 10px;
}

.instruction-text {
    font-size: 16px;
    margin-bottom: 40px;
}

/* Payment methods grid */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.payment-card {
    background: white;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 270px;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.payment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.payment-card img {
    max-width: 290px;
    max-height: 190px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Contact section styles */
.contact-section {
    margin-top: 60px;
}

.email-link {
    color: #00bcd4;
    text-decoration: none;
    font-size: 18px;
    margin-bottom: 30px;
    display: inline-block;
}

.angel-mascot {
    width: 220px;
    height: 150px;
    object-fit: contain;
    margin: 30px 0;
    display: block;
}

@media (max-width: 768px) {
    .angel-mascot {
        width: 110px;
        height: 75px;
    }
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-icon {
    color: #00bcd4;
    font-size: 24px;
    text-decoration: none;
}

/* Mobile navigation */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #1a1a4a;
    padding: 10px 20px;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.mobile-logo {
    height: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-logo img {
    height: 100%;
}

.mobile-logo span {
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.hamburger {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: all 0.3s ease;
    position: relative;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    right: 0;
    width: 280px;
    height: calc(100vh - 60px);
    background: #1a1a4a;
    box-shadow: -2px 0 5px rgba(0,0,0,0.2);
    z-index: 999;
    padding: 20px;
    overflow-y: auto;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu .btn-session {
    width: 100%;
    margin-bottom: 20px;
    text-align: center;
}

.mobile-menu .nav-item {
    display: block;
    padding: 15px;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu .nav-item:hover {
    background: rgba(255,255,255,0.1);
}

.mobile-menu .welcome-user {
    text-align: center;
    margin-bottom: 15px;
    color: #00bcd4;
}

/* Responsive styles */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .mobile-header {
        display: flex;
    }

    .page-wrapper {
        flex-direction: column;
    }
    
    .main-content {
        margin-left: 0;
        padding: 80px 20px 20px;
    }

    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 28px;
    }

    .payment-methods {
        grid-template-columns: 1fr;
    }
    
    .payment-card {
        padding: 30px;
        min-height: 180px;
    }
    
    .payment-card img {
        max-width: 180px;
        max-height: 140px;
    }

    .login-page-container {
        min-height: calc(100vh - 80px);
        padding-top: 40px;
    }
}

/* Logo and company name link styles */
.logo-link {
    display: inline-block;
    text-decoration: none;
}

.logo-link:hover {
    opacity: 0.9;
}

.company-name-link {
    color: inherit;
    text-decoration: none;
    display: block;
}

.company-name-link:hover {
    color: #00bcd4;
    transition: color 0.3s ease;
}

/* Mobile logo link styles - CORRECTED */
.mobile-logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    height: 40px; /* Mantener la altura original */
}

.mobile-logo-link img {
    height: 100%; /* Asegurar que el logo use toda la altura disponible */
    width: auto; /* Mantener las proporciones */
}

.mobile-logo-link span {
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.mobile-logo-link:hover span {
    color: #00bcd4;
    transition: color 0.3s ease;
}

/* Corrección para el contenedor mobile-logo */
.mobile-logo {
    height: 40px;
}

/* Payment information display */
.payment-info {
    background-color: rgba(26, 26, 74, 0.8);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.payment-info-item {
    margin-bottom: 12px;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
}

.payment-info-label {
    font-weight: bold;
    width: 180px;
    color: #ccc;
}

.payment-info-value {
    font-size: 18px;
    color: #fff;
    font-weight: normal;
}

@media (max-width: 768px) {
    .payment-info-item {
        flex-direction: column;
    }
    
    .payment-info-label {
        width: 100%;
        margin-bottom: 4px;
    }
}

/* Login message box */
.login-box-message {
    background-color: rgba(26, 26, 74, 0.3);
    border: 2px solid white;
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.login-box-message p {
    font-size: 18px;
    margin-bottom: 20px;
    color: white;
}

/* Registration form styles */
.registro-form {
    background-color: rgba(26, 26, 74, 0.8);
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.registro-form input[type="text"],
.registro-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 16px;
}

.registro-form textarea {
    resize: vertical;
    min-height: 80px;
}

.registro-form input[type="submit"] {
    background: #00bcd4;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease;
}

.registro-form input[type="submit"]:hover {
    background: #00a5bb;
}

/* Mensaje de error y éxito en el formulario */
.registro-form .error-message {
    background-color: rgba(231, 76, 60, 0.2);
    border-left: 4px solid #e74c3c;
    padding: 12px 15px;
    color: white;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 15px;
}

.registro-form .success-message {
    background-color: rgba(76, 175, 80, 0.2);
    border-left: 4px solid #4CAF50;
    padding: 12px 15px;
    color: white;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 15px;
    font-weight: bold;
}

/* Success Page Styles */
.success-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(26, 26, 74, 0.8);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.success-icon {
    font-size: 4rem;
    color: #00bcd4;
    margin-bottom: 20px;
}
.success-message h1 {
    color: white;
    margin-bottom: 20px;
}
.points-message {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: white;
}
.points-message strong {
    color: #00bcd4;
}
.npc-reminder {
    font-style: italic;
    color: #ccc;
    margin-bottom: 30px;
}
.contact-info {
    margin: 30px 0;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.2);
    border-left: 4px solid #00bcd4;
    color: white;
}
.contact-info a {
    color: #00bcd4;
    text-decoration: none;
}
.contact-info a:hover {
    text-decoration: underline;
}
.success-actions {
    margin-top: 30px;
}
.text-center {
    text-align: center;
}
.text-right {
    text-align: right;
}

.paypal-button {
    margin: 30px 0;
    text-align: center;
}

.paypal-button p {
    margin: 0;
}

.paypal-button img {
    max-width: 250px;
    transition: transform 0.3s ease;
}

.paypal-button img:hover {
    transform: scale(1.05);
}

/* Estilos para el modal del QR */
.qr-image {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.qr-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    transition: opacity 0.3s ease;
}

.qr-modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80vh;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.qr-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1060;
}

@media (max-width: 768px) {
    .qr-image {
        cursor: default;
    }
    
    /* Ocultar modal en versión móvil */
    .qr-modal {
        display: none !important;
    }
}

/* Estilos para el footer con redes sociales */
.footer-container {
  background-color: #1a1a4a;
  padding: 40px 20px;
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  clear: both;
  position: relative;
  margin-left: 0;
}

/* En dispositivos desktop, ajustar el margen izquierdo para compensar el sidebar */
@media (min-width: 769px) {
  .footer-container {
    margin-left: 300px; /* Mismo ancho que el sidebar */
    width: calc(100% - 300px);
  }
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-social h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #fff;
}

.footer-social-icons {
  display: flex;
  gap: 25px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.footer-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: #23238e;
  color: #00e6ff;
  border-radius: 50%;
  text-decoration: none;
  font-size: 24px;
  transition: all 0.3s ease;
}

.footer-social-icon:hover {
  background-color: #00e6ff;
  color: #23238e;
  transform: translateY(-5px);
}

.footer-copyright {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
  .footer-container {
    padding: 30px 15px;
    margin-top: 40px;
    width: 100%;
    margin-left: 0;
  }
  
  .footer-social h3 {
    font-size: 18px;
  }
  
  .footer-social-icon {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
}

/* Ajuste para iconos de redes sociales */
.footer-social-icon .fab {
  font-size: 22px;
}