:root {
    --primary: #00d2ff;
    --secondary: #9d50bb;
    --bg-dark: #0a0a0c;
    --text-light: #ffffff;
    --text-muted: #b0b0b0;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent-gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, #1a1a2e 0%, #0a0a0c 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Nav */
header {
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    background: linear-gradient(to right, #ffffff, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-main);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 0.8rem;
        display: none;
        /* Hide on very small screens to save space */
    }
}

.logo img {
    height: 150px;
    /* Major increase for maximum visibility */
    width: auto;
    transition: transform 0.3s ease;
    display: block;
    margin: -15px 0;
    /* Compensation for the extra height */
}

.logo img:hover {
    transform: scale(1.1) rotate(-3deg);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
    /* Bridge the gap to the menu */
    margin-bottom: -20px;
    /* Offset the padding to prevent pushing other elements */
}

.dropdown-content {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
    /* Position right after the padding-bottom */
    background: #0f0f12;
    min-width: 220px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
    z-index: 9999;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    overflow: hidden;
    padding: 8px 0;
}

.dropdown-content a {
    color: var(--text-muted);
    padding: 15px 25px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
    padding-left: 35px;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: dropdownFadeIn 0.2s ease forwards;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    /* Changed from fixed height to min-height */
    display: flex;
    align-items: flex-start;
    /* Align to top instead of center to prevent overlap */
    justify-content: center;
    text-align: center;
    padding: 100px 0;
    /* Baseline padding */
}

.hero-image-container {
    margin-top: 100px;
    /* Reduced to 100px as requested */
    margin-bottom: 4rem;
    perspective: 1000px;
}

.hero-main-img {
    width: 100%;
    max-width: 850px;
    /* Increased size */
    height: auto;
    border-radius: 20px;
    border: 2px solid var(--glass-border);
    box-shadow: 0 0 60px rgba(0, 210, 255, 0.4),
        0 0 30px rgba(157, 80, 187, 0.3);
    animation: float 6s ease-in-out infinite;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.hero-main-img:hover {
    transform: rotateX(5deg) scale(1.02);
    box-shadow: 0 0 70px rgba(0, 210, 255, 0.5),
        0 0 30px rgba(157, 80, 187, 0.4);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(1deg);
    }
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.cta-btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: var(--accent-gradient);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    display: inline-block;
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.facebook-btn {
    background: linear-gradient(135deg, #1877F2, #0C5EBF);
}

.cta-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    filter: brightness(1.1);
}

/* Sections General */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-muted);
}

/* Cards (Subscriptions & Developments) */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    padding: 2rem;
    border-radius: 20px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
    overflow: hidden;
}

.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-bottom: 1px solid var(--glass-border);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-subtitle {
    color: var(--primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.service-description {
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.service-footer {
    margin-top: auto;
}

.service-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hire-btn {
    text-align: center;
    width: 100%;
}

.info-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 0.8rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.info-btn:hover {
    background: var(--glass border);
    color: white;
    border-color: var(--primary);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    overflow-y: auto;
    /* Enable vertical scroll for long content */
    padding: 20px 0;
}

.modal-content {
    background: var(--bg-dark);
    margin: 10% auto;
    padding: 3rem;
    border: 1px solid var(--glass-border);
    width: 80%;
    max-width: 600px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 210, 255, 0.2);
    white-space: pre-wrap;
    /* Preserve line breaks from database */
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 30px;
    cursor: pointer;
    color: var(--text-muted);
}

.close-btn:hover {
    color: white;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: block;
    color: var(--text-light);
}

/* Desarrollos Section */
.dev-flex {
    display: flex;
    align-items: flex-start;
    /* Better for longer text on right */
    gap: 3rem;
    background: var(--glass);
    padding: 3rem;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.dev-image {
    flex: 1;
}

/* Video Container Futurista */
.video-container {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 0 40px rgba(0, 210, 255, 0.3),
        0 0 80px rgba(157, 80, 187, 0.2);
    aspect-ratio: 16 / 9;
    background: #000;
}

.futuristic-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(1.1) contrast(1.1);
}

.video-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 210, 255, 0.1), transparent);
    pointer-events: none;
}

.dev-content {
    flex: 1;
}

.dev-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.dev-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.dev-features {
    list-style: none;
    margin-bottom: 2.5rem;
}

.dev-features li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    font-weight: 500;
}

.dev-features li span {
    color: var(--primary);
    font-weight: 800;
}

@media (max-width: 992px) {
    .dev-flex {
        flex-direction: column;
        padding: 2rem;
    }

    .dev-image,
    .dev-content {
        width: 100%;
    }

    .dev-content {
        text-align: center;
    }

    .dev-features li {
        justify-content: center;
    }
}

/* Footer */
footer {
    padding: 50px 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }
}