/* ==========================================
   CARSAV GROWTH - HOLDING CORPORATIVO
   Diseño Moderno y Elegante
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #0A2540;
    --navy-light: #1A3A5C;
    --blue: #0052CC;
    --blue-light: #4C9AFF;
    --gold: #B8860B;
    --text-primary: #1A1A2E;
    --text-secondary: #4A5568;
    --text-light: #718096;
    --bg-light: #F8FAFC;
    --bg-lighter: #FFFFFF;
    --border: #E2E8F0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

img {
    max-width: 100%;
    display: block;
}

/* ==========================================
   HEADER
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(30px) saturate(180%);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--navy) 20%,
        var(--blue) 50%,
        var(--navy) 80%,
        transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.header.scrolled::before {
    opacity: 1;
}

.header-content {
    display: grid;
    grid-template-columns: 280px 1fr auto;
    align-items: center;
    height: 100px;
    gap: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo img {
    height: 56px;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 56px;
}

.main-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.main-nav a:not(.cta-btn)::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, var(--navy), var(--blue));
    transition: transform 0.3s ease;
}

.main-nav a:not(.cta-btn):hover {
    color: var(--navy);
}

.main-nav a:not(.cta-btn):hover::before {
    transform: translateX(-50%) scaleX(1);
}

.cta-btn {
    padding: 14px 32px !important;
    background: var(--navy);
    color: white !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.cta-btn:hover::before {
    left: 100%;
}

.cta-btn:hover {
    background: var(--navy-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(10, 37, 64, 0.25);
}

/* ==========================================
   HERO
   ========================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(10, 37, 64, 0.92) 0%,
        rgba(26, 58, 92, 0.85) 50%,
        rgba(0, 82, 204, 0.75) 100%);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    color: white;
}

.hero-tag {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 32px;
}

.hero h1 {
    font-size: 72px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 32px;
    color: white;
    letter-spacing: -2px;
}

.hero p {
    font-size: 22px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 48px;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 20px;
    align-items: center;
}

.btn-primary {
    padding: 18px 40px;
    background: white;
    color: var(--navy);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.3);
}

.btn-primary.large {
    padding: 20px 48px;
    font-size: 18px;
}

.btn-outline {
    padding: 18px 40px;
    background: transparent;
    color: white;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.scroll-down {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-down span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 25px;
    position: relative;
}

.scroll-down span::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 10px;
    background: white;
    border-radius: 2px;
    animation: scroll-animation 2s infinite;
}

@keyframes scroll-animation {
    0%, 100% { opacity: 0; top: 10px; }
    50% { opacity: 1; top: 20px; }
}

/* ==========================================
   STATS
   ========================================== */
.stats {
    padding: 100px 0;
    background: var(--bg-lighter);
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 64px;
    font-weight: 700;
    color: var(--navy);
    font-family: 'Playfair Display', serif;
    margin-bottom: 12px;
    line-height: 1;
}

.stat-label {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: -0.2px;
}

/* ==========================================
   SECTION HEADER
   ========================================== */
.section-header {
    margin-bottom: 80px;
}

.section-header.center {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 80px;
}

.tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(10, 37, 64, 0.08);
    color: var(--navy);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 50px;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 56px;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
}

.lead {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 400;
}

/* ==========================================
   HOLDING SECTION
   ========================================== */
.holding {
    padding: 140px 0;
    background: var(--bg-light);
}

.holding-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: start;
    margin-top: 60px;
}

.holding-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.holding-text h3 {
    font-size: 36px;
    margin-bottom: 48px;
    letter-spacing: -1px;
}

.value-items {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.value-item {
    display: flex;
    gap: 24px;
}

.value-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: var(--navy);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.value-content h4 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 600;
}

.value-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 16px;
}

/* ==========================================
   EMPRESAS SECTION
   ========================================== */
.empresas {
    padding: 140px 0;
    background: white;
}

.empresas-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.empresa-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 48px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.empresa-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--navy), var(--blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.empresa-card:hover {
    border-color: var(--navy);
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(10, 37, 64, 0.15);
}

.empresa-card:hover::before {
    transform: scaleX(1);
}

.empresa-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.empresa-logo {
    height: 80px;
    display: flex;
    align-items: center;
}

.empresa-logo img {
    max-height: 60px;
    max-width: 180px;
}

.empresa-category {
    padding: 6px 16px;
    background: rgba(10, 37, 64, 0.08);
    color: var(--navy);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 50px;
}

.empresa-card h3 {
    font-size: 28px;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.empresa-card > p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
    font-size: 16px;
}

.empresa-features {
    list-style: none;
    margin-bottom: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.empresa-features li {
    padding: 8px 16px;
    background: var(--bg-light);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
}

.empresa-link {
    color: var(--navy);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.empresa-link:hover {
    color: var(--blue);
    gap: 8px;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about {
    padding: 140px 0;
    background: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.about-content h2 {
    font-size: 48px;
    margin-bottom: 32px;
    letter-spacing: -1px;
}

.about-content p {
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 24px;
}

.about-content .btn-primary {
    margin-top: 24px;
}

/* ==========================================
   CTA SECTION
   ========================================== */
.cta {
    padding: 140px 0;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.cta-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-size: 56px;
    color: white;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
}

.cta p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 48px;
    line-height: 1.7;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--text-primary);
    color: rgba(255, 255, 255, 0.7);
    padding: 100px 0 40px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 80px;
    margin-bottom: 80px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 24px;
}

.footer-col.brand p {
    font-size: 16px;
    line-height: 1.8;
    max-width: 400px;
}

.footer-col h4 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 16px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    .container {
        padding: 0 24px;
    }

    .header-content {
        grid-template-columns: 220px 1fr auto;
        gap: 40px;
    }

    .main-nav {
        gap: 36px;
    }

    .main-nav a {
        font-size: 14px;
    }

    .hero h1 {
        font-size: 56px;
    }

    .section-header h2 {
        font-size: 42px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .holding-content,
    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .empresas-list {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .header-content {
        grid-template-columns: 1fr auto;
        height: 80px;
        gap: 20px;
    }

    .main-nav {
        display: none;
    }

    .logo img {
        height: 45px;
    }

    .hero {
        min-height: 700px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero p {
        font-size: 18px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .section-header h2 {
        font-size: 36px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .holding-text h3,
    .cta h2 {
        font-size: 32px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
}
