/* Estilo general */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}

header {
    width: 100%;
    height: 100px;
    background-color: #f4f4f4;
    background: url(/imagen/fondo-blanco-azul.jpg);
}

#encabezado {
    width: 100%;
    max-width: 400px;
    height: 100px;
    background: url(/imagen/logo.png) no-repeat center center / cover;
    margin: 0 auto;
}

#cuerpo {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
    background: url(/imagen/fondoveresmeralda.jpg);
    background-size: cover;
    background-position: center;
}

@media (min-width: 768px) {
    #cuerpo {
        grid-template-columns: 1fr 3fr;
    }
}

@media (min-width: 1024px) {
    #cuerpo {
        grid-template-columns: 1fr 4fr;
    }
}

#perfil {
    text-align: center;
    background-image: red;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    color: white;
}

#perfil #foto {
    background: url(/imagen/perfil.jpg) no-repeat center;
    background-position: center 20%; /* Ajusta verticalmente hacia arriba */
    background-size: cover; /* Asegura que la imagen cubra el círculo */
    border-radius: 50%; /* Círculo perfecto */
    height: 150px;
    width: 150px;
    margin: 0 auto 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); /* Sombra opcional para realzar */
}

#perfil .perfilfoto{
    border-radius: 50%;
}
#perfil .p {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
}

#perfil a {
    display: block;
    margin: 10px 0;
    padding: 15px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1em;
    transition: transform 0.3s ease-in-out;
}

#perfil a:hover {
    transform: scale(1.1);
}

#perfil #verde {
    background-color: #28a745;
}

#perfil #azul {
    background-color: #ff2756;
}

.contenido {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.video, .imagen {
    margin-bottom: 20px;
    background: url(/imagen/fondo-verde-lineal.avif);
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    padding: 20px;
    color: rgb(255, 251, 251);
    font-size: 12px;
    text-align: justify;
}

iframe, .img {
    width: 100%;
    height: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
}

.video1, .imagen1 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    padding: 10px;
}
.h1{
    text-align: center;
}
.imagen{
    font-size: 16px;
    color: white;
}

#HGW{
    text-decoration: none;
    color: rgb(84, 253, 126);
    cursor: pointer;
    font-weight: 800;
    animation: animacion 1s ease alternate infinite;
}

@keyframes animacion{
    0%{
        color: rgb(2, 126, 2);
    }
    25%{
        color: rgba(43, 221, 7, 0.938);
    }
    50%{
        color: #04eb5d;
    }
    75%{
        color: rgb(0, 255, 255);
    }
    100%{
        color: #2f4bec;
    }
}

#HGW:Hover{
    text-decoration: underline;
}
/* Ajustes para dispositivos pequeños y móviles */
@media (max-width: 768px) {
    #perfil {
        width: 100%;
    }

    iframe, .img {
        width: 100%;
        margin: 0 auto;
        display: block;
    }

    .contenido {
        display: block;
    }

    #perfil a {
        padding: 15px;
        font-size: 1.2em;
    }

    /* Mejora la legibilidad del texto */
    .p {
        font-size: 16px; /* Ajuste para móviles */
        line-height: 1.5; /* Mejora la legibilidad */
        text-align: center;
    }

    /* Videos ajustados al 100% en pantallas pequeñas */
    iframe {
        width: 100%;
        height: auto;
    }

    /* Añadir más espacio entre los elementos para mayor comodidad en pantallas pequeñas */
    .contenido {
        padding: 10px;
    }

    .p1{
        text-align: left;
        font-size: 12px;
    }

    .i1{
        width: 20px;
        height: 20px;
    }
    
}

footer{
    width: 100%;
    height: 90px;
    padding-top: 10px;
    background: url(/imagen/fondo-humover.avif);
    color: rgb(253, 253, 253);
}

.p1{
    text-align: center;
}

#num{
    text-decoration: none;
    color: rgb(4, 243, 183);   
}

#num:hover{
    color: rgba(248, 100, 14, 0.863);
}

.facebook,.instagram,.tiktok{
    position: relative;
    top: 8px;
    border-radius: 50%;
    background-color: #ffffff;
    padding: 17px 2px 0px 2px;
}

.facebook:hover,.instagram:hover,.tiktok:hover{
    background-color: rgba(80, 248, 14, 0.863);
}