/* ESTILOS GENERALES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #060b14;
    background-image: radial-gradient(circle at 50% 0%, #1a2333 0%, #060b14 60%);
    background-attachment: fixed;
    color: #ffffff;
    overflow-x: hidden;
    padding-bottom: 90px; /* Espacio para que la barra fija no tape nada */
}

/* =========================================
   MENÚ DE NAVEGACIÓN FIJO (ARRIBA)
   ========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    background: rgba(248, 250, 252, 0.95); 
    backdrop-filter: blur(10px); 
    position: fixed; 
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 60px; 
    width: auto;
    display: block;
    transition: transform 0.3s;
}

.logo-img:hover {
    transform: scale(1.05); 
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 35px;
}

.nav-links a {
    text-decoration: none;
    color: #334155; 
    font-size: 15px;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #6366f1; 
}

.btn-nav {
    background: transparent;
    color: #334155;
    border: 2px solid #cbd5e1;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-nav:hover {
    border-color: #6366f1;
    color: #6366f1;
}

/* =========================================
   SECCIÓN 1: INICIO (HERO)
   ========================================= */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 160px 5% 40px 5%; 
    position: relative;
}

.hero-content {
    max-width: 800px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.hero-logo {
    height: 130px; 
    width: auto;
    margin-bottom: 25px;
    filter: drop-shadow(0px 0px 15px rgba(99, 102, 241, 0.2)); 
    animation: float 6s ease-in-out infinite; 
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

h1 {
    font-size: 65px;
    line-height: 1.15;
    margin-bottom: 25px;
    font-weight: 800;
}

.highlight {
    color: transparent;
    background: linear-gradient(90deg, #6366f1, #a855f7);
    -webkit-background-clip: text; 
}

p {
    color: #94a3b8;
    font-size: 19px;
    margin-bottom: 35px;
    line-height: 1.6;
    max-width: 650px; 
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-primary {
    background: linear-gradient(90deg, #6366f1, #a855f7);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    border-color: #a855f7;
    background: rgba(168, 85, 247, 0.1);
}

.glow-circle {
    width: 600px;
    height: 600px;
    background: #6366f1;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.15;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none; 
}

/* =========================================
   SEPARADOR DE SECCIONES NEÓN
   ========================================= */
.section-divider {
    width: 60%;
    height: 2px;
    margin: 30px auto;
    background: linear-gradient(90deg, transparent, #6366f1, transparent);
    box-shadow: 0px 5px 20px rgba(99, 102, 241, 0.6);
}

/* =========================================
   TÍTULOS DE SECCIÓN
   ========================================= */
.section-title {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 50px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
    text-align: center;
}

/* =========================================
   SECCIÓN 2: PLANES Y VITRINA 3D REALISTA
   ========================================= */
.planes-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 5% 80px 5%;
    position: relative;
    z-index: 10;
}

.carousel-container {
    width: 100%;
    height: 270px;
    perspective: 1200px; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-spinner {
    position: relative;
    width: 290px;
    height: 240px; 
    transform-style: preserve-3d;
    animation: spinCarousel 18s infinite cubic-bezier(0.77, 0, 0.175, 1); 
}

@keyframes spinCarousel {
    0%, 25% { transform: rotateX(-8deg) translateZ(-340px) rotateY(0deg); }
    33%, 58% { transform: rotateX(-8deg) translateZ(-340px) rotateY(-120deg); }
    66%, 91% { transform: rotateX(-8deg) translateZ(-340px) rotateY(-240deg); }
    100% { transform: rotateX(-8deg) translateZ(-340px) rotateY(-360deg); }
}

.plan-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 290px;
    height: 240px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    text-align: left;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    backface-visibility: hidden; 
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
}

.plan-card.pro { transform: rotateY(0deg) translateZ(340px); border-color: rgba(99, 102, 241, 0.4); }
.plan-card.ultra { transform: rotateY(120deg) translateZ(340px); border-color: rgba(168, 85, 247, 0.6); box-shadow: 0 0 25px rgba(168, 85, 247, 0.15); }
.plan-card.diamond { transform: rotateY(240deg) translateZ(340px); border-color: rgba(6, 182, 212, 0.4); }

.plan-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    text-align: center;
    letter-spacing: 2px;
}

.plan-card.pro h3 { color: #818cf8; }
.plan-card.ultra h3 { color: #c084fc; }
.plan-card.diamond h3 { color: #22d3ee; }

.plan-card ul {
    list-style: none;
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 10px;
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #6366f1, #a855f7);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    color: white;
    letter-spacing: 1px;
}

.btn-plan {
    width: 100%;
    padding: 10px 0;
    border-radius: 6px;
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s;
    border: none;
    color: white;
}

.btn-pro { background: rgba(99, 102, 241, 0.2); border: 1px solid #818cf8; color: #818cf8; }
.btn-pro:hover { background: #818cf8; color: white; }

.btn-ultra { background: linear-gradient(90deg, #6366f1, #a855f7); box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4); }
.btn-ultra:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(168, 85, 247, 0.6); }

.btn-diamond { background: rgba(6, 182, 212, 0.2); border: 1px solid #22d3ee; color: #22d3ee; }
.btn-diamond:hover { background: #22d3ee; color: white; }

/* =========================================
   SECCIÓN 3: RESEÑAS (CARRUSEL HORIZONTAL)
   ========================================= */
.testimonials-section {
    padding: 20px 0 40px 0; 
    overflow: hidden;
}

.testimonial-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.testimonial-slider::before,
.testimonial-slider::after {
    content: "";
    position: absolute;
    top: 0;
    width: 15%;
    height: 100%;
    z-index: 2;
}
.testimonial-slider::before {
    left: 0;
    background: linear-gradient(to right, #060b14, transparent);
}
.testimonial-slider::after {
    right: 0;
    background: linear-gradient(to left, #060b14, transparent);
}

.testimonial-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scrollTestimonials 25s linear infinite;
}

.testimonial-slider:hover .testimonial-track {
    animation-play-state: paused;
}

@keyframes scrollTestimonials {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

.testimonial-card {
    width: 380px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 16px;
    backdrop-filter: blur(5px);
    transition: transform 0.3s, border-color 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(168, 85, 247, 0.5);
}

.stars {
    font-size: 18px;
    margin-bottom: 15px;
}

.testimonial-card p {
    font-size: 15px;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-card h4 {
    color: #ffffff;
    font-size: 17px;
    margin-bottom: 2px;
}

.testimonial-card span {
    color: #6366f1;
    font-size: 13px;
    font-weight: bold;
}

/* =========================================
   SECCIÓN 4: QUIÉNES SOMOS
   ========================================= */
.about-section {
    padding: 20px 5% 60px 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-content {
    max-width: 850px;
    text-align: center;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 40px;
    border-radius: 20px;
    box-shadow: inset 0 0 30px rgba(99, 102, 241, 0.05);
}

.about-text {
    font-size: 19px;
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.about-text:last-child {
    margin-bottom: 0;
}

.highlight-text {
    color: #a855f7;
    font-weight: 800;
    letter-spacing: 1px;
}

/* =========================================
   FOOTER (POLÍTICAS Y TÉRMINOS)
   ========================================= */
.site-footer {
    background: transparent;
    padding: 20px 5% 40px 5%; /* Padding extra abajo para separarlo de la barra fija */
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-content p {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #818cf8;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #c084fc;
    text-decoration: underline;
}

/* =========================================
   BARRA ANIMADA FIJA (ABAJO - TICKER)
   ========================================= */
.ticker-container {
    position: fixed; 
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    background: rgba(6, 11, 20, 0.95);
    border-top: 1px solid rgba(99, 102, 241, 0.4);
    padding: 16px 0;
    z-index: 1000; 
    box-shadow: 0 -5px 25px rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
}

.ticker-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: scrollTicker 20s linear infinite; 
}

.ticker-item {
    color: #cbd5e1;
    font-size: 16px;
    font-weight: 600;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.ticker-divider {
    width: 2px;
    height: 22px;
    background: linear-gradient(180deg, transparent, #6366f1, transparent);
}

@keyframes scrollTicker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

/* =========================================
   PANTALLA DE INICIAR SESIÓN (LOGIN) - DOS COLUMNAS
   ========================================= */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding-bottom: 0;
    position: relative;
}

.login-wrapper {
    display: flex;
    width: 100%;
    max-width: 1000px; /* Ancho total del cuadro dividido */
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    z-index: 10;
    margin: 20px;
    overflow: hidden; 
}

/* LADO IZQUIERDO: EL GIF Y TEXTO */
.login-visual {
    flex: 1; /* Ocupa la mitad del espacio */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(6, 11, 20, 0.6);
    padding: 40px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.login-gif {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.15); /* Sombra suave para que el GIF resalte */
    margin-bottom: 30px;
}

.visual-text {
    text-align: center;
}

.visual-text h3 {
    color: #ffffff;
    font-size: 22px;
    margin-bottom: 10px;
}

.visual-text p {
    color: #94a3b8;
    font-size: 15px;
    line-height: 1.6;
}

/* LADO DERECHO: EL FORMULARIO */
.login-container {
    flex: 1; /* Ocupa la otra mitad */
    padding: 60px 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-box {
    width: 100%;
    max-width: 360px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

/* LOGO NUEVO EN BLANCO */
.login-logo {
    height: 60px; 
    margin-bottom: 15px;
    transition: transform 0.3s;
}

.login-logo:hover {
    transform: scale(1.05);
}

.login-header h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
}

.login-header p {
    color: #94a3b8;
    font-size: 14px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 13px;
    color: #cbd5e1;
    font-weight: 600;
}

.input-group input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 14px;
    border-radius: 8px;
    color: white;
    font-size: 15px;
    outline: none;
    transition: all 0.3s;
}

.input-group input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
    background: rgba(0, 0, 0, 0.5);
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.login-options label {
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.forgot-pass {
    color: #818cf8;
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-pass:hover {
    color: #c084fc;
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    margin-top: 10px;
    padding: 16px; 
}

.login-footer {
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
    color: #94a3b8;
}

.login-footer a {
    color: #6366f1;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s;
}

.login-footer a:hover {
    color: #a855f7;
}

/* RESPONSIVO: Oculta el GIF en celulares para que solo quede el login */
@media (max-width: 800px) {
    .login-wrapper {
        flex-direction: column;
    }
    .login-visual {
        display: none; 
    }
    .login-container {
        padding: 40px 20px;
    }
}

/* =========================================
   DASHBOARD / PANEL DE CONTROL
   ========================================= */
.dashboard-layout {
    display: flex;
    background-color: #060b14;
    min-height: 100vh;
    padding-bottom: 0;
}

/* MENÚ LATERAL (SIDEBAR) */
.sidebar {
    width: 260px;
    background: rgba(15, 23, 42, 0.95);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.sidebar-logo {
    padding: 30px 20px;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
    flex-grow: 1;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu a {
    display: block;
    padding: 15px 25px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
}

.sidebar-menu a:hover, .sidebar-menu li.active a {
    background: rgba(99, 102, 241, 0.1);
    color: #818cf8;
    border-left: 4px solid #6366f1;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.logout-btn {
    display: block;
    text-align: center;
    padding: 12px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: #ef4444;
    color: white;
}

/* CONTENIDO PRINCIPAL */
.main-content {
    flex-grow: 1;
    margin-left: 260px; /* Compensa el ancho del sidebar */
    padding: 40px;
    position: relative;
    z-index: 10;
}

/* BARRA SUPERIOR */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.topbar-welcome h2 {
    font-size: 28px;
    color: #ffffff;
    margin-bottom: 5px;
}

.topbar-welcome p {
    color: #94a3b8;
    font-size: 15px;
}

.topbar-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(16, 185, 129, 0.1);
    padding: 10px 20px;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.topbar-profile span {
    color: #10b981;
    font-weight: bold;
    font-size: 14px;
}

/* TARJETAS DE ESTADÍSTICAS (ESTILO CRYPTO/DASHBOARD) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s, border-color 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.4);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
}

.stat-icon.calls { background: rgba(99, 102, 241, 0.2); border: 1px solid #6366f1; }
.stat-icon.whatsapp { background: rgba(16, 185, 129, 0.2); border: 1px solid #10b981; }
.stat-icon.bookings { background: rgba(168, 85, 247, 0.2); border: 1px solid #a855f7; }
.stat-icon.orders { background: rgba(245, 158, 11, 0.2); border: 1px solid #f59e0b; }

.stat-info h3 {
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 5px;
}

.stat-info p {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
}

/* TABLA DE ACTIVIDAD RECIENTE */
.activity-section {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 25px;
    backdrop-filter: blur(10px);
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.activity-header h3 {
    font-size: 18px;
    color: #ffffff;
}

.btn-small {
    padding: 8px 16px;
    font-size: 13px;
}

.table-container {
    width: 100%;
    overflow-x: auto;
}

.activity-table {
    width: 100%;
    border-collapse: collapse;
}

.activity-table th {
    text-align: left;
    padding: 15px;
    color: #64748b;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.activity-table td {
    padding: 15px;
    color: #cbd5e1;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.activity-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.badge.success { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.badge.warning { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.badge.info { background: rgba(56, 189, 248, 0.2); color: #38bdf8; }