body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    justify-content: space-between;
    background-color: #f9fafb; /* Fondo suave */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
}

a {
    text-decoration: none;
    color: #14532d; /* Verde oscuro */
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: #0f3d1f; /* Verde aún más oscuro al pasar el mouse */
}

footer {
    height: 2.5rem;
    background-color: #111827; /* Gris oscuro elegante */
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.title-header {
    color: #14532d; /* Verde oscuro */
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.prelogo {
    transition: all 0.15s ease-in-out;
    border: 2px solid rgba(20, 83, 45, 0.5); /* Verde oscuro con transparencia */
    border-radius: 0.5rem;
}

.logodef {
    display: block;
    transform: translateY(0);
}

.logo2 {
    width: 2rem;
    height: 2rem;
}

.footer-title {
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: #d1d5db; /* Gris claro para contraste */
}

.redes {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.redes > li {
    list-style-type: none;
}

.red-item {
    color: inherit;
    font-size: 0.875rem;
    transition: color 0.15s ease-in-out;
}

.red-item:hover {
    color: #14532d; /* Verde oscuro */
}

.main-frame {
    margin: 0 auto;
    padding: 0 1rem;
    height: auto;
    width: 100%;
    max-width: 66.666667%;
    box-sizing: border-box;
}

.subiframe {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 1rem;
    width: 100%;
    padding: 0.75rem;
    margin: 1.25rem auto;
    background-color: #f3f4f6; /* Gris claro elegante */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

#embedIframe {
    width: 100%;
    aspect-ratio: 16/9;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    display: block;
    border-radius: 0.75rem;
}

#btnIframe {
    background: linear-gradient(135deg, #14532d, #0f3d1f); /* Verde oscuro degradado */
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    width: 100%;
    transition: background-color 0.3s ease-in-out;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

#btnIframe:hover {
    background: #0f3d1f; /* Verde más oscuro */
    cursor: pointer;
}

.preframe {
    border-radius: 0.5rem;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.centerfull {
    width: 100%;
    text-align: center;
}

.title {
    color: #14532d; /* Verde oscuro */
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.margin-top-2 {
    margin-top: 2.5rem;
}

@media (max-width: 768px) {
    .main-frame {
        max-width: 100%;
    }
    #embedIframe {
        width: 100%;
    }
}
