/* PC Technick - style_v2026.css */

:root {
    --bg-page: #0b0e14;
    --bg-container: #161b22;
    --bg-content: #1d232c;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --border-color: #30363d;
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
    --radius-md: 12px;
    --radius-lg: 16px;
    --header-bg: #0f172a;
    --glass-bg: rgba(22, 27, 34, 0.85);
    --success: #238636;
    --turquoise: #40e0d0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-page);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-user-select: none;
    user-select: none;
}

/* Tipografía Premium: Outfit para títulos */
h1, h2, h3, h4,
.section-title,
.category-title,
.pay-modal-title {
    font-family: 'Outfit', 'Inter', sans-serif;
    letter-spacing: -0.02em;
}

/* Header */
header {
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 50%, #96aad9 100%);
    padding: 0 32px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
}

.brand img {
    height: 50px;
    border-radius: 8px;
}

.brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.menu-toggle {
    display: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Navigation */
nav {
    display: flex;
    gap: 4px;
}

.nav-link {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
    font-family: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    color: #fff;
    background: var(--primary);
    font-weight: 600;
}

/* Adaptive Breakpoint */
@media (max-width: 1100px) {
    .menu-toggle { display: block; }
    nav {
        position: absolute; top: 80px; left: 20px; right: auto; width: 260px;
        background: #0f172a; border: 1px solid var(--primary);
        border-radius: var(--radius-md); flex-direction: column;
        padding: 10px; box-shadow: 0 15px 35px rgba(0,0,0,0.7);
        display: none; backdrop-filter: blur(20px);
    }
    nav.active { display: flex !important; }
}

/* Main Container */
main {
    flex: 1;
    padding: 32px 24px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.content-card {
    background: var(--bg-container);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    min-height: 400px;
    animation: fadeIn 0.3s ease-out;
}

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

/* Tabs & Sections */
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.4s ease; }

.section-title {
    font-size: 2.5rem;
    font-family: 'Outfit', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    background: linear-gradient(90deg, #3b82f6, #96aad9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

h2 { color: var(--text-primary); margin-bottom: 20px; border-bottom: 2px solid var(--border-color); padding-bottom: 10px; }
p { margin-bottom: 16px; line-height: 1.7; color: var(--text-secondary); text-align: justify; }
#empresa p { text-align: justify; }

.responsive-showcase {
    display: block;
    margin: 30px auto;
    max-width: 100%;
}

/* Sub-Navigation for Products */
.sub-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    flex-wrap: wrap;
}

.sub-nav-link {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px 20px;
    border-radius: 20px;
    transition: all 0.3s;
    font-weight: 500;
}

.sub-nav-link:hover { color: #fff; border-color: var(--primary); }
.sub-nav-link.active { background: var(--primary); color: white; border-color: var(--primary); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); }

.sub-tab-content { display: none; }
.sub-tab-content.active { display: block; animation: fadeIn 0.3s ease; }

/* Accordions */
.accordion-toggle {
    width: 100%;
    background: var(--bg-content);
    border: 1px solid var(--border-color);
    color: white;
    padding: 20px;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    transition: all 0.3s;
    position: relative;
}

.accordion-toggle:hover { border-color: var(--primary); background: rgba(59, 130, 246, 0.05); }
.accordion-toggle i { transition: transform 0.3s ease; color: var(--primary); }
.accordion-toggle.active i { transform: rotate(180deg); }

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    margin-top: -15px;
    margin-bottom: 20px;
    padding: 0 20px;
}

.accordion-content.active, .accordion-content.show {
    max-height: 5000px;
    padding: 30px 20px 20px 20px;
    border: 1px solid var(--border-color);
    border-top: none;
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-item {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s;
    height: 120px;
}

.gallery-item:hover { border-color: var(--primary); transform: translateY(-3px); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* Cards */
.service-card, .tool-link-item, .product-card {
    background: var(--bg-content);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tool-link-item { flex-direction: row; align-items: center; gap: 20px; }

.service-card:hover, .tool-link-item:hover, .product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: var(--shadow-lg);
}

.service-card h3, .tool-link-item strong, .product-card h3 { color: var(--primary); font-size: 1.2rem; }

.category-section { margin-top: 40px; }
.category-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    display: flex; align-items: center; gap: 12px;
    border-left: 4px solid var(--primary); padding-left: 15px;
    background: linear-gradient(90deg, #3b82f6, #96aad9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    width: fit-content;
}

/* Store */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 25px;
}

.product-price { font-size: 1.4rem; font-weight: 700; color: #fff; }
.buy-button {
    background: var(--primary); color: white; border: none; padding: 12px;
    border-radius: 25px; cursor: pointer; font-weight: 600;
    display: flex; align-items: center; justify-content: center;
    gap: 10px; transition: all 0.3s; margin-top: auto;
}
.buy-button:hover { background: var(--primary-hover); transform: scale(1.02); }

/* Form Styles */
.form-group { margin-bottom: 12px; }
label { display: block; margin-bottom: 4px; font-size: 0.85rem; font-weight: 500; color: var(--text-primary); }
input, textarea {
    width: 100%; padding: 10px 14px; background: var(--bg-content);
    border: 1px solid var(--border-color); border-radius: var(--radius-md);
    color: white; font-family: inherit; transition: border-color 0.3s;
    font-size: 0.9rem;
}
input:focus, textarea:focus { outline: none; border-color: var(--primary); background: rgba(59, 130, 246, 0.05); }

.plan-selector {
    width: 100%; padding: 10px 14px; background: var(--bg-content);
    border: 1px solid var(--border-color); border-radius: var(--radius-md);
    color: white; font-family: inherit; transition: border-color 0.3s;
    font-size: 0.9rem;
}
.plan-selector:focus { outline: none; border-color: var(--primary); }
.plan-selector option {
    color: white !important;
    background: var(--bg-content) !important;
}

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-top: 30px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 24px; background: var(--primary); color: white;
    border: 2px solid transparent; border-radius: 30px; font-weight: 600;
    cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none; font-size: 0.95rem; gap: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.btn:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 6px 15px rgba(59, 130, 246, 0.4); border-color: rgba(255, 255, 255, 0.2); }

.btn-outline-service {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
    margin-top: 14px;
    width: 100%;
    font-size: 0.88rem;
    padding: 9px 18px;
}
.btn-outline-service:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.4);
}

/* Modals */
.wp-modal, .step-modal, .lightbox {
    display: none !important;
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(12px);
    z-index: 5000; justify-content: center; align-items: center; padding: 20px;
}
.wp-modal.active, .step-modal.active, .lightbox.active { display: flex !important; }

/* Modal Turquoise Pulse */
.wp-modal-content, .step-modal-content {
    background: var(--glass-bg); border: 2px solid var(--turquoise);
    width: 90%; max-width: 550px; border-radius: var(--radius-lg);
    position: relative; padding: 30px;
    box-shadow: 0 0 20px rgba(64, 224, 208, 0.3);
    animation: turquoisePulse 2s infinite alternate, modalFade 0.4s ease-out;
    max-height: 90vh; overflow-y: auto; display: flex; flex-direction: column;
}

.wp-preview-container {
    width: 100%; text-align: center; margin-top: 15px; border-radius: 12px; overflow: hidden;
}
#wp-preview-img {
    max-width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--border-color);
}
.wp-download-btn {
    display: inline-flex !important; justify-content: center; width: 100%; margin-top: 10px;
}

@keyframes turquoisePulse {
    from { box-shadow: 0 0 10px rgba(64, 224, 208, 0.2); border-color: rgba(64, 224, 208, 0.5); }
    to { box-shadow: 0 0 25px rgba(64, 224, 208, 0.6); border-color: var(--turquoise); }
}

.modal-compact { max-width: 480px; padding: 20px 25px; }

/* Lightbox Styling */
.lightbox { background: rgba(0,0,0,0.95); }
.lightbox-content { max-width: 85%; max-height: 85%; }
#lightbox-img { max-width: 100%; max-height: 85vh; border-radius: 8px; box-shadow: 0 0 40px rgba(0,0,0,0.8); }

.lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
    color: #fff; width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1.5rem; transition: all 0.3s;
    backdrop-filter: blur(10px); z-index: 5100;
}
.lightbox-nav:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-50%) scale(1.1); }
.lightbox-prev { left: 40px; }
.lightbox-next { right: 40px; }

.lightbox-close {
    position: absolute; top: 30px; right: 30px;
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
    color: #fff; width: 50px; height: 50px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1.2rem; transition: all 0.3s;
    backdrop-filter: blur(10px); z-index: 5100;
}
.lightbox-close:hover { background: #ef4444; border-color: #ef4444; transform: rotate(90deg); }

.lightbox-counter {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    background: rgba(0,0,0,0.6); padding: 8px 20px; border-radius: 20px;
    font-size: 0.9rem; color: #fff; border: 1px solid rgba(255,255,255,0.1);
}
.step-footer {
    display: flex; justify-content: flex-end; gap: 15px; margin-top: 25px;
    border-top: 1px solid var(--border-color); padding-top: 20px;
}

/* Purchase Modal Specifics */
.modal-progress {
    display: flex; justify-content: space-between; margin-bottom: 30px;
    position: relative; padding: 0 10px;
}
.modal-progress::before {
    content: ''; position: absolute; top: 15px; left: 0; width: 100%; height: 2px;
    background: rgba(255,255,255,0.1); z-index: 1;
}
.progress-step {
    width: 32px; height: 32px; border-radius: 50%; background: #1e293b;
    border: 2px solid rgba(255,255,255,0.2); display: flex; align-items: center;
    justify-content: center; font-weight: 700; font-size: 0.85rem;
    position: relative; z-index: 2; transition: all 0.3s; color: rgba(255,255,255,0.5);
}
.progress-step.active {
    background: var(--primary); border-color: var(--primary); color: #fff;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}
.progress-step.completed { background: #10b981; border-color: #10b981; color: #fff; }
.step-label {
    position: absolute; top: 40px; font-size: 0.7rem; white-space: nowrap;
    text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.4);
}
.progress-step.active .step-label { color: #fff; font-weight: 600; }

.step-content { display: none; width: 100%; animation: slideIn 0.3s ease-out; }
.step-content.active { display: block; }

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

.pay-modal-title { font-size: 1.5rem; margin-bottom: 10px; color: #fff; text-align: center; }
.pay-modal-desc { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 25px; text-align: center; line-height: 1.5; }

.pay-qr-container {
    background: #fff; padding: 15px; border-radius: 12px; margin: 20px auto;
    width: fit-content; max-width: 240px; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.pay-qr-container img { width: 100%; height: auto; display: block; }

.pay-instructions { background: rgba(59, 130, 246, 0.1); padding: 15px; border-radius: 8px; border-left: 4px solid var(--primary); margin-bottom: 20px; }
.pay-instructions p { margin: 0; font-size: 0.9rem; color: #e2e8f0; }

.pay-modal-close {
    position: absolute; top: 15px; right: 15px; background: none; border: none;
    color: rgba(255,255,255,0.5); font-size: 1.2rem; cursor: pointer; transition: color 0.3s;
}
.pay-modal-close:hover { color: #ef4444; }

.progress-step.active { border-color: var(--primary); background: var(--primary); color: #fff; box-shadow: 0 0 15px rgba(59, 130, 246, 0.5); }

.wp-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; }
.wp-modal-close, .pay-modal-close { background: transparent; border: none; color: var(--text-secondary); font-size: 1.5rem; cursor: pointer; transition: color 0.3s; }
.wp-modal-close:hover, .pay-modal-close:hover { color: #fff; }

@keyframes modalFade { from { opacity: 0; transform: scale(0.9) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }

/* Tico AI Chat */
#tico-chat-history {
    background: rgba(0, 0, 0, 0.3); border-radius: 12px; padding: 20px;
    border: 1px solid var(--border-color); height: 350px; overflow-y: auto;
    margin-bottom: 20px; scroll-behavior: smooth;
}

.autotest-question { margin-bottom: 20px; line-height: 1.5; }
.autotest-options { margin-top: 15px; }

/* AI Option Buttons */
#tico-chat-history a, 
#tico-chat-history .tico-msg span[onclick],
.autotest-btn {
    display: block; background: rgba(59, 130, 246, 0.1);
    color: var(--primary); padding: 12px 18px; border-radius: 30px;
    margin-bottom: 10px; text-decoration: none; border: 1px solid rgba(59, 130, 246, 0.3);
    transition: all 0.3s; font-weight: 600; cursor: pointer;
    text-align: left; font-family: inherit; width: 100%;
}
#tico-chat-history a:hover,
#tico-chat-history .tico-msg span[onclick]:hover,
.autotest-btn:hover { 
    background: var(--primary-hover); 
    color: #ffffff !important; 
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border-color: #fff;
}

#tico-character {
    position: absolute; bottom: 20px; right: 20px;
    max-height: 240px; max-width: 200px;
    z-index: 5001; pointer-events: none;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.6));
}

/* Multi Slideshow */
.multi-slideshow {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px auto;
    max-width: 1000px;
}

.slideshow-container {
    flex: 1;
    min-width: 0; /* Important for flex items */
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: transparent;
    border: none;
}

.slide-left, .slide-middle, .slide-right { display: none; text-align: center; }
.slide-left img, .slide-middle img, .slide-right img { 
    width: 100%; height: auto; display: block; 
    border-radius: var(--radius-lg); 
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3)); 
}

/* Slideshow inline de tamaño fijo — evita saltos de layout */
.slideshow-fixed {
    position: relative;
    height: 220px;
    overflow: hidden;
    flex-shrink: 0;
}
.slideshow-fixed .slide-left,
.slideshow-fixed .slide-middle,
.slideshow-fixed .slide-right {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.slideshow-fixed .slide-left img,
.slideshow-fixed .slide-middle img,
.slideshow-fixed .slide-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

@media (max-width: 768px) {
    #slideshow-middle { display: none; }
    .multi-slideshow { gap: 15px; }
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from { opacity: .4 }
    to { opacity: 1 }
}

#fab-autotest {
    position: fixed; bottom: 30px; right: 30px;
    width: 65px; height: 65px; background: #0f172a; border: 2px solid var(--turquoise);
    border-radius: 50%; cursor: pointer; z-index: 999;
    padding: 0; overflow: hidden;
    box-shadow: 0 0 15px rgba(64, 224, 208, 0.4);
    transition: all 0.3s; display: flex; align-items: center; justify-content: center;
    animation: turquoisePulseBtn 2s infinite alternate;
}
#fab-autotest:hover { transform: scale(1.1); box-shadow: 0 0 25px rgba(64, 224, 208, 0.8); }

@keyframes turquoisePulseBtn {
    from { box-shadow: 0 0 10px rgba(64, 224, 208, 0.3); }
    to { box-shadow: 0 0 25px rgba(64, 224, 208, 0.7); }
}

/* Context Menu */
.custom-cm {
    position: fixed; background: #0f172a; border: 1px solid var(--primary);
    border-radius: var(--radius-md); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    width: 240px; z-index: 10000; display: none;
    flex-direction: column; padding: 8px; backdrop-filter: blur(20px);
}
.custom-cm.active { display: flex; }
.cm-item {
    padding: 12px 16px; color: #f0f6fc; border-radius: 8px;
    font-size: 0.95rem; cursor: pointer; transition: all 0.2s;
    border: none; background: transparent; width: 100%;
    text-align: left; display: flex; align-items: center; gap: 12px;
    text-decoration: none;
}
.cm-item:hover { background: rgba(59, 130, 246, 0.15); color: var(--primary); }
.cm-divider { height: 1px; background: var(--border-color); margin: 8px; }

/* Mobile Adaptations */
@media (max-width: 1100px) {
    header { padding: 0 20px; }
    nav {
        position: absolute; top: 80px; left: 20px; right: auto; width: 260px;
        background: #0f172a; border: 1px solid var(--primary);
        border-radius: var(--radius-md); flex-direction: column;
        padding: 10px; box-shadow: 0 15px 35px rgba(0,0,0,0.7);
        display: none; backdrop-filter: blur(20px);
    }
    nav.active { display: flex !important; }
    .menu-toggle { display: block; }
    .contact-grid { grid-template-columns: 1fr; gap: 30px; }
    .content-card { padding: 24px 16px; }
    .section-title { font-size: 1.8rem; }
    #tico-character { max-height: 180px; }
}

footer {
    padding: 40px 20px; text-align: center;
    background: var(--header-bg); border-top: 1px solid var(--border-color);
    margin-top: auto;
}
footer p { margin-bottom: 0; font-size: 0.9rem; opacity: 0.6; text-align: center; }
footer a { color: inherit; text-decoration: none; font-weight: bold; }
footer a:hover { text-decoration: underline; }

/* Tico Thinking Animation (Bouncing Dots) */
.tico-thinking {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 10px;
}

.tico-thinking span {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: 8px;
}

.tico-dots {
    display: flex;
    gap: 6px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tico-dots span {
    display: block;
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    animation: ticoBounce 1s infinite ease-in-out both;
}

.tico-dots span:nth-child(1) { animation-delay: -0.32s; }
.tico-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes ticoBounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
    40% { transform: translateY(-10px); opacity: 1; }
}
