/**
 * Estilos para panel de usuario
 */

.auth-container {
    max-width: 500px;
    margin: 50px auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.auth-container h1 {
    margin-bottom: 30px;
    text-align: center;
    color: #007bff;
}

.text-center {
    text-align: center;
    margin-top: 20px;
}

.text-center a {
    color: #007bff;
    text-decoration: none;
}

.resend-container {
    margin-top: 20px;
    text-align: center;
}

.resend-container button {
    margin-top: 10px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.dashboard-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dashboard-card h2 {
    margin-bottom: 15px;
    color: #007bff;
}

.points-display {
    font-size: 36px;
    font-weight: bold;
    color: #007bff;
    margin: 20px 0;
}

.profile-container {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

.profile-container hr {
    margin: 30px 0;
    border: none;
    border-top: 1px solid #ddd;
}

.orders-list {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.filters {
    margin-bottom: 20px;
}

.filters select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.points-balance {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    margin-bottom: 30px;
}

.balance-display {
    font-size: 48px;
    font-weight: bold;
    color: #007bff;
    margin: 20px 0;
}

.rewards-section,
.history-section {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.reward-card {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
}

.reward-card h3 {
    margin-bottom: 10px;
    color: #007bff;
}

.points-cost {
    font-size: 18px;
    font-weight: bold;
    color: #007bff;
    margin: 10px 0;
}

.redeem-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.positive {
    color: #28a745;
}

.negative {
    color: #dc3545;
}

/* Estilos para página de Cuenta */
.account-header {
    text-align: center;
    margin: 40px 0;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.profile-icon-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.profile-icon-large {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #007bff;
}

.profile-icon-large svg {
    width: 100%;
    height: 100%;
}

.btn-icon-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: background 0.3s;
}

.btn-icon-edit:hover {
    background: #0056b3;
}

.points-display-container {
    margin-top: 20px;
}

.points-number {
    font-size: 48px;
    font-weight: bold;
    color: #007bff;
    cursor: pointer;
    transition: color 0.3s;
}

.points-number:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover {
    color: #000;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.icon-select-btn {
    background: #f8f9fa;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-select-btn:hover {
    border-color: #007bff;
    background: #e7f3ff;
}

.icon-select-btn svg {
    width: 60px;
    height: 60px;
}

/* Menú de cuenta con tarjetas */
.account-menu-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.account-menu-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px 30px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.account-menu-card:hover {
    border-color: #007bff;
    background: #f0f7ff;
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 123, 255, 0.15);
}

.account-menu-card:active {
    transform: translateY(-2px);
}

.account-menu-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.account-menu-card h3 {
    margin: 0;
    color: #007bff;
    font-size: 18px;
    font-weight: 600;
    flex: 1;
}

.account-menu-card p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Tabs de navegación (mantenido para compatibilidad) */
.account-tabs {
    display: flex;
    gap: 10px;
    margin: 30px 0;
    border-bottom: 2px solid #ddd;
}

.tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    transition: all 0.3s;
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: #007bff;
    background: #f8f9fa;
}

.tab-btn.active {
    color: #007bff;
    border-bottom-color: #007bff;
    font-weight: 600;
}

/* Secciones de contenido */
.account-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.account-section {
    display: none;
}

.account-section.active {
    display: block;
}

.account-section h2 {
    margin-bottom: 30px;
    color: #007bff;
}

.profile-form-container {
    max-width: 600px;
}

/* Formas de pago */
.payment-methods-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.payment-method-card {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f8f9fa;
}

.payment-method-card h3 {
    margin-bottom: 10px;
    color: #007bff;
}

.balance-amount {
    font-size: 32px;
    font-weight: bold;
    color: #28a745;
    margin: 10px 0;
}

/* Notificaciones */
.notifications-container {
    max-width: 600px;
}

.notification-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #ddd;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-info h3 {
    margin-bottom: 5px;
    color: #333;
}

.notification-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #007bff;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* Ayuda */
.help-links-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.help-link-card {
    display: block;
    padding: 25px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    background: #f8f9fa;
}

.help-link-card:hover {
    border-color: #007bff;
    background: #e7f3ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.help-link-card h3 {
    margin-bottom: 10px;
    color: #007bff;
}

.help-link-card p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Modal de premios */
.rewards-grid-modal {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

/* Contenido de modales */
.profile-icon-modal-content,
.points-modal-content,
.profile-modal-content,
.payment-modal-content,
.notifications-modal-content,
.help-modal-content {
    padding: 10px 0;
}

.points-modal-content .points-balance {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Estilos para páginas de ayuda */
.help-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 900px;
    margin: 0 auto;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.contact-method-card {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f8f9fa;
}

.contact-method-card h3 {
    margin-bottom: 10px;
    color: #007bff;
}

.contact-method-card a {
    color: #007bff;
    text-decoration: none;
}

.contact-method-card a:hover {
    text-decoration: underline;
}

.contact-form-container {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}

.faq-section {
    margin-bottom: 40px;
}

.faq-section h2 {
    color: #007bff;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

.faq-item {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.faq-item h3 {
    margin-bottom: 10px;
    color: #333;
}

.faq-item p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

.terms-content,
.privacy-content {
    line-height: 1.8;
}

.terms-content h2,
.privacy-content h2 {
    color: #007bff;
    margin-top: 30px;
    margin-bottom: 15px;
}

.terms-content h2:first-child,
.privacy-content h2:first-child {
    margin-top: 0;
}

.terms-content ul,
.privacy-content ul {
    margin: 10px 0;
    padding-left: 30px;
}

.terms-content li,
.privacy-content li {
    margin-bottom: 8px;
}

.terms-content a,
.privacy-content a {
    color: #007bff;
    text-decoration: none;
}

.terms-content a:hover,
.privacy-content a:hover {
    text-decoration: underline;
}

.back-link {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    background: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: #5a6268;
    color: white;
}

