/* Reset básico para eliminar márgenes y paddings predeterminados */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    scroll-behavior: smooth;
}

body {
    background-color: #fff;
    font-family: "Comfortaa", sans-serif;
    padding-top: 100px; /* Espacio para el header fijo */
}

body.scrolled header {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
}

header {
    transition: box-shadow 0.3s ease, transform 0.5s ease-in-out;
    transition: box-shadow 0.3s ease;
    position: fixed;               /* Mantiene el header fijo en la parte superior */
    top: 10px;                     /* Añade un margen superior de 10px */
    left: 50%;                     /* Centra horizontalmente */
    transform: translateX(-50%);    /* Ajusta la posición para centrar */
    width: calc(100% - 40px);      /* Mantiene márgenes de 20px a cada lado */
    max-width: 1100px;             /* Igual que #principal */
    z-index: 1000;                 /* Asegura que esté por encima de otros elementos */
    background-color: #343434;
    border-radius: 25px;
    display: flex;
    height: 80px;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    box-sizing: border-box;        /* Incluye padding en el ancho total */
}

/* Estilos para el logo */
.logo-header img {
    margin-left: 20px;
    width: 30px;
    height: 30px;
}

/* Estilos para el menú */
.menu-header ul {
    list-style: none;
    display: flex;
}

.menu-header li {
    margin-left: 20px;
}

.menu-header a {
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    transition: color 0.3s;
    cursor: pointer;
}

.menu-header a:active ~ header {
  transform: translateY(-20px);
  transition: transform 0.3s ease-in-out;
}

.menu-header a:hover {
    color: #ddd;
}

/* Estilos para la sección principal */
#principal {
    max-width: 1100px; /* Añadido */
    margin: 20px auto; /* Espacio entre el header y la sección principal */
    display: flex;
    justify-content: space-between; /* Espacio entre info-box y photo-box */
    align-items: stretch; /* Asegura que ambos cuadros tengan la misma altura */
    flex-wrap: wrap; /* Para que se ajusten en pantallas pequeñas */
    gap: 24px; /* Cambiado de 40px a 24px */
    width: 100%; /* Añadido */
}

/* Estilos para el cuadro de información */
.info-box {
    background-color: #343434;
    border-radius: 20px;
    padding: 40px;
    color: #fff;
    flex: 1 1 300px; /* Flex grow, shrink y base */
    max-width: 800px; /* Añadido */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-box h1 {
    font-family: 'Bebas Neue', cursive;
    font-size: 90px; /* Aumentado de 48px a 90px */
    letter-spacing: 6px; /* Añadido para espaciar las letras */
    line-height: 1;
    margin-bottom: 20px;
}

.info-box p {
    font-family: 'Comfortaa', cursive;
    font-size: 18px;
    margin-bottom: 30px;
}

.acciones {
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* Para que los iconos se ajusten en pantallas pequeñas */
}

.btn-contacto {
    background-color: #fff;
    color: #343434;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-family: 'Comfortaa', cursive;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    margin-right: 20px;
    margin-bottom: 10px; /* Espacio inferior en pantallas pequeñas */
}

.btn-contacto:hover {
    background-color: #ddd;
}

.redes-sociales {
    display: flex;
    align-items: center;
}

.redes-sociales a {
    color: #fff;
    font-size: 24px;
    margin-right: 15px;
    transition: color 0.3s;
}

.redes-sociales a:last-child {
    margin-right: 0;
}

.redes-sociales a:hover {
    color: #ddd;
}

/* Estilos para el cuadro de la foto */
.photo-box {
    border-radius: 20px;
    padding: 0; /* Eliminado padding para que la imagen ocupe todo el espacio */
    flex: 1 1 px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.photo-box img {
    width: 100%;
    height: auto; /* Asegura que la imagen ocupe toda la altura del contenedor */
    max-width: 400px;
    border-radius: 25px; /* Puedes ajustar este valor según prefieras */
    object-fit: cover;
}

/* Estilos para el botón de hamburguesa */
.hamburger {
    display: none; /* Oculto por defecto, se mostrará en móviles */
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

/* Estilos para las barras del botón de hamburguesa */
.hamburger .bar {
    height: 3px; /* Aumentado de 2px a 3px para mayor visibilidad */
    width: 100%;
    background-color: #fff;
    border-radius: 2px; /* Reducido a 2px para una apariencia más nítida */
    transition: all 0.3s ease;
}

/* Animación cuando el botón está activo */
.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Estilos para la sección Aptitudes */
.aptitudes {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Alinear a la izquierda en desktop */
    margin-bottom: 40px; /* Espacio inferior */
}

.aptitudes h2 {
    font-family: 'Bebas Neue', cursive;
    font-size: 48px;
    margin-bottom: 20px;
    letter-spacing: 2.5px;
    color: #161616;
}
.aptitudes p {
    font-family: 'Comfortaa', cursive;
    font-size: 18px;
    margin-bottom: 20px;
}

#sobre-mi {
    max-width: 1100px;
    margin: 90px auto;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}
/* Estilos para la sección Aptitudes */
.aptitudes-cards {
    max-width: 1100px;
    margin: 40px auto;
    width: 100%;
    height: 600px;
    max-height: 500px;
}
.card-summary p{
    padding-top: 20px;
}
.card-icon {
    display: flex;
    align-items: center; /* Centra verticalmente el icono y el título */
    margin-bottom: 10px; /* Añadir margen inferior para separar el título del contenido */
}

.card-icon img {
    width: 40px;
    height: 40px;
}

.card-icon h3 {
    font-family: 'Comfortaa', sans-serif;
    font-size: 20px;
    margin: 0; /* Elimina márgenes predeterminados */
    text-align: left; /* Alinea el texto a la izquierda */
    color: #fff;
    margin-left: 10px; /* Espacio entre el icono y el título */
    flex: 1; /* Permite que el título ocupe el espacio restante */
}

.card p {
    font-family: 'Comfortaa', sans-serif;
    font-size: 16px;
    color: #fff;
    text-align: center;
    margin-top: 10px; /* Añadir margen superior para separar el texto del borde */
}
.swiper-wrapper {
    display: flex;
}

.swiper-slide {
    width: 320px;
    height: auto;
    margin-right: 20px;
    transition: transform 0.3s ease;
    cursor: pointer; /* Indica que es interactiva */
    position: relative;
}
.video-presentacion__video {
    margin-top: 80px;
    border-radius: 15px;
    max-width: 1100px;
    margin-left: 0px;
    width: 70%; /* Ancho para pantallas grandes por defecto */
}
.sobre-mi {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 140px;
    margin-bottom: 40px;
  }
  .sobre-mi-texto {
    flex: 1;
    text-align: left;
  }
  
  .sobre-mi-texto h2 {
    font-family: 'Bebas Neue', cursive;
    font-size: 48px;
    margin-bottom: 20px;
    letter-spacing: 2.5px;
    color: #161616;
  }
  .video-presentacion {
    flex: 1;
    text-align: right;
    margin-right: 80px; /* Añadir margen a la derecha del vídeo */
  }
  
  .sobre-mi-texto p {
    font-family: 'Comfortaa', sans-serif;
    font-size: 18px;
    max-width: 800px;
    margin: 0;
  }
  #trayectoria {
    max-width: 1100px;
    margin: 0 auto; /* Centra horizontalmente */
    width: 100%; /* Asegura que ocupe todo el ancho disponible */
}
.bento-grid-wrapper {
    display: flex;
    max-width: 1100px;
    margin: 0px auto;
    gap: 0px;
    padding: 0px;
    align-items: stretch;
    justify-content: center;
}  

.bento-grid-left {
    display: grid;
    grid-template-columns: 2fr 1.12fr;
    grid-template-rows: 250px auto;
    gap: 20px;
    width: 100%;
    max-width: 600px;
    padding: 10px;
    align-items: start;
    max-height: 550px;
}

.bento-grid-right {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 150px auto;
    gap: 20px;
    width: 450px;
    max-width: 570px;
    max-height: 550px;
    padding: 10px 10px 10px;
    align-items: start;
}

.bento-item {
    background-color: #343434;
    border-radius: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.item1 {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
    height: 250px;
    width: auto;
}
.item1-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 34px;
    margin-left: 20px;
    margin-top: 20px;
    letter-spacing: 3px;
    color: #ffffff;
    margin-bottom: 0px;
}

.item1-description {
    padding: 20px;
    break-inside: auto;
    font-family: 'Comfortaa', sans-serif;
    font-size: 16px;
    color: #ffffff;
}
.item2 {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    width: auto;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item2-logo {
    display: block;
    width: 100%;
    max-width: auto;
    padding: 30px;
    height: auto;
}

.item3 {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    width: auto;
    height: auto;
    align-self: stretch;
    display: flex; /* Añadir flexbox */
    align-items: center; /* Centrar verticalmente */
    justify-content: center; /* Centrar horizontalmente */
}

.item3-image {
    padding-bottom: 17px;
    padding-top: 17px;
    padding-left: 30px;
    padding-right: 30px;
    max-width: 100%; /* Limita el ancho al 100% del contenedor */
    height: auto;
    box-sizing: border-box; /* Incluye padding en el ancho total */
}
.bento-item.item3 {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.arrow-left,
.arrow-right {
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.arrow-left {
  left: 2px; /* Ajusta según el diseño */
}

.arrow-right {
  right: 2px; /* Ajusta según el diseño */
}

.arrow-left img,
.arrow-right img {
  width: 30px; /* Tamaño de las flechas */
  height: 30px;
}
/* Estilos para item4 */
.item4 {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 20px; /* Espacio superior para separar del contenido superior */
    height: 200px; /* Mantiene la altura definida */
  }
/* Contenedor de la barra de progreso y etiquetas de tiempo */
.progress-container {
    display: flex;
    flex-direction: column; /* Mantener la orientación vertical para la localidad */
    align-items: center;
    gap: 20px; /* Espacio entre localidad y barra de progreso */
    max-width: 325px;
    width: 100%;
}
.progress-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px; /* Espacio entre elementos */
}
  
  /* Estilos para la información de localidad */
  .location-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px; /* Espacio entre la información y la barra de progreso */
}

.location-icon {
    width: 40px; /* Aumentar tamaño para mayor visibilidad */
    height: 40px;
    margin-right: 12px; /* Espacio entre la imagen y el texto */
}

.location-text {
    font-family: 'Comfortaa', sans-serif;
    font-size: 20px; /* Aumentar tamaño de fuente */
    color: #ffffff;
    font-weight: 500; /* Añadir peso para mayor énfasis */
}

.timers {
    display: flex;
    justify-content: space-between;
    width: 100%; /* Ocupa todo el ancho de .progress-container */
    max-width: 300px; /* Asegura que no exceda el contenedor */
}

.current-time,
.total-time {
    font-family: 'Comfortaa', sans-serif;
    font-size: 16px; /* Ajusta el tamaño según preferencia */
    color: #ffffff;
    width: 50px; /* Ancho fijo para mantener alineación */
    text-align: center;
}
.progress-bar {
    position: relative;
    flex: 1; /* Ocupa el espacio restante entre los tiempos */
    height: 10px; /* Altura de la barra */
    background-color: #ffffff; /* Línea blanca */
    border-radius: 5px; /* Bordes redondeados */
    cursor: pointer;
    overflow: hidden;
}

/* Barra de progreso completada */
.progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: #7c7c7c; /* Color de la barra completada */
    border-radius: 5px;
    transition: width 0.1s linear;
}

/* Botón de progreso (Handle) */
.progress-handle {
    position: absolute;
    top: 50%; /* Centrar verticalmente */
    left: 0%;
    transform: translate(-50%, -50%); /* Centrar el handle sobre la barra */
    width: 14px;
    height: 14px;
    background-color: #B9B9B9; /* Color del handle */
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.1s linear, background-color 0.2s;
    z-index: 2;
}

.progress-handle:hover,
.progress-handle:focus {
    background-color: #A0A0A0;
    transform: translate(-50%, -50%) scale(1.2); /* Aumentar tamaño al pasar el ratón */
}
  
  .item5 {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    position: relative;
    display: flex;
    width: 200px;
    height: 200px;
    flex-direction: column;
    align-items: center;
  }
/* Estilos para el reproductor de música dentro de item5 */
.music-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
    justify-content: center; /* Añadido para centrar mejor el contenido */
    height: 100%; /* Asegurar que todo esté centrado verticalmente */
  }
  .song-cover {
    width: 150px;
    height: 100px;
    margin-bottom: 20px;
  }
  .controls {
    display: flex;
    gap: 10px; /* Puedes ajustar el valor para definir la separación entre botones */
    margin-bottom: 20px;
    align-items: center; /* Centrar botones verticalmente */
    justify-content: center; /* Centrar botones horizontalmente */
    width: 100%; /* Asegurar que los botones ocupen el ancho completo para centrar mejor */
  }
  .control-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
  }
  .control-button img {
    display: block;
    width: 100%;
    height: auto;
  }
  .volume-control {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 160px;
    background-color: #ffffff;
    border-radius: 2px;
  }
  
  .vertical-volume-line {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 150px;
    background-color: #ffffff;
    border-radius: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
  }
  
  .horizontal-volume-slider {
    position: absolute;
    width: 20px; /* Aumentamos el ancho para que sobresalga claramente */
    height: 8px;
    background-color: #bdbdbd;
    border-radius: 2px;
    cursor: pointer;
    z-index: 3;
    left: 50%;
    transform: translateX(-50%);
  }  
  .trayectoria-mobile {
    display: none;
}

/* Estilos para la sección El Origen de un Sueño */
.origen-sueño {
    max-width: 1100px;
    margin: 150px auto;
    padding: 20px;
    box-sizing: border-box;
}
.origen-sueño-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Alineación vertical al inicio */
    gap: 28px; /* Espacio entre elementos */
    flex-wrap: wrap;
}

.origen-sueño-text {
    flex: 1 1 200px;
}

.origen-sueño-text h2 {
    font-family: 'Bebas Neue', cursive;
    font-size: 42px;
    color: #343434;
    margin-bottom: 20px;
    text-align: center;
}

.origen-sueño-text p {
    font-family: 'Comfortaa', sans-serif;
    font-size: 16px;
    color: #343434;
    line-height: 1.6;
    text-align: center;
    margin-top: 10px;
}

/* Nueva estructura para la imagen y overlay */
.origen-sueño-cuadro {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 570px;
    height: auto;
    background-color: #343434;
    border-radius: 20px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Nueva estructura para la imagen y overlay */
.image-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.image-container .principal-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

.image-container .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff; /* Fondo completamente blanco */
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.image-container:hover .overlay {
    display: flex;
}

.image-container .overlay.active {
    display: flex;
}

.overlay .animation-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Estilos para el botón de hamburguesa */
.hamburger {
    display: none; /* Oculto por defecto, se mostrará en móviles */
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

/* Estilos para las barras del botón de hamburguesa */
.hamburger .bar {
    height: 3px; /* Aumentado de 2px a 3px para mayor visibilidad */
    width: 100%;
    background-color: #fff;
    border-radius: 2px; /* Reducido a 2px para una apariencia más nítida */
    transition: all 0.3s ease;
}

/* Animación cuando el botón está activo */
.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Estilos para la sección Aptitudes */
.aptitudes {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Alinear a la izquierda en desktop */
    margin-bottom: 40px; /* Espacio inferior */
}

.aptitudes h2 {
    font-family: 'Bebas Neue', cursive;
    font-size: 48px;
    margin-bottom: 20px;
    letter-spacing: 2.5px;
    color: #161616;
}
.aptitudes p {
    font-family: 'Comfortaa', cursive;
    font-size: 18px;
    margin-bottom: 20px;
}

#sobre-mi {
    max-width: 1100px;
    margin: 90px auto;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}
/* Estilos para la sección Aptitudes */
.aptitudes-cards {
    max-width: 1100px;
    margin: 40px auto;
    width: 100%;
    height: 600px;
    max-height: 500px;
}
.card-summary p{
    padding-top: 20px;
}
.card-icon {
    display: flex;
    align-items: center; /* Centra verticalmente el icono y el título */
    margin-bottom: 10px; /* Añadir margen inferior para separar el título del contenido */
}

.card-icon img {
    width: 40px;
    height: 40px;
}

.card-icon h3 {
    font-family: 'Comfortaa', sans-serif;
    font-size: 20px;
    margin: 0; /* Elimina márgenes predeterminados */
    text-align: left; /* Alinea el texto a la izquierda */
    color: #fff;
    margin-left: 10px; /* Espacio entre el icono y el título */
    flex: 1; /* Permite que el título ocupe el espacio restante */
}

.card p {
    font-family: 'Comfortaa', sans-serif;
    font-size: 16px;
    color: #fff;
    text-align: center;
    margin-top: 10px; /* Añadir margen superior para separar el texto del borde */
}
.swiper-wrapper {
    display: flex;
}

.swiper-slide {
    width: 320px;
    height: auto;
    margin-right: 20px;
    transition: transform 0.3s ease;
    cursor: pointer; /* Indica que es interactiva */
    position: relative;
}
.video-presentacion__video {
    margin-top: 80px;
    border-radius: 15px;
    max-width: 1100px;
    margin-left: 0px;
    width: 70%; /* Ancho para pantallas grandes por defecto */
}
.sobre-mi {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 140px;
    margin-bottom: 40px;
  }
  .sobre-mi-texto {
    flex: 1;
    text-align: left;
  }
  
  .sobre-mi-texto h2 {
    font-family: 'Bebas Neue', cursive;
    font-size: 48px;
    margin-bottom: 20px;
    letter-spacing: 2.5px;
    color: #161616;
  }
  .video-presentacion {
    flex: 1;
    text-align: right;
    margin-right: 80px; /* Añadir margen a la derecha del vídeo */
  }
  
  .sobre-mi-texto p {
    font-family: 'Comfortaa', sans-serif;
    font-size: 18px;
    max-width: 800px;
    margin: 0;
  }
  #trayectoria {
    max-width: 1100px;
    margin: 0 auto; /* Centra horizontalmente */
    width: 100%; /* Asegura que ocupe todo el ancho disponible */
}
.bento-grid-wrapper {
    display: flex;
    max-width: 1100px;
    margin: 0px auto;
    gap: 0px;
    padding: 0px;
    align-items: stretch;
    justify-content: center;
}  

.bento-grid-left {
    display: grid;
    grid-template-columns: 2fr 1.12fr;
    grid-template-rows: 250px auto;
    gap: 20px;
    width: 100%;
    max-width: 600px;
    padding: 10px;
    align-items: start;
    max-height: 550px;
}

.bento-grid-right {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 150px auto;
    gap: 20px;
    width: 450px;
    max-width: 570px;
    max-height: 550px;
    padding: 10px 10px 10px;
    align-items: start;
}

.bento-item {
    background-color: #343434;
    border-radius: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.item1 {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
    height: 250px;
    width: auto;
}
.item1-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 34px;
    margin-left: 20px;
    margin-top: 20px;
    letter-spacing: 3px;
    color: #ffffff;
    margin-bottom: 0px;
}

.item1-description {
    padding: 20px;
    break-inside: auto;
    font-family: 'Comfortaa', sans-serif;
    font-size: 16px;
    color: #ffffff;
}
.item2 {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    width: auto;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item2-logo {
    display: block;
    width: 100%;
    max-width: auto;
    padding: 30px;
    height: auto;
}

.item3 {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    width: auto;
    height: auto;
    align-self: stretch;
    display: flex; /* Añadir flexbox */
    align-items: center; /* Centrar verticalmente */
    justify-content: center; /* Centrar horizontalmente */
}

.item3-image {
    padding-bottom: 17px;
    padding-top: 17px;
    padding-left: 30px;
    padding-right: 30px;
    max-width: 100%; /* Limita el ancho al 100% del contenedor */
    height: auto;
    box-sizing: border-box; /* Incluye padding en el ancho total */
}
.bento-item.item3 {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.arrow-left,
.arrow-right {
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.arrow-left {
  left: 2px; /* Ajusta según el diseño */
}

.arrow-right {
  right: 2px; /* Ajusta según el diseño */
}

.arrow-left img,
.arrow-right img {
  width: 30px; /* Tamaño de las flechas */
  height: 30px;
}
/* Estilos para item4 */
.item4 {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 20px; /* Espacio superior para separar del contenido superior */
    height: 200px; /* Mantiene la altura definida */
  }
/* Contenedor de la barra de progreso y etiquetas de tiempo */
.progress-container {
    display: flex;
    flex-direction: column; /* Mantener la orientación vertical para la localidad */
    align-items: center;
    gap: 20px; /* Espacio entre localidad y barra de progreso */
    max-width: 325px;
    width: 100%;
}
.progress-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px; /* Espacio entre elementos */
}
  
  /* Estilos para la información de localidad */
  .location-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px; /* Espacio entre la información y la barra de progreso */
}

.location-icon {
    width: 40px; /* Aumentar tamaño para mayor visibilidad */
    height: 40px;
    margin-right: 12px; /* Espacio entre la imagen y el texto */
}

.location-text {
    font-family: 'Comfortaa', sans-serif;
    font-size: 20px; /* Aumentar tamaño de fuente */
    color: #ffffff;
    font-weight: 500; /* Añadir peso para mayor énfasis */
}

.timers {
    display: flex;
    justify-content: space-between;
    width: 100%; /* Ocupa todo el ancho de .progress-container */
    max-width: 300px; /* Asegura que no exceda el contenedor */
}

.current-time,
.total-time {
    font-family: 'Comfortaa', sans-serif;
    font-size: 16px; /* Ajusta el tamaño según preferencia */
    color: #ffffff;
    width: 50px; /* Ancho fijo para mantener alineación */
    text-align: center;
}
.progress-bar {
    position: relative;
    flex: 1; /* Ocupa el espacio restante entre los tiempos */
    height: 10px; /* Altura de la barra */
    background-color: #ffffff; /* Línea blanca */
    border-radius: 5px; /* Bordes redondeados */
    cursor: pointer;
    overflow: hidden;
}

/* Barra de progreso completada */
.progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: #7c7c7c; /* Color de la barra completada */
    border-radius: 5px;
    transition: width 0.1s linear;
}

/* Botón de progreso (Handle) */
.progress-handle {
    position: absolute;
    top: 50%; /* Centrar verticalmente */
    left: 0%;
    transform: translate(-50%, -50%); /* Centrar el handle sobre la barra */
    width: 14px;
    height: 14px;
    background-color: #B9B9B9; /* Color del handle */
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.1s linear, background-color 0.2s;
    z-index: 2;
}

.progress-handle:hover,
.progress-handle:focus {
    background-color: #A0A0A0;
    transform: translate(-50%, -50%) scale(1.2); /* Aumentar tamaño al pasar el ratón */
}
  
  .item5 {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    position: relative;
    display: flex;
    width: 200px;
    height: 200px;
    flex-direction: column;
    align-items: center;
  }
/* Estilos para el reproductor de música dentro de item5 */
.music-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
    justify-content: center; /* Añadido para centrar mejor el contenido */
    height: 100%; /* Asegurar que todo esté centrado verticalmente */
  }
  .song-cover {
    width: 150px;
    height: 100px;
    margin-bottom: 20px;
  }
  .controls {
    display: flex;
    gap: 10px; /* Puedes ajustar el valor para definir la separación entre botones */
    margin-bottom: 20px;
    align-items: center; /* Centrar botones verticalmente */
    justify-content: center; /* Centrar botones horizontalmente */
    width: 100%; /* Asegurar que los botones ocupen el ancho completo para centrar mejor */
  }
  .control-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
  }
  .control-button img {
    display: block;
    width: 100%;
    height: auto;
  }
  .volume-control {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 160px;
    background-color: #ffffff;
    border-radius: 2px;
  }
  
  .vertical-volume-line {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 150px;
    background-color: #ffffff;
    border-radius: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
  }
  
  .horizontal-volume-slider {
    position: absolute;
    width: 20px; /* Aumentamos el ancho para que sobresalga claramente */
    height: 8px;
    background-color: #bdbdbd;
    border-radius: 2px;
    cursor: pointer;
    z-index: 3;
    left: 50%;
    transform: translateX(-50%);
  }  
  .trayectoria-mobile {
    display: none;
}
/* Estilos para la sección El Origen de un Sueño */
.origen-sueño {
    max-width: 1100px;
    margin: 150px auto;
    padding: 20px;
    box-sizing: border-box;
}
.origen-sueño-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Alineación vertical al inicio */
    gap: 28px; /* Espacio entre elementos */
    flex-wrap: wrap;
}

.origen-sueño-text {
    flex: 1 1 200px;
}

.origen-sueño-text h2 {
    font-family: 'Bebas Neue', cursive;
    font-size: 42px;
    color: #343434;
    margin-bottom: 20px;
    text-align: center;
}

.origen-sueño-text p {
    font-family: 'Comfortaa', sans-serif;
    font-size: 16px;
    color: #343434;
    line-height: 1.6;
    text-align: center;
    margin-top: 10px;
}

/* Nueva estructura para la imagen y overlay */
.origen-sueño-cuadro {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 570px;
    height: auto;
    background-color: #343434;
    border-radius: 20px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Nueva estructura para la imagen y overlay */
.image-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.image-container .principal-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

.image-container .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff; /* Fondo completamente blanco */
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.image-container:hover .overlay {
    display: flex;
}

.image-container .overlay.active {
    display: flex;
}

.overlay .animation-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Estilos para el botón de hamburguesa */
.hamburger {
    display: none; /* Oculto por defecto, se mostrará en móviles */
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

/* Estilos para las barras del botón de hamburguesa */
.hamburger .bar {
    height: 3px; /* Aumentado de 2px a 3px para mayor visibilidad */
    width: 100%;
    background-color: #fff;
    border-radius: 2px; /* Reducido a 2px para una apariencia más nítida */
    transition: all 0.3s ease;
}

/* Animación cuando el botón está activo */
.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Estilos para la sección Aptitudes */
.aptitudes {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Alinear a la izquierda en desktop */
    margin-bottom: 40px; /* Espacio inferior */
}

.aptitudes h2 {
    font-family: 'Bebas Neue', cursive;
    font-size: 48px;
    margin-bottom: 20px;
    letter-spacing: 2.5px;
    color: #161616;
}
.aptitudes p {
    font-family: 'Comfortaa', cursive;
    font-size: 18px;
    margin-bottom: 20px;
}

#sobre-mi {
    max-width: 1100px;
    margin: 90px auto;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}
/* Estilos para la sección Aptitudes */
.aptitudes-cards {
    max-width: 1100px;
    margin: 40px auto;
    width: 100%;
    height: 600px;
    max-height: 500px;
}
.card-summary p{
    padding-top: 20px;
}
.card-icon {
    display: flex;
    align-items: center; /* Centra verticalmente el icono y el título */
    margin-bottom: 10px; /* Añadir margen inferior para separar el título del contenido */
}

.card-icon img {
    width: 40px;
    height: 40px;
}

.card-icon h3 {
    font-family: 'Comfortaa', sans-serif;
    font-size: 20px;
    margin: 0; /* Elimina márgenes predeterminados */
    text-align: left; /* Alinea el texto a la izquierda */
    color: #fff;
    margin-left: 10px; /* Espacio entre el icono y el título */
    flex: 1; /* Permite que el título ocupe el espacio restante */
}

.card p {
    font-family: 'Comfortaa', sans-serif;
    font-size: 16px;
    color: #fff;
    text-align: center;
    margin-top: 10px; /* Añadir margen superior para separar el texto del borde */
}
.swiper-wrapper {
    display: flex;
}

.swiper-slide {
    width: 320px;
    height: auto;
    margin-right: 20px;
    transition: transform 0.3s ease;
    cursor: pointer; /* Indica que es interactiva */
    position: relative;
}
.video-presentacion__video {
    margin-top: 80px;
    border-radius: 15px;
    max-width: 1100px;
    margin-left: 0px;
    width: 70%; /* Ancho para pantallas grandes por defecto */
}
.sobre-mi {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 140px;
    margin-bottom: 40px;
  }
  .sobre-mi-texto {
    flex: 1;
    text-align: left;
  }
  
  .sobre-mi-texto h2 {
    font-family: 'Bebas Neue', cursive;
    font-size: 48px;
    margin-bottom: 20px;
    letter-spacing: 2.5px;
    color: #161616;
  }
  .video-presentacion {
    flex: 1;
    text-align: right;
    margin-right: 80px; /* Añadir margen a la derecha del vídeo */
  }
  
  .sobre-mi-texto p {
    font-family: 'Comfortaa', sans-serif;
    font-size: 18px;
    max-width: 800px;
    margin: 0;
  }
  #trayectoria {
    max-width: 1100px;
    margin: 0 auto; /* Centra horizontalmente */
    width: 100%; /* Asegura que ocupe todo el ancho disponible */
}
.bento-grid-wrapper {
    display: flex;
    max-width: 1100px;
    margin: 0px auto;
    gap: 0px;
    padding: 0px;
    align-items: stretch;
    justify-content: center;
}  

.bento-grid-left {
    display: grid;
    grid-template-columns: 2fr 1.12fr;
    grid-template-rows: 250px auto;
    gap: 20px;
    width: 100%;
    max-width: 600px;
    padding: 10px;
    align-items: start;
    max-height: 550px;
}

.bento-grid-right {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 150px auto;
    gap: 20px;
    width: 450px;
    max-width: 570px;
    max-height: 550px;
    padding: 10px 10px 10px;
    align-items: start;
}

.bento-item {
    background-color: #343434;
    border-radius: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.item1 {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
    height: 250px;
    width: auto;
}
.item1-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 34px;
    margin-left: 20px;
    margin-top: 20px;
    letter-spacing: 3px;
    color: #ffffff;
    margin-bottom: 0px;
}

.item1-description {
    padding: 20px;
    break-inside: auto;
    font-family: 'Comfortaa', sans-serif;
    font-size: 16px;
    color: #ffffff;
}
.item2 {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    width: auto;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item2-logo {
    display: block;
    width: 100%;
    max-width: auto;
    padding: 30px;
    height: auto;
}

.item3 {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    width: auto;
    height: auto;
    align-self: stretch;
    display: flex; /* Añadir flexbox */
    align-items: center; /* Centrar verticalmente */
    justify-content: center; /* Centrar horizontalmente */
}

.item3-image {
    padding-bottom: 17px;
    padding-top: 17px;
    padding-left: 30px;
    padding-right: 30px;
    max-width: 100%; /* Limita el ancho al 100% del contenedor */
    height: auto;
    box-sizing: border-box; /* Incluye padding en el ancho total */
}
.bento-item.item3 {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.arrow-left,
.arrow-right {
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.arrow-left {
  left: 2px; /* Ajusta según el diseño */
}

.arrow-right {
  right: 2px; /* Ajusta según el diseño */
}

.arrow-left img,
.arrow-right img {
  width: 30px; /* Tamaño de las flechas */
  height: 30px;
}
/* Estilos para item4 */
.item4 {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 20px; /* Espacio superior para separar del contenido superior */
    height: 200px; /* Mantiene la altura definida */
  }
/* Contenedor de la barra de progreso y etiquetas de tiempo */
.progress-container {
    display: flex;
    flex-direction: column; /* Mantener la orientación vertical para la localidad */
    align-items: center;
    gap: 20px; /* Espacio entre localidad y barra de progreso */
    max-width: 325px;
    width: 100%;
}
.progress-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px; /* Espacio entre elementos */
}
  
  /* Estilos para la información de localidad */
  .location-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px; /* Espacio entre la información y la barra de progreso */
}

.location-icon {
    width: 40px; /* Aumentar tamaño para mayor visibilidad */
    height: 40px;
    margin-right: 12px; /* Espacio entre la imagen y el texto */
}

.location-text {
    font-family: 'Comfortaa', sans-serif;
    font-size: 20px; /* Aumentar tamaño de fuente */
    color: #ffffff;
    font-weight: 500; /* Añadir peso para mayor énfasis */
}

.timers {
    display: flex;
    justify-content: space-between;
    width: 100%; /* Ocupa todo el ancho de .progress-container */
    max-width: 300px; /* Asegura que no exceda el contenedor */
}

.current-time,
.total-time {
    font-family: 'Comfortaa', sans-serif;
    font-size: 16px; /* Ajusta el tamaño según preferencia */
    color: #ffffff;
    width: 50px; /* Ancho fijo para mantener alineación */
    text-align: center;
}
.progress-bar {
    position: relative;
    flex: 1; /* Ocupa el espacio restante entre los tiempos */
    height: 10px; /* Altura de la barra */
    background-color: #ffffff; /* Línea blanca */
    border-radius: 5px; /* Bordes redondeados */
    cursor: pointer;
    overflow: hidden;
}

/* Barra de progreso completada */
.progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: #7c7c7c; /* Color de la barra completada */
    border-radius: 5px;
    transition: width 0.1s linear;
}

/* Botón de progreso (Handle) */
.progress-handle {
    position: absolute;
    top: 50%; /* Centrar verticalmente */
    left: 0%;
    transform: translate(-50%, -50%); /* Centrar el handle sobre la barra */
    width: 14px;
    height: 14px;
    background-color: #B9B9B9; /* Color del handle */
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.1s linear, background-color 0.2s;
    z-index: 2;
}

.progress-handle:hover,
.progress-handle:focus {
    background-color: #A0A0A0;
    transform: translate(-50%, -50%) scale(1.2); /* Aumentar tamaño al pasar el ratón */
}
  
  .item5 {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    position: relative;
    display: flex;
    width: 200px;
    height: 200px;
    flex-direction: column;
    align-items: center;
  }
/* Estilos para el reproductor de música dentro de item5 */
.music-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
    justify-content: center; /* Añadido para centrar mejor el contenido */
    height: 100%; /* Asegurar que todo esté centrado verticalmente */
  }
  .song-cover {
    width: 150px;
    height: 100px;
    margin-bottom: 20px;
  }
  .controls {
    display: flex;
    gap: 10px; /* Puedes ajustar el valor para definir la separación entre botones */
    margin-bottom: 20px;
    align-items: center; /* Centrar botones verticalmente */
    justify-content: center; /* Centrar botones horizontalmente */
    width: 100%; /* Asegurar que los botones ocupen el ancho completo para centrar mejor */
  }
  .control-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
  }
  .control-button img {
    display: block;
    width: 100%;
    height: auto;
  }
  .volume-control {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 160px;
    background-color: #ffffff;
    border-radius: 2px;
  }
  
  .vertical-volume-line {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 150px;
    background-color: #ffffff;
    border-radius: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
  }
  
  .horizontal-volume-slider {
    position: absolute;
    width: 20px; /* Aumentamos el ancho para que sobresalga claramente */
    height: 8px;
    background-color: #bdbdbd;
    border-radius: 2px;
    cursor: pointer;
    z-index: 3;
    left: 50%;
    transform: translateX(-50%);
  }  
  .trayectoria-mobile {
    display: none;
}
/* Estilos para la sección El Origen de un Sueño */
.origen-sueño {
    max-width: 1100px;
    margin: 150px auto;
    padding: 20px;
    box-sizing: border-box;
}
.origen-sueño-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Alineación vertical al inicio */
    gap: 28px; /* Espacio entre elementos */
    flex-wrap: wrap;
}

.origen-sueño-text {
    flex: 1 1 200px;
}

.origen-sueño-text h2 {
    font-family: 'Bebas Neue', cursive;
    font-size: 42px;
    color: #343434;
    margin-bottom: 20px;
    text-align: center;
}

.origen-sueño-text p {
    font-family: 'Comfortaa', sans-serif;
    font-size: 16px;
    color: #343434;
    line-height: 1.6;
    text-align: center;
    margin-top: 10px;
}

/* Nueva estructura para la imagen y overlay */
.origen-sueño-cuadro {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 550px;
    height: auto;
    background-color: #343434;
    border-radius: 20px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Nueva estructura para la imagen y overlay */
.image-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.image-container .principal-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

.image-container .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff; /* Fondo completamente blanco */
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.image-container:hover .overlay {
    display: flex;
}

.image-container .overlay.active {
    display: flex;
}

.overlay .animation-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}
/* Personaliza el contenedor del scrollbar */
::-webkit-scrollbar {
    width: 8px; /* Ancho del scroll */
    height: 8px; /* Alto del scroll (en caso horizontal) */
    border-radius: 10px; /* Bordes redondeados */
}

/* Estilo del "track" o fondo del scroll */
::-webkit-scrollbar-track {
    background: #f0f0f0; /* Fondo claro */
    border-radius: 10px; /* Bordes redondeados */
}

/* Estilo de la barra de desplazamiento */
::-webkit-scrollbar-thumb {
    background: #343434; /* Color gris para el scroll */
    border-radius: 10px; /* Bordes redondeados */
}

/* Opcional: Cambiar color al pasar el mouse por encima */
::-webkit-scrollbar-thumb:hover {
    background: #343434; /* Un poco más oscuro al pasar el ratón */
}
/* Clase personalizada para el popup */
.toast-notification {
    display: flex;
    align-items: center;
    background-color: #343434;
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    max-width: 300px;
    font-size: 14px;
}
.toast-image {
    width: auto;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 10px;
}
.toast-content {
    flex-grow: 1;
    overflow: hidden;
}
  
.toast-content p {
    margin: 5px 0 0;
    font-size: 12px;
    color: #cfcfcf;
    display: -webkit-box;            /* Necesario para aplicar line-clamp */
    -webkit-line-clamp: 4;           /* Número de líneas antes de truncar */
    -webkit-box-orient: vertical;    /* Orientación de las cajas */
    overflow: hidden;                /* Oculta el contenido que sobresale */
    text-overflow: ellipsis;         /* Agrega puntos suspensivos */
}
  
  
  /* Botón de cierre */
.toast-close-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 16px;
  margin-left: 5px;
  cursor: pointer;
}
.custom-swal-popup {
    border-radius: 8px; /* Bordes redondeados */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra ligera */
  }

#toast-container {
  position: fixed;
  bottom: 20px;
  left: 20px; /* Cambiar al extremo inferior izquierdo */
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse; /* Apilar notificaciones nuevas abajo */
  gap: 10px;
}

/* Clase personalizada para el botón de confirmación */
.custom-swal-confirm-button {
    background-color: #007bff; /* Color de botón personalizado */
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 4px;
  }

.custom-swal-confirm-button:hover {
    background-color: #e0e0e0 !important;
}
@media (max-width: 1024px) {
    #principal {
        flex-direction: row;
        gap: 24px; /* Mantener gap en 24px */
    }
    .photo-box {
        flex: 1 1 300px; /* Asegurar flex correcto */
        border-radius: 20px;
        margin-right: 10px; /* Mantener margen */
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%; /* Igualar la altura */
        /* Eliminar max-height: 488px; */
    }
    .info-box {
        margin-left: 10px;
    }
    .origen-sueño-container {
        flex-direction: column;
        align-items: center;
    }

    .origen-sueño-cuadro {
        width: 100%;
        height: auto;
        flex-direction: column;
        align-items: center;
        position: relative;
    }

    .image-container {
        max-width: 100%;
    }

    .overlay .animation-image {
        border-radius: 10px;
    }
}

@media (max-width: 768px){
    header {
        position: fixed;          
        top: 10px;                     /* Ajusta el margen superior para móviles */
        left: 50%;                     /* Centra horizontalmente */
        transform: translateX(-50%);   /* Ajusta la posición para centrar */
        width: calc(100% - 20px);      /* Mantiene márgenes de 10px a cada lado */
        max-width: 1100px;             /* Igual que #principal */
        padding: 10px 20px;
        height: 70px;                  /* Altura ajustada para móviles */
        border-radius: 20px;
        z-index: 1000;                 /* Asegura que esté por encima de otros elementos */
    }
    /* Ajustar el padding-top del body para coincidir con la altura del header en móvil */
    body {
        padding-top: 80px; /* 70px de header + 10px de margen superior */
    }
    /* Estilos para el logo */
    .logo-header img {
        margin-left: 5px;
        width: 30px;
        height: 30px;
    }
    /* Mostrar y posicionar el botón de hamburguesa */
    .hamburger {
        display: flex; /* Mostrar el botón */
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 1001; /* Asegurar que esté por encima del menú */
    }

    /* Ocultar el menú por defecto */
    .menu-header {
        display: none;
        width: 100%;
    }

    /* Mostrar el menú cuando está activo */
    .menu-header.active {
        display: block;
        position: absolute;
        top: 60px; /* Posicionar debajo del botón de hamburguesa */
        right: 0; /* Alinear a la derecha del botón */
        background-color: #444444; /* Color de fondo más oscuro */
        border-radius: 20px;
        padding: 10px 0;
        width: 200px; /* Ajustar según preferencia */
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra para profundidad */
    }

    /* Organizar los enlaces en columna en móviles */
    .menu-header ul {
        flex-direction: column; /* Cambiar a columna para mejor legibilidad */
        align-items: center;
        width: 100%;
    }

    .menu-header li {
        margin: 10px 0; /* Espaciado vertical entre enlaces */
    }

    /* Ajustes en la sección principal */
    #principal {
        flex-direction: column;
        gap: 24px; /* Mantener el margen de 24px */
        width: 100%;
        margin-top: 10px;
    }

    /* Ajustes en el cuadro de información */
    .info-box {
        margin-left: 10px;
        margin-right: 10px;
        padding: 20px; /* Reducir padding para adaptarse al móvil */
        max-width: calc(100% - 20px); /* Ajustar el ancho total con márgenes */
    }

    /* Centrar el texto y ajustar tamaños */
    .info-box h1 {
        font-size: 48px; /* Ajustado para pantallas más pequeñas */
        text-align: center; /* Centrar el texto */
    }

    .info-box p {
        font-size: 16px;
        text-align: center;
    }

    /* Ajustes en las acciones */
    .acciones {
        flex-direction: column;
        align-items: center;
    }

    .btn-contacto {
        margin: 0 0 10px 0; /* Centrar el botón y añadir margen inferior */
    }

    .redes-sociales {
        margin-top: 20px;
        justify-content: center; /* Asegurar que las redes estén centradas */
        width: 100%;
    }

    /* Ajustes en el cuadro de la foto para centrar la imagen y añadir espacios */
    .photo-box {
        width: calc(100% - 20px); /* Añadir espacio de 10px a cada lado */
        margin: 0 auto; /* Centrar el cuadro */
    }

    .photo-box img {
        max-width: 80%;
        height: auto; /* Mantener proporciones */
    }
    .aptitudes {
        align-items: center; /* Centrar en móviles */
        text-align: center;  /* Centrar texto */
    }

    .aptitudes h2 {
        font-size: 38px;
        margin-top: 30px;
    }

    .aptitudes p {
        font-size: 16px;
    }
    #sobre-mi {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: calc(100% - 40px);      /* Mantiene márgenes de 20px a cada lado */
        max-width: 1100px;
        margin: 20px auto;
        padding: 10px;
    }
    .sobre-mi {
        flex-direction: column;
        align-items: center;
      }
      .sobre-mi-texto {
        order: -1; /* Mostrar "Sobre mí" antes del vídeo en móviles */
        text-align: center;
        margin-bottom: 20px;
      }
      .sobre-mi-texto h2 {
        font-size: 36px;
      }
      .sobre-mi-texto p {
        font-size: 16px;
        padding: 0 10px;
      }
      .video-presentacion {
        text-align: center;
        margin: 0px auto; /* Asegurar que el vídeo esté bien centrado en móvil */
      }
    /* Ajustes para las tarjetas en móviles */
    .aptitudes-cards {
        height: auto; /* Permite altura dinámica */
        margin: 40px auto;
        padding: 0 20px;
        display: flex;
        justify-content: center;
    }

    .card {
        background-color: #343434; /* Gris */
        border-radius: 10px;
        width: 100%; /* Cambiar a 100% para que ocupe todo el ancho del contenedor en móviles */
        max-width: 320px; /* Añadir un máximo para evitar que crezca demasiado */
        height: 250px; /* Fijar la altura de las tarjetas para que sean uniformes */
        margin-right: 20px;
        flex-shrink: 0;
        display: flex;
        flex-direction: column; /* Disposición en columna por defecto */
        align-items: flex-start;
        padding: 20px; /* Añadir padding para asegurar espaciado dentro de la tarjeta */
        box-sizing: border-box;
        transition: transform 0.5s ease, box-shadow 0.5s ease;
    }
    /* Ocultar scrollbar en móviles */
    .cards-container::-webkit-scrollbar {
        display: none;
    }
    .swiper-slide {
        width: 100%; /* Ocupa el 100% del contenedor en móviles */
        margin-right: 10px; /* Espaciado entre tarjetas */
    }
    .card-icon {
        display: flex;
        margin-right: 10px; /* Espacio entre el icono y el título */
    }
    .card h3 {
        display: block;
        flex: 1; /* Permite que el título ocupe el espacio restante */
        font-size: 18px; /* Ajusta el tamaño del texto para móviles */
    }
    .card-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    }
    /* Estilos para tarjetas expandidas en móviles */

    .card.expanded {
        transform: scale(1.05);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    .card.expanded .card-details {
        max-height: 300px; /* Ajusta según el contenido */
        opacity: 1;
        margin-top: 10px;
        transition: max-height 0.5s ease, opacity 0.5s ease;
    }
    /* Estilos para tarjetas expandidas en móviles */
    .swiper-slide.card.expanded {
        height: auto;
        transform: scale(1.02);
    }

    .swiper-slide.card.expanded .card-details {
        display: block;
        max-height: 200px; /* Ajusta según el contenido */
        opacity: 1;
        margin-top: 10px;
    }

    .card-details {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, margin-top 0.3s ease;
        background-color: #343434;
        border-radius: 10px;
        padding: 0 10px;
    }
    .card.expanded .card-summary {
        display: none;
    }
    .card-summary {
        display: block;
    }
    .video-presentacion__video {
        width: 100%; /* Ancho para pantallas móviles */
        margin-top: 10px;
        margin-left: 0px;
    }

        /* Ocultar el diseño de escritorio */
    .bento-grid-wrapper {
        display: none;
    }

 /* Estilos Generales para trayectoria-mobile */
.trayectoria-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
    background-color: #fff; /* Fondo consistente */
    border-radius: 15px; /* Bordes redondeados */
    margin-bottom: 20px; /* Espacio inferior */
}

/* Cuadrado de Ubicación y Logo en la Misma Fila */
.trayectoria-mobile .ubicacion-logo-mobile {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0px; /* Espacio entre cuadrado y cuadrado */
    height: 60px;
    width: 100%;
    padding: 10px;
    background-color: #444444;
    border-radius: 10px;
    margin-bottom: 10px;
    box-sizing: border-box;
}
.trayectoria-mobile .ubicacion-logo-mobile .ubicacion-icon {
    width: 16px;
    height: 16px;
    margin-right: 10px;
    margin-bottom: 5px;
}
/* Información de Ubicación */
.trayectoria-mobile .ubicacion-logo-mobile .ubicacion {
    display: flex;
    flex-direction: row; /* Asegura la dirección horizontal */
    align-items: center; 
    flex-wrap: nowrap; /* Evita que el contenido se envuelva a la siguiente línea */
    max-width: 70%; /* Mantiene el ancho máximo */
}

.trayectoria-mobile .ubicacion-logo-mobile .ubicacion-texto {
    font-size: 14px;
    color: #ffffff;
    font-family: 'Comfortaa', sans-serif;
    white-space: normal; /* Permite que el texto haga saltos de línea */
    word-break: break-word; /* Rompe palabras largas si es necesario */
}

/* Logo de Mapfre */
.trayectoria-mobile .ubicacion-logo-mobile .logo-mapfre-mobile {
    width: 35%; /* Ocupa el 35% del ancho */
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.trayectoria-mobile .ubicacion-logo-mobile .mapfre-logo {
    width: 130px;
    height: auto;
}

/* Cuadrado de Título y Texto */
.trayectoria-mobile .titulo-trayectoria-mobile {
    width: 100%;
    background-color: #444444;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.trayectoria-mobile .titulo-trayectoria-mobile h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #ffffff;
    font-family: 'Bebas Neue', cursive;
    text-align: center;
    letter-spacing: 2px; /* Espaciado añadido */
}

.trayectoria-mobile .titulo-trayectoria-mobile p {
    font-size: 14px;
    color: #ffffff;
    font-family: 'Comfortaa', sans-serif;
    text-align: center;
}

/* Cuadrado de Imagen y Reproductor de Música */
.trayectoria-mobile .imagen-musica-mobile {
    position: relative;
    width: 100%;
    background-color: #444444;
    border-radius: 10px;
    padding: 10px 30px;
    margin-bottom: 15px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Flechas de Navegación */
.trayectoria-mobile .imagen-musica-mobile .arrow-left-mobile,
.trayectoria-mobile .imagen-musica-mobile .arrow-right-mobile {
    position: absolute;
    top: 30%;
    transform: translateY(-50%);
    width: 25px; /* Aumenta el tamaño de las flechas */
    height: 25px; /* Aumenta el tamaño de las flechas */
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2;
}
.trayectoria-mobile .imagen-musica-mobile .arrow-left-mobile img,
.trayectoria-mobile .imagen-musica-mobile .arrow-right-mobile img {
width: 30px;
height: auto;
}
.trayectoria-mobile .imagen-musica-mobile .arrow-left-mobile {
    left: 0px;
}

.trayectoria-mobile .imagen-musica-mobile .arrow-right-mobile {
    right: 5px;
}

/* Contenedor de Imagen y Música */
.trayectoria-mobile .imagen-musica-contenedor-mobile {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Imagen Principal */
.trayectoria-mobile .imagen-musica-contenedor-mobile .imagen-mapa-mobile {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}
.trayectoria-mobile .thin-timer-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 0px;
}
/* Reproductor de Música */
.trayectoria-mobile .music-player-mobile {
    display: flex;
    flex-direction: row; /* Ya cambiado a 'row' */
    align-items: center;
    justify-content: center; /* Ya centrado */
    gap: 0px; /* Añadir espacio entre elementos */
    height: auto;
}
.trayectoria-mobile .music-player-mobile .cover-container {
    margin-top: 10px;
    position: relative;
    width: 100px; /* Ajustado para coincidir con cover-cancion-mobile */
    height: 80px; /* Definir altura para mantener proporción cuadrada */
    aspect-ratio: 1 / 1; /* Proporción cuadrada */
    flex-shrink: 0; /* Evitar que se reduzca el tamaño */
}

.trayectoria-mobile .music-player-mobile .cover-cancion-mobile {
    width: 100%;
    height: 80%;
    border-radius: 20px;
    object-fit: cover;
}

.trayectoria-mobile .music-player-mobile .boton-play-pause-mobile {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    z-index: 3;
}

.trayectoria-mobile .music-player-mobile .icono-play,
.trayectoria-mobile .music-player-mobile .icono-pause {
    width: 24px;
    height: 24px;
}

/* Controles de Reproducción */
.trayectoria-mobile .music-player-mobile .controles-reproduccion-mobile {
    display: flex;
    flex-direction: column; /* Alinear flechas verticalmente */
    align-items: center;
    margin: 0 10px; /* Espaciado horizontal */
}
.trayectoria-mobile .music-player-mobile .prev-song-mobile {
    margin-right: 10px; /* Espacio a la derecha del botón de retroceder */
}

.trayectoria-mobile .music-player-mobile .next-song-mobile {
    margin-left: 10px; /* Espacio a la izquierda del botón de avanzar */
}
.trayectoria-mobile .music-player-mobile .prev-song-mobile,
.trayectoria-mobile .music-player-mobile .next-song-mobile {
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
}

.trayectoria-mobile .music-player-mobile .prev-song-mobile img,
.trayectoria-mobile .music-player-mobile .next-song-mobile img {
    width: 100%;
    height: auto;
}

/* Minutero de la Canción */
.trayectoria-mobile .music-player-mobile .thin-timer-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    border-radius: 15px;
    padding: 5px 10px;
    width: 80%;
    height: 30px;
    box-sizing: border-box;
    margin-top: 10px;
}

.trayectoria-mobile .music-player-mobile .thin-timer-mobile .current-time-mobile,
.trayectoria-mobile .music-player-mobile .thin-timer-mobile .total-time-mobile {
    font-size: 12px;
    color: #ffffff;
    font-family: 'Comfortaa', sans-serif;
}

.trayectoria-mobile .music-player-mobile .thin-timer-mobile .progress-bar-fino-mobile {
    flex: 1;
    width: 90%;
    height: 6px;
    background-color: #7c7c7c;
    border-radius: 3px;
    margin: 0 10px;
    position: relative;
    cursor: pointer;
}

.trayectoria-mobile .progress-bar-fino-mobile {
  flex: 1;
  height: 4px;
  background-color: #ffffff;
  border-radius: 2px;
  max-width: 75%;
  position: relative;
}
.trayectoria-mobile .progress-fino-mobile {
    width: 0;
    height: 100%;
    background-color: #7c7c7c;
    transition: width 0.1s linear;
}
.trayectoria-mobile .thin-timer-mobile .current-time-mobile,
.thin-timer-mobile .total-time-mobile {
  font-size: 14px;
  color: #ffffff;
}

.control-progreso-fino-mobile {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: #B9B9B9;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.1s linear, background-color 0.2s;
    z-index: 2;
}

.trayectoria-mobile .music-player-mobile .thin-timer-mobile .control-progreso-fino-mobile {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: #B9B9B9;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.1s linear, background-color 0.2s;
    z-index: 2;
}

.trayectoria-mobile .music-player-mobile .thin-timer-mobile .control-progreso-fino-mobile:hover,
.trayectoria-mobile .music-player-mobile .thin-timer-mobile .control-progreso-fino-mobile:focus {
    background-color: #A0A0A0;
    transform: translate(-50%, -50%) scale(1.2);
}

/* Ocultar la barra de volumen en móviles */
.trayectoria-mobile .music-player-mobile .vertical-volume-line {
    display: none;
}
.trayectoria-mobile .thin-timer-mobile {
    margin-left: 10px; /* Margen izquierdo */
    margin-right: 10px; /* Margen derecho */
}
/* Ajustes para la sección El Origen de un Sueño en móviles */
.origen-sueño-text p {
    font-size: 14px; /* Tamaño de fuente en móviles */
}

.origen-sueño-cuadro {
    width: 100%;
    height: auto;
    flex-direction: column;
    align-items: center;
    gap: 28px; /* Mantener el gap */
}

.image-container {
    max-width: 100%;
}

.overlay .animation-image {
    border-radius: 10px;
}
}
@media (max-width: 768px) {
    .origen-sueño-cuadro {
        background-color: #343434;
        padding: 10px;
        border-radius: 10px;
    }

    .image-container {
        width: 100%;
    }

    .principal-image {
        width: 100%;
        height: auto;
        border-radius: 10px;
    }

    .overlay {
        background-color: #ffffff; /* Fondo completamente blanco */
    }

    .overlay .animation-image {
        width: 100%;
        height: auto;
        border-radius: 10px;
    }
}

@media (min-width: 769px) {
    /* Estilo para tarjetas en versiones de escritorio */
    .swiper-slide {
        width: 320px;
        height: auto; /* Ajuste la altura automáticamente */
        margin-right: 20px;
        transition: transform 0.3s ease;
        cursor: pointer; 
        position: relative;
    }  

    .card {
        background-color: #343434;
        border-radius: 10px;
        width: 320px;
        margin-right: 20px;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        box-sizing: border-box;
        transition: transform 0.5s ease, box-shadow 0.5s ease;
        position: relative;
        overflow: hidden;
    }

    .card-details {
        background-color: #343434;
        border-radius: 10px;
        padding: 10px;
        color: #fff;
        font-size: 16px;
        text-align: center;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.5s ease, opacity 0.5s ease, margin-top 0.5s ease;
    }
    .card.expanded {
        transform: scale(1.05);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        border-radius: 20px; /* Opcional: puedes ajustar este valor */
    }
    .card.expanded .card-details {
        max-height: 500px; /* Ajusta según el contenido */
        opacity: 1;
        margin-top: 10px;
    }

    .card:hover .card-details {
        max-height: 500px; /* Ajustar según el contenido */
        opacity: 1;
    }

    .swiper-slide.card.expanded {
        transform: scale(1.05);
        z-index: 10;
    }

    .swiper-slide.card.expanded .card-details {
        display: block;
        max-height: 600px; /* Ajusta según el contenido */
        opacity: 1;
        margin-top: 10px;
    }

    .card:hover {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        z-index: 10;
    }
    .card:hover .card-details {
        opacity: 1;
    }
    .swiper-slide.card:hover .card-summary {
        display: none; /* Ocultar el resumen cuando la tarjeta esté expandida */
    }
}
  @media (max-width: 768px) {
  .theme-toggle {
    position: absolute;
    top: -5px;
    right: 0px; /* Ajusta según la posición del botón hamburguesa */
  }
}
.theme-toggle{
    margin-left: 20px;
}
/* Estilos generales para el botón de cambio de tema */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
    margin-left: auto; /* Empuja el botón hacia la derecha en desktop */
    margin-right: 5px; /* Espacio entre el botón y el hamburger */
}

/* Media query para dispositivos móviles */
@media (max-width: 768px) {
  /* Logo a la izquierda */
  .logo-header {
    flex: 0 0 auto;
  }
  
/* Botón de tema entre el logo y el hamburger */
.theme-toggle {
    position: static; /* Quitamos posicionamiento absoluto */
    margin-left: auto; /* Empuja a la derecha */
    margin-top: 10px;
    margin-right: 15px; /* Espacio entre este botón y el hamburger */
    order: 2; /* Orden en flex */
    display: flex; /* Añadido para centrado vertical */
    align-items: center; /* Centrado vertical */
}
  
  /* Hamburger a la derecha */
  .hamburger {
    flex: 0 0 auto;
    position: static; /* Quitar posición absoluta */
    order: 3; /* Orden en flex */
  }

}

/* ===============================
   SECCIÓN INNOVACIÓN QUE ESCALA - SIMULADOR DE ASCENSOR
   =============================== */

.innovacion-escala {
  max-width: 1100px;
  margin: 150px auto;
  padding: 20px;
  box-sizing: border-box;
  position: relative;
}

.elevator-simulator {
  background-color: #343434;
  border-radius: 25px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  min-height: 600px;
}

/* Header */
.elevator-header {
  text-align: center;
  margin-bottom: 40px;
}

.elevator-header h2 {
  font-family: 'Bebas Neue', cursive;
  font-size: 42px;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: 3px;
}

.elevator-subtitle {
  font-family: 'Comfortaa', sans-serif;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
}

/* Interfaz del ascensor */
.elevator-interface {
  display: flex;
  gap: 40px;
  height: 500px;
}

/* Shaft del ascensor */
.elevator-shaft {
  width: 200px;
  position: relative;
  background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
  border-radius: 15px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.shaft-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 20px,
    rgba(255, 255, 255, 0.03) 20px,
    rgba(255, 255, 255, 0.03) 22px
  );
}

.shaft-lines {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.3) 100%
  );
  transform: translateX(-50%);
}

/* Cabina del ascensor */
.elevator-car {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 80px;
  background: linear-gradient(135deg, #4a4a4a, #2c2c2c);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: top 1s cubic-bezier(0.4, 0, 0.2, 1);
  top: 50px;
  z-index: 3;
}

.car-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px 10px 0 0;
  height: 40px;
}

.floor-indicator {
  font-family: 'Bebas Neue', cursive;
  font-size: 12px;
  color: #fff;
  letter-spacing: 1px;
}

.direction-arrow {
  color: #4CAF50;
  font-size: 16px;
  font-weight: bold;
  animation: arrowPulse 2s infinite;
}

@keyframes arrowPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.car-lights {
  display: flex;
  justify-content: center;
  padding: 8px;
  gap: 5px;
}

.light {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.3s ease;
}

.light.active {
  background: #4CAF50;
  box-shadow: 0 0 8px rgba(76, 175, 80, 0.6);
}

/* Botones de pisos */
.floor-buttons {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.floor-button {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.floor-button:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.floor-button.active {
  background: linear-gradient(135deg, #fff, #f0f0f0);
  color: #343434;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.button-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.floor-number {
  font-family: 'Bebas Neue', cursive;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 2px;
  color: #fff;
}

.floor-button.active .floor-number {
  color: #343434;
}

.floor-label {
  font-family: 'Comfortaa', sans-serif;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #fff;
}

.floor-button.active .floor-label {
  color: #343434;
}

.location-badge {
  font-size: 9px;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.8);
}

.floor-button.active .location-badge {
  background: rgba(52, 52, 52, 0.1);
  color: #343434;
}

/* Contenido principal */
.elevator-content {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.content-display {
  height: 100%;
  position: relative;
}

/* Header del proyecto */
.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.project-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-logo {
  height: 25px;
  width: auto;
}

.project-title {
  font-family: 'Bebas Neue', cursive;
  font-size: 18px;
  color: #fff;
  letter-spacing: 1px;
}

.timeline-badge {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 11px;
  font-weight: 600;
}

/* Contenido por piso */
.floor-content {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 60px;
  overflow-y: auto;
}

.floor-content.active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
  top: auto;
  bottom: auto;
}

.content-header {
  margin-bottom: 25px;
}

.content-header h3 {
  font-family: 'Bebas Neue', cursive;
  font-size: 28px;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.audience-info {
  display: flex;
  flex-direction: column;
}

.audience-title {
  font-family: 'Comfortaa', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #4CAF50;
}

.audience-subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

/* Secciones de contenido */
.overview-section {
  margin-bottom: 25px;
}

.overview-section h4, .tech-showcase h4, .construction-section h4, .recognition-section h4 {
  font-family: 'Comfortaa', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.overview-section p {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

/* Stack tecnológico */
.tech-showcase {
  margin-bottom: 25px;
}

.tech-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.tech-layer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  border-radius: 8px;
  border-left: 3px solid;
}

.tech-layer.frontend { border-left-color: #61DAFB; }
.tech-layer.backend { border-left-color: #3776AB; }
.tech-layer.database { border-left-color: #336791; }

.layer-name {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}

.tech-items {
  font-size: 12px;
  color: #fff;
  font-weight: 500;
}

/* Métricas de impacto */
.impact-metrics {
  margin-bottom: 20px;
}

.metric-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  margin-bottom: 15px;
}

.metric-value {
  font-family: 'Bebas Neue', cursive;
  font-size: 36px;
  color: #4CAF50;
  display: block;
  margin-bottom: 5px;
}

.metric-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 8px;
}

.metric-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #4CAF50, #81C784);
  border-radius: 2px;
  transition: width 1s ease;
}

/* Grid de beneficios */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.benefit-item i {
  color: #4CAF50;
  font-size: 14px;
}

/* Sección de solución (Madrid) */
.solution-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin-top: 15px;
}

.solution-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
  border-radius: 10px;
}

.solution-icon {
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg, #4CAF50, #45a049);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.solution-icon i {
  color: white;
  font-size: 16px;
}

.solution-content h5 {
  font-family: 'Comfortaa', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.solution-content p {
  font-size: 11px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.8);
}

/* Sección de reconocimiento */
.recognition-section {
  margin-top: 25px;
}

.recognition-card {
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
  border-radius: 12px;
  padding: 15px;
  margin-top: 10px;
}

.recognition-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.recognition-badge i {
  color: #4CAF50;
  font-size: 16px;
}

.recognition-badge span {
  font-size: 12px;
  font-weight: 600;
  color: #4CAF50;
}

.director-quote blockquote {
  font-style: italic;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 8px 0;
}

.director-quote cite {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
}

/* Controles de navegación */
.elevator-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
}

.nav-button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 8px 15px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
}

.nav-button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.nav-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Elementos decorativos */
.elevator-decorations {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.building-outline {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 60px;
  height: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05) 0%,
    transparent 100%
  );
}

.connection-line {
  position: absolute;
  top: 50%;
  left: 230px;
  right: 40px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(76, 175, 80, 0.3),
    rgba(76, 175, 80, 0.1),
    transparent
  );
  transform: translateY(-50%);
}

/* Responsivo móvil */
@media (max-width: 768px) {
  .innovacion-escala {
    margin: 80px auto;
    padding: 15px;
  }

  .elevator-simulator {
    padding: 20px;
    min-height: auto;
  }

  .elevator-header h2 {
    font-size: 32px;
  }

  .elevator-subtitle {
    font-size: 14px;
  }

  .elevator-interface {
    flex-direction: column;
    height: auto;
    gap: 20px;
  }

  .elevator-shaft {
    width: 100%;
    height: 120px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
  }

  .elevator-car {
    position: relative;
    width: 80px;
    height: 60px;
    top: auto;
    left: auto;
    right: auto;
    margin: 0 20px;
  }

  .car-display {
    padding: 5px 8px;
    height: 30px;
  }

  .floor-indicator {
    font-size: 9px;
  }

  .direction-arrow {
    font-size: 12px;
  }

  .car-lights {
    padding: 4px;
    gap: 3px;
  }

  .light {
    width: 6px;
    height: 6px;
  }

  .floor-buttons {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    margin: 0;
  }

  .floor-button {
    padding: 10px;
    border-radius: 8px;
  }

  .floor-number {
    font-size: 18px;
  }

  .floor-label {
    font-size: 10px;
  }

  .location-badge {
    font-size: 8px;
    padding: 1px 4px;
  }

  .elevator-content {
    margin-top: 0;
    min-height: 350px;
    padding: 20px;
  }

  .project-header {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .content-header h3 {
    font-size: 22px;
  }

  .audience-title {
    font-size: 12px;
  }

  .audience-subtitle {
    font-size: 10px;
  }

  .overview-section h4,
  .tech-showcase h4,
  .construction-section h4,
  .recognition-section h4 {
    font-size: 14px;
  }

  .overview-section p {
    font-size: 12px;
  }

  .tech-layer {
    padding: 6px 10px;
  }

  .layer-name {
    font-size: 9px;
  }

  .tech-items {
    font-size: 10px;
  }

  .metric-value {
    font-size: 28px;
  }

  .metric-label {
    font-size: 10px;
  }

  .benefit-item {
    font-size: 10px;
  }

  .solution-item {
    padding: 10px;
    gap: 10px;
  }

  .solution-icon {
    width: 30px;
    height: 30px;
  }

  .solution-icon i {
    font-size: 14px;
  }

  .solution-content h5 {
    font-size: 11px;
  }

  .solution-content p {
    font-size: 9px;
  }

  .recognition-badge span {
    font-size: 10px;
  }

  .director-quote blockquote {
    font-size: 10px;
  }

  .director-quote cite {
    font-size: 8px;
  }

  .elevator-controls {
    flex-direction: column;
    gap: 10px;
  }

  .nav-button {
    padding: 10px;
    justify-content: center;
    font-size: 12px;
  }

  .building-outline,
  .connection-line {
    display: none;
  }
}

/* Estilos para la sección de contacto */
.contacto {
    max-width: 1100px;
    margin: 150px auto 80px;
    padding: 20px;
    box-sizing: border-box;
    width: 100%;
  }
  
  .contacto-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }
  
  /* Título y descripción de la sección */
  .contacto-titulo {
    text-align: center;
    margin-bottom: 20px;
  }
  
  .contacto-titulo h2 {
    font-family: 'Bebas Neue', cursive;
    font-size: 48px;
    margin-bottom: 15px;
    letter-spacing: 2.5px;
    color: var(--subtitle-color, #161616);
  }
  
  .contacto-titulo p {
    font-family: 'Comfortaa', sans-serif;
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-color, #343434);
  }
  
  /* Contenedor principal del formulario e información */
  .contacto-wrapper {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
  }
  
  /* Lado izquierdo - Formulario */
  .contacto-form-wrapper {
    flex: 1 1 500px;
    background-color: var(--bento-bg, #343434);
    border-radius: 25px;
    box-shadow: var(--shadow, 0 4px 20px rgba(0, 0, 0, 0.1));
    padding: 30px;
    color: var(--bento-text, #fff);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
  }
  
  .contacto-form-wrapper::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 120px;
    height: 120px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    z-index: 0;
  }
  
  .contacto-form-wrapper::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 180px;
    height: 180px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    z-index: 0;
  }
  
  .form-header {
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
  }
  
  .form-header h3 {
    font-family: 'Comfortaa', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
  }
  
  .form-header p {
    font-size: 16px;
    opacity: 0.9;
  }
  
  /* Estilos del formulario */
  .contacto-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 1;
  }
  
  .input-group {
    display: flex;
    gap: 20px;
  }
  
  .form-field {
    display: flex;
    flex-direction: column;
    flex: 1;
  }
  
  .form-field label {
    font-family: 'Comfortaa', sans-serif;
    font-size: 14px;
    margin-bottom: 8px;
  }
  
  .form-field input,
  .form-field textarea {
    font-family: 'Comfortaa', sans-serif;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
    color: var(--bento-text, #fff);
    transition: all 0.3s ease;
  }
  
  .form-field input:focus,
  .form-field textarea:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
  }
  
  .form-field textarea {
    resize: none;
    min-height: 120px;
  }
  
  /* Botón de enviar */
  .btn-enviar {
    align-self: flex-start;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #343434;
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    font-family: 'Comfortaa', sans-serif;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  
  .btn-enviar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.05);
    transition: width 0.4s ease;
    z-index: 0;
  }
  
  .btn-enviar:hover::before {
    width: 100%;
  }
  
  .btn-enviar:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    background-color: #fff;
  }
  
  .btn-enviar span,
  .btn-enviar svg {
    position: relative;
    z-index: 1;
  }
  
  .send-icon {
    transition: transform 0.3s ease;
  }
  
  .btn-enviar:hover .send-icon {
    transform: translateX(3px);
  }
  
  /* Lado derecho - Información de contacto */
  .contacto-info-wrapper {
    flex: 1 1 400px;
    display: flex;
    flex-direction: column;
    gap: 30px;
  }
  
  .contacto-info {
    background-color: var(--bento-bg, #343434);
    border-radius: 25px;
    box-shadow: var(--shadow, 0 4px 20px rgba(0, 0, 0, 0.1));
    padding: 30px;
    color: var(--bento-text, #fff);
    display: flex;
    flex-direction: column;
    gap: 25px;
  }
  
  .contacto-info h3 {
    font-family: 'Comfortaa', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
  }
  
  .contacto-metodo {
    display: flex;
    align-items: flex-start;
    gap: 15px;
  }
  
  .icon-container {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  
  .contacto-icon {
    color: var(--bento-text, #fff);
    stroke: var(--bento-text, #fff);
  }
  
  .info-text {
    display: flex;
    flex-direction: column;
  }
  
  .info-text h4 {
    font-family: 'Comfortaa', sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 5px 0;
  }
  
  .info-text p {
    font-family: 'Comfortaa', sans-serif;
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
  }
  
  /* Redes sociales en el bloque de información */
  .redes-contacto {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .redes-contacto h4 {
    font-family: 'Comfortaa', sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
  }
  
  .redes-icons {
    display: flex;
    gap: 15px;
  }
  
  .red-social {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  }
  
  .red-social:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
  }
  
  .contacto-mapa {
    background-color: #343434;
    border-radius: 25px;
    padding: 20px;
    overflow: hidden;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 320px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }
  
  .mapa-tech-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 280px;
    overflow: hidden;
    background-color: #272727;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Grid de fondo simplificado */
  .mapa-tech-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    overflow: hidden;
  }
  
  .grid-lines {
    position: absolute;
    width: 100%;
    height: 100%;
  }
  
  .grid-lines.horizontal::before,
  .grid-lines.horizontal::after,
  .grid-lines.vertical::before,
  .grid-lines.vertical::after {
    content: '';
    position: absolute;
    background-color: #ffffff;
    opacity: 0.4;
  }
  
  /* Líneas horizontales */
  .grid-lines.horizontal::before {
    top: 25%;
    left: 0;
    width: 100%;
    height: 1px;
  }
  
  .grid-lines.horizontal::after {
    top: 75%;
    left: 0;
    width: 100%;
    height: 1px;
  }
  
  /* Líneas verticales */
  .grid-lines.vertical::before {
    top: 0;
    left: 25%;
    width: 1px;
    height: 100%;
  }
  
  .grid-lines.vertical::after {
    top: 0;
    left: 75%;
    width: 1px;
    height: 100%;
  }
  
  /* Elementos de circuitos decorativos */
  .circuit-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  
  .circuit {
    position: absolute;
    background-color: #ffffff;
    opacity: 0.3;
  }
  
  .circuit.c1 {
    top: 15%;
    left: 10%;
    width: 15%;
    height: 1px;
  }
  
  .circuit.c2 {
    top: 15%;
    left: 10%;
    width: 1px;
    height: 10%;
  }
  
  .circuit.c3 {
    bottom: 25%;
    right: 15%;
    width: 15%;
    height: 1px;
  }
  
  .circuit.c4 {
    bottom: 25%;
    right: 30%;
    width: 1px;
    height: 15%;
  }
  
  .circuit.c5 {
    top: 35%;
    right: 10%;
    width: 1px;
    height: 10%;
  }
  
  /* Puntos de datos */
  .data-points {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  
  .data-point {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #ffffff;
    animation: pulsarPunto 3s infinite;
  }
  
  .data-point:nth-child(even) {
    animation-delay: 1.5s;
  }
  
  .data-point.dp1 { top: 15%; left: 25%; }
  .data-point.dp2 { top: 75%; left: 35%; }
  .data-point.dp3 { top: 45%; left: 75%; }
  .data-point.dp4 { top: 65%; left: 85%; }
  .data-point.dp5 { top: 25%; left: 55%; }
  .data-point.dp6 { top: 55%; left: 15%; }
  
  /* Isla estilizada */
  .isla-tech {
    position: relative;
    width: 80%;
    height: 80%;
    z-index: 5;
  }
  
  .isla-svg {
    width: 100%;
    height: auto;
  }
  
  .isla-contorno {
    fill: none;
    stroke: #ffffff;
    stroke-width: 1.5;
    stroke-dasharray: 3, 3;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.4));
    animation: brilloTech 4s infinite alternate;
  }
  
  .ubicacion-pulso {
    fill: rgba(255, 255, 255, 0.15);
    animation: pulsoUbicacion 2.5s infinite;
  }
  
  .ubicacion-punto {
    fill: #ffffff;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.8));
  }
  
  .geo-linea {
    fill: none;
    stroke: rgba(255, 255, 255, 0.3);
    stroke-width: 0.5;
    stroke-dasharray: 5, 3;
  }
  
  .coordenada {
    fill: #ffffff;
    font-family: 'Comfortaa', sans-serif;
    font-size: 6px;
    opacity: 0.8;
  }
  
  .etiqueta-ciudad {
    fill: #ffffff;
    font-family: 'Comfortaa', sans-serif;
    font-size: 7px;
    font-weight: bold;
  }
  
  /* Interfaz simplificada */
  .tech-hud {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
  }
  
  .hud-elemento {
    position: absolute;
    color: #ffffff;
    font-family: 'Comfortaa', sans-serif;
    font-size: 10px;
  }
  
  .barra-superior {
    top: 15px;
    left: 15px;
    display: flex;
    align-items: center;
  }
  
  .hud-texto {
    opacity: 0.9;
    letter-spacing: 1px;
  }
  
  .hud-indicador {
    margin-left: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ffffff;
    animation: pulsoUbicacion 2s infinite;
  }
  
  .datos-tech {
    bottom: 15px;
    left: 15px;
    display: flex;
    gap: 15px;
  }
  
  .dato-tech {
    display: flex;
    flex-direction: column;
  }
  
  .dato-label {
    font-size: 8px;
    opacity: 0.6;
  }
  
  .dato-valor {
    font-size: 12px;
  }
  
  .barra-inferior {
    bottom: 15px;
    right: 15px;
    pointer-events: auto;
  }
  
  /* Botón de navegación - coherente con otros botones del sitio */
  .btn-nav-tech {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #ffffff;
    color: #343434;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 12px;
    font-family: 'Comfortaa', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
  }
  
  .btn-nav-tech:hover {
    background-color: #ddd;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }
  
  .btn-icon {
    font-size: 14px;
  }
  
  /* Elementos decorativos esquinas */
  .tech-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
  }
  
  .tech-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 1px solid #ffffff;
    opacity: 0.3;
  }
  
  .tech-corner.top-left {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
  }
  
  .tech-corner.top-right {
    top: 10px;
    right: 10px;
    border-left: none;
    border-bottom: none;
  }
  
  .tech-corner.bottom-left {
    bottom: 10px;
    left: 10px;
    border-right: none;
    border-top: none;
  }
  
  .tech-corner.bottom-right {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
  }
  
  /* Animaciones suavizadas */
  @keyframes pulsoUbicacion {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
    100% { opacity: 1; transform: scale(1); }
  }
  
  @keyframes brilloTech {
    0% { filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.3)); }
    100% { filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.6)); }
  }
  
  @keyframes pulsarPunto {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.5); opacity: 0.4; }
    100% { transform: scale(1); opacity: 0.8; }
  }
  
  /* Media Query para dispositivos móviles */
  @media (max-width: 768px) {
    .contacto-mapa {
      min-height: 260px;
      padding: 15px;
    }
    
    .mapa-tech-wrapper {
      min-height: 230px;
    }
    
    .hud-elemento {
      font-size: 8px;
    }
    
    .barra-superior {
      top: 10px;
      left: 10px;
    }
    
    .datos-tech {
      bottom: 10px;
      left: 10px;
      gap: 10px;
    }
    
    .dato-valor {
      font-size: 10px;
    }
    
    .barra-inferior {
      bottom: 10px;
      right: 10px;
    }
    
    .btn-nav-tech {
      padding: 6px 12px;
      font-size: 10px;
    }
    
    .tech-corner {
      width: 15px;
      height: 15px;
    }
  }
  
  /* Responsive para diferentes tamaños de pantalla */
  @media (max-width: 768px) {
    /* Asegurar que el formulario tenga suficiente espacio */
    .contacto-form-wrapper {
      padding: 20px;
      margin-bottom: 30px;
    }
    
    /* Ajustar el área de texto para que no se corte */
    .form-field textarea {
      min-height: 120px;
      width: 100%;
      box-sizing: border-box;
    }
    
    /* Asegurar que el botón de enviar sea visible */
    .btn-enviar {
      margin-top: 15px;
      width: 100%; /* Botón de ancho completo en móvil */
      justify-content: center;
      padding: 12px 20px;
    }
    
    /* Mejorar la visualización de campos de entrada */
    .form-field input,
    .form-field textarea {
      width: 100%;
      box-sizing: border-box;
      padding: 12px;
    }
    
    /* Asegurar que el grupo de inputs se vea correctamente */
    .input-group {
      width: 100%;
      flex-direction: column;
    }
    
    /* Ajustar los márgenes para evitar que se corte el contenido */
    .contacto {
      margin: 60px auto 40px;
      padding: 15px;
    }
    
    /* Ajustar el contenedor del formulario */
    .contacto-container {
      gap: 20px;
    }
    
    /* Mejorar la visibilidad de los iconos de redes sociales */
    .redes-icons {
      justify-content: space-between;
      margin-top: 10px;
    }
    
    /* Ajustar el tamaño de los iconos para que sean más visibles */
    .red-social img {
      width: 20px;
      height: 20px;
    }
  }
  
  /* Corregir el cursor para elementos interactivos */
  .btn-enviar,
  .red-social,
  .btn-expandir {
    cursor: pointer;
  }
  
  /* Evitar que las imágenes SVG se deformen */
  .red-social img {
    max-width: 100%;
    height: auto;
  }
  
  /* Animaciones para elementos al hacer scroll */
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Animaciones específicas para cada método de contacto */
  .contacto-metodo:nth-child(1) {
    transition-delay: 0.1s;
  }
  
  .contacto-metodo:nth-child(2) {
    transition-delay: 0.2s;
  }
  
  .contacto-metodo:nth-child(3) {
    transition-delay: 0.3s;
  }
  
  .redes-contacto {
    transition-delay: 0.4s;
  }
  .redes-contacto .red-social img,
  .redes-sociales img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
  }
  
  /* Asegurar que los contenedores de iconos también sean uniformes */
  .red-social {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Para la sección principal también */
  .redes-sociales a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
  }
  
  /* Corrección específica para posibles problemas con el icono de Facebook */
  a[aria-label="Facebook"] img {
    width: 24px !important;
    height: 24px !important;
  }

/* Estilos para el mapa interactivo de Leaflet */
.leaflet-map-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  border-radius: 15px;
  overflow: hidden;
}

.tech-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none; /* Permite interacción con el mapa subyacente */
  border-radius: 15px;
  overflow: hidden;
}

/* Ajustar la opacidad del grid para que no interfiera con el mapa */
.tech-overlay .mapa-tech-grid {
  opacity: 0.3;
}

.tech-overlay .grid-lines,
.tech-overlay .circuit-elements,
.tech-overlay .data-points {
  opacity: 0.6;
}

/* Asegurar que el HUD esté por encima del overlay */
.tech-hud {
  z-index: 3;
  pointer-events: auto; /* Permite interacción con los elementos del HUD */
}

/* Personalizar los controles de zoom de Leaflet si se habilitan */
.leaflet-control-zoom {
  background-color: rgba(52, 52, 52, 0.9) !important;
  border-radius: 10px !important;
  border: 1px solid #00d4ff !important;
}

.leaflet-control-zoom a {
  background-color: transparent !important;
  color: #00d4ff !important;
  border: none !important;
  font-weight: bold !important;
}

.leaflet-control-zoom a:hover {
  background-color: rgba(0, 212, 255, 0.2) !important;
}

/* Personalizar los popups de Leaflet */
.leaflet-popup-content-wrapper {
  background: transparent !important;
  border-radius: 10px !important;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3) !important;
}

.leaflet-popup-tip {
  background: linear-gradient(135deg, #1a1a2e, #16213e) !important;
  border: 1px solid #00d4ff !important;
}

/* Personalizar el marcador personalizado */
.custom-marker {
  animation: markerPulse 2s infinite;
}

@keyframes markerPulse {
  0% { 
    transform: scale(1); 
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.6));
  }
  50% { 
    transform: scale(1.1); 
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.8));
  }
  100% { 
    transform: scale(1); 
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.6));
  }
}

/* Responsive para el mapa interactivo */
@media (max-width: 768px) {
  .tech-overlay .mapa-tech-grid {
    opacity: 0.2;
  }
  
  .tech-overlay .circuit-elements,
  .tech-overlay .data-points {
    opacity: 0.4;
  }
}