/*
Theme Name: SocialBoost
Theme URI: https://smmkits.com
Author: Tu Nombre
Author URI: https://smmkits.com
Description: Tema especializado para la venta de servicios de redes sociales
Version: 1.0
Text Domain: socialboost
*/

/* Estilos generales */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f8fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header reorganizado */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header-left {
    display: flex;
    align-items: center;
    flex: 1;
}

.header-right {
    display: flex;
    align-items: center;
}

/* Header profesional con gradiente y efectos */
.header {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    color: white;
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo a {
    text-decoration: none;
}

.logo-text {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.multicolor-text {
    background: linear-gradient(90deg, #ff8a00, #e52e71, #5e50ff, #00b4ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient-shift 5s ease infinite;
    background-size: 300% 300%;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.tagline {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: -3px;
    font-weight: 300;
}

.main-navigation .nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
}

.main-navigation .nav-menu li {
    position: relative;
}

.main-navigation .nav-menu a {
    color: white;
    text-decoration: none;
    padding: 8px 5px;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.main-navigation .nav-menu a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff8a00, #e52e71);
    transition: width 0.3s ease;
}

.main-navigation .nav-menu a:hover:after {
    width: 100%;
}

/* Ajustes para los botones de usuario */
.user-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wallet-container {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    min-width: auto;
}

.wallet-container:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.wallet-icon {
    margin-right: 6px;
    display: flex;
    align-items: center;
}

.wallet-icon svg {
    width: 16px;
    height: 16px;
    fill: white;
}

.wallet-balance {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.user-actions a {
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.login-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.register-btn {
    background: linear-gradient(90deg, #ff8a00, #e52e71);
    box-shadow: 0 4px 15px rgba(229, 46, 113, 0.3);
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 46, 113, 0.4);
}

.logout-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Contenido principal */
.main-content {
    min-height: calc(100vh - 150px);
    padding: 20px 0;
}

/* Menú móvil - botón de cerrar */
.mobile-menu-close {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    z-index: 1000;
}

.mobile-menu-close svg {
    width: 24px;
    height: 24px;
}

/* Menú móvil */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Estilos responsivos mejorados */
@media (max-width: 992px) {
    .header-content {
        flex-direction: row;
        text-align: left;
        gap: 0;
    }
    
    .header-left {
        justify-content: space-between;
        width: 100%;
    }
    
    .logo-container {
        align-items: flex-start;
    }
    
    .main-navigation {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        height: 100vh;
        background: linear-gradient(135deg, #1a2a6c, #b21f1f);
        transition: left 0.3s ease;
        z-index: 1000;
        padding: 60px 20px 20px;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    }
    
    .main-navigation.active {
        left: 0;
    }
    
    .mobile-menu-close {
        display: block;
    }
    
    .main-navigation .nav-menu {
        flex-direction: column;
        gap: 0;
        margin-top: 20px;
    }
    
    .main-navigation .nav-menu li {
        width: 100%;
        margin: 0;
    }
    
    .main-navigation .nav-menu a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 1.1rem;
    }
    
    .header-right {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        order: 2;
    }
    
    .user-actions {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    
    .wallet-container, .user-actions a {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .logo-text {
        font-size: 1.8rem;
    }
    
    .tagline {
        font-size: 0.8rem;
    }
    
    .main-navigation {
        width: 100%;
    }
}

/* Para mostrar los botones de usuario en desktop pero ocultar en móvil */
@media (min-width: 993px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* Asegurar que el contenido no se desplace cuando el menú está abierto */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Resto de estilos (se mantienen igual) */
.socialboost-order-form {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

button {
    background: #6e8efb;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    margin-right: 10px;
    transition: background 0.3s;
}

button:hover {
    background: #5a7de4;
}

button.prev-step {
    background: #95a5a6;
}

button.prev-step:hover {
    background: #7f8c8d;
}

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
}

.cost-calculation {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
}

.order-summary p {
    margin: 10px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

.success-message {
    background: 'd4edda';
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 30px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-nav {
    margin-bottom: 20px;
}

.footer-nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-nav li {
    margin: 0 10px;
}

.footer-nav a {
    color: white;
    text-decoration: none;
}

.copyright {
    margin-top: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Estilos para WooCommerce */
.woocommerce {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.woocommerce-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Grid de 2 columnas para menú móvil */
@media (max-width: 992px) {
    .main-navigation .nav-menu {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-top: 20px;
    }
    
    .main-navigation .nav-menu li {
        margin: 0;
        width: 100%;
    }
    
    .main-navigation .nav-menu a {
        display: block;
        padding: 12px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        text-align: center;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(5px);
        font-size: 0.9rem;
        border-bottom: none;
        transition: all 0.3s ease;
    }
    
    .main-navigation .nav-menu a:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
    }
    
    /* Contenedor para el botón de logout móvil */
    .mobile-logout-container {
        grid-column: 1 / -1;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .mobile-logout-btn {
        display: block;
        background: linear-gradient(90deg, #ff4757, #ff3742);
        color: white;
        text-decoration: none;
        padding: 12px;
        border-radius: 8px;
        text-align: center;
        font-weight: 600;
        transition: all 0.3s ease;
        border: none;
        width: 100%;
    }
    
    .mobile-logout-btn:hover {
        background: linear-gradient(90deg, #ff3742, #ff2e3b);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(255, 55, 66, 0.3);
    }
    
    /* Ocultar el balance del wallet en el header en móvil */
    .mobile-wallet {
        display: none;
    }
}

/* Asegurar que los elementos del menú se distribuyan bien en el grid */
@media (max-width: 992px) and (min-width: 577px) {
    .main-navigation .nav-menu {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

/* Ajustes para pantallas muy pequeñas */
@media (max-width: 576px) {
    .main-navigation .nav-menu {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .main-navigation .nav-menu a {
        padding: 10px 8px;
        font-size: 0.85rem;
    }
}

/* Mostrar el botón de logout móvil solo en móvil */
@media (min-width: 993px) {
    .mobile-logout-container {
        display: none;
    }
}

/* Estilos para el contenedor de autenticación móvil */
.mobile-auth-container {
    grid-column: 1 / -1;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Botón de Google para login móvil */
.google-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: #757575;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.google-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #4285F4;
    color: #4285F4;
}

.google-login-btn svg {
    flex-shrink: 0;
}

/* Ajustes específicos para el botón de Google en móvil */
@media (max-width: 992px) {
    .mobile-auth-container {
        grid-column: 1 / -1;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .google-login-btn {
        background: white;
        color: #757575;
        border: 2px solid #e0e0e0;
        font-weight: 600;
        font-size: 0.9rem;
    }
    
    .google-login-btn:hover {
        border-color: #4285F4;
        color: #4285F4;
        background: #f8f9ff;
    }
}

/* Ajustes para pantallas muy pequeñas */
@media (max-width: 576px) {
    .google-login-btn {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .google-login-btn svg {
        width: 16px;
        height: 16px;
        margin-right: 8px;
    }
}

/* Ocultar el contenedor de autenticación móvil en desktop */
@media (min-width: 993px) {
    .mobile-auth-container {
        display: none;
    }
}

/* Mantener los estilos existentes del botón de logout móvil */
.mobile-logout-btn {
    display: block;
    background: linear-gradient(90deg, #ff4757, #ff3742);
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
}

.mobile-logout-btn:hover {
    background: linear-gradient(90deg, #ff3742, #ff2e3b);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 55, 66, 0.3);
}

/* Páginas de Login y Registro Personalizadas */
.custom-login-page,
.custom-register-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container,
.register-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    position: relative;
    overflow: hidden;
}

.login-container::before,
.register-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff8a00, #e52e71, #5e50ff, #00b4ff);
}

.login-header,
.register-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo,
.register-logo {
    text-decoration: none;
    display: block;
    margin-bottom: 20px;
}

.login-header h1,
.register-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
}

.login-header p,
.register-header p {
    color: #718096;
    font-size: 1rem;
}

/* Formularios */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
    font-size: 0.9rem;
}

.form-group .input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f7fafc;
}

.form-group .input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.remember-me {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #4a5568;
}

.remember-me input {
    margin-right: 8px;
}

.lost-password {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.lost-password:hover {
    color: #5a67d8;
    text-decoration: underline;
}

.login-submit,
.register-submit {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.login-submit:hover,
.register-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

/* Separadores sociales */
.social-login-separator,
.social-register-separator {
    text-align: center;
    margin: 25px 0;
    position: relative;
    color: #a0aec0;
    font-size: 0.9rem;
}

.social-login-separator::before,
.social-register-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
    z-index: 1;
}

.social-login-separator span,
.social-register-separator span {
    background: white;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

/* Botones sociales */
.social-login-buttons,
.social-register-buttons {
    margin-bottom: 25px;
}

.social-login-buttons .nsl-container,
.social-register-buttons .nsl-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-login-buttons .nsl-button,
.social-register-buttons .nsl-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 12px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    border: 2px solid #e2e8f0 !important;
    background: white !important;
    color: #4a5568 !important;
}

.social-login-buttons .nsl-button:hover,
.social-register-buttons .nsl-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
    border-color: #667eea !important;
}

/* Mensajes de error y éxito */
.login-error,
.register-error {
    background: #fed7d7;
    color: #c53030;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #f56565;
    font-size: 0.9rem;
}

.register-success {
    background: #c6f6d5;
    color: #2f855a;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #48bb78;
    font-size: 0.9rem;
}

/* Footer de login/register */
.login-footer,
.register-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    color: #718096;
}

.login-footer a,
.register-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.login-footer a:hover,
.register-footer a:hover {
    text-decoration: underline;
}

.privacy-text {
    font-size: 0.8rem;
    color: #718096;
    text-align: center;
    margin-bottom: 20px;
}

.privacy-text a {
    color: #667eea;
    text-decoration: none;
}

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

.registration-closed {
    background: #fed7d7;
    color: #c53030;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .login-container,
    .register-container {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .login-header h1,
    .register-header h1 {
        font-size: 1.7rem;
    }
    
    .form-options {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

.login-info {
    background: #bee3f8;
    color: #2c5282;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #4299e1;
    font-size: 0.9rem;
}