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

:root {
    --bg: #010409;
    --card-bg: rgba(13, 17, 23, 0.7);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --blue: #2f81f7;
    --violet: #8957e5;
    --amber: #d29922;
    --mint: #3fb950;
    --font: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    background-color: var(--bg);
    color: var(--text-primary);
    font-family: var(--font);
    line-height: 1.5;
    overflow-x: hidden;
    padding-bottom: calc(100px + var(--safe-bottom));
}

/* Fail-Safe Background (No JS Required) */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, #0d1117 0%, #010409 100%);
    z-index: -2;
}

/* Ambient Glow animation (CSS only) */
.ambient-glow {
    position: fixed;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(47, 129, 247, 0.05) 0%, transparent 50%);
    animation: rotateGlow 20s linear infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

#neural-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0; /* Starts invisible, JS fades it in */
    transition: opacity 1s ease;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    position: relative;
    z-index: 1;
}

/* SVG Logos & Icons */
.icon { 
    width: 22px; 
    height: 22px; 
    fill: none; 
    stroke: currentColor; 
    stroke-width: 2; 
    stroke-linecap: round; 
    stroke-linejoin: round; 
    flex-shrink: 0;
    overflow: visible;
}
.logo-svg { border-radius: 12px; width: 80px; height: auto; margin-bottom: 1rem; filter: drop-shadow(0 0 15px var(--blue)); }

/* Splash Screen */
#splash {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 1s ease-out;
}
.splash-content { text-align: center; }
.splash-logo {
    width: 180px;
    opacity: 0;
    transform: scale(0.8);
    animation: fadeInScale 1s forwards;
}
.splash-text {
    color: white;
    margin-top: 20px;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    opacity: 0;
    animation: fadeInSplash 1.5s 0.5s forwards;
}
@keyframes fadeInScale { to { opacity: 1; transform: scale(1); } }
@keyframes fadeInSplash { to { opacity: 1; } }

.header-brand { text-align: center; margin-bottom: 4rem; }

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: rgba(47, 129, 247, 0.15);
    border: 1px solid rgba(47, 129, 247, 0.3);
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

.status-indicator .dot {
    width: 6px; height: 6px;
    background: var(--mint);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--mint);
    animation: blink 2s infinite;
}

.status-indicator .status-text {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--blue);
    text-transform: uppercase;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.header-brand h1 { font-size: 2.75rem; font-weight: 800; margin-bottom: 0.5rem; letter-spacing: -0.02em; }
.header-brand p { 
    color: var(--text-secondary); 
    font-size: 1.1rem; 
    font-weight: 300; 
    min-height: 1.5em;
}

.pricing-grid { 
    display: flex; 
    gap: 1.5rem; 
    padding-bottom: 2rem;
}


.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 40px;
    padding: 3rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    transition: 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.pricing-card:hover { 
    border-color: rgba(47, 129, 247, 0.5); 
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.details-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--blue);
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 1.5rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
    transition: 0.3s;
}
.details-toggle:hover { opacity: 1; }
.details-toggle svg { transition: 0.3s; }
.details-toggle.active svg { transform: rotate(180deg); }

.service-details-pane {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    background: rgba(255,255,255,0.03);
    border-radius: 20px;
    margin-top: 0;
}
.service-details-pane.active {
    max-height: 600px;
    margin-top: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.05);
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}
.detail-item strong { color: #fff; display: block; margin-bottom: 0.2rem; }
.detail-item .icon { color: var(--blue); margin-top: 3px; }

.pricing-card:active { transform: scale(0.96); }
.pricing-card.featured { border-color: var(--violet); box-shadow: 0 0 40px rgba(137, 87, 229, 0.1); }

.plan-label { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 0.5rem; display: block; }
.price { font-size: 3.5rem; font-weight: 800; margin-bottom: 2rem; }
.price span { font-size: 1rem; color: var(--text-secondary); font-weight: 400; }

.features-list { list-style: none; margin-bottom: 2.5rem; }
.features-list li { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; font-size: 1.05rem; color: var(--text-secondary); }
.features-list li .icon { color: var(--mint); }

.btn {
    display: block;
    width: 100%;
    padding: 1.5rem;
    border-radius: 25px;
    text-align: center;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.2rem;
    transition: 0.3s;
}

.btn-primary { background: #fff; color: #010409; }
.btn-violet { background: var(--violet); color: #fff; }

.btn-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    font-size: 0.95rem;
    padding: 1.25rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 700;
}

.btn-preview::before {
    content: '';
    position: absolute;
    top: -100%; left: -100%;
    width: 300%; height: 300%;
    background: conic-gradient(from 0deg, transparent, rgba(47, 129, 247, 0.1), transparent 30%);
    animation: rotateGlow 4s linear infinite;
    opacity: 0; transition: 0.3s;
}

.btn-preview::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: 0.5s;
}

.btn-preview:hover {
    transform: translateY(-5px);
    background: rgba(47, 129, 247, 0.1);
    border-color: var(--blue);
    box-shadow: 0 10px 30px rgba(47, 129, 247, 0.2);
}

.btn-preview:hover::before { opacity: 1; }
.btn-preview:hover::after { left: 150%; }

.btn-preview.featured:hover {
    background: rgba(137, 87, 229, 0.1);
    border-color: var(--violet);
    box-shadow: 0 10px 30px rgba(137, 87, 229, 0.2);
}
.btn-preview.featured:hover::before {
     background: conic-gradient(from 0deg, transparent, rgba(137, 87, 229, 0.1), transparent 30%);
}

/* Health Check Styles - Minimalist-Tech Evolution */
.health-diagnostic {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    padding: 4rem 2rem;
    margin: 4rem 0;
    position: relative;
    backdrop-filter: blur(20px);
    text-align: center;
    overflow: hidden;
    transition: 0.5s;
}

.health-diagnostic:hover {
    border-color: rgba(47, 129, 247, 0.3);
    box-shadow: 0 0 50px rgba(47, 129, 247, 0.1);
}

/* Minimal Tech Corners */
.hud-corner {
    position: absolute;
    width: 15px; height: 15px;
    border: 1px solid rgba(255,255,255,0.1);
    pointer-events: none;
    transition: 0.5s;
}
.tl { top: 20px; left: 20px; border-right: 0; border-bottom: 0; }
.tr { top: 20px; right: 20px; border-left: 0; border-bottom: 0; }
.bl { bottom: 20px; left: 20px; border-right: 0; border-top: 0; }
.br { bottom: 20px; right: 20px; border-left: 0; border-top: 0; }

.health-diagnostic:hover .hud-corner { border-color: var(--blue); }

.diagnostic-step {
    display: none;
    animation: techFadeIn 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}
.diagnostic-step.active { display: block; }
@keyframes techFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.diag-question { 
    font-size: 1.5rem; 
    font-weight: 300; 
    letter-spacing: -0.01em;
    margin-bottom: 3rem; 
    color: #fff; 
    line-height: 1.2; 
}

/* Minimal Cyber Button */
.cyber-btn-start {
    position: relative;
    padding: 1.2rem 3rem;
    background: #fff;
    color: #000;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.3em;
    border: none;
    cursor: pointer;
    transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    max-width: 320px;
    margin: 0 auto;
    border-radius: 2px;
}

.cyber-btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255,255,255,0.2);
}

#diag-initializing {
    display: none;
    font-size: 0.7rem;
    color: var(--blue);
    margin-top: 1.5rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 600;
}

.diag-btns { display: flex; gap: 1rem; justify-content: center; }
.diag-btn {
    padding: 1rem 2.5rem;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
}
.diag-btn:hover { background: var(--blue); border-color: var(--blue); transform: scale(1.05); }

.health-meter-container {
    margin-top: 2rem;
    height: 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 100px;
    overflow: hidden;
    display: none;
}
.health-meter-fill {
    height: 100%;
    width: 100%;
    background: var(--mint);
    box-shadow: 0 0 20px var(--mint);
    transition: 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.result-card {
    display: none;
    animation: intenseFade 1s forwards;
}
@keyframes intenseFade { from { opacity: 0; } to { opacity: 1; } }

.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.badge-danger { background: rgba(248, 81, 73, 0.2); color: #f85149; border: 1px solid #f85149; }
.badge-warning { background: rgba(210, 153, 34, 0.2); color: var(--amber); border: 1px solid var(--amber); }

.extras-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3rem; }
.extra-card { 
    background: var(--card-bg); border: 1px solid var(--card-border); 
    border-radius: 30px; padding: 1.5rem; text-align: center; 
    transition: 0.3s;
}
.extra-card:active { transform: scale(0.95); background: rgba(255,255,255,0.05); }

@media (max-width: 480px) {
    .extras-grid { grid-template-columns: 1fr; }
    .extra-card { padding: 2rem; }
}
.extra-card .icon { width: 32px; height: 32px; margin-bottom: 1rem; color: var(--blue); }
.extra-card h4 { font-size: 1rem; margin-bottom: 0.5rem; }
.extra-card p { font-size: 0.8rem; color: var(--text-secondary); }

.bottom-dock {
    position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%);
    width: 90%; max-width: 440px;
    background: rgba(13, 17, 23, 0.85); backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 40px;
    padding: 0.9rem 2.5rem; display: flex; justify-content: space-between; align-items: center;
    z-index: 2000; box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.dock-item { color: var(--text-secondary); text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 0.3rem; }
.dock-item.active { color: var(--blue); }
.dock-item span { font-size: 0.6rem; font-weight: 800; text-transform: uppercase; }

@media (max-width: 380px) {
    .bottom-dock { padding: 0.8rem 1.5rem; }
    .dock-whatsapp { width: 50px; height: 50px; font-size: 1.5rem; }
    .dock-item span { font-size: 0.55rem; }
}

.dock-whatsapp {
    width: 60px; height: 60px; background: #25d366; color: #fff; border-radius: 50%;
    display: flex; justify-content: center; align-items: center; font-size: 2rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4); border: none; cursor: pointer;
}

/* Pulse for Touch */
.pulse-effect {
    position: fixed; border-radius: 50%; background: rgba(47, 129, 247, 0.4);
    pointer-events: none; transform: scale(0); animation: touchPulse 0.5s ease-out forwards; z-index: 9999;
}
@keyframes touchPulse { to { transform: scale(4); opacity: 0; } }

@media (min-width: 769px) { .pricing-grid { flex-direction: row; } }

/* FINAL MOBILE OVERRIDES (PREVENT CONFLICTS) */
@media (max-width: 768px) {
    .container { padding: 1.5rem 1rem; }
    .header-brand { margin-bottom: 1.5rem; }
    .header-brand h1 { font-size: 1.4rem !important; margin-bottom: 0.25rem; }
    .header-brand p { font-size: 0.75rem; min-height: auto; }
    .main-logo { height: 70px !important; margin-bottom: 0.5rem; }
    
    .pricing-grid {
        display: flex !important;
        flex-direction: row !important;
        gap: 1.25rem !important;
        padding: 1rem 2rem 120px 2rem !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch;
        margin: 0 -1rem !important;
        width: calc(100% + 2rem) !important;
    }
    .pricing-grid::-webkit-scrollbar { display: none; }

    .pricing-card {
        flex: 0 0 85% !important;
        width: 85% !important;
        scroll-snap-align: center;
        padding: 2rem !important;
        border-radius: 30px !important;
        box-sizing: border-box !important;
        margin-bottom: 0 !important;
    }
    .price { font-size: 1.8rem !important; margin-bottom: 0.5rem !important; }
    .features-list { margin-bottom: 1rem !important; }
    .features-list li { font-size: 0.8rem !important; margin-bottom: 0.5rem !important; gap: 0.5rem; }
    .features-list li .icon { width: 16px; height: 16px; }
    
    .service-details-pane.active { padding: 1rem; font-size: 0.75rem; }
    .detail-item { font-size: 0.75rem; margin-bottom: 0.5rem; }
    .detail-item strong { margin-bottom: 0.1rem; }
    
    .btn { padding: 1rem; font-size: 1rem; border-radius: 15px; }
    .btn-preview { padding: 0.8rem; font-size: 0.8rem; }
}

/* =========================================
   NOSOTROS (ABOUT) SECTION
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.about-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(10px);
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
}

.about-card svg {
    width: 48px;
    height: 48px;
    margin-bottom: 1.2rem;
}

.about-card h4 {
    margin-bottom: 0.8rem;
    font-size: 1.25rem;
    color: #fff;
    font-weight: 600;
}

.about-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* =========================================
   FAQ SECTION
   ========================================= */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 500;
    user-select: none;
    transition: background-color 0.3s ease;
    color: #fff;
    font-size: 1.1rem;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.03);
}

.faq-question.active .faq-icon {
    transform: rotate(180deg);
}

.faq-icon {
    transition: transform 0.3s ease;
    color: var(--text-secondary);
}

.faq-answer {
    padding: 0 1.5rem;
}

.faq-answer.active {
    padding-bottom: 1.5rem;
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-question {
        font-size: 1rem;
        padding: 1rem 1.25rem;
    }
    
    .faq-answer {
        padding: 0 1.25rem;
    }
    
    .faq-answer.active {
        padding-bottom: 1.25rem;
    }
}
