* {
    box-sizing: border-box; 
    scroll-behavior: smooth; 
}



body {
    margin: 0px;
    padding: 0px;
    background-color:#e1e5eb;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
}


img {
    max-width: 100%;
    height: auto;
    display: block;
}

.logo {
    display: block;
    margin: 0 auto;
}

h1{
    font-size: large;
    font-weight: bold;
}

a {
    text-decoration: none;
    color: inherit;
}

header {
    background-color:#005f73;
    color: white;
    text-align: center;
    padding: 20px;
    border-bottom: 4px solid #0a9396;
}

header .logo {
    width: 100px;
    height: auto;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

header .logo:hover {
    transform: scale(1.05);
}

header h1 {
    margin: 50px;
    font-size: clamp(1.5rem, 5vw, 2.25rem);
    font-weight: 300;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

nav ul li a {
    display: block;
    padding: 10px 20px;
    background-color:#94d2bd;
    color: #001219;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.2s ease,color 0.3s ease;
    border: 4px solid transparent;
}

nav ul li a:hover {
    background-color:#0a9396;
    color: white;
    transform: translateY(-2px);
}


main {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

section {
    margin-bottom: 30px;
}

h2 {
    color: #001219;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 10px;
    text-align: center;
    font-size: 1.8rem;
}

hr {
    border: 0;
    height: 1px;
    background: #dee2e6;
    margin: 40px 0;
}

.caja_practicas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.cajas_imagenes {
    display: block;
    border: 2px solid #ddd;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    outline: 2px solid transparent;
    outline-offset: 3px;
}

.cajas_imagenes:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    border-color: #005f73;
}

.cajas_imagenes figure {
    margin: 0px;
}

.cajas_imagenes img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    /* Evita que la imagen se deforme */
    border-bottom: 2.5px solid #eee;
}

.cajas_imagenes figcaption {
    padding: 15px;
    text-align: center;
    font-weight: 600;
    color: #005f73;
}

footer {
    text-align: center;
    margin-top: 10px;
    padding: 10px;
    background-color: #001219;
    color: #94d2bd;;
}

footer img{
    width: 2%;
    background-color: rgb(255, 255, 255);
    display: inline-block;
    margin:auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

footer img:hover{
    transform: translateY(-2px);
}

span {
    font-weight: bold;
    font-style: oblique;
}