/* ============================================
   CODE REBELS - Main Stylesheet
   Brand Colors: #81277F (Purple) & #DD2078 (Magenta)
   LIGHT THEME - Innovación sin límites
   ============================================ */

/* CSS Variables */
:root {
    --primary: #81277F;
    --primary-dark: #6a1f68;
    --primary-light: #a33fa0;
    --secondary: #DD2078;
    --secondary-light: #e94d94;
    --accent: #DD2078;

    /* Light theme colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fc;
    --bg-tertiary: #f1f3f8;
    --bg-card: #ffffff;

    --text-primary: #1a1a2e;
    --text-secondary: #4a4a68;
    --text-muted: #6b7280;
    --text-light: #9ca3af;

    --border-color: #e5e7eb;
    --border-light: #f3f4f6;

    --white: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-light: linear-gradient(135deg, rgba(129, 39, 127, 0.05) 0%, rgba(221, 32, 120, 0.05) 100%);

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.03);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.05);

    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Space Grotesk', var(--font-sans);

    --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--text-primary);
    line-height: 1.2;
    font-weight: 600;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 0.25rem;
    background: var(--bg-primary);
    padding: 0.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.lang-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(129, 39, 127, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(129, 39, 127, 0.4);
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

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

.btn-full {
    width: 100%;
}

/* Section Styling */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--gradient-light);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(129, 39, 127, 0.1);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.75rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 90px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links .lang-switcher {
    margin-left: 0.5rem;
}

.btn-nav {
    padding: 0.625rem 1.25rem;
    background: var(--gradient-primary);
    color: var(--white) !important;
    border-radius: var(--radius);
}

.btn-nav:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(129, 39, 127, 0.3);
}

.nav-login {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--text-muted) !important;
}

.nav-login:hover {
    border-color: var(--primary);
    color: var(--primary) !important;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    padding: 10rem 1.5rem 4rem;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse at center, rgba(129, 39, 127, 0.06) 0%, transparent 70%);
    pointer-events: none;
    grid-column: 1 / -1;
    grid-row: 1 / -1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    z-index: 1;
    grid-column: 1;
    grid-row: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--gradient-light);
    border: 1px solid rgba(129, 39, 127, 0.15);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
    width: fit-content;
    margin-bottom: 1.5rem;
}

.hero h1 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 540px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Code Window */
.hero-visual {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 1;
    grid-column: 2;
    grid-row: 1;
}

.code-window {
    width: 100%;
    max-width: 500px;
    background: #1e1e2e;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.window-header {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    background: rgba(0, 0, 0, 0.3);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27ca40; }

.code-content {
    padding: 1.5rem;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.875rem;
    line-height: 1.7;
    overflow-x: auto;
    color: #cdd6f4;
}

.code-content code {
    display: block;
}

.keyword { color: #cba6f7; }
.variable { color: #89b4fa; }
.property { color: #fab387; }
.string { color: #a6e3a1; }
.method { color: #89b4fa; }

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.service-card {
    position: relative;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    transition: var(--transition);
}

.service-card:hover {
    border-color: rgba(129, 39, 127, 0.3);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.service-card.featured {
    background: var(--gradient-light);
    border-color: rgba(129, 39, 127, 0.2);
}

.featured-badge {
    position: absolute;
    top: -0.75rem;
    right: 1.5rem;
    padding: 0.375rem 0.875rem;
    background: var(--gradient-primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-light);
    border: 1px solid rgba(129, 39, 127, 0.1);
    border-radius: var(--radius-lg);
    margin-bottom: 1.25rem;
}

.service-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.service-card h3 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.service-card > p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.service-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--secondary);
    border-radius: 50%;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    color: var(--secondary);
    font-weight: 600;
}

.service-link:hover {
    color: var(--primary);
}

/* ============================================
   SISTEMAS WEB SECTION
   ============================================ */
.sistemas {
    background: var(--bg-primary);
    position: relative;
}

.sistemas-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.sistemas-text .section-tag {
    margin-bottom: 1rem;
}

.sistemas-text h2 {
    margin-bottom: 1.5rem;
}

.sistemas-intro {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.sistemas-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-light);
    border: 1px solid rgba(129, 39, 127, 0.1);
    border-radius: var(--radius-lg);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.feature h4 {
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.feature p {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

/* Dashboard Preview */
.sistemas-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-preview {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 4/3;
    background: #1e1e2e;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
}

.dashboard-nav {
    display: flex;
    gap: 0.5rem;
}

.dashboard-nav .nav-item {
    width: 60px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.dashboard-nav .nav-item.active {
    background: var(--gradient-primary);
}

.dashboard-user {
    width: 28px;
    height: 28px;
    background: var(--gradient-primary);
    border-radius: 50%;
}

.dashboard-content {
    display: flex;
    height: calc(100% - 52px);
}

.dashboard-sidebar {
    width: 60px;
    padding: 1rem 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-item {
    width: 100%;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
}

.sidebar-item.active {
    background: rgba(129, 39, 127, 0.3);
    border-left: 2px solid var(--primary);
}

.dashboard-main {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chart-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 1rem;
}

.chart-header {
    width: 40%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 1rem;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    height: 80px;
}

.bar {
    flex: 1;
    background: var(--gradient-primary);
    border-radius: 4px 4px 0 0;
    animation: barGrow 2s ease-out infinite alternate;
}

@keyframes barGrow {
    from { opacity: 0.6; }
    to { opacity: 1; }
}

.stats-row {
    display: flex;
    gap: 1rem;
}

.mini-stat {
    flex: 1;
    height: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
}

/* ============================================
   PORTFOLIO SECTION
   ============================================ */
.portfolio {
    background: var(--bg-secondary);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--primary);
    background: var(--gradient-light);
    border-color: rgba(129, 39, 127, 0.3);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition);
}

.project-card:hover {
    border-color: rgba(129, 39, 127, 0.3);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.project-card.featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.project-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-secondary);
}

.project-card.featured .project-image {
    aspect-ratio: auto;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-placeholder.sistemas {
    background: linear-gradient(135deg, rgba(129, 39, 127, 0.1) 0%, rgba(221, 32, 120, 0.1) 100%);
}

.project-placeholder.saas {
    background: linear-gradient(135deg, rgba(221, 32, 120, 0.1) 0%, rgba(129, 39, 127, 0.1) 100%);
}

.project-placeholder.ecommerce {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(221, 32, 120, 0.1) 100%);
}

.project-placeholder.dashboard {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(129, 39, 127, 0.1) 100%);
}

.project-placeholder.app {
    background: linear-gradient(135deg, rgba(129, 39, 127, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
}

.project-placeholder.institucional {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(129, 39, 127, 0.1) 100%);
}

.placeholder-icon svg {
    width: 64px;
    height: 64px;
    color: rgba(129, 39, 127, 0.3);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95), transparent);
}

.project-category {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: var(--gradient-primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.detail {
    padding-left: 1rem;
    border-left: 3px solid var(--secondary);
}

.detail-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.detail p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.project-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tech-tag {
    padding: 0.25rem 0.625rem;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
}

.portfolio-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.portfolio-cta p {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

/* ============================================
   PROCESS SECTION
   ============================================ */
.process {
    background: var(--bg-primary);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.process-step {
    position: relative;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    transition: var(--transition);
}

.process-step:hover {
    border-color: rgba(129, 39, 127, 0.3);
    box-shadow: var(--shadow-lg);
}

.step-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
}

.step-content h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.step-content p {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

/* ============================================
   TEAM SECTION
   ============================================ */
.team {
    background: var(--bg-secondary);
}

.team-experience {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    padding: 2rem;
    background: var(--gradient-light);
    border: 1px solid rgba(129, 39, 127, 0.15);
    border-radius: var(--radius-xl);
}

.team-experience p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.team-experience strong {
    color: var(--primary);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.team-member {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    transition: var(--transition);
}

.team-member:hover {
    border-color: rgba(129, 39, 127, 0.3);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.member-avatar {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 1.5rem;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 2;
}

.avatar-ring {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: var(--gradient-primary);
    z-index: 1;
}

.team-member h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.member-role {
    display: block;
    color: var(--secondary);
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.team-member > p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Team Culture */
.team-culture {
    text-align: center;
    padding: 3rem;
    background: var(--gradient-light);
    border: 1px solid rgba(129, 39, 127, 0.15);
    border-radius: var(--radius-2xl);
}

.team-culture h3 {
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.culture-values {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.value {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.value-icon {
    font-size: 1.5rem;
}

.value span:last-child {
    color: var(--text-secondary);
    font-weight: 500;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    background: var(--bg-primary);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

.contact-info .section-tag {
    margin-bottom: 1rem;
}

.contact-info h2 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-info > p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Contact Details */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.contact-item:hover {
    border-color: rgba(129, 39, 127, 0.3);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius);
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    color: var(--white);
}

.contact-item span {
    color: var(--text-primary);
    font-weight: 600;
}

.locations h3 {
    font-size: 1rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.location {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.location-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-light);
    border: 1px solid rgba(129, 39, 127, 0.1);
    border-radius: var(--radius);
}

.location-icon svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.location h4 {
    font-size: 1rem;
    margin-bottom: 0.125rem;
    color: var(--text-primary);
}

.location p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-muted);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--white);
}

.social-link.whatsapp:hover {
    background: #25D366;
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* Contact Form Wrapper */
.contact-form-wrapper {
    padding: 2.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
}

/* Calendar CTA */
.calendar-cta {
    text-align: center;
    padding: 2rem;
    background: var(--gradient-light);
    border: 1px solid rgba(129, 39, 127, 0.15);
    border-radius: var(--radius-xl);
    margin-bottom: 2rem;
}

.calendar-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    margin: 0 auto 1rem;
}

.calendar-icon svg {
    width: 28px;
    height: 28px;
    color: var(--white);
}

.calendar-cta h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.calendar-cta p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Form Divider */
.form-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.form-divider span {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(129, 39, 127, 0.1);
}

.form-group select {
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-secondary);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand .logo-img {
    height: 44px;
}

.footer-slogan {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-brand > p {
    color: var(--text-muted);
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-column a {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.footer-column a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--primary);
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        align-items: center;
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .sistemas-content {
        grid-template-columns: 1fr;
    }

    .sistemas-visual {
        order: -1;
    }

    .project-card.featured {
        grid-column: span 1;
        display: block;
    }

    .project-card.featured .project-image {
        aspect-ratio: 16/10;
    }

    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .nav-links .lang-switcher {
        display: none;
    }
}

@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }

    .navbar {
        padding: 0.5rem 0;
    }

    .logo-img {
        height: 40px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        padding: 1.5rem;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .process-timeline {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .member-avatar {
        width: 120px;
        height: 120px;
    }

    .culture-values {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .member-avatar {
        width: 100px;
        height: 100px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Smooth scroll offset for fixed navbar */
html {
    scroll-padding-top: 80px;
}

/* ============================================
   BLOG STYLES
   ============================================ */

/* Blog Header */
.blog-header {
    padding: 10rem 0 4rem;
    text-align: center;
    background: var(--bg-secondary);
}

.blog-header h1 {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.blog-header p {
    font-size: 1.25rem;
    color: var(--text-muted);
}

/* Blog Section */
.blog-section {
    padding: 4rem 0;
    background: var(--bg-primary);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

/* Blog Card */
.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition);
}

.blog-card:hover {
    border-color: rgba(129, 39, 127, 0.3);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.blog-card-image {
    height: 200px;
    background: linear-gradient(135deg, rgba(129, 39, 127, 0.1) 0%, rgba(221, 32, 120, 0.1) 100%);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 1rem;
    position: relative;
}

/* Overlay for better text readability on images */
.blog-card-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, transparent 50%);
    pointer-events: none;
}

.blog-card-image .blog-category {
    position: relative;
    z-index: 1;
}

.blog-card-image.sistemas {
    background-color: rgba(221, 32, 120, 0.1);
}

.blog-card-image.opinion {
    background-color: rgba(245, 158, 11, 0.1);
}

.blog-category {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--gradient-primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.blog-card-content h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-card-content h2 a {
    color: var(--text-primary);
}

.blog-card-content h2 a:hover {
    color: var(--primary);
}

.blog-card-content > p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9375rem;
}

.blog-link:hover {
    color: var(--primary);
}

/* Blog CTA */
.blog-cta {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.cta-box {
    text-align: center;
    padding: 3rem;
    background: var(--gradient-light);
    border: 1px solid rgba(129, 39, 127, 0.15);
    border-radius: var(--radius-2xl);
}

.cta-box h2 {
    margin-bottom: 0.75rem;
}

.cta-box p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Blog Article */
.blog-article {
    padding: 10rem 0 4rem;
    background: var(--bg-primary);
}

.article-header {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.back-link {
    display: inline-block;
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
}

.back-link:hover {
    color: var(--primary);
}

.article-header .blog-category {
    margin-bottom: 1rem;
}

.article-header h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

/* Article Content */
.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-intro {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.article-content h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.article-content h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.article-content p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content li {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: var(--gradient-light);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    font-size: 1.125rem;
    font-style: italic;
    color: var(--text-primary);
}

.article-content a {
    color: var(--secondary);
    font-weight: 500;
}

.article-content a:hover {
    color: var(--primary);
}

/* Article Footer */
.article-footer {
    max-width: 800px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.article-tags {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.article-tags span {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.article-tags a {
    padding: 0.25rem 0.75rem;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.875rem;
    border-radius: var(--radius);
}

.article-tags a:hover {
    background: var(--gradient-light);
    color: var(--primary);
}

.article-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.article-share span {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.article-share a {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.article-share a:hover {
    color: var(--primary);
}

/* Related Posts */
.related-posts {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.related-posts h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.related-posts .blog-grid {
    max-width: 900px;
    margin: 0 auto;
    grid-template-columns: repeat(2, 1fr);
}

/* Blog Responsive */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .related-posts .blog-grid {
        grid-template-columns: 1fr;
    }

    .article-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .blog-header {
        padding: 8rem 0 3rem;
    }

    .blog-article {
        padding: 8rem 0 3rem;
    }
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    color: white;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 54px;
        height: 54px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

/* ============================================
   FORM STATUS MESSAGES
   ============================================ */
.form-status {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 500;
}

.form-status.success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.form-status.error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.form-status.loading {
    background: var(--gradient-light);
    color: var(--primary);
    border: 1px solid rgba(129, 39, 127, 0.2);
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}