body {
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden; /* Evita el desplazamiento horizontal */
    background: url('fondo.png') no-repeat center center fixed;
    background-size: cover;
    transition: background-color 0.3s;
    color: black;
}

.container {
    position: absolute;
    top: 58%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1;
    max-width: 100%; /* Evita que el contenedor se desborde */
    max-height: 100%; /* Evita que el contenedor se desborde */
}

/* Estilo para el círculo */
#circle {
    width: 300px;
    height: 300px;
    background-color: rgba(128, 0, 128, 0.35);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    z-index: 2;
}

/* Imagen superpuesta dentro del círculo */
#circle img.overlay {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    background: transparent;
}

/* Imagen superpuesta en la parte superior del círculo */
#circle img.symbol {
    width: 390px;
    height: 390px;
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

/* Estilo para las secciones */
.sections {
    margin-top: 30px;
    overflow: hidden;
    width: 100%;
    height: 250px;
    position: relative;
}

.carousel-wrapper {
    display: flex;
    animation: scroll 50s linear infinite;
}

@media (max-width: 768px) {
    .carousel-wrapper {
        transition: transform 0.1s ease; /* Menos tiempo de transición en dispositivos móviles */
    }
}

/* Estilo para cada sección */
.section {
    flex: 0 0 25%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    margin: 0 15px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
    padding: 20px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, background-color 0.3s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.section h2 {
    font-size: 26px;
    color: #007bff;
    transition: font-size 0.3s ease;
}

.section p {
    font-size: 16px;
    color: #333;
    margin-top: 10px;
    transition: font-size 0.3s ease;
}

/* Hover en las secciones */
.section:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
    background-color: rgba(0, 0, 0, 0.5);
}

.section:hover h2 {
    font-size: 30px;
    color: #fff;
}

.section:hover p {
    font-size: 18px;
    color: #f5f5f5;
}

/* Animación del carrusel */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Botón de modo oscuro */
.dark-mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: white;
    color: black;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    z-index: 1000;
}

.dark-mode-toggle:hover {
    background-color: #ddd;
}

.dark-mode-toggle i {
    font-size: 24px;
}

/* Modo oscuro */
body.dark-mode {
  background: #121212;
    color: #f5f5f5;
}

body.dark-mode .section {
    background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .dark-mode-toggle {
    background-color: black;
    color: white;
}

a {
    color: white; /* Cambia el color del hipervínculo a blanco */
    text-decoration: none; /* Elimina el subrayado */
}

a:hover {
    color: #ffcc00; /* Cambia el color del hipervínculo al pasar el mouse */
    text-decoration: none; /* Asegura que no haya subrayado en el estado hover */
}
.text {
    font-size: 30px;  /* Aumenta el tamaño de la fuente */
    color: white;     /* Asegura que el color sea blanco */
    margin-top: 20px;
}