/* 
    Aragua en Digital - Web Informativa
    Estilos Globales y Premium
*/

:root {
    --bg-dark: #0f172a; /* Azul muy oscuro casi negro */
    --bg-card: rgba(30, 41, 59, 0.7); /* Glassmorphism background */
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-glass: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(6, 182, 212, 0.15), transparent 25%);
    background-attachment: fixed;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-glass);
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-main);
    text-decoration: none;
}

.navbar .logo img {
    height: 40px;
}

.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;
}

.nav-links a:hover {
    color: var(--text-main);
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-glass);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-login {
    background: transparent;
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
}

.btn-login:hover {
    background: rgba(6, 182, 212, 0.15);
    color: #fff;
}

.btn-register {
    background: var(--accent-cyan);
    color: #fff;
    border: 1px solid var(--accent-cyan);
    box-shadow: 0 4px 10px rgba(6, 182, 212, 0.2);
}

.btn-register:hover {
    background: #0891b2;
    border-color: #0891b2;
    color: #fff;
    box-shadow: 0 6px 15px rgba(6, 182, 212, 0.4);
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    color: #fff;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    padding-top: 80px;
    background: linear-gradient(to right, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.7) 100%), url('../img/hero-bg.webp') center 20%/cover no-repeat;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* SERVICES SECTION */
.services-section {
    padding: 100px 5%;
    position: relative;
    overflow: hidden; /* To keep particles inside this section if needed, though they shouldn't overflow if height is 100% */
}

#particles-js,
#particles-js-hero,
#particles-js-footer {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none; /* Allows clicking through particles to the cards */
}

/* Ensure content stays above particles */
.hero,
.hero-content {
    position: relative;
    z-index: 2;
}

/* En el hero no queremos hidden overflow si afecta el diseño global, pero probemos */
.hero {
    overflow: hidden;
}

/* Ensure content stays above particles */
.services-section > h2,
.services-section > div {
    position: relative;
    z-index: 2;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

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

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s, border-color 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
}

.service-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    display: inline-block;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-desc {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.service-price {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.service-price-bs {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* FOOTER */
footer {
    background: rgba(15, 23, 42, 0.9);
    padding: 3rem 5%;
    border-top: 1px solid var(--border-glass);
    text-align: center;
    color: var(--text-muted);
}

.footer-social {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-social a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
}

.footer-social a:hover {
    color: var(--accent-cyan);
}

/* Menú Hamburguesa y Responsive */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

/* El botón Inicio ahora se ve en PC también */
.mobile-only-link {
    display: inline-block;
}

@media (max-width: 768px) {
    .navbar .logo {
        font-size: 1.1rem;
    }
    .navbar .logo img {
        height: 30px;
    }
}

@media (max-width: 900px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-buttons {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-dark);
        padding: 1.5rem;
        border-bottom: 1px solid var(--border-glass);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .mobile-only-link {
        display: block !important;
    }
    
    .nav-buttons.active {
        display: flex;
    }
    
    .nav-buttons .btn, .nav-buttons span {
        width: 100%;
        text-align: center;
        margin: 0.5rem 0;
        padding: 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Botón Flotante WhatsApp */
.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 3px rgba(0,0,0,0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #1ebe57;
    color: white;
}
.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: currentColor;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

/* Rendimiento para PC: Desactivar Glassmorphism porque pone lento el scroll en computadoras */
@media (min-width: 769px) {
    .navbar {
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    .service-card {
        background: rgba(30, 41, 59, 0.95);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    .auth-card {
        background: rgba(30, 41, 59, 0.95);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

/* Selector sutil dentro del cuadro de servicio */
.card-pricing-toggle {
    display: flex;
    background: rgba(0,0,0,0.2);
    border-radius: 20px;
    padding: 3px;
    margin: 10px auto 15px;
    width: max-content;
    border: 1px solid var(--border-glass);
}
.card-pricing-toggle button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 16px;
    cursor: pointer;
    transition: 0.3s;
}
.card-pricing-toggle button.active {
    background: var(--accent-cyan);
    color: #fff;
}
