body {
    margin: 0;
    font-family: Verdana, Geneva, sans-serif;
    /* Cambio: Color de fondo del cuerpo de la página */
    background-color: #ffffff;
    ;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    /* Color de la barra de navegación sin cambios */
    background-color: #222222
    ;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 2000;
}

/* ... (El resto de tu código CSS se mantiene igual) ... */

.logo-img {
    height: 98px;
    width: auto;
}

.hamburger-menu {
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2001;
    padding: 0;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #677069;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
}

.hamburger-menu.is-active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.is-active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.is-active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.close-menu {
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 2rem;
    line-height: 1;
    z-index: 3000;
    transition: color 0.3s ease;
}

.close-menu:hover {
    color: #cccccc;
}

.main-content {
    padding: 0rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* --- Menú de pantalla completa --- */
.fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0d0e12;
    z-index: 1500;
    /* La animación se define aquí y se aplica tanto a la apertura como al cierre */
    transition: transform 0.8s cubic-bezier(0.86, 0, 0.07, 1);
    transform: translateX(-100%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Verdana, Geneva, sans-serif;
    opacity: 0;
    visibility: hidden;
}

.fullscreen-menu.open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.menu-content-centered {
    width: 90%;
    max-width: 1200px;
}

.palantir-menu {
    padding: 2rem;
}

.menu-columns-container {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.menu-column {
    flex: 1;
    min-width: 200px;
}

.menu-column h3 {
    text-transform: uppercase;
    font-size: 0.9rem;
    color: #6a7181;
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
    margin-top: 0;
    border-top: 1px solid #2a2c32;
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-list li a {
    display: block;
    text-decoration: none;
    color: #b0b0b0;
    padding: 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.menu-list li a:hover {
    color: white;
}

.menu-list .has-submenu > a {
    color: white;
    font-weight: 600;
    padding-bottom: 0.25rem;
}

/* Animación del submenú */
.submenu-list {
    list-style: none;
    padding-left: 1rem;
    margin: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-10px);
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.has-submenu:hover > .submenu-list {
    max-height: 200px;
    opacity: 1;
    transform: translateY(0);
    padding-top: 0.5rem;
}

.submenu-list li a {
    font-size: 1rem;
    color: #b0b0b0;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.submenu-list li a:hover {
    color: #8c8f94;
}

@media (max-width: 768px) {
    .menu-columns-container {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .menu-column {
        min-width: 90%;
    }
}


/* --- Sección de Pie de Página (CSS actualizado) --- */
.main-footer {
    background-color: #000000;
    color: #b0b0b0;
    padding: 4rem 2rem;
    font-family: Verdana, Geneva, sans-serif;
    display: block; /* Asegura que el pie de página ocupe su propio espacio */
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 1px solid #333;
    padding-bottom: 3rem;
}

.footer-logo-container {
    flex-basis: 25%;
    margin-bottom: 2rem;
}

.footer-logo {
    height: 60px; /* Ajusta la altura del logo */
    width: auto;
}

.footer-links-container {
    display: flex;
    flex-basis: 75%;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-column {
    flex-grow: 1;
    min-width: 150px;
}

.footer-column h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li a {
    text-decoration: none;
    color: #b0b0b0;
    display: block;
    padding: 0.25rem 0;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    font-size: 0.9rem;
    color: #888;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-logo-container {
        flex-basis: 100%;
        margin-bottom: 2rem;
    }

    .footer-links-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-column {
        min-width: 100%;
        margin-bottom: 1.5rem;
    }
}

/* --- Sección Hero con animación y dimensiones fijas --- */
.hero-section {
    position: relative;
    width: 100vw;
    /* Ajusta la altura de la sección para que coincida con las imágenes */
    height: 500px;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: white;
    text-align: left;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background-image {
    width: 100%;
    height: 100%;
    /* 'object-fit: cover' asegura que la imagen cubra el espacio sin deformarse */
    object-fit: cover;
    display: block;
}

/* Capa de color negro semitransparente sobre la imagen */
.hero-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding-left: 5rem;
    padding-right: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSlideUp 1s ease-out forwards;
}

.hero-text h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-button {
    background-color: #2196f3;
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero-button:hover {
    background-color: #1565c0;
    transform: scale(1.05);
}

@keyframes fadeInSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Sección de Características (Ajuste Final) --- */
.features-section {
    padding: 8rem 0rem;
    background-color: #ffffff;
    text-align: center;
    
    /* Estas propiedades funcionan correctamente con el reset del body */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.features-header {
    max-width: 800px;
    margin: 0 auto 4rem;
}

.features-header h2 {
    font-size: 2.5rem;
    color: #49a4c9;
    margin-bottom: 1rem;
}

.features-header p {
    color: #49a4c9;
    line-height: 1.6;
}

.features-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background-color: #49a4c9;
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.icon-placeholder {
    font-size: 3rem;
    color: #2196f3;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.feature-card:hover .icon-placeholder {
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #ffffff;
    line-height: 1.6;
}

/* --- Sección de Galería Dinámica --- */
.new-gallery-section {
    padding: 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-color: #f4f4f4;
}

.gallery-content-wrapper {
    position: relative;
    height: 70vh; /* Altura de la galería */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.gallery-slide-item {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.gallery-slide-item.active {
    opacity: 1;
}

.gallery-slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-text-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    padding: 2rem 5rem;
    color: #333;
    z-index: 10;
}

.description-text-wrapper {
    position: relative;
    height: 100px; /* Ajusta la altura si necesitas más espacio para la descripción */
    overflow: hidden;
}

.description-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    transform: translateY(20px);
}

.description-item.active {
    opacity: 1;
    transform: translateY(0);
}

.gallery-indicators {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #bbb;
    border: 1px solid #999;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.indicator:hover {
    transform: scale(1.2);
}

.indicator.active {
    background-color: #2196f3;
    border-color: #2196f3;
}