/**
 * Pradell.TECH Landing Page Styles
 * Design consistent with AutoPedidos visual language.
 */

:root {
    --neutral-50: #f9fafb;
    --neutral-100: #f3f4f6;
    --neutral-200: #e5e7eb;
    --neutral-300: #d1d5db;
    --neutral-400: #9ca3af;
    --neutral-500: #6b7280;
    --neutral-600: #4b5563;
    --neutral-700: #374151;
    --neutral-800: #1f2937;
    --neutral-900: #111827;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: var(--neutral-800);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--neutral-200);
    z-index: 100;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
}

.logo-text {
    color: var(--neutral-900);
}

.logo-accent {
    color: var(--accent);
}

/* Language Switcher - Dropdown Style */
.lang-switcher {
    position: relative;
    margin-left: 1.5rem;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid var(--neutral-200);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--neutral-700);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.lang-toggle:hover {
    background: var(--neutral-50);
    border-color: var(--neutral-300);
}

.lang-switcher.open .lang-toggle {
    background: var(--neutral-50);
    border-color: var(--neutral-300);
}

.globe-icon {
    width: 18px;
    height: 18px;
    color: var(--neutral-500);
}

.current-lang {
    font-weight: 600;
}

.chevron-icon {
    width: 14px;
    height: 14px;
    color: var(--neutral-400);
    transition: transform 0.2s;
}

.lang-switcher.open .chevron-icon {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: #fff;
    border: 1px solid var(--neutral-200);
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 200;
    overflow: hidden;
}

.lang-switcher.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: 0.875rem;
    color: var(--neutral-700);
    cursor: pointer;
    transition: background 0.15s;
    text-align: left;
}

.lang-option:hover {
    background: var(--neutral-50);
}

.lang-option.active {
    background: var(--neutral-100);
}

.lang-option.active .lang-code {
    color: var(--accent);
}

.lang-code {
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--neutral-500);
    width: 24px;
}

.lang-name {
    color: var(--neutral-700);
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: var(--neutral-600);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: var(--neutral-900);
}

/* Hero */
.hero {
    padding: 8rem 0 5rem;
    background: linear-gradient(135deg, var(--neutral-50) 0%, var(--neutral-100) 100%);
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--neutral-600);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-button {
    display: inline-block;
    background: var(--neutral-900);
    color: #fff;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s;
}

.cta-button:hover {
    background: var(--neutral-700);
    transform: translateY(-2px);
}

/* Sections */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--neutral-900);
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--neutral-500);
    text-align: center;
    margin-bottom: 3rem;
}

/* Services */
.services {
    padding: 5rem 0;
}

.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.card {
    background: #fff;
    border: 1px solid var(--neutral-200);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.1);
    border-color: var(--neutral-300);
}

.card-icon-wrapper {
    width: 56px;
    height: 56px;
    background: var(--neutral-100);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.card-icon {
    width: 28px;
    height: 28px;
    color: var(--neutral-700);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: 0.5rem;
}

.card-description {
    font-size: 0.9375rem;
    color: var(--neutral-600);
}

/* Success Stories */
.success-stories {
    padding: 5rem 0;
    background: var(--neutral-50);
}

.featured-project {
    background: #fff;
    border: 1px solid var(--neutral-200);
    border-radius: 1rem;
    padding: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.project-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.project-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 1rem;
}

.project-description {
    font-size: 1rem;
    color: var(--neutral-600);
    margin-bottom: 1.5rem;
}

.project-features {
    list-style: none;
    margin-bottom: 2rem;
}

.project-features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--neutral-700);
    font-size: 0.9375rem;
}

.project-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.project-link:hover {
    color: var(--accent-hover);
}

.link-icon {
    width: 18px;
    height: 18px;
}

/* Contact */
.contact {
    padding: 5rem 0;
    text-align: center;
}

.contact-info {
    margin-top: 1rem;
}

.contact-link {
    font-size: 1.25rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.contact-link:hover {
    text-decoration: underline;
}

/* Footer */
.site-footer {
    background: var(--neutral-900);
    color: var(--neutral-400);
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-brand .logo-text {
    color: #fff;
}

.footer-copy {
    font-size: 0.875rem;
}

/* Responsive */
@media (min-width: 640px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 640px) {
    .main-nav {
        display: none;
    }
    
    .lang-switcher {
        margin-left: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .card, .cta-button {
        transition: none;
    }
}