:root {
    --primary-color: #1a1a1a;
    --secondary-color: #2d2d2d;
    --background-color: #121212;
    --text-color: #ffffff;
    --text-color-muted: #b3b3b3;
    --card-background: #1f1f1f;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    min-height: 100vh;
}

.fade-in {
    opacity: 1;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.initial-state {
    opacity: 0;
}

section {
    padding: 0.2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero, .value-proposition {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background-color: var(--background-color);
}

.hero-content, .benefits {
    max-width: 50%;
    padding-right: 2rem;
}

.hero-content h1, .benefits h1 {
    font-size: 2.8rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content h3, .benefits h3 {
    font-size: 1.4rem;
    color: var(--text-color-muted);
    margin-bottom: 1.5rem;
    font-weight: normal;
}

.content-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.content-list li {
    font-size: 1.1rem;
    color: var(--text-color-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.content-list li:last-child {
    margin-bottom: 0;
}

.mobile-image img {
    max-width: 250px;
    height: auto;
}

.services {
    padding: 1rem;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

.services-grid {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    transition: transform 0.3s ease;
    position: relative;
}

.services-grid.shifted {
    transform: translateX(-30%);
    margin-right: 30%;
}

.service-card {
    background: none;
    padding: 0.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.service-card h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    margin: 0.5rem 0;
    line-height: 1.1;
}

.service-card:hover h2 {
    color: #ffffff;
    transform: scale(1.05);
}

.service-card.active h2 {
    color: #ffffff;
    transform: scale(1.05);
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.service-card p {
    color: #e0e0e0;
    font-size: 1rem;
    line-height: 1.6;
}

.service-details {
    position: absolute;
    top: 120px;
    right: -50%;
    width: 50%;
    height: auto;
    max-height: calc(100vh - 120px);
    background: var(--card-background);
    padding: 2rem;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.4);
    transition: right 0.3s ease;
    overflow-y: auto;
    z-index: 1000;
    scrollbar-gutter: stable;
    padding-right: calc(2rem + 8px);
}

.service-details.hidden {
    display: none;
}

.service-details.visible {
    right: 0;
}

.services.expanded {
    width: 50%;
}

.close-details {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 2rem;
    cursor: pointer;
}

.hidden {
    display: none;
}

main {
    padding: 0;
    margin: 0;
}

footer {
    background: var(--primary-color);
    color: var(--text-color-muted);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    font-size: 0.9rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

footer p:hover {
    opacity: 1;
}

.hero-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem 1rem;
    margin: 1rem 0;
}

.hero-logo img {
    max-width: 250px;
    height: auto;
    margin-bottom: 1rem;
}

.hero-text h1 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-color-muted);
    max-width: 700px;
    line-height: 1.4;
}

.insight-image img {
    max-width: 300px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.insight-image {
    flex-shrink: 0;
    width: 300px;
    display: flex;
    justify-content: flex-start;
}

.services-title {
    font-size: 3rem;
    color: #ffffff;
    text-align: center;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.value-proposition {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    margin: 0 auto;
    max-width: 1200px;
    padding: 2rem 1rem;
}

.value-proposition h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.value-proposition ul {
    list-style-type: none;
    padding: 0;
}

.value-proposition li {
    margin: 0.5rem 0;
}

.benefits h2, .benefits h3, .benefits ul {
    margin: 0.2rem 0;
}

.benefits li {
    margin: 0.1rem 0;
}

/* Ajustes específicos para los elementos dentro de benefits */
.benefits h2 {
    margin: 0;
    padding: 0;
}

.benefits h3 {
    margin: 0.2rem 0;
    padding: 0;
}

.benefits ul {
    margin: 0.2rem 0;
    padding-left: 1rem; /* Solo mantener un pequeño espacio para los bullets */
}

.benefits li {
    margin: 0;
    padding: 0;
    line-height: 1.2; /* Reducir el espacio entre líneas */
}

.cta {
    text-align: center;
    padding: 4rem 1rem;
    background: linear-gradient(to bottom, transparent, var(--primary-color));
    margin-top: 2rem;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(to right, #fff, #b3b3b3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.cta-button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.data-icons {
    max-width: 100%; /* Asegúrate de que la imagen no exceda el ancho del contenedor */
    height: auto; /* Mantener la proporción de la imagen */
    margin-top: 1rem; /* Espaciado superior para separar de texto */
    transform: scale(2); /* Aumentar el tamaño */
    filter: brightness(0) saturate(100%) invert(0.5); /* Cambiar a gris claro */
}

.icon-container {
    display: flex;
    justify-content: center; /* Centrar los iconos */
    width: 100%; /* Hacer que el contenedor ocupe todo el ancho */
    margin-top: 1rem; /* Espaciado superior para separar de texto */
}

@media (max-width: 1024px) {
    .hero, .value-proposition {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .hero-content, .benefits {
        max-width: 100%;
        padding: 1rem;
    }

    .services-grid.shifted {
        transform: none;
    }

    .service-details {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        max-height: 100vh;
    }

    .services-title {
        font-size: 3rem;
    }

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

@media (max-width: 768px) {
    .hero-logo img {
        max-width: 200px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

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

    .mobile-image img, .insight-image img {
        max-width: 200px;
    }

    .service-card h2 {
        font-size: 1.5rem;
    }

    .cta h2 {
        font-size: 2rem;
    }

    .data-icons {
        transform: scale(1.5);
    }

    .hero-content h1, .benefits h2 {
        font-size: 2.2rem;
    }

    .subtitle, .benefits h3 {
        font-size: 1.2rem;
    }

    .hero-description, .benefits ul {
        font-size: 1rem;
    }

    .hero, .value-proposition {
        position: relative;
        padding: 2rem 1rem;
    }

    .mobile-image, .insight-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .mobile-image::after, .insight-image::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--background-color);
        opacity: 0.75;
    }

    .mobile-image img, .insight-image img {
        max-width: 100%;
        height: auto;
        object-fit: contain;
        opacity: 0.8;
    }

    .hero-content, .benefits {
        position: relative;
        z-index: 2;
        max-width: 100%;
        background: rgba(18, 18, 18, 0.6);
        padding: 2rem;
        border-radius: 12px;
        backdrop-filter: blur(3px);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    }

    .hero-content h1, 
    .benefits h1,
    .hero-content h3, 
    .benefits h3,
    .content-list li {
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    }
}

@media (max-width: 480px) {
    .hero-logo img {
        max-width: 150px;
    }

    .hero-text h1 {
        font-size: 1.6rem;
    }

    .mobile-image img, .insight-image img {
        max-width: 150px;
    }

    .services-title {
        font-size: 2rem;
    }

    .service-card h2 {
        font-size: 1.2rem;
    }

    .cta {
        padding: 2rem 1rem;
    }

    .cta h2 {
        font-size: 1.5rem;
    }

    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .data-icons {
        transform: scale(1.2);
    }

    .benefits h2 {
        font-size: 1.8rem;
    }

    .benefits h3 {
        font-size: 1rem;
    }

    .benefits li {
        font-size: 0.9rem;
    }

    .hero-content h1, .benefits h2 {
        font-size: 1.8rem;
    }

    .subtitle, .benefits h3 {
        font-size: 1.1rem;
    }

    .hero-description, .benefits ul {
        font-size: 0.9rem;
    }
}

/* Estilizar la barra de desplazamiento para navegadores webkit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #404040;
}

/* Estilizar la barra de desplazamiento para Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) var(--background-color);
}

/* Ajustar el contenedor de servicios */
.service-details {
    scrollbar-gutter: stable;
    padding-right: calc(2rem + 8px); /* Compensar el ancho de la barra */
}

.global-presence {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem 1rem;
    margin: 2rem auto;
}

.map-image {
    flex-shrink: 0;
    width: 50%;
}

.world-map {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .global-presence {
        flex-direction: column;
        text-align: center;
    }

    .map-image {
        width: 100%;
        margin-top: 1rem;
    }
}