/* Ajustes para slider fullscreen */
.slider-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
}

/* Ajustar la navbar para que no opaque al slider */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* Añadir padding-top al body para compensar la navbar fija */
body {
    padding-top: 70px;
}

@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
}

/* Ajustar el slider para que ocupe el espacio restante */
.wowslider-container {
    margin-top: 0;
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    color: #fff;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 2rem;
    background: rgba(0, 0, 0, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: #00ff88;
    animation: spin 4s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #00ff88;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 1;
}

.glitch {
    font-size: 4rem;
    font-weight: bold;
    position: relative;
    text-shadow: 0.05em 0 0 rgba(255,0,0,0.75),
                -0.05em -0.025em 0 rgba(0,255,255,0.75),
                0.025em 0.05em 0 rgba(0,255,0,0.75);
    animation: glitch 500ms infinite;
}

@keyframes glitch {
    0% { text-shadow: 0.05em 0 0 rgba(255,0,0,0.75), -0.05em -0.025em 0 rgba(0,255,255,0.75), 0.025em 0.05em 0 rgba(0,255,0,0.75); }
    14% { text-shadow: 0.05em 0 0 rgba(255,0,0,0.75), -0.05em -0.025em 0 rgba(0,255,255,0.75), 0.025em 0.05em 0 rgba(0,255,0,0.75); }
    15% { text-shadow: -0.05em -0.025em 0 rgba(255,0,0,0.75), 0.025em 0.025em 0 rgba(0,255,255,0.75), -0.05em -0.05em 0 rgba(0,255,0,0.75); }
    49% { text-shadow: -0.05em -0.025em 0 rgba(255,0,0,0.75), 0.025em 0.025em 0 rgba(0,255,255,0.75), -0.05em -0.05em 0 rgba(0,255,0,0.75); }
    50% { text-shadow: 0.025em 0.05em 0 rgba(255,0,0,0.75), 0.05em 0 0 rgba(0,255,255,0.75), 0 -0.05em 0 rgba(0,255,0,0.75); }
    99% { text-shadow: 0.025em 0.05em 0 rgba(255,0,0,0.75), 0.05em 0 0 rgba(0,255,255,0.75), 0 -0.05em 0 rgba(0,255,0,0.75); }
    100% { text-shadow: -0.025em 0 0 rgba(255,0,0,0.75), -0.025em -0.025em 0 rgba(0,255,255,0.75), -0.025em -0.05em 0 rgba(0,255,0,0.75); }
}

.typing-text {
    font-size: 1.5rem;
    margin: 2rem 0;
    border-right: 2px solid #00ff88;
    white-space: nowrap;
    overflow: hidden;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #00ff88; }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: #00ff88;
    color: #000;
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #00ff88;
}

.btn-secondary:hover {
    background: #00ff88;
    color: #000;
}

/* Secciones */
.section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00ff88, transparent);
}

/* Grid de Sistemas */
.sistemas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.sistema-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.sistema-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.sistema-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.sistema-card:hover img {
    transform: scale(1.1);
}

.sistema-info {
    padding: 1.5rem;
}

.sistema-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #00ff88;
}

.sistema-info p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.sistema-precio {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00ff88;
}

/* Reproductor de Música */
.music-player {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
}

.player-controls {
    margin-bottom: 2rem;
}

.current-song {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.current-song img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
}

.song-info h3 {
    color: #00ff88;
    margin-bottom: 0.3rem;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.controls button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #00ff88, #00cc88);
    color: #000;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.controls button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px #00ff88;
}

.progress-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

#progress {
    width: 100%;
    height: 5px;
    -webkit-appearance: none;
    background: linear-gradient(90deg, #00ff88, #00cc88);
    border-radius: 5px;
    outline: none;
}

#progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 0 10px #00ff88;
}

.time {
    display: flex;
    justify-content: space-between;
    color: rgba(255,255,255,0.7);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.volume-control i {
    color: #00ff88;
}

#volume {
    width: 100px;
    height: 5px;
    -webkit-appearance: none;
    background: linear-gradient(90deg, #00ff88, #00cc88);
    border-radius: 5px;
    outline: none;
}

#volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

.playlist {
    max-height: 300px;
    overflow-y: auto;
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.playlist-item:hover {
    background: rgba(0, 255, 136, 0.2);
    transform: translateX(10px);
}

.playlist-item.active {
    background: linear-gradient(90deg, rgba(0,255,136,0.3), transparent);
    border-left: 3px solid #00ff88;
}

.playlist-item img {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    object-fit: cover;
}

.playlist-info h4 {
    color: #fff;
    margin-bottom: 0.2rem;
}

.playlist-info p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* TV Online */
.tv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tv-card {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.tv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,255,136,0.3);
}

.tv-card::before {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: #00ff88;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1;
}

.tv-card:hover::before {
    opacity: 1;
}

.tv-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.tv-card:hover img {
    filter: brightness(0.7);
}

.tv-info {
    padding: 1rem;
}

.tv-info h3 {
    color: #00ff88;
    margin-bottom: 0.3rem;
}

.tv-info p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border-radius: 20px;
    padding: 2rem;
    max-width: 800px;
    width: 90%;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: #00ff88;
    transform: rotate(90deg);
}

.modal-body {
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left 0.3s ease;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .glitch {
        font-size: 2.5rem;
    }
    
    .typing-text {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .section {
        padding: 3rem 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Sistemas Destacados */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 1.2rem;
    margin-top: 0.5rem;
}

.sistema-card {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sistema-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.sistema-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
}

.sistema-badge {
    background: #00ff88;
    color: #000;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
}

.sistema-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.sistema-link {
    color: #00ff88;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: gap 0.3s ease;
}

.sistema-link:hover {
    gap: 0.8rem;
}

.section-footer {
    text-align: center;
    margin-top: 3rem;
}

/* Empresas Section */
.empresas-section {
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin: 4rem auto;
    padding: 3rem;
}

.empresas-slider {
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
}

.empresas-track {
    display: flex;
    animation: scroll 30s linear infinite;
    gap: 3rem;
}

.empresas-slider:hover .empresas-track {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.empresa-item {
    flex: 0 0 auto;
    width: 150px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.empresa-item:hover {
    transform: scale(1.1);
}

.empresa-item img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.8);
    transition: all 0.3s ease;
}

.empresa-item:hover img {
    filter: grayscale(0%) brightness(1);
}

/* Footer */
.footer {
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 4rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h3 {
    color: #00ff88;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 50px;
    height: 2px;
    background: #00ff88;
}

.footer-section p {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.footer-contact i {
    color: #00ff88;
    width: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #00ff88;
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #00ff88;
    color: #000;
    transform: translateY(-3px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: rgba(255,255,255,0.5);
}

/* Admin Link */
.admin-link {
    background: linear-gradient(135deg, #00ff88, #00cc88);
    color: #000 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 50px;
    font-weight: bold;
}

.admin-link:hover::after {
    display: none;
}

.admin-link:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0,255,136,0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .empresas-section {
        padding: 2rem 1rem;
        margin: 2rem 1rem;
    }
    
    .empresa-item {
        width: 100px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-button {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #25d366 0%, #128C7E 100%);
    color: white;
    border-radius: 50%;
    border: none;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    position: relative;
    outline: none;
}

.whatsapp-button:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
    animation: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-chat {
    position: absolute;
    bottom: 90px;
    right: 0;
    width: 350px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    display: none;
    animation: slideIn 0.3s ease;
}

.whatsapp-chat.show {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-header {
    background: linear-gradient(135deg, #075e54 0%, #128C7E 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}

.chat-header i {
    font-size: 24px;
}

.close-chat {
    margin-left: auto;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-chat:hover {
    background: rgba(255,255,255,0.2);
}

.chat-body {
    padding: 20px;
    background: #e5ddd5;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path fill="%23cdb9a5" opacity="0.1" d="M50 0 L100 50 L50 100 L0 50 Z"/></svg>');
}

.chat-message {
    background: white;
    padding: 15px;
    border-radius: 15px 15px 15px 5px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
}

.chat-message p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #333;
}

.chat-message small {
    font-size: 11px;
    color: #999;
}

.chat-input-area {
    background: white;
    border-radius: 15px;
    overflow: hidden;
}

.chat-input-area textarea {
    width: 100%;
    padding: 15px;
    border: none;
    resize: none;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
}

.chat-input-area textarea:focus {
    box-shadow: inset 0 0 5px rgba(37, 211, 102, 0.3);
}

.send-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #25d366 0%, #128C7E 100%);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.3s ease;
}

.send-btn:hover {
    opacity: 0.9;
}

.send-btn i {
    font-size: 18px;
}

/* Notificación de nuevo mensaje */
.whatsapp-button::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 15px;
    height: 15px;
    background: #ff3b30;
    border-radius: 50%;
    border: 2px solid white;
    display: none;
}

.whatsapp-button.has-notification::after {
    display: block;
}

/* Responsive */
@media (max-width: 480px) {
    .whatsapp-chat {
        width: 300px;
        bottom: 85px;
    }
    
    .whatsapp-button {
        width: 60px;
        height: 60px;
        font-size: 35px;
    }
}