/* ================================================= */
/* ============== RESET & VARIABLES ================ */
/* ================================================= */

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

:root {
    --apple-bg: #ffffff;
    --apple-text: #1d1d1f;
    --apple-muted: #6e6e73;
    --apple-border: rgba(0,0,0,0.06);
    --apple-blue: #0066cc;
    --apple-green: #2ecc71;
    --apple-gray-soft: #f5f5f7;
    --apple-radius-xl: 32px;
    --apple-radius-lg: 24px;
    --transition-apple: all 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
    
    /* Variables responsivas */
    --section-padding: 80px;
    --hero-height: 45vh;
    --hero-min-height: 480px;
    --stat-padding: 32px;
    --stat-number: 52px;
    --title-size: 48px;
    --grid-gap: 24px;
}

body {
    background: var(--apple-bg);
    color: var(--apple-text);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ================================================= */
/* ============== MEDIA QUERIES ==================== */
/* ================================================= */

@media (max-height: 800px) and (min-width: 1200px) {
    :root {
        --section-padding: 50px;
        --hero-height: 40vh;
        --hero-min-height: 380px;
        --stat-padding: 24px;
        --stat-number: 42px;
        --title-size: 40px;
        --grid-gap: 20px;
    }
    
    .hero-content h1 {
        font-size: 44px !important;
    }
    
    .hero-content p {
        font-size: 18px !important;
    }
    
    .section {
        padding: var(--section-padding) 24px !important;
    }
    
    .stat-item {
        padding: 24px 16px !important;
    }
    
    .stat-number {
        font-size: var(--stat-number) !important;
    }
    
    .section-title {
        font-size: var(--title-size) !important;
    }
}

@media (max-height: 700px) and (min-width: 1200px) {
    :root {
        --section-padding: 40px;
        --hero-height: 35vh;
        --hero-min-height: 320px;
    }
}

/* ================================================= */
/* ============== HEADER =========================== */
/* ================================================= */

.mac-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--apple-border);
    padding: 12px 24px;
}

.mac-nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mac-brand img {
    height: 36px;
    width: auto;
    display: block;
}

.mac-links {
    display: flex;
    gap: 32px;
}

.mac-links a {
    color: var(--apple-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.mac-links a:hover {
    opacity: 0.65;
}

/* ================================================= */
/* ============== HERO ============================= */
/* ================================================= */

.hero-cinematic {
    position: relative;
    height: var(--hero-height, 45vh);
    min-height: var(--hero-min-height, 480px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    transition: transform 8s ease;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.5));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
    animation: fadeUp 1.2s ease forwards;
    opacity: 0;
}

.hero-content h1 {
    font-size: 52px;
    font-weight: 600;
    letter-spacing: -2px;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-content p {
    font-size: 20px;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

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

.hero-cinematic:hover .hero-bg {
    transform: scale(1.18);
}

/* ================================================= */
/* ============== SECTION & CONTAINERS ============= */
/* ================================================= */

.section {
    padding: var(--section-padding, 80px) 24px;
}

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

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--grid-gap, 24px);
}

/* ================================================= */
/* ============== CARDS ============================ */
/* ================================================= */

.card {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--apple-radius-lg);
    padding: 36px 28px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.02);
    transition: var(--transition-apple);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.04);
    border-color: rgba(0,102,204,0.2);
    background: white;
}

.card i {
    font-size: 36px;
    color: var(--apple-blue);
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 600;
}

.card p {
    color: var(--apple-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* ================================================= */
/* ============== STATS ============================ */
/* ================================================= */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--grid-gap, 24px);
}

.stat-item {
    text-align: center;
    padding: var(--stat-padding, 32px) 20px;
    background: white;
    border-radius: var(--apple-radius-lg);
    border: 1px solid var(--apple-border);
    transition: var(--transition-apple);
}

.stat-item:hover {
    transform: translateY(-4px);
    border-color: var(--apple-blue);
    box-shadow: 0 24px 48px rgba(0,102,204,0.04);
}

.stat-number {
    font-size: var(--stat-number, 52px);
    font-weight: 700;
    letter-spacing: -2px;
    color: var(--apple-text);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--apple-muted);
    font-size: 15px;
}

/* ================================================= */
/* ============== TEAM GRID ======================== */
/* ================================================= */

.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.team-image {
    border-radius: var(--apple-radius-xl);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 20px 40px rgba(0,0,0,0.02);
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-apple);
}

.team-image:hover img {
    transform: scale(1.02);
}

/* ================================================= */
/* ============== PANEL CARD ======================= */
/* ================================================= */

.panel-card {
    background: white;
    border-radius: var(--apple-radius-xl);
    overflow: hidden;
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.7);
    transition: transform 8s ease;
}

.panel-content {
    position: relative;
    z-index: 2;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--apple-radius-lg);
    padding: 40px 32px;
    margin: 24px;
    text-align: center;
    width: calc(100% - 48px);
}

.panel-content i {
    font-size: 40px;
    color: var(--apple-blue);
    margin-bottom: 16px;
}

.panel-content h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.panel-content p {
    color: var(--apple-muted);
    font-size: 16px;
}

.panel-card:hover .panel-bg {
    transform: scale(1.1);
}

/* ================================================= */
/* ============== PARALLAX ========================= */
/* ================================================= */

.parallax-section {
    position: relative;
    height: 380px;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.parallax-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}

.parallax-content {
    position: relative;
    z-index: 2;
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 24px 48px;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.15);
}

.parallax-content h2 {
    font-size: 36px;
    color: white;
    margin: 0;
}

/* ================================================= */
/* ============== INDUSTRY GRID ==================== */
/* ================================================= */

.industry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--grid-gap, 24px);
    margin-top: 40px;
}

.industry-item {
    background: white;
    border-radius: var(--apple-radius-lg);
    padding: 36px 24px;
    text-align: center;
    border: 1px solid var(--apple-border);
    transition: var(--transition-apple);
}

.industry-item:hover {
    transform: translateY(-6px);
    border-color: var(--apple-blue);
    box-shadow: 0 20px 40px rgba(0,102,204,0.04);
}

.industry-item i {
    font-size: 40px;
    color: var(--apple-blue);
    margin-bottom: 20px;
}

.industry-item h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.industry-item p {
    color: var(--apple-muted);
    font-size: 14px;
    margin: 0;
}

/* ================================================= */
/* ============== BUTTONS ========================== */
/* ================================================= */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 36px;
    border-radius: 980px;
    background: #1d1d1f;
    color: white;
    font-weight: 500;
    font-size: 17px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #000;
    transform: scale(1.02);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.cta {
    text-align: center;
    padding: 0 24px 80px;
}

/* ================================================= */
/* ============== TYPOGRAPHY ======================= */
/* ================================================= */

.section-title {
    text-align: center;
    font-size: var(--title-size, 48px);
    font-weight: 600;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.section-subtitle {
    color: var(--apple-blue);
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    text-align: center;
    margin-bottom: 12px;
    font-weight: 600;
}

.lead {
    max-width: 820px;
    margin: 0 auto 48px;
    text-align: center;
    font-size: 20px;
    line-height: 1.7;
    color: var(--apple-text);
}

/* ================================================= */
/* ============== FOOTER =========================== */
/* ================================================= */

.footer {
    background: var(--apple-gray-soft);
    border-top: 1px solid var(--apple-border);
    padding: 60px 24px 40px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--apple-text);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: var(--apple-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--apple-blue);
}

.footer-col i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 30px;
    border-top: 1px solid var(--apple-border);
    text-align: center;
    color: var(--apple-muted);
    font-size: 13px;
}

/* ================================================= */
/* ============== TABS ============================= */
/* ================================================= */

.tab-btn.active {
    background: var(--apple-blue) !important;
    color: white !important;
}

/* ================================================= */
/* ============== RESPONSIVE ======================= */
/* ================================================= */

@media (max-width: 950px) {
    .grid-3 { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .industry-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-container { grid-template-columns: repeat(2, 1fr); }
    .hero-content h1 { font-size: 42px; }
}

@media (max-width: 520px) {
    .stat-grid { grid-template-columns: 1fr; }
    .industry-grid { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; }
    .section-title { font-size: 36px; }
    .hero-content h1 { font-size: 36px; }
    .hero-content p { font-size: 18px; }
    .mac-links { display: none; }
    .parallax-content h2 { font-size: 28px; }
    .parallax-content { padding: 20px 30px; }
}

html {
    scroll-behavior: smooth;
}