#contenedor_ventana {
    width: 100%;
    min-height: 100vh; /* Asegura que cubra toda la pantalla */
    position: relative; /* Mantiene los hijos en su flujo normal */
}

#contenedor_ventana::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../img/windows-fondo.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1; /* Se queda en el fondo sin afectar los demás elementos */
}

/* Asegura que los elementos dentro del contenedor queden por encima */
#windows, #contenedor_navegador {
    position: relative;
    z-index: 1; /* Esto pone todo el contenido por encima del fondo */
}

/* Ajusta la posición de la ola para que se separe las secciones y no interfiera con el navbar */
.wave {
    position: relative; /* Cambiado de absolute a relative para integrarla al flujo de la sección */
    width: 100%;
    overflow: hidden;
    line-height: 0;
    margin-top: -5px; /* Ajusta según necesites para fusionar visualmente con la siguiente sección */
    background-color: #222;
}

.wave svg {
    position: relative;
    display: block;
    width: calc(140% + 1.3px);
    height: 164px;
}

.wave .shape-fill {
    fill: #f8f8f8;
}

#windows{
    display: flex;
    width: 100%;
    height: 16%;
    justify-content: space-between;
}

.element_windows{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: white;
    width: 100px;
    height: 50px;
    margin: 40px;
    cursor: pointer;
}

#windows .element_windows .img-icon{
    width: 42px;
}

#windows .element_windows .Name_archive{
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
}

#ventana{
    background-color: #ffffff;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 200px;

}

#content_ventana{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    
}

#content_ventana p {
    margin: 0 10px;
    font-family: 'Poppins', sans-serif;
}

/* Estilos generales */
#contenedor_navegador {
    width: 100%;
    max-width: 1000px;
    height: 50%;
    max-height: 595px;
    margin: 0px 0 45px 0;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    overflow: scroll;
    font-family: 'Poppins', sans-serif;
}

/* 🟢 Barra superior del navegador (Pestañas) */
#header_navegador {
    background-color: #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 35px;
    padding: 0 10px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

/* Diseño de la pestaña activa */
#ventana {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    padding: 5px 10px;
    border-radius: 10px 10px 0 0;
    flex-grow: 1;
    max-width: 200px;
}

#content_ventana {
    display: flex;
    align-items: center;
}

#content_ventana i {
    font-size: 16px;
    margin-right: 5px;
}

#content_ventana p {
    font-size: 13px;
    color: #333;
    margin: 0;
}

/* ❌ Botones de minimizar, maximizar y cerrar */
#botons {
    display: flex;
    gap: 5px;
}

.boton {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
}

.boton i {
    color: rgb(54, 54, 54);
    font-size: 11px;
}

/* 🔍 Barra de búsqueda tipo Chrome */
#buscador_navegador {
    display: flex;
    align-items: center;
    background-color: white;
    padding: 5px 15px;
    border-bottom: 1px solid #ccc;
}

#icons_funcion {
    display: flex;
    gap: 10px;
}

.icon-f {
    cursor: pointer;
    color: #666;
    font-size: 16px;
}

#buscador {
    flex-grow: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background-color: #f1f3f4;
    padding: 5px 15px;
    border-radius: 30px;
    margin: 0 15px;
}

#buscador img {
    width: 20px;
    margin-right: 10px;
}
#buscador p {
    margin: 0;
    font-size:10px;
}

#elements {
    display: flex;
    align-items: center;
}

#elements img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-right: 10px;
}

#elements #config_three_points{
    display: flex;
    flex-direction: column;
}

#config_three_points .point{
    background-color: #808080;
    margin: 2px 0;
    border-radius: 100%;
    height: 3px;
    width: 3px;
}

/* ⚡ Contenido del navegador */
#content_navegador {
    padding: 80px 20px;
}

#content_navegador h1 {
    font-size: 22px;
    font-weight: bold;
    color: #333;
}

#content_navegador p {
    font-size: 14px;
    color: #666;
}

#change_css {
    margin-top: 15px;
    background-color: #1a73e8;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

/* Animación de apertura estilo Windows 11 */
@keyframes abrirWindows11 {
    0% {
        transform: scale(0.1);
        opacity: 0;
    }
    50% {
        transform: scale(0.5);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.animacion_windows11 {
    animation: abrirWindows11 0.7s ease-out forwards;
}

/* Animaciones de cambio de contenido */
@keyframes desaparecer {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Diseño del nuevo contenido */
#nuevo_content_navegador {
    padding: 20px;
}

#nuevo_content_navegador h1 {
    font-size: 26px;
    font-weight: bold;
    color: #333;
}

#nuevo_content_navegador p {
    font-size: 16px;
    color: #666;
}

/* Botón de volver */
#nuevo_content_navegador button {
    margin-top: 15px;
    background-color: #e91e63;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

#nuevo_content_navegador button:hover {
    background-color: #c2185b;
}
/* Animación de apertura estilo Windows 11 (Más pequeño y con translateY) */
@keyframes abrirWindows11 {
    0% {
        transform: scale(0.05) translateY(100px);
        opacity: 0;
    }
    20% {
        transform: scale(0.1) translateY(80px);
        opacity: 0.2;
    }
    50% {
        transform: scale(0.3) translateY(40px);
        opacity: 0.5;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.animacion_windows11 {
    animation: abrirWindows11 0.8s ease-out forwards;
}

/* Animación para que el contenido nuevo aparezca desde abajo */
@keyframes aparecerDesdeAbajo {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animaciones de desaparición */
@keyframes desaparecer {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Diseño del nuevo contenido */
#nuevo_content_navegador {
    padding: 20px;
}

#nuevo_content_navegador h1 {
    font-size: 23px;
    font-weight: bold;
    color: #333;
}

#nuevo_content_navegador p {
    font-size: 14px;
    color: #666;
}

/* Estilos de las imágenes de ejemplo */
.imagenes-ejemplo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.imagenes-ejemplo img {
    width: 130px;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}


#bar_windows {
    width: 94%;
    height: 55px;
    background-color: rgb(28, 28, 28);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
    position: absolute; /* Fijarlo dentro del contenedor */
    bottom: 0; /* Asegura que siempre esté al final */
    left: 50%; 
    transform: translateX(-50%); /* Centrar horizontalmente */
}

#bar_windows img {
    width: 30px;
    height: 30px;
    cursor: pointer;
}

#icon_apps {
    display: flex;
    gap: 10px;
}

#gadgets {
    display: flex;
    align-items: center;
    gap: 8px;
}

#connectivity {
    display: flex;
    gap: 5px;
}

#timedate {
    text-align: center;
    font-size: 12px;
    color: #ccc;
}

#gadgets i {
    font-size: 14px;
    color: white;
}

#gadgets p {
    font-size: 12px;
    color: #ccc;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}


/* Botón de volver */
#nuevo_content_navegador button {
    margin-top: 15px;
    background-color: #e91e63;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

#nuevo_content_navegador button:hover {
    background-color: #c2185b;
}

/*
====================== 
Seccion de tecnologias
====================== 
*/

#technologies {
    text-align: center;
    padding: 40px 20px;
    font-family: 'Poppins', sans-serif;
    background-color: #f8f8f8;
    height: auto;
    color: rgb(255, 255, 255);
}

#technologies h2{
    font-size: 38px;
}

.tech-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.tech-card {
    width: 175px;
    height: 150px;
    background: rgba(74, 74, 74, 0.238);
    border: 2px solid rgba(255, 255, 255, 0.511);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px;
    transition: 0.3s;
}

.tech-card i {
    font-size: 40px;
    color: #b60000;
    transition: 0.3s;
}

.tech-card h3 {
    margin: 10px 0 5px;
    font-size: 18px;
}

.tech-card p {
    font-size: 12px;
    transition: opacity 0.3s ease-in-out;
}

/* Cambios de color según la tecnología */
.tech-card #HTML_icon {
    color: #E34F26; /* Naranja HTML */
}
.tech-card #CSS_icon {
    color: #1572B6; /* Azul CSS */
}
.tech-card #JS_icon {
    color: #F7DF1E; /* Amarillo JS */
}
.tech-card #Python_icon {
    color: #3776AB; /* Azul Python */
}
.tech-card #DB_icon {
    color: #f35e5e; /* Rojo para base de datos (puedes cambiarlo si usas MySQL u otro) */
}


#benefits {
    text-align: center;
    padding: 20px 10px;
    background-color: #f8f8f8;
    font-family: 'Poppins', sans-serif;
}

.section-title {
    font-size: 32px;
    color: #f7f7f7;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}

.benefits-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.benefit {
    width: 65%;
    max-width: 320px;
    background: rgb(247, 247, 247);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.benefit i {
    font-size: 40px;
    color: #b60000;
    margin-bottom: 10px;
}

.benefit #icon-rapid-charge {
    color: #8f0000; /* Tono más oscuro */
}

.benefit #icon-responsive {
    color: #a30000; /* Un poco más claro */
}

.benefit #icon-seo {
    color: #b60000; /* Color base */
}

.benefit #icon-security {
    color: #c91a1a; /* Más suave */
}

.benefit #icon-maintenance {
    color: #db4d4d; /* Tono más claro */
}

.benefit #icon-custom {
    color: #ef7a7a; /* El más claro para cerrar el degradado */
}


.benefit h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
}

.benefit p {
    font-size: 14px;
    color: #666;
}


.custom-hr {
    border: none;
    height: 4px;
    width: 80%;
    margin: 40px auto;
    border-radius: 5px;
    background: linear-gradient(90deg, #ff8c00, #ff2e63, #3a86ff, #ff8c00);
    background-size: 300% 100%;
    animation: moveColors 5s ease-in-out infinite;
}

@keyframes moveColors {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.custom-hr-light {
    border: none;
    height: 4px;
    width: 80%;
    margin: 40px auto;
    border-radius: 5px;
    background: linear-gradient(90deg, #ffcc70, #ff9ff3, #70a1ff, #ffcc70);
    background-size: 300% 100%;
    animation: moveColorsLight 6s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(255, 204, 112, 0.8);
}

@keyframes moveColorsLight {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
        box-shadow: 0 0 12px rgba(255, 159, 243, 0.8);
    }
    100% {
        background-position: 0% 50%;
    }
}


/* Estilos Generales */
#timeline {
    padding: 50px 20px;
    font-family: 'Poppins', sans-serif;
}

h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
}

/* Contenedor del timeline */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: auto;
}

/* Línea central */
.timeline-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background-color: #b60000;
    transform: translateX(-50%);
}

/* Elemento de cada paso */
.timeline-item {
    position: relative;
    width: 47%;
    padding: 10px 15px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Puntos en la línea */
.timeline-dot {
    position: absolute;
    top: 15px;
    left: 100%;
    width: 16px;
    height: 16px;
    background-color: #ea1c1c;
    border-radius: 50%;
    transform: translateX(-50%);
}

/* Alternar entre izquierda y derecha */
.timeline-item.left { left: -5%; }
.timeline-item.right { left: 50%; }
.timeline-item.right .timeline-dot { left: 0; }

/* Tarjeta */
.timeline-card {
    background: white;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

.timeline-card i {
    font-size: 24px;
    color: #ea1c1c;
}

.timeline-card h3 {
    font-size: 18px;
    margin: 0;
}

.timeline-card p {
    display: none;
}

/* Aparecer gradualmente */
.timeline-item.show {
    opacity: 1;
    transform: translateY(0);
}

#cta-glow {
    text-align: center;
    padding: 50px 20px;
    background-color: #222;
    color: white;
    font-family: 'Poppins', sans-serif;
}

.cta-glow-button {
    display: inline-block;
    padding: 12px 24px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    color: white;
    border: 2px solid #e91e63;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

.cta-glow-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(233, 30, 99, 0.3);
    transition: left 0.3s ease-in-out;
}

.cta-glow-button:hover::before {
    left: 100%;
}

.cta-glow-button:hover {
    border-color: #ff4081;
    box-shadow: 0 0 10px #e91e63;
}

/* Degradado */
#technologies{
    background: linear-gradient(to bottom, #222, #373737);
}
#benefits{
    background: linear-gradient(to bottom, #373737, #efefef);
}
#timeline{
    background: linear-gradient(to bottom, #efefef, #f8f8f8);
}

@media (min-width: 1024px){
    
    #windows{
        height: 23%;
    }

    
    /* Estilos generales */
    #contenedor_navegador {
        height: 50%;
        max-width: 1250px;
        max-height: 340px;
        overflow: scroll;
    }

    #buscador {
        flex-grow: 1;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: start;
        background-color: #f1f3f4;
        padding: 5px 15px;
        border-radius: 30px;
        margin: 0 15px;
    }
    
    #buscador img {
        width: 20px;
        margin-right: 10px;
    }
    #buscador p {
        margin: 0;
        font-size:12px;
    }
    
    .boton i {
        font-size: 14px;
    }
    
    #content_navegador h1 {
        font-size: 22px;
    }
    
    #content_navegador p {
        font-size: 14px;
    }
    
    
    /* Diseño del nuevo contenido */
    #nuevo_content_navegador {
        padding: 20px;
    }
    
    #nuevo_content_navegador h1 {
        font-size: 28px;
    }
    
    
    #nuevo_content_navegador p {
        font-size: 14px;
        width: 70%;
    }
    
    /* Estilos de las imágenes de ejemplo */
    .imagenes-ejemplo {
        flex-direction: row;
        justify-content: space-evenly;
    }
    
    .imagenes-ejemplo img {
        width: 300px;
    }
    
    .imagenes-ejemplo img:hover {
        transform: scale(1.02);
    }
    
    /* Botón de volver */
    #nuevo_content_navegador button {
        transition: background-color 0.5s;
    }
    
    #bar_windows {
        width: 98%;
    }
    
    #bar_windows img {
        transition: transform 0.2s;
    }
    
    #bar_windows img:hover {
        transform: scale(1.05);
    }
    .tech-card i {
        font-size: 40px;
        color: #b60000;
        transition: 0.3s;
    }
    .tech-card p {
        font-size: 12px;
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
    }
    
    .tech-card:hover {
        transform: translateY(-5px);
        background: rgba(89, 89, 89, 0.529);
        color: white;
        cursor: pointer;
    }
    
    /* Cambios de color según la tecnología */
    .tech-card:hover #HTML_icon {
        color: #E34F26; /* Naranja HTML */
    }
    .tech-card:hover #CSS_icon {
        color: #1572B6; /* Azul CSS */
    }
    .tech-card:hover #JS_icon {
        color: #F7DF1E; /* Amarillo JS */
    }
    .tech-card:hover #Python_icon {
        color: #3776AB; /* Azul Python */
    }
    .tech-card:hover #DB_icon {
        color: #f35e5e; /* Rojo para base de datos (puedes cambiarlo si usas MySQL u otro) */
    }
    
    .tech-card:hover p {
        opacity: 1;
    }
    /* Efecto en los iconos */
    .tech-card:hover i {
        transform: rotate(10deg);
    }
    
    .benefits-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .benefit {
        width: 250px;
    }

    .benefit:hover {
        cursor: pointer;
        transform: translateY(-5px) scale(1.02);
        box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.15);
    }
    .timeline-card p {
        display: block;
        margin: 5px 0 0;
        font-size: 14px;
        color: #666;
    }

    /* Elemento de cada paso */
    .timeline-item {
        width: 50%;
        padding: 10px 20px;
    }
    .timeline-item.left { left: -5%; }
}