/* Estilos básicos */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: rgb(220, 218, 215);
    color: #333;
    overflow-x: hidden; /* Para evitar el desplazamiento horizontal */
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    width: 100%;
    box-sizing: border-box;
    position: fixed; /* Fija el header en la parte superior */
    top: 0; /* Posición superior 0 */
    left: 0; /* Posición izquierda 0 */
    z-index: 1000; /* Asegura que el header esté sobre otros elementos */
}

header .logo img {
    width: 168px; /* Ajustar según el tamaño del logo */
    height: auto;
}

header nav {
    display: flex;
    align-items: center;
}

header nav a {
    margin: 0 10px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

header nav a:hover {
    text-decoration: underline;
}

/* Agregar padding-top a la siguiente sección para evitar superposición */
.hero {
    padding-top: 80px; /* Ajusta el valor según la altura del header */
}

/* Hero Section */
.hero img {
    width: 100%;
    height: auto;
    display: block;
}

/* Steps Section */
.steps {
    text-align: center;
    padding: 50px 20px;
}

.steps h2 {
    margin-bottom: 40px;
    font-size: 32px;
    color:rgb(99, 87, 87)
}

.step {
    display: inline-block;
    width: 30%;
    margin: 0 1.5%;
    vertical-align: top;
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.step img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease-in-out;
}

.step .step-number {
    font-size: 36px;
    font-weight: bold;
    color: #ffb600;
    margin-top: -20px;
}

.step p {
    font-size: 16px;
    color: #666;
}

/* Animations */
.step.visible {
    opacity: 1;
    transform: translateY(0);
}


/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }
    header .logo img {
        margin-bottom: 20px;
    }
    header nav {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    header nav a {
        margin: 5px 0;
    }

    .step {
        width: 100%;
        margin: 20px 0;
    }

    .steps {
        padding: 30px 10px;
    }

    .steps h2 {
        font-size: 20px;
    }

    .step .step-number {
        font-size: 28px;
    }

    .step p {
        font-size: 14px;
    }
}

/* Optimize Section */
.optimize {
    text-align: center;
    padding: 50px 20px;
    background-color: #f9f9f9;
}

.features {
    width: 100%;
    height: auto;
    display: block;
}

.feature {
    text-align: center;
    margin: 20px;
}

.feature img {
    width: 80px;
    height: auto;
    display: block;
    margin: 0 auto 10px;
}

.feature p {
    margin: 0;
}

.optimize-content {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.optimize-text {
    font-size: 60px;
    flex: 1;
    padding: 100px;
    
}

.optimize-text h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.register-button {
    
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #333; /* Color del borde */
    border-radius: 20px; /* Bordes redondeados */
    background-color: transparent; /* Fondo transparente */
    color: #333; /* Color del texto */
    font-size: 16px; /* Tamaño del texto */
    text-align: center; /* Centrar el texto */
    text-decoration: none; /* Eliminar subrayado del enlace */
    font-family: Arial, sans-serif; /* Fuente del texto */
    cursor: pointer; /* Cambiar cursor al pasar sobre el botón */
    transition: background-color 0.3s ease, color 0.3s ease; /* Efecto de transición */
}

.register-button:hover {
    background-color: #333; /* Fondo oscuro al pasar el mouse */
    color: #fff; /* Texto blanco al pasar el mouse */
}

.optimize-image {
    flex: 1;
    text-align: center;
    max-width: 80%; /* Ajusta el tamaño máximo de la imagen */
    margin: 0 auto; /* Centra la imagen horizontalmente */
    padding-top: 100px; /* Añade un poco de padding alrededor de la imagen */
}

.optimize-image img {
    width: 70%; /* Asegura que la imagen ocupe el 100% del contenedor */
    height: auto; /* Mantiene la proporción de la imagen */
    border-radius: 10px; /* Mantiene el borde redondeado */
}

.optimize-footer {
    text-align: center;
    margin-top: 40px;
}

.optimize-footer img {
    max-width: 100%;
    height: auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.footer-links a {
    margin: 0 10px;
    color: #333;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Sponsors Section */
.sponsors {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0;
}

.sponsors img {
    max-width: 100%;
    height: auto;
}

/* Legal Section */
.legal {
    background: #2e3b4e;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    flex-wrap: wrap;
    text-align: center;
}

.legal img {
    height: 30px;
    margin: 10px;
}

.legal a {
    color: white;
    margin: 10px;
    text-decoration: none;
}

.legal a:hover {
    text-decoration: underline;
}

/* Additional Media Queries for better responsiveness */
@media (max-width: 480px) {
    .optimize-content {
        flex-direction: column;
    }

    .optimize-text, .optimize-image {
        flex: 1 1 100%;
    }

    .features {
        flex-direction: column;
    }

    .feature {
        width: 100%;
    }
}

