/* RESET */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY */
body{
    font-family: Arial, sans-serif;
    background: #111827;
    color: white;
    line-height: 1.6;
}

/* HEADER */
header{
    background: #1f2937;
    padding: 20px;
    text-align: center;
    border-bottom: 3px solid #3b82f6;
}

header h1{
    color: #60a5fa;
    margin-bottom: 15px;
}

/* NAV */
nav ul{
    display: flex;
    justify-content: center;
    gap: 15px;
    list-style: none;
    flex-wrap: wrap;
}

nav a{
    text-decoration: none;
    color: white;
    background: #2563eb;
    padding: 10px 15px;
    border-radius: 10px;
    transition: 0.3s;
}

nav a:hover{
    background: #1d4ed8;
    transform: scale(1.05);
}

/* MAIN */
main{
    padding: 30px;
}

/* SECTIONS */
section{
    background: #1f2937;
    margin-bottom: 30px;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

/* TITULOS */
h2{
    color: #60a5fa;
    margin-bottom: 15px;
}

h3{
    color: #93c5fd;
    margin-bottom: 10px;
}

/* IMAGENES */
img{
    width: 100%;
    max-width: 400px;
    border-radius: 15px;
    margin-top: 15px;
}

/* ARTICULOS */
article{
    margin-bottom: 25px;
}

/* BOTONES */
button{
    background: #2563eb;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover{
    background: #1d4ed8;
}

/* FOOTER */
footer{
    background: #1f2937;
    text-align: center;
    padding: 20px;
    border-top: 3px solid #3b82f6;
}

/* RESPONSIVE */
@media(max-width:768px){

    nav ul{
        flex-direction: column;
        align-items: center;
    }

    main{
        padding: 15px;
    }

}
/* CTA buttons */
.btn-cta {
    display: inline-block;
    padding: 14px 28px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff !important;
    font-weight: 700;
    text-decoration: none;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    text-align: center;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.btn-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
    background: linear-gradient(135deg, #2563eb, #1e40af);
}

/* Estilo para las imágenes de la página */
.section img {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border-radius: 8px;
    filter: grayscale(30%);
}

/* Efecto de zoom y color al pasar el mouse */
.img-enfocada {
    transform: scale(1.1);
    filter: grayscale(0%) !important;
    box-shadow: 0 10px 20px rgba(0, 255, 136, 0.3);
    z-index: 10;
}

/* Overlay para ver la imagen en grande (Modal) */
.modal-imagen {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-imagen.activo {
    opacity: 1;
    pointer-events: all;
}

.modal-imagen img {
    max-width: 80%;
    max-height: 80%;
    border: 3px solid #00ff88;
}