/* =====================================
   OpTecnology - Estilos Modernos v2
   ===================================== */

/* Variables */
:root {
    --primary: #6b3fd4;
    --primary-dark: #5528b5;
    --primary-light: #8b6ee8;
    --accent: #00c9a7;
    --dark: #1a1a2e;
    --darker: #0f0f23;
    --gradient: linear-gradient(135deg, #6b3fd4 0%, #00c9a7 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --gradient-purple: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-teal: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --gradient-orange: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-blue: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-hero: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-md: 0 5px 25px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 50px rgba(0,0,0,0.15);
}

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f8f9fa;
    color: #333;
    padding-top: 76px;
    overflow-x: hidden;
}

.text-accent { color: var(--accent) !important; }
.bg-purple-gradient { background: var(--gradient-purple) !important; }
.bg-green-gradient { background: var(--gradient-teal) !important; }
.bg-blue-gradient { background: var(--gradient-blue) !important; }

/* ===== NAVBAR ===== */
.navbar {
    background: rgba(15, 15, 35, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    transition: all 0.3s;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.navbar-brand {
    font-size: 1.4rem;
    font-weight: 700;
}
.navbar-brand .text-primary {
    color: var(--primary-light) !important;
}
.nav-link {
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    padding: 8px 16px !important;
    border-radius: 8px;
}
.nav-link:hover,
.nav-link.active {
    color: var(--accent) !important;
    background: rgba(255,255,255,0.05);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 95vh;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 60px 0;
}
.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236b3fd4' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0,201,167,0.15);
    color: var(--accent);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    border: 1px solid rgba(0,201,167,0.3);
}
.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.7);
    max-width: 540px;
    line-height: 1.7;
}
.hero-actions .btn {
    padding: 14px 32px;
    font-weight: 600;
    border-radius: 12px;
}
.hero-actions .btn-outline-light {
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.05);
}
.hero-actions .btn-outline-light:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.5);
}
.hero-stats .stat-item {
    text-align: center;
    padding: 15px;
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
}
.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}
.stat-label {
    display: block;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    margin-top: 4px;
}

/* Ilustración flotante */
.hero-illustration {
    position: relative;
    height: 400px;
}
.floating-icon {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent);
    animation: float 6s ease-in-out infinite;
    border: 1px solid rgba(255,255,255,0.1);
}
.floating-icon.icon-1 { top: 20%; left: 10%; animation-delay: 0s; }
.floating-icon.icon-2 { top: 50%; right: 20%; animation-delay: 1.5s; }
.floating-icon.icon-3 { bottom: 20%; left: 30%; animation-delay: 3s; }
.floating-icon.icon-4 { top: 30%; right: 5%; animation-delay: 4.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Wave */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
}
.hero-wave svg { display: block; width: 100%; height: 80px; }

/* ===== BRANDS ===== */
.brands-section {
    border-bottom: 1px solid #eee;
}
.brands-slider {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none;
}
.brands-slider::-webkit-scrollbar { display: none; }
.brand-item {
    flex-shrink: 0;
    padding: 8px 24px;
    background: #f5f5f5;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    color: #666;
    white-space: nowrap;
    transition: all 0.3s;
}
.brand-item:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* ===== WHY CARDS ===== */
.why-card {
    background: white;
    padding: 35px 25px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    text-align: center;
    border: 1px solid #f0f0f0;
}
.why-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.why-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin: 0 auto 20px;
    transition: transform 0.3s;
}
.why-card:hover .why-icon {
    transform: scale(1.1) rotate(-5deg);
}
.why-card h4 {
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1.15rem;
}

/* ===== ABOUT ===== */
.about {
    background: white;
}
.about-img-wrapper {
    position: relative;
}
.about-img-wrapper img {
    width: 100%;
    border-radius: 16px;
}
.about-experience-badge {
    position: absolute;
    bottom: -15px;
    right: -15px;
    background: var(--gradient-purple);
    color: white;
    padding: 20px 25px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.about-experience-badge span:first-child {
    font-size: 1.8rem;
    font-weight: 800;
}

/* ===== SERVICE CARDS (coloridas) ===== */
.service-card {
    background: white;
    padding: 35px 25px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s;
    text-align: center;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.card-purple::before { background: var(--gradient-purple); }
.card-teal::before { background: var(--gradient-teal); }
.card-orange::before { background: var(--gradient-orange); }
.card-blue::before { background: var(--gradient-blue); }

.service-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin: 0 auto 20px;
    transition: transform 0.3s;
}
.card-purple .service-card-icon { background: var(--gradient-purple); }
.card-teal .service-card-icon { background: var(--gradient-teal); }
.card-orange .service-card-icon { background: var(--gradient-orange); }
.card-blue .service-card-icon { background: var(--gradient-blue); }

.service-card:hover .service-card-icon {
    transform: scale(1.1) rotate(10deg);
}
.service-card h4 {
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1.2rem;
}
.service-card p {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.6;
}
.service-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    margin-top: 10px;
    transition: gap 0.3s;
}
.card-purple .service-link { color: #667eea; }
.card-teal .service-link { color: #11998e; }
.card-orange .service-link { color: #f5576c; }
.card-blue .service-link { color: #4facfe; }
.service-link:hover { gap: 8px; }
.service-link:hover i { transform: translateX(3px); }
.service-link i { transition: transform 0.3s; }

/* ===== PRODUCT CARDS ===== */
.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s;
    border: 1px solid #f0f0f0;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.product-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}
.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.product-card:hover .product-img img {
    transform: scale(1.08);
}
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--gradient-purple);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}
.product-body {
    padding: 20px;
}
.product-body h5 {
    font-weight: 700;
    margin-bottom: 5px;
}

/* ===== SYSTEM CARDS ===== */
.system-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    transition: all 0.3s;
    height: 100%;
}
.system-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px);
}
.system-card-body {
    padding: 35px;
    text-align: center;
}
.system-icon {
    margin-bottom: 20px;
}
.system-icon img {
    border: 3px solid rgba(255,255,255,0.2);
    padding: 3px;
}
.system-card h4 {
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 15px;
}
.system-features .badge {
    padding: 6px 14px;
    font-weight: 500;
    background: rgba(107,63,212,0.3) !important;
    margin-bottom: 4px;
}

/* ===== TESTIMONIALS ===== */
.testimonials-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}
.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
    height: 100%;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.stars {
    margin-bottom: 15px;
}
.stars i {
    font-size: 1.1rem;
    margin-right: 2px;
}
.testimonial-text {
    font-style: italic;
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    flex-shrink: 0;
}

/* ===== CONTACT INFO ===== */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}
.contact-info-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--gradient-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    flex-shrink: 0;
}
.contact-info-item strong {
    display: block;
    margin-bottom: 4px;
}

/* Contact form */
.contact-form {
    background: var(--gradient-dark);
    padding: 35px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}
.contact-form .form-control {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: white;
    padding: 12px 16px;
    border-radius: 10px;
    transition: all 0.3s;
}
.contact-form .form-control:focus {
    background: rgba(255,255,255,0.12);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0,201,167,0.15);
    color: white;
}
.contact-form .form-control::placeholder,
.contact-form select.form-control option {
    color: rgba(255,255,255,0.5);
}
.contact-form select.form-control {
    color: rgba(255,255,255,0.7);
}
.contact-form select.form-control option {
    color: #333;
}
.contact-form .btn-primary {
    background: var(--gradient);
    border: none;
    padding: 14px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s;
}
.contact-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107,63,212,0.4);
}

/* ===== SECTIONS ===== */
.section-padding {
    padding: 80px 0;
}
.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark);
    position: relative;
    display: inline-block;
}
.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gradient);
    margin: 10px auto 0;
    border-radius: 3px;
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: var(--gradient);
    border: none;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107,63,212,0.4);
}
.btn-success {
    border-radius: 10px;
    font-weight: 600;
}

/* ===== FOOTER ===== */
footer {
    background: var(--darker) !important;
}
footer a:hover {
    color: var(--accent) !important;
}

/* ===== PROCESS STEPS ===== */
.process-step {
    padding: 20px;
}
.process-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    transition: transform 0.3s;
}
.process-step:hover .process-number {
    transform: scale(1.1);
}

/* ===== ACCORDION ===== */
.accordion-button:not(.collapsed) {
    background: var(--gradient);
    color: white;
    font-weight: 600;
}
.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,0.1);
}

/* ===== COUNTER ANIMATION ===== */
.counter {
    display: inline;
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero-title { font-size: 2.5rem; }
    .hero { min-height: auto; padding-top: 30px; }
    .hero-stats .stat-item { padding: 10px; }
    .stat-number { font-size: 1.4rem; }
}
@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-actions .btn { display: block; width: 100%; margin: 10px 0 !important; }
    .section-padding { padding: 50px 0; }
    .section-header h2 { font-size: 1.6rem; }
    .about-experience-badge { position: relative; bottom: auto; right: auto; margin-top: 15px; }
}
@media (max-width: 576px) {
    .hero { padding-top: 20px; }
    .hero-title { font-size: 1.7rem; }
    .brands-slider { gap: 1rem; }
    .brand-item { font-size: 0.9rem; padding: 6px 16px; }
}
