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

:root {
    --bg: #f5f5f5;
    --text-dark: #1c1c1c;
    --accent: #2ed573;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

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

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(245, 245, 245, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

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

.logo img {
    height: 62px;
    width: auto;
    border-radius: 8px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s ease;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-link:hover {
    background: rgba(0, 0, 0, 0.05);
}

.nav-link svg {
    transition: transform 0.2s ease;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 1001;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(4px);
}

.nav-dropdown:hover .nav-link svg {
    transform: rotate(180deg);
}

.dropdown-item {
    display: block;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.dropdown-item:hover {
    background: #f5f5f5;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #888;
}

.lang-toggle span.active {
    color: var(--text-dark);
    font-weight: 600;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-dark {
    background: var(--text-dark);
    color: white;
}

.btn-dark:hover {
    background: #333;
}

.btn-white {
    background: white;
    color: var(--text-dark);
}

.btn-white:hover {
    background: #f0f0f0;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    padding: 140px 0 60px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 28px;
}

.hero-badge::before {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.15;
    max-width: 750px;
    margin: 0 auto;
    color: var(--text-dark);
}

/* ============================================
   SERVICES - 5 Gradient Cards
   ============================================ */
.services {
    padding: 40px 0 100px;
}

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

/* Card Base */
.service-card {
    border-radius: 28px;
    padding: 36px 32px 24px;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Noise texture overlay - film grain effect */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("../assets/noise.svg");
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 0.5;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 1;
}

/* Subtle light/shadow for depth */
.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 10%, rgba(255,255,255,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 90%, rgba(0,0,0,0.25) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.service-card > * {
    position: relative;
    z-index: 2;
}

.card-title {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: 28px;
}

.card-features {
    list-style: none;
    flex-grow: 1;
}

.card-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-size: 15px;
    line-height: 1.55;
    opacity: 0.92;
}

.card-features li::before {
    content: '+';
    font-size: 18px;
    font-weight: 300;
    opacity: 0.6;
    flex-shrink: 0;
    margin-top: -1px;
}

.card-footer {
    margin-top: auto;
    padding-top: 24px;
}

.card-footer .btn {
    width: 100%;
    padding: 18px 28px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Card Gradients - Rich saturated colors like reference */
.card-1 {
    background:
        linear-gradient(135deg,
            #1a4a4a 0%,
            #2a6b5a 20%,
            #3d8b6a 40%,
            #5a9a75 60%,
            #8aaa80 80%,
            #c4a080 100%
        );
}

.card-2 {
    background:
        linear-gradient(135deg,
            #1a3a5a 0%,
            #2a5580 20%,
            #4080a0 40%,
            #55a0b8 60%,
            #70b8c8 80%,
            #90c8d0 100%
        );
}

.card-3 {
    background:
        linear-gradient(135deg,
            #d85a40 0%,
            #e87050 20%,
            #f08858 60%,
            #f5a060 80%,
            #f0a878 100%
        );
}

.card-4 {
    background:
        linear-gradient(135deg,
            #5a2a70 0%,
            #7a4090 20%,
            #9050a8 40%,
            #a868b8 60%,
            #c080c0 80%,
            #d098c8 100%
        );
}

.card-5 {
    background:
        linear-gradient(135deg,
            #0a4858 0%,
            #186878 20%,
            #308898 40%,
            #48a0a8 60%,
            #68b8b8 80%,
            #88c8c8 100%
        );
}

/* Last row - 2 cards centered using 6-column subgrid */
.services-grid {
    grid-template-columns: repeat(6, 1fr);
}

.services-grid .service-card:nth-child(1) { grid-column: 1 / 3; }
.services-grid .service-card:nth-child(2) { grid-column: 3 / 5; }
.services-grid .service-card:nth-child(3) { grid-column: 5 / 7; }
.services-grid .service-card:nth-child(4) { grid-column: 2 / 4; }
.services-grid .service-card:nth-child(5) { grid-column: 4 / 6; }

/* ============================================
   TEAM SECTION
   ============================================ */
.team {
    padding: 80px 0 100px;
}

.section-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.2;
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 48px;
}

.team-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px 20px;
}

.team-member {
    text-align: center;
}

.team-img {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    margin-bottom: 16px;
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Align eye levels across team photos */
.team-member:nth-child(1) .team-img img {
    object-position: center 20%; /* Santiago - cara arriba en foto */
}

.team-member:nth-child(2) .team-img img {
    object-position: center 5%; /* Nicolás - cara baja, mostrar más arriba */
    transform: scale(1.1);
}

.team-member:nth-child(3) .team-img img {
    object-position: center 30%; /* Laura - cara en medio */
}

.team-member:nth-child(4) .team-img img {
    object-position: center 15%; /* Juan Felipe - cara arriba en foto */
}

.team-member:hover .team-img img {
    transform: scale(1.05);
}

.team-member:nth-child(2):hover .team-img img {
    transform: scale(1.15); /* Nicolás ya tiene scale base de 1.1 */
}

.team-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.team-role {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .team-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .team-gallery {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }

    .team {
        padding: 60px 0 80px;
    }
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats {
    padding: 80px 0 100px;
    background: #fafafa;
}

.stats-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
}

.chart-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.chart-card.chart-main {
    grid-row: 1 / 3;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-label {
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.chart-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
}

.chart-value.negative {
    color: #2ed573;
}

/* Line Chart */
.chart-area {
    position: relative;
}

.line-chart {
    width: 100%;
    height: auto;
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 12px;
    color: #999;
}

/* Bar Charts */
.bars-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 120px;
    gap: 12px;
}

.bar {
    flex: 1;
    background: linear-gradient(180deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 8px 8px 4px 4px;
    height: var(--height);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 8px;
    transition: all 0.3s ease;
}

.bar span {
    font-size: 11px;
    font-weight: 600;
    color: #666;
}

.bar.active {
    background: linear-gradient(180deg, var(--accent) 0%, #27ae60 100%);
}

.bar.active span {
    color: white;
}

.bars-chart.inverse .bar {
    background: linear-gradient(180deg, #e3f2fd 0%, #bbdefb 100%);
}

.bars-chart.inverse .bar.active {
    background: linear-gradient(180deg, #42a5f5 0%, #1976d2 100%);
}

/* Metric Ring */
.metric-ring {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
}

.metric-ring svg {
    width: 100px;
    height: 100px;
}

.metric-value {
    position: absolute;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
}

/* Stats Responsive */
@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .chart-card.chart-main {
        grid-column: 1 / -1;
        grid-row: auto;
    }
}

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

    .stats {
        padding: 60px 0 80px;
    }

    .chart-value {
        font-size: 20px;
    }
}

/* ============================================
   FREEBIES SECTION
   ============================================ */
.freebies {
    padding: 100px 0;
    background: white;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-top: -20px;
    margin-bottom: 48px;
}

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

.freebie-card {
    background: #fafafa;
    border-radius: 20px;
    padding: 32px 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.freebie-card:hover {
    background: white;
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(46, 213, 115, 0.15);
}

.freebie-card.coming-soon {
    opacity: 0.7;
    cursor: default;
}

.freebie-card.coming-soon:hover {
    transform: none;
    border-color: transparent;
    box-shadow: none;
    background: #fafafa;
}

.freebie-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.freebie-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.freebie-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 20px;
}

.freebie-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.freebie-badge {
    display: inline-block;
    padding: 6px 12px;
    background: #e5e5e5;
    color: #888;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

@media (max-width: 1000px) {
    .freebies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .freebies {
        padding: 60px 0;
    }

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

    .section-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 40px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    height: 50px;
    width: auto;
    border-radius: 6px;
    opacity: 0.7;
}

.footer-brand span {
    font-size: 14px;
    color: #888;
}

.footer-copy {
    font-size: 13px;
    color: #888;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid .service-card:nth-child(1),
    .services-grid .service-card:nth-child(2),
    .services-grid .service-card:nth-child(3),
    .services-grid .service-card:nth-child(4),
    .services-grid .service-card:nth-child(5) {
        grid-column: auto;
    }

    .services-grid .service-card:nth-child(5) {
        grid-column: 1 / -1;
        max-width: 420px;
        margin: 0 auto;
        width: 100%;
    }

    .service-card {
        min-height: 380px;
    }
}

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

    .services-grid .service-card:nth-child(5) {
        max-width: none;
    }

    .service-card {
        min-height: auto;
        padding: 32px 28px 20px;
        border-radius: 24px;
    }

    .card-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .card-features li {
        font-size: 14px;
        padding: 8px 0;
    }

    .card-footer .btn {
        padding: 16px 24px;
        border-radius: 14px;
    }

    .hero {
        padding: 120px 0 40px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .nav-right .btn {
        display: none;
    }

    .nav-menu {
        display: none;
    }

    .footer-inner {
        flex-direction: column;
        gap: 16px;
    }

    .footer-brand {
        flex-direction: column;
        gap: 8px;
    }
}
