:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --dark: #0f172a;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #1e293b;
}

/* Navbar */
.navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.75rem 0;
    transition: background 0.3s;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: #60a5fa !important;
}

/* Hero */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--dark) 0%, #1e293b 50%, #0f2a4a 100%);
    color: #fff;
    padding-top: 80px;
}

.hero-image {
    max-height: 400px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

/* Features */
.feature-card {
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
}

/* Steps */
.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.step-card {
    padding: 2rem 1rem;
}

/* Screenshots */
#screenshotCarousel {
    max-width: 1024px;
    margin: 0 auto;
}

#screenshotCarousel .carousel-item img {
    width: 1024px;
    height: 600px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1024 / 600;
    object-fit: contain;
    background: #f1f5f9;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    padding: 1.25rem;
}

.carousel-indicators button {
    background-color: var(--primary);
}

/* Brands */
.brand-card {
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.brand-logo {
    max-height: 40px;
    max-width: 90%;
    object-fit: contain;
    transition: opacity 0.3s;
}

.brand-card:hover .brand-logo {
    opacity: 0.8;
}

/* Contact form */
#contacto .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.75rem 1rem;
}

#contacto .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#contacto .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
    color: #fff;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    border-radius: 8px;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-light {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
}

/* Sections */
section {
    overflow: hidden;
}

#caracteristicas,
#ventajas,
#fabricantes {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Pricing */
.pricing-card {
    background: #fff;
    border-radius: 20px;
    padding: 3.5rem 2.5rem;
    box-shadow: 0 12px 60px rgba(37, 99, 235, 0.18);
    border: 2px solid #dbeafe;
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #2563eb, #7c3aed, #ec4899, #f59e0b);
}

.pricing-hero {
    position: relative;
    margin-bottom: 1.5rem;
}

.pricing-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.pricing-amount {
    position: relative;
    line-height: 1;
    display: inline-block;
}

.pricing-currency {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    vertical-align: top;
    margin-top: 1.5rem;
    display: inline-block;
}

.pricing-value {
    font-size: 10rem;
    font-weight: 900;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 40%, #ec4899 70%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -6px;
    filter: drop-shadow(0 4px 8px rgba(37, 99, 235, 0.25));
}

.pricing-period {
    font-size: 1.3rem;
    color: #64748b;
    font-weight: 600;
    margin-top: 0.25rem;
}

.pricing-features li {
    padding: 0.5rem 0;
    font-size: 1rem;
    color: #475569;
}

@media (max-width: 768px) {
    .pricing-value {
        font-size: 7rem;
        letter-spacing: -4px;
    }
    .pricing-currency {
        font-size: 2.5rem;
        margin-top: 1rem;
    }
    .pricing-glow {
        width: 160px;
        height: 160px;
    }
}

/* Language selector */
.lang-selector {
    font-size: 0.8rem;
    padding: 0.25rem 0.6rem;
}

.lang-selector:hover,
.lang-selector:focus {
    background: rgba(255, 255, 255, 0.15);
}

.lang-option.active {
    font-weight: 700;
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        min-height: auto;
        padding: 120px 0 60px;
    }

    .hero-section .d-flex {
        justify-content: center;
    }

    .hero-image {
        max-height: 250px;
    }

}
/* Comparativa / Alternativa */
.comparativa-wrap {
    max-width: 860px;
}

.comparativa-table th,
.comparativa-table td {
    padding: 0.9rem 1rem;
    border-color: #e2e8f0;
    vertical-align: middle;
}

.comparativa-table thead th {
    border-bottom: 2px solid #dbeafe;
    font-weight: 700;
}

.comparativa-table .gp-col {
    background: #eff6ff;
}

.comparativa-table thead th.gp-col {
    color: var(--primary);
}

.comparativa-table tbody tr:hover .gp-col {
    background: #e0ecff;
}

/* Banda d'accés al portal de clients */
.portal-band {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.portal-band .btn-light {
    color: var(--primary-dark);
}
