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

/* Fondo de la página */
body {
    font-family: Georgia, 'Times New Roman', serif;
    color: #ffffff;
    min-height: 100vh;
    background: linear-gradient(
        135deg,
        #a5b99b,
        #465333,
        #26351f
    );
    background-attachment: fixed;
    overflow-x: hidden;
}

/* Encabezado */
.encabezado {
    text-align: center;
    padding: 35px 20px 20px;
    background: rgba(20, 35, 20, 0.18);
    border: 1px solid rgba(180, 235, 220, 0.65);
    border-radius: 10px;
    backdrop-filter: blur(8px);
}

/* Título principal */
.encabezado h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 18px;
    color: #ffffff;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
}

/* Nombre */
.nombre {
    font-size: 1.15rem;
    margin-bottom: 25px;
    color: #f0f3e7;
}

.nombre strong {
    color: #ffffff;
}

/* Menú de navegación */
.menu {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 25px auto;
}

/* Enlaces */
.menu a {
    text-decoration: none;
    color: #ffffff;
    padding: 12px 22px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.07);
    transition: all 0.3s ease;
}

/* Efecto al pasar el cursor */
.menu a:hover {
    background-color: #b6d48c;
    color: #26351f;
    transform: translateY(-3px);
    box-shadow: 0 5px 18px rgba(190, 220, 130, 0.3);
}

/* Enlace activo */
.menu a.activo {
    background-color: #75975b;
    color: #ffffff;
    font-weight: bold;
}

/* Línea decorativa */
.encabezado hr {
    border: none;
    height: 2px;
    background: linear-gradient(
        to right,
        transparent,
        #e5edc6,
        transparent
    );
}

/* Contenido central */
.contenido {
    min-height: 460px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 35px 20px;
}

/* Estrella */
.estrella {
    color: #fff5c7;
    font-size: clamp(200px, 35vw, 380px);
    line-height: 1;
    text-shadow:
        0 0 15px rgba(255, 247, 190, 0.5),
        0 0 45px rgba(255, 240, 150, 0.3);
    transition: transform 0.5s ease,
                text-shadow 0.5s ease;
    animation: aparecer 1.2s ease both;
}

/* Efecto de la estrella */
.estrella:hover {
    transform: rotate(8deg) scale(1.08);
    text-shadow:
        0 0 25px rgba(255, 247, 190, 0.8),
        0 0 60px rgba(255, 240, 150, 0.6);
}

/* Animación de entrada */
@keyframes aparecer {
    from {
        opacity: 0;
        transform: scale(0.7);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Pie de página */
.pie-pagina {
    text-align: center;
    padding: 18px;
    color: #e9efdc;
    background: rgba(15, 25, 15, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.9rem;
}

/* Adaptación para celulares */
@media (max-width: 600px) {
    .encabezado {
        padding: 25px 12px 15px;
    }

    .nombre {
        font-size: 1rem;
    }

    .menu {
        gap: 8px;
    }

    .menu a {
        padding: 10px 14px;
        font-size: 0.9rem;
    }

    .contenido {
        min-height: 350px;
    }

    .estrella {
        font-size: 220px;
    }
}

/* Accesibilidad: reducir animaciones si se solicita */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
