@import url('https://fonts.googleapis.com/css2?family=Righteous&family=Work+Sans:wght@100;300;400;600;800&display=swap');

*{
    box-sizing: border-box;
    font-family: 'Work Sans';
    margin: 0;
    padding: 0;
}

html{
    scroll-behavior: smooth;
}

/* --------------------- Menu --------------------- */
.contenedor-header{
    background:#1e2326;
    position: fixed;
    width: 100%;
    padding: 10px;
    top: 0;
    left: 0;
    z-index: 99;
}

.contenedor-header header{
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    transition: padding 0.3s ease;
}

.contenedor-header.shrink header{
    padding: 5px 20px;
}

.contenedor-header header .logo a{
    font-family: 'Righteous';
    font-size: 36px;
    color: #1CB698;
    text-decoration: none;
}

.contenedor-header header ul{
    display: flex;
    list-style: none;
}

.contenedor-header header nav ul li a{
    color: #fff;
    margin: 0 10px;
    padding: 3px 5px;
    transition: .5s;
    text-decoration: none;
    white-space: nowrap;
    font-size: 16px;
}

.contenedor-header header nav ul li a:hover{
    color: #1CB698;
}

.nav-responsive{
    background-color: #1CB698;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    display: none;
}

/* --------------------- Seccion Inicio --------------------- */
.inicio {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
}

/* Contenedor de imágenes para el slider lateral */
.inicio .slider-fondo {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    width: 400%; /* 4 imágenes */
    height: 100%;
    z-index: 0;
    animation: slide-left 60s linear infinite;
}

/* Cada imagen del slider */
.inicio .slider-fondo img {
    width: 25%; /* 4 imágenes ocupan el 100% */
    height: 100%;
    object-fit: cover;
    opacity: 0.6; /* tono opaco */
}

/* Overlay oscuro */
.inicio::after {
    content: "";
    position: absolute;
    top:0; left:0;
    width: 100%; height: 100%;
    background: rgba(30,35,38,0.8);
    z-index: 1;
}

/* Animación para mover el slider lateral */
@keyframes slide-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-75%); } /* mueve 3 imágenes para loop */
}

/* Contenido del banner encima */
.inicio .contenedor-banner {
    position: relative;
    z-index: 2; /* por encima del slider */
    padding: 20px;
    background-color: #1e2326;
    max-width: 350px;
    margin: auto;
    text-align: center;
    border-radius: 40px;
}

.inicio .contenedor-banner img {
    margin-top: 40px;
    border: 10px solid #1CB698;
    display: block;
    max-width: 100%;  /* no excede el contenedor */
    max-height: 300px; /* ajusta según quieras */
    width: auto;       /* mantiene proporción */
    height: auto;      /* mantiene proporción */
    margin: auto;
    border-radius: 100%;
    object-fit: contain; /* asegura que no se corte ni se estire */
}



.inicio .contenedor-banner{
    padding: 20px;
    background-color: #1e2326;
    max-width: 350px;
    margin: auto;
    text-align: center;
    border-radius: 40px;
}


@keyframes pulse-fade {
    0% {
        transform: scale(1);
        box-shadow: 0 0px 10px rgba(1, 255, 204, 0.5);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 8px 25px rgba(102, 97, 154, 0.8);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0px 10px rgba(5, 255, 105, 0.5);
    }
}

.inicio .contenedor-banner {
    animation: pulse-fade 3s ease-in-out 1 forwards;
}

.inicio .contenedor-banner {
    animation-name: pulse-fade;
    animation-duration: 3s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

.inicio .contenedor-banner img{
    margin-top: 40px;
    border: 10px solid #1CB698;
    display: block;
    width: 80%;
    margin: auto;
    border-radius: 100%;
}

.inicio .contenedor-banner h1{
    font-size: 42px;
    margin-top: 40px;
    font-family: 'Righteous';
}

.inicio .contenedor-banner h2{
    font-size: 15px;
    font-weight: normal;
}

.inicio .contenedor-banner .redes a{
    color:#fff;
    display: inline-block;
    text-decoration: none;
    border: 1px solid #fff;
    border-radius: 100%;
    width: 42px;
    height: 42px;
    line-height: 42px;
    margin: 40px 5px;
    font-size: 20px;
    transition: .3s;
}

.inicio .contenedor-banner .redes a:hover{
    background-color: #1CB698;
    color: #fff;
}

/* --------------------- Banner desplazado al scroll --------------------- */
/* Al desplazarse a la izquierda */
.inicio .contenedor-banner.izquierda {
    left: 20px;       /* margen desde el borde izquierdo */
    transform: none;  /* elimina el translate para alinearlo al borde */
}


/* --------------------- Seccion Sobre mi --------------------- */
.sobremi{
    background-color: #1e2326;
    color: #fff;
    padding: 50px 20px;
}

.sobremi .contenedor-seccion{
    max-width: 1100px;
    margin: auto;
}

.sobremi h2{
    font-size: 48px;
    font-family: 'Righteous';
    text-align: center;
    padding: 20px 0;
}

.sobremi .contenedor-seccion p{
    font: 18px;
    line-height: 22px;
    margin-bottom: 20px;
}

.sobremi .contenedor-seccion p span{
    color : #1CB698;
    font-weight: bold;
}

.sobremi .fila{
    display: flex;
}

.sobremi .fila .col{
    width:50%;
}

.sobremi .fila .col h3{
    font-size: 28px;
    font-family: 'Righteous';
    margin-bottom: 25px;
}

.sobremi .fila .col ul{
    list-style: none;
}

.sobremi .fila .col ul li{
    margin: 12px 0;
}

.sobremi .fila .col ul li strong{
    display: inline-block;
    color: #1CB698;
    width: 130px;
}

.sobremi .fila .col ul li span{
    background-color: #1CB698;
    padding: 3px;
    font-weight: bold;
    border-radius: 5px;
}

.sobremi .fila .col .contenedor-intereses{
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* desktop */
}

.sobremi .fila .col .contenedor-intereses .interes{
    width: 100px;
    height: 100px;
    background-color: #252A2E;
    border-radius: 10px;
    margin: 0 15px 15px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: .3s;
}

.sobremi .fila .col .contenedor-intereses .interes:hover{
    background-color: #1CB698;
}

.sobremi .fila .col .contenedor-intereses .interes i{
    font-size: 30px;
    margin-bottom: 10px;
}

/* Botón sección Sobre Mí */
.sobremi button {
    cursor: pointer;
    background-color: transparent;
    border: 2px solid #fff;
    width: fit-content;
    display: block;
    margin: 20px auto;
    padding: 10px 22px;
    font-size: 16px;
    color: #fff;
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.sobremi button a,
.sobremi button i {
    z-index: 20;
    position: relative;
    text-decoration: none;
    color: #fff;
}

.sobremi button .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #1CB698;
    z-index: 1;
    transition: 1s;
}

.sobremi button:hover .overlay {
    width: 100%;
}

/* --------------------- Media Queries Responsivo --------------------- */
@media screen and (max-width: 768px){

    /* Barra de navegación móvil */
    .contenedor-header header ul {
        flex-direction: column;
        background-color: #1e2326;
        position: absolute;
        top: 60px; 
        right: 20px;
        width: 200px;
        display: none; 
        padding: 10px;
        border-radius: 5px;
    }

    .contenedor-header header ul li {
        margin: 8px 0;
    }

    .contenedor-header header ul li a {
        padding: 8px 12px;
        font-size: 16px;
    }

    .nav-responsive {
        display: block;
    }

    /* Centrar columnas de Sobre Mí y contenidos */
    .sobremi .fila {
        flex-direction: column;
        align-items: center;
    }

    .sobremi .fila .col {
        width: 100%;
        margin-bottom: 20px;
    }

    /* Centrar intereses */
    .sobremi .fila .col .contenedor-intereses{
        justify-content: center;
    }

    /* Ajuste padding-top para inicio en móvil */
    .inicio{
        padding-top: 60px; /* menos que desktop, equilibrado */
    }

    .inicio .contenedor-banner{
        max-width: 300px;
        margin: auto;
    }

}


 /* =========================
           SECCION SKILLS
        ========================= */
        .skills {
            background-color: #252A2E;
            color: #fff;
            padding: 50px 20px;
        }
        .skills .contenido-seccion {
            max-width: 1100px;
            margin: auto;
        }
        .skills h2 {
            font-size: 48px;
            font-family: 'Righteous', cursive;
            text-align: center;
            padding: 20px 0;
        }
        .skills .fila {
            display: flex;
            flex-wrap: wrap;
        }
        .skills .fila .col {
            width: 50%;
            padding: 0 20px;
        }
        .skills .fila .col h3 {
            font-size: 28px;
            font-family: 'Righteous', cursive;
            margin-bottom: 25px;
        }

        /* Estilo de la tarjeta de habilidad */
        .skills .skill {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background-color: #1e2326;
            padding: 20px;
            margin-bottom: 15px;
            border-radius: 12px;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        .skill-info {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 10px;
        }
        .skill-icons {
            display: flex;
            gap: 15px;
        }
        .skills .skill h4 {
            font-size: 18px;
            font-weight: 600;
            margin: 0;
            color: #fff;
        }
        .skill-icons i {
            font-size: 2.5rem;
            transition: transform 0.3s ease;
            cursor: pointer;
        }
        .skill-icons i:hover {
            transform: scale(1.2);
        }

        /* Estilos para el nivel de habilidad */
        .nivel {
            padding: 8px 16px;
            border-radius: 14px;
            font-size: 0.8em;
            font-weight: bold;
            color: #fff;
            text-transform: uppercase;
            letter-spacing: 1px;
            white-space: nowrap;
        }

        /* Colores de nivel */
        .basico { background: #e57373; }
        .intermedio { background: #ffb74d; }
        .avanzado { background: #64b5f6; }
        .experto { background: #81c784; }

        /* Animación hover en tarjeta completa */
        .skills .skill:hover {
            transform: translateY(-5px);
            box-shadow: 0 4px 15px rgba(0,0,0,0.4);
        }

        /* Animación de entrada por scroll */
        .scroll-anim {
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.6s ease-out, transform 0.6s ease-out;
        }
        .scroll-anim.visible {
            opacity: 1;
            transform: translateY(0);
        }
        
        /* Media query para dispositivos móviles */
        @media screen and (max-width: 768px) {
            .skills .fila .col {
                width: 100%;
                padding: 0;
            }
            .skills .skill {
                flex-direction: column;
                align-items: flex-start;
                padding: 15px;
            }
            .skill-info {
                flex-direction: column;
                align-items: flex-start;
                gap: 5px;
                margin-bottom: 10px;
            }
            .skill-icons {
                gap: 10px;
            }
            .nivel {
                /* Se le da espacio y un tamaño de letra legible */
                padding: 8px 16px;
                font-size: 0.8rem;
                border-radius: 12px;
                min-width: unset;
                min-height: unset;
            }
        }
/* SECCION CURRICULUM */
.curriculum{
    background-color: #1e2326;
    color: #fff;
    padding: 50px 20px;
}
.curriculum .contenido-seccion{
    max-width: 1100px;
    margin: auto;
}
.curriculum h2{
    font-size: 48px;
    font-family: 'Righteous';
    text-align: center;
    padding: 20px 0;

}
.curriculum .fila{
    display: flex;
}
.curriculum .fila .col{
    width: 49%;
    padding: 0 20px;
}
.curriculum .fila .col h3{
     font-size: 28px;
    font-family: 'Righteous';
    margin-bottom: 25px;
}
.curriculum .fila .izquierda{
    border-right: 2px solid #252A2E;
}
.curriculum .fila .derecha{
    border-left: 2px solid #252A2E;
}
.curriculum .fila .item {
    padding: 25px;
    margin-bottom: 30px;
    background-color: #252A2E;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px; /* opcional: suaviza los bordes */
}



.curriculum .fila .item h4{
    font-size: 20px;
    margin-bottom: 10px;
}
.curriculum .fila .item .casa{
   color: #1CB698;
   font-size: 22px;
   font-weight: bold;
   display: block;
}
.curriculum .fila .item .fecha{
    display: block;
    color: #1CB698;
    margin-bottom: 10px;
}
.curriculum .fila .item p{
    line-height: 24px;
}
.curriculum .fila .izq{
    border-right: 2px solid #1CB698;
    margin-right: 20px;
}
.curriculum .fila .der{
    border-left: 2px solid #1CB698;
    margin-left: 20px;
}
/* Zoom al pasar el mouse */
.curriculum .fila .item:hover {
    transform: scale(1.05); /* pequeño aumento */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5); /* sombra más marcada */
}
/*.curriculum .fila .item .conectori{
    height: 2px;
    background-color: #1CB698;
    width: 47px;
    position: absolute;
    top: 50%;
    right: -47px;
}
*/

/* SECCION PORTAFOLIO */
.portafolio {
    background-color: #1e2326;
    color: #fff;
    padding: 50px 20px;
}

.portafolio .contenido-seccion {
    max-width: 1100px;
    margin: auto;
}

.portafolio h2 {
    font-size: 48px;
    font-family: 'Righteous';
    text-align: center;
    padding: 20px 0;
}

.portafolio .galeria {
    display: flex;
    flex-wrap: wrap-reverse;
    justify-content: space-around;
    gap: 20px;
}

/* Cada proyecto */
.portafolio .galeria .proyecto {
    display: flex;
    flex-direction: column; 
    max-width: 340px;
    margin: 10px;
    cursor: pointer;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover: zoom y shadow */
.portafolio .galeria .proyecto:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(62, 237, 4, 0.6), 0 0 20px rgba(23, 0, 193, 0.915);
}

/* Contenedor de la imagen */
.portafolio .galeria .proyecto .contenedor-img {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

/* Imagen */
.portafolio .galeria .proyecto img {
    width: 100%;
    display: block;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

/* Overlay sobre la imagen */
.portafolio .galeria .proyecto .overlay {
    position: absolute;
    inset: 0;
    text-align: center;
    background: rgba(28,182,152,0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 18px;
    letter-spacing: 3px;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
    z-index: 2;
}

/* Hover overlay */
.portafolio .galeria .proyecto .contenedor-img:hover .overlay {
    opacity: 1;
}

/* Overlay contenido */
.portafolio .galeria .proyecto .overlay h3 {
    margin-bottom: 20px;
    transition: margin 0.3s ease;
}

.portafolio .galeria .proyecto .overlay:hover h3 {
    margin-bottom: 0;
}

/* Botón debajo de la imagen */
.portafolio .galeria .proyecto .mensaje-desplegable {
    text-align: center;
    margin-top: 9px;
    margin-bottom: 10px;
    opacity: 0;         
    visibility: hidden; 
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Aparece al hover */
.portafolio .galeria .proyecto:hover .mensaje-desplegable {
    opacity: 1;
    visibility: visible;
}

.portafolio .galeria .proyecto .mensaje-desplegable a {
    display: inline-block;
    background-color: #1CB698;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.portafolio .galeria .proyecto .mensaje-desplegable a:hover {
    background-color: #17a482;
}

/* Responsivo */
@media (max-width: 768px) {
    .portafolio .galeria .proyecto .mensaje-desplegable {
        opacity: 1 !important;    
        visibility: visible !important;
        margin-top: 8px;
    }

    .portafolio .galeria .proyecto .contenedor-img a {
        display: block;
    }
}



/* SECCION CONTACTO*/
.contacto{
    background-image: url(img/contact_bg.png);
    background-color: #1e2326;
    color: #fff;
    padding: 50px 0;
}
.contacto .contenido-seccion{
    max-width: 1100px;
    margin: auto;
}
.contacto h2{
    font-size: 48px;
    font-family: 'Righteous';
    text-align: center;
    padding: 20px 0;
}
.contacto .fila{
    display: flex;
}
.contacto .col{
    width: 50%;
    padding: 10px;
    position: relative;
}
.contacto .col input, .contacto .col textarea{
    display: block;
    width: 100%;
    padding: 18px;
    border: none;
    margin-bottom: 20px;
    background-color: #252A2E;
    color: #fff;
    font-size: 18px;
}
.contacto button{
    cursor: pointer;
    background-color: transparent;
    border: 2px solid #fff;
    width: fit-content;
    display: block;
    margin: 20px auto;
    padding: 10px 22px;
    font-size: 16px;
    color: #fff;
    position: relative;
    z-index: 10;
}
.contacto button .overlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #1CB698;
    z-index: -1;
    transition: 1s;
}
.contacto button:hover .overlay{
    width: 100%;
}
.contacto .col img{
    width: 100%;
    height: 87%;
}
.contacto .col .info{
    position: absolute;
    top: 40%;
    background-color: #252A2E;
    padding: 20px;
    width: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.contacto .col .info ul{
    list-style: none;
}
.contacto .col .info ul li{
    margin-bottom: 20px;
}
.contacto .col .info ul li i{
    color: #1CB698;
    display: inline-block;
    margin-right: 20px;
}
footer{
    background-color: #252A2E;
    color: #fff;
    padding: 50px 0 30px 0;
    text-align: center;
    position: relative;
    width: 100%;
}
footer .redes{
    margin-bottom: 10px;
    
}
footer .redes a{
    color: #fff;
    display: inline-block;
    text-decoration: none;
    border: 1px solid #fff;
    border-radius: 100%;
    width: 42px;
    height: 42px;
    line-height: 42px;
    margin: 40px 5px;
    font-size: 20px;
    transition: .3s;
}
footer .arriba{
    display: block;
    width: 50px;
    height: 50px;
    background-color: #1CB698;
    color: #fff;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -25px;
    border-radius: 50%;
    line-height: 50px;
    font-size: 18px;
}
footer .redes a:hover{
    background-color: #1CB698;
    color: #fff;
}

/* SECCION RESPONSIVE*/
@media screen and (max-width:980px){
    nav{
        display: none;
    }
    .nav-responsive{
        display: block;
    }
    nav.responsive{
        display: block;
        position: absolute;
        right: 0;
        top: 75px;
        background-color: #252A2E;
        width: 180px;
    }
    nav.responsive ul{
        display: block;
    }
    nav.responsive ul li{
        border-bottom: 1px solid #fff;
        padding: 10px 0;
    }

}
@media screen and (max-width:700px){
    .sobremi .fila{
        display: block;
    }
    .sobremi .fila .col{
        width:  fit-content;
    }

    .skills .fila{
        display: block;
    }
    .skills .fila .col{
        width: 100%;
        
    }
    .skills .fila .col .barra-skill{
        width: 100%;
    }

    .curriculum .fila{
        display: block;
    }
    .curriculum .fila .col{
        width: 90%;
    }
    .curriculum .fila .derecha{
        margin-left: 20px;
    }

    .portafolio .galeria{
        display: block;
        width: 100%;
    }
    .portafolio .galeria .proyecto{
        max-width: 100%;
    }
    .portafolio .galeria .proyecto img{
        width: 100%;
    }
    .contacto .fila{
        display: block;
    }
    .contacto .fila .col{
        width: 100%;
    }
}
/* Estilos para la sección de Certificaciones */
/* Sección de Certificaciones (nueva versión) */
.certificaciones {
    background-color: #1e2326;
    color: #fff;
    padding: 50px 20px;
}

.certificaciones .contenido-seccion {
    max-width: 1100px;
    margin: auto;
}

.certificaciones h2 {
    font-size: 48px;
    font-family: 'Righteous';
    text-align: center;
    padding: 20px 0;
}

/* Estilo del contenedor de cada certificación */
.certificaciones .certificado-item {
    padding: 25px;
    margin-bottom: 30px;
    background-color: #252A2E;
    position: relative;
    border-radius: 8px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;

    /* 🔥 Visible por defecto */
    opacity: 1;
    transform: none;
}

/* Estos estilos se aplican SOLO si quieres que empiecen ocultos 
   (anime.js los animará).  
   Si prefieres verlos siempre, comenta estas dos líneas arriba y descomenta aquí: */
/*
.certificaciones .certificado-item {
    opacity: 0;
    transform: translateY(50px);
}
*/

.certificaciones .certificado-item:hover {
    transform: translateY(-5px);
}

/* Estilo del encabezado clicable */
.certificaciones .certificado-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 0;
}

.certificaciones .certificado-header h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1CB698; 
    font-family: 'Work Sans'; 
}

/* Estilo del ícono de flecha */
.certificaciones .certificado-header i {
    font-size: 18px;
    color: #fff;
    transition: transform 0.3s ease;
}

/* Rota la flecha cuando está activo */
.certificaciones .certificado-header.activo .fa-chevron-down {
    transform: rotate(180deg);
}

/* Contenido oculto */
.certificaciones .certificado-contenido {
    max-height: 0;
    overflow: hidden;
    transition: max-height 1s ease-in-out, padding 1s ease;
    padding-top: 0;
}

/* Contenido cuando se expande */
.certificaciones .certificado-contenido.mostrar {
    max-height: 1000px; 
    padding-top: 20px;
}

/* Flex del texto + imagen */
.certificaciones .certificado-contenido .contenido-flex {
    display: flex;
    flex-direction: column; 
    gap: 20px;
    align-items: flex-start;
}

.certificaciones .certificado-texto {
    width: 100%;
}

.certificaciones .certificado-imagen {
    width: 100%; 
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

/* Estilos para el texto */
.certificaciones .certificado-contenido p {
    line-height: 24px;
    margin-bottom: 15px;
}

.certificaciones .certificado-contenido .casa,
.certificaciones .certificado-contenido .fecha {
    display: block;
    margin-bottom: 10px;
}

.certificaciones .certificado-contenido .casa {
    color: #1CB698;
    font-weight: bold;
}

/* Responsive para desktop */
@media (min-width: 768px) {
    .certificaciones .certificado-contenido .contenido-flex {
        flex-direction: row; 
    }

    .certificaciones .certificado-texto {
        width: 60%; 
    }

    .certificaciones .certificado-imagen {
        width: 40%; 
    }
}

/* Estilos para mensajes de éxito y error */
.mensaje {
    display: none; /* oculto por defecto */
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    transition: opacity 1s ease;
    opacity: 0;
}

.mensaje.exito {
    background-color: #4CAF50;
    color: white;
}

.mensaje.error {
    background-color: #f44336;
    color: white;
    transition: 1s ease;
}

/* Clase para animar la aparición y desaparición */
.mensaje.mostrar {
    display: block;
    opacity: 1;
}

