@import url('/resources/css/home/resources/variables.css');
@import url('/resources/css/home/resources/footer.css');
@import url('/resources/css/home/resources/header.css');
@import url('/resources/css/home/resources/buttons.css');

.section-container {
    max-width: 80vw;
    margin: 0 auto;
    padding: 0;
}

.section-title {
    margin-top: 2rem;
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    color: #1e293b;
}

/* Hero Section */
.hero {
    background: #f8f9fa;
    padding: 4rem 0;
}

.hero-container {
    max-width: 80vw;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 3rem;
    align-items: center;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text);
    line-height: 1.2;
}

.hero-content h1 .highlight {
    color: var(--accent);
    display: block;
}

.hero-content p {
    color: var(--text);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.hero-image {
    background: #d1d5db;
    height: 350px;
    border-radius: var(--radius);
    display: flex;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

/* Sales Section */
.sales-section {
    background: white;
}

.sales-container {
    max-width: 80vw;
    margin: 0 auto;
    padding: 0 2rem;
}

.sales-section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text);
}

.sales-content {
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 4rem;
    align-items: center;
}

.sales-text {
    font-size: 1.1rem;
    color: var(--text);
    line-height: 1.7;
}

.sales-image {
    background: var(--glass);
    height: 300px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Modalities */
.modalities {
    padding: 5rem 0;
    background: #f8fafc;
}

.modalities-container {
    max-width: 100vw;
    margin: 0 auto;
    padding: 0 2rem;
}

.modalities h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text);
}

.modalities-content {
    display: grid;
    grid-template-columns: 50% 45%;
    gap: 4rem;
    align-items: center;
}

.modalities-image {
    background: #e2e8f0;
    height: 400px;
    border-radius: 12px;
    display: flex;
}

.modalities-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modalities-list {
    list-style: none;
    word-break: break-word;
    white-space: normal;
}

.modalities-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text);
}

.modalities-list li::before {
    content: "\f21c";
    font-family: "FontAwesome", serif;
    font-weight: 400;
    margin-right: 0.5rem;
    font-size: 1.1rem;
    color: var(--blue);
}

.modalities-note {
    font-size: 0.9rem;
    color: #64748b;
    padding-bottom: 1rem;
    word-break: break-word;
    white-space: normal;
}

.dashboard-content {
    color: var(--text);
}

/* Dashboard Section */
.dashboard {
    padding-bottom: 4rem;
}

.dashboard-container {
    max-width: 80vw;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 3rem;
    align-items: center;
    padding: 0 2rem;
}

.dashboard h2 {
    font-size: 2rem;
    color: var(--text);;
}

.dashboard p {
    color: var(--text);
}

.dashboard-content .cta-button {
    position: fixed;
}

.dashboard-image {
    background: #d1d5db;
    height: 300px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

/* Coverage Section */
.coverage {
    background: url("/resources/home/resources/image/adobe-repartidor-ubicacion.svg") no-repeat center center, #1f2937;
    background-size: cover;
    color: white;
    padding: 4rem 0;
}

.coverage-container {
    max-width: 80vw;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 3rem;
    align-items: center;
    padding: 0 2rem;
}

.coverage h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.coverage p {
    margin-bottom: 1rem;
}

.coverage ul {
    list-style: none;
    margin-bottom: 2rem;
}

.coverage li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.coverage-list li::before {
    content: "• ";
    color: var(--glass);
    font-weight: bold;
}

.map-placeholder {
    background: #374151;
    height: 350px;
    border-radius: var(--radius);
    display: flex;
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

/* Contact Section */
.contact {
    background: #f8fafc;
    padding: 4rem 0;
    text-align: center;
}

.contact h2 {
    width: 40vw;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 auto 3rem;
    color: var(--text);
    text-align: center;
}

.contact a {
    font-size: 1.5rem;
}

.contact-container {
    width: 40vw;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    align-items: center;
}

/* API Section */
.api-section {
    padding: 3rem 0;
    background: white;
    text-align: center;
    max-width: 90vw;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-container {
        display: flex;
        flex-direction: column;
    }

    .hero-content {
        display: contents;
        width: 100%;
        gap: 1rem;
    }

    .hero-container .hero-content h1 {
        order: 1;
        align-self: start;
    }

    .hero-container .hero-content p {
        order: 2;
        margin: 0;
        font-size: 1.3rem;
    }

    .hero-container .hero-image {
        order: 3;
    }

    .hero-container .hero-content .cta-button {
        order: 4;
        width: 100%;
        text-align: center;
    }

    /* Optional: make the image fit nicer on mobile */
    .hero-image {
        height: auto;
        min-height: 260px;
    }

    .hero-image img {
        margin-left: 0;
        object-fit: contain;
    }

    .hero-content .cta-button {
        align-self: center;
    }

    .nav-container,
    .hero-container,
    .modalities-container,
    .sales-container,
    .contact-container,
    .contact {
        max-width: 100vw;
        width: 100vw;
        padding: 0 1rem;
    }

    .coverage-content,
    .sales-content,
    .modalities-content {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .modalities-info .cta-button {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
        width: fit-content;
    }

    .coverage-container {
        width: 100vw;
        padding: 0 1rem;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .contact h2 {
        width: 90vw;
        font-size: 1rem;
        padding-top: 2rem;
    }

    .modalities-image {
        display: none;
    }
}