:root {
    --ms-blue: #5e5e62;
    --ms-blue-hover: #2d2d2f;
    --bg-light: #f5f5f7;
    --hero-light: #ececep;
    --text-main: #1d1d1f;
    --font-stack: "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

body.theme-seika {
    --ms-blue: #D13438;
    --ms-blue-hover: #A4262C;
}

body.theme-tag {
    --ms-blue: #107C10;
    --ms-blue-hover: #0B5A0B;
}

body.theme-kordana {
    --ms-blue: #5C2D91;
    --ms-blue-hover: #3A1D5E;
}

body.theme-leyvigente {
    --ms-blue: #6D4C41;
    --ms-blue-hover: #4E342E;
}

body {
    font-family: var(--font-stack);
    color: var(--text-main);
    background-color: #ffffff;
}

.enterprise-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: #fff;
}

.nav-brand {
    font-weight: 600;
    font-size: 1.2rem;
}

.nav-links a {
    margin-left: 1.5rem;
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.9rem;
}

.hero-section {
    height: 70vh;
    background-color: var(--bg-light);
    background-image: url('../assets/index-seika-hero-1920x1080-web.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 5%;
}

.feature-banner {
    background-image: url('../assets/index-opensource-1920x600-web.jpg');
    background-color: #e6e6e6;
    background-size: cover;
    background-position: center;
    padding: 6rem 5%;
    display: flex;
    align-items: center;
    min-height: 500px;
}

.hero-content {
    max-width: 500px;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.btn-primary {
    display: inline-block;
    background-color: var(--ms-blue);
    color: #fff;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 2px;
    transition: background 0.2s;
}

.btn-primary:hover {
    background-color: var(--ms-blue-hover);
}

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--text-main);
    border: 2px solid var(--text-main);
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 2px;
}

.product-grid-container {
    padding: 4rem 5%;
    max-width: 1600px;
    margin: 0 auto;
}

.product-grid-container h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: #fff;
    border: 1px solid transparent;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: var(--bg-light);
}

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-body h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.card-body p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}


.feature-banner .banner-content {
    background: rgba(255, 255, 255, 0.9);
    padding: 2.5rem;
    max-width: 450px;
    border-radius: 2px;
}

.feature-banner h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-banner p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}


.contact-section {
    text-align: center;
    padding: 6rem 5%;
    background-color: #fff;
    max-width: 800px;
    margin: 0 auto;
}

.contact-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #555;
}

.contact-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.contact-actions .btn-primary:hover {
    background-color: #1ebc5c !important;
}


.enterprise-footer {
    background-color: #f2f2f2;
    padding: 3rem 5% 1rem 5%;
    font-size: 0.85rem;
    color: #616161;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    color: var(--text-main);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-column a {
    display: block;
    color: #616161;
    text-decoration: none;
    margin-bottom: 0.8rem;
}

.footer-column a:hover {
    text-decoration: underline;
    color: var(--text-main);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #d2d2d2;
}

.footer-locale {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-locale .location {
    color: #888;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-legal a {
    color: #616161;
    text-decoration: none;
}

.footer-legal a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

.hero-section, .center-hero {
    position: relative; /* Para que la máscara sepa dónde posicionarse */
    overflow: hidden;
}

.hero-section::before, .center-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 1.0) 0%, rgba(255, 255, 255, 0) 60%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

body.theme-seika .center-hero::before {
    background: linear-gradient(to right, rgba(253, 240, 241, 0.95) 0%, rgba(253, 240, 241, 0) 70%);
}

.center-hero {
    text-align: center;
    padding: 8rem 5% 4rem 5%;
    background: linear-gradient(to bottom, var(--hero-light), #ffffff);
}
.center-hero h1 { font-size: 3.5rem; font-weight: 600; margin-bottom: 1.5rem; letter-spacing: -0.02em; }
.center-hero p { font-size: 1.25rem; color: #444; max-width: 700px; margin: 0 auto 2.5rem auto; line-height: 1.5; }

.split-hero {
    display: flex;
    align-items: center;
    padding: 6rem 5%;
    background-color: #f2f2f2;
    gap: 4rem;
}
.split-hero .content { flex: 1; }
.split-hero .content h1 { font-size: 3rem; margin-bottom: 1.5rem; }
.split-hero .content p { font-size: 1.1rem; margin-bottom: 2rem; color: #555; }
.split-hero .image-container { flex: 1; }
.split-hero .image-container img { width: 100%; border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

.billing-toggle { text-align: center; margin: 2rem 0 3rem 0; }
.billing-toggle button {
    background: transparent; border: 1px solid #ccc; padding: 0.6rem 1.5rem;
    font-size: 1rem; cursor: pointer; font-weight: 600;
}
.billing-toggle button.active { background: #e6e6e6; border-color: #888; }

.pricing-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem; max-width: 1200px; margin: 0 auto 5rem auto; padding: 0 5%;
}
.pricing-card {
    background: #fff; padding: 2.5rem; border: 1px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03); transition: transform 0.2s;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.pricing-card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.pricing-card .price { font-size: 2.5rem; font-weight: 600; margin-bottom: 0.5rem; }
.pricing-card .price span { font-size: 1rem; font-weight: normal; color: #666; }
.pricing-card ul { list-style: none; margin: 2rem 0; }
.pricing-card ul li { margin-bottom: 1rem; padding-left: 1.5rem; position: relative; }
.pricing-card ul li::before { content: '✓'; color: var(--ms-blue); position: absolute; left: 0; font-weight: bold; }

.search-hero {
    text-align: center;
    padding: 10rem 5% 6rem 5%;
    background-color: #ffffff;
    min-height: 80vh;
}
.search-hero h1 {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ms-blue);
    margin-bottom: 1rem;
}
.search-hero p.subtitle {
    font-size: 1.25rem;
    color: #555;
    margin-bottom: 3rem;
}
.store-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}
.store-note {
    display: block;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #888;
}

.dark-split-hero {
    display: flex;
    align-items: center;
    padding: 6rem 5%;
    background-color: #1a1a1a;
    color: #ffffff;
    min-height: 85vh;
    gap: 4rem;
}
.dark-split-hero .content { flex: 1; }
.dark-split-hero .content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}
.dark-split-hero .content p {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    color: #cccccc;
    line-height: 1.6;
}
.dark-split-hero .btn-primary { background-color: #ffffff; color: #1a1a1a; }
.dark-split-hero .btn-primary:hover { background-color: #e6e6e6; }
.dark-split-hero .btn-outline { border-color: #ffffff; color: #ffffff; }
.dark-split-hero .btn-outline:hover { background-color: rgba(255,255,255,0.1); }

.dark-split-hero .image-container { flex: 1; }
.dark-split-hero .image-container img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.minimal-footer {
    padding: 2rem 5%;
    background-color: transparent;
    border-top: 1px solid #e0e0e0;
    font-size: 0.85rem;
    color: #616161;
}

.minimal-footer .footer-bottom {
    border-top: none;
    padding-top: 0;
}

.minimal-footer.dark-footer {
    background-color: #1a1a1a;
    border-top: 1px solid #333;
    color: #999;
}
.minimal-footer.dark-footer a { color: #999; }
.minimal-footer.dark-footer a:hover { color: #fff; }
.minimal-footer.dark-footer .location { color: #666; }


body.theme-seika {
    --ms-blue: #D13438;
    --ms-blue-hover: #A4262C;
    --hero-light: #fdf0f1;
}

body.theme-tag {
    --ms-blue: #107C10;
    --ms-blue-hover: #0B5A0B;
    --hero-light: #f1f9f1;
}

body.theme-kordana {
    --ms-blue: #5C2D91;
    --ms-blue-hover: #3A1D5E;
    --hero-light: #f6f2fb;
}


body.theme-leyvigente {
    --ms-blue: #6D4C41;
    --ms-blue-hover: #4E342E;
    --hero-light: #f8f4f2;
}

.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

@media (max-width: 768px) {
    .enterprise-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links a {
        margin: 0 0.5rem;
    }

    .hero-section {
        height: auto;
        padding: 6rem 5%;
        text-align: center;
    }

    .center-hero h1 {
        font-size: 2.2rem;
    }

    .center-hero p {
        font-size: 1rem;
    }

    .split-hero,
    .dark-split-hero {
        flex-direction: column;
        text-align: center;
        padding: 4rem 5%;
        gap: 2rem;
    }

    .split-hero .content h1,
    .dark-split-hero .content h1 {
        font-size: 2.2rem;
    }

    .search-hero h1 {
        font-size: 2.8rem;
    }

    .search-hero p.subtitle {
        font-size: 1.1rem;
    }

    .feature-banner {
        padding: 4rem 5%;
        text-align: center;
        background-position: left center;
    }

    .feature-banner .banner-content {
        margin: 0 auto;
    }

    .contact-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .contact-actions a {
        width: 100%;
    }

    .two-col-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    h1[style*="font-size: 8rem"] {
        font-size: 5rem !important;
    }
}