@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #dd3333;
    --primary-hover: #ff4444;
    --bg-dark: rgba(5, 5, 5, 0.85);
    --glass-bg: rgba(15, 15, 15, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-primary: #f9f9f9;
    --text-secondary: #a0a0a0;
    --glass-blur: blur(16px);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    background: linear-gradient(135deg, #fff, #a0a0a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2.5rem;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

/* Layout */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Video Background */
#video-wrapper {
    position: fixed;
    top: -10vh;
    left: 0;
    width: 100%;
    height: 120vh;
    z-index: -2;
    background: #000;
    overflow: hidden;
    will-change: transform;
}

#video-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Darken video */
    z-index: 1;
}

#player, #video-container-mobile iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    pointer-events: none;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar .container {
    max-width: 1600px; /* Expande el menú en pantallas grandes */
    width: 96%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 12px;
}

.logo-container img {
    width: 45px;
    height: 45px;
    border-radius: 12px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.company-name {
    font-size: min(1.1rem, 1.4vw);
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

.company-tagline {
    font-size: min(0.8rem, 0.9vw);
    color: var(--primary);
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: max(2px, 0.6vw);
    list-style: none;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: min(15px, 1vw);
    font-weight: 500;
    padding: 6px min(12px, 0.6vw);
    border-radius: 6px;
    white-space: nowrap;
    letter-spacing: -0.2px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.cpanel-btn {
    background: rgba(255, 108, 44, 0.15) !important;
    color: #ff6c2c !important;
    border: 1px solid rgba(255, 108, 44, 0.3);
    font-weight: 600 !important;
}

.cpanel-btn:hover {
    background: rgba(255, 108, 44, 0.3) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 108, 44, 0.2);
}

/* Navigation Dropdowns */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-dropdown-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    top: 100%;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 180px;
    list-style: none;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu li {
    width: 100%;
}

.nav-dropdown-menu a {
    padding: 10px 20px;
    color: var(--text-secondary);
    display: block;
    width: 100%;
    text-align: left;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

/* Language Dropdown */
.lang-dropdown {
    position: relative;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    padding: 8px 12px;
}

.lang-btn img {
    width: 20px;
    border-radius: 2px;
}

.lang-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 140px;
    display: none;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

.lang-dropdown:hover .lang-menu {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.lang-menu a {
    padding: 10px 20px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.lang-menu img {
    width: 20px;
    border-radius: 2px;
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Content Sections */
.main-content {
    margin-top: 100vh; /* Start below the full screen video */
    background: var(--bg-dark);
    position: relative;
    z-index: 10;
}

section {
    padding: 100px 0;
    border-bottom: 1px solid var(--glass-border);
}

.section-glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 40px;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Service Cards */
.card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(221, 51, 51, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(221, 51, 51, 0.1);
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card h3 i {
    color: var(--primary);
    font-size: 1.6rem;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    flex-grow: 1;
}

/* Domain Search */
.text-center {
    text-align: center;
}

/* Landing Page New Layouts */
.hero-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 100px);
    text-align: center;
    padding: 0 20px;
    margin-top: -50px;
}

.hero-section h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #f0f0f0, #a0a0a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    max-width: 900px;
}

.hero-section p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
    padding: 40px 0;
}

.metric-item {
    padding: 20px;
    border-right: 1px solid var(--glass-border);
}

.metric-item:last-child {
    border-right: none;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.metric-label {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

/* Pricing Plans */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.plan-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(221, 51, 51, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.plan-card.featured {
    background: linear-gradient(180deg, rgba(221, 51, 51, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: var(--primary);
    transform: scale(1.05);
}

.plan-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
}

.plan-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
}

.plan-price {
    text-align: center;
    margin-bottom: 20px;
}

.plan-currency {
    font-size: 1.2rem;
    vertical-align: top;
    color: var(--text-secondary);
}

.plan-amount {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
}

.plan-period {
    color: var(--text-secondary);
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 20px 0 30px;
    flex-grow: 1;
}

.plan-features li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.plan-features li i.fa-check {
    color: #10b981;
}

.plan-features li i.fa-minus {
    color: #ef4444;
}

.plan-cta {
    margin-top: auto;
}

.domain-search-container h2 {
    margin-bottom: 10px;
}

.domain-search-container p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.domain-form {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
}

.input-group {
    display: flex;
    width: 100%;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.input-group:focus-within {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(221, 51, 51, 0.15);
}

.input-group input {
    flex-grow: 1;
    padding: 15px 25px;
    border-radius: 12px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 1.1rem;
    outline: none;
    width: 100%;
}

.input-group .btn-primary {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 12px;
}

.domain-result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.domain-result.success {
    display: block;
    background: rgba(46, 213, 115, 0.1);
    color: #2ed573;
    border: 1px solid rgba(46, 213, 115, 0.3);
}

.domain-result.error {
    display: block;
    background: rgba(255, 71, 87, 0.1);
    color: #ff4757;
    border: 1px solid rgba(255, 71, 87, 0.3);
}

.domain-result.loading {
    display: block;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .input-group {
        flex-direction: column;
    }
    .input-group .btn-primary {
        width: 100%;
        justify-content: center;
    }
}

/* Contact List */
.contact-list {
    list-style: none;
}

.contact-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-list i {
    color: var(--primary);
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

/* Footer */
footer {
    background: #000;
    padding: 40px 0;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
    border-color: var(--primary);
}

.server-status {
    margin-top: 5px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
}

.server-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.server-link:hover {
    color: var(--text-primary);
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.server-status span {
    font-weight: 600;
}

.status-online {
    color: #2ed573 !important;
}

.status-offline {
    color: #ff4757 !important;
}

/* Terms Popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: #111;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: var(--transition);
}

.popup-overlay.active .popup-content {
    transform: translateY(0);
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}

.popup-close:hover {
    color: var(--primary);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 20px;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* No extra scale down needed here, the clamp handles it dynamically all the way down */

@media (max-width: 992px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 76px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 76px);
        background: var(--bg-dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
    }

    .nav-links.active {
        left: 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .footer-right {
        align-items: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .section-glass {
        padding: 25px;
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: #fff;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 2px 2px 20px rgba(37, 211, 102, 0.6);
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 25px;
        right: 25px;
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
}

/* Light Theme Overrides */
body.light-theme {
    --bg-dark: #f4f6f8;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.1);
    --text-primary: #111827;
    --text-secondary: #4b5563;
    background-color: var(--bg-dark);
    color: var(--text-primary);
}

body.light-theme .navbar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-theme .nav-dropdown-menu,
body.light-theme .lang-menu {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body.light-theme .hero-section h1 {
    background: linear-gradient(135deg, #111827, #374151, #4b5563);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-theme .metric-item {
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .plan-card,
body.light-theme .card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .plan-card:hover,
body.light-theme .card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 0 20px rgba(221, 51, 51, 0.1);
}

body.light-theme .app-topbar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-theme .sidebar {
    background: #ffffff;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-theme .stat-card,
body.light-theme .table-container,
body.light-theme .detail-panel {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-theme .data-table th {
    background: rgba(0, 0, 0, 0.03);
}

body.light-theme .data-table td {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-theme .data-table tr:hover td {
    background: rgba(0, 0, 0, 0.02);
}

body.light-theme .input-group {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .btn-secondary {
    background: #f3f4f6;
    color: #111827;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .btn-secondary:hover {
    background: #e5e7eb;
}