/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Animación de partículas doradas en fondo */
.particle-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 2px, transparent 3px),
        radial-gradient(circle, rgba(212, 175, 55, 0.2) 1.5px, transparent 2px);
    background-position: 10px 10px, 30px 30px;
    background-repeat: repeat;
    animation: moveParticles 30s linear infinite;
}

@keyframes moveParticles {
    0% {
        background-position: 10px 10px, 30px 30px;
    }

    100% {
        background-position: 500px 400px, 530px 460px;
    }
}

body {
    background-color: #0d0d0d;
    color: #e0e0e0;
    font-family: "Lora", serif;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Encabezado */
header {
    background-color: #1a1a1a;
    padding: 2em 1em;
    text-align: center;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    position: relative;
    z-index: 2;
}

header h1 {
    font-family: "Cinzel Decorative", cursive;
    color: #d4af37;
    font-size: 2.5em;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.8);
}

/* Navegación */
nav {
    margin-top: 1em;
    z-index: 3;
    position: relative;
}

nav a {
    color: #8a2be2;
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #d4af37;
    text-decoration: underline;
}

/* Secciones */
section {
    padding: 2em 5%;
    border-bottom: 1px solid #333;
    max-width: 900px;
    margin: auto;
    animation: fadeIn 1s ease;
    position: relative;
    z-index: 2;
}

h2 {
    color: #d4af37;
    margin-bottom: 1em;
    font-size: 1.8em;
    text-shadow: 0 0 6px rgba(212, 175, 55, 0.7);
}

/* Listas */
ul {
    list-style-type: none;
    padding: 0;
}

ul li {
    padding: 0.5em 0;
    border-bottom: 1px solid #333;
}

/* Formulario */
form {
    display: flex;
    flex-direction: column;
    gap: 1em;
    max-width: 500px;
    margin: auto;
    margin-top: 1em;
    position: relative;
    z-index: 2;
}

input,
textarea {
    background-color: #1a1a1a;
    color: #e0e0e0;
    padding: 0.8em;
    border: 1px solid #333;
    font-size: 1em;
    font-family: "Lora", serif;
    width: 100%;
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.4);
    transition: box-shadow 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.7);
}

button {
    padding: 0.8em;
    background-color: #8a2be2;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
    border-radius: 5px;
}

button:hover {
    background-color: #6a1bbf;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.9);
}

/* Botones de contacto */
.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 1em;
    margin-bottom: 1.5em;
}

.contact-buttons button {
    padding: 0.6em 1.2em;
    font-size: 1em;
    background-color: #8a2be2;
    border: none;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    border-radius: 5px;
    box-shadow: 0 0 6px rgba(212, 175, 55, 0.6);
}

.contact-buttons button:hover {
    background-color: #6a1bbf;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.9);
}

/* Footer */
footer {
    background-color: #1a1a1a;
    text-align: center;
    padding: 1.5em 1em;
    font-size: 0.9em;
    color: #aaa;
    position: relative;
    z-index: 2;
}

.social-icons {
    margin-top: 1em;
    position: relative;
    z-index: 3;
}

.social-icons a {
    color: #d4af37;
    margin: 0 10px;
    font-size: 1.5em;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #8a2be2;
}

/* Símbolos místicos dorados en footer */
.footer-symbols {
    margin-top: 1em;
    font-size: 1.8em;
    color: #d4af37;
    letter-spacing: 0.8em;
    opacity: 0.6;
    animation: flicker 3s infinite alternate;
}

.footer-symbols .symbol {
    margin: 0 5px;
}

/* Animación de parpadeo suave */
@keyframes flicker {

    0%,
    100% {
        opacity: 0.6;
        text-shadow: 0 0 5px #d4af37;
    }

    50% {
        opacity: 1;
        text-shadow: 0 0 15px #d4af37;
    }
}

/* Sección servicios con ilustración */
.seccion-con-illustracion .contenido-servicios {
    display: flex;
    align-items: center;
    gap: 2em;
    flex-wrap: wrap;
}

.seccion-con-illustracion ul {
    flex: 1 1 250px;
}


/* Sección sobre mí con ilustración */
.seccion-con-illustracion.bg-pergamino {

    color: #5a4b24;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.seccion-con-illustracion.bg-pergamino .contenido-sobre-mi {
    display: flex;
    align-items: center;
    gap: 2em;
    flex-wrap: wrap;
    max-width: 900px;
    margin: auto;
    padding: 1em 2em;
}

.seccion-con-illustracion.bg-pergamino p {
    flex: 1 1 350px;
    font-family: "Lora", serif;
    font-size: 1.1em;
}


/* Agrega un ícono dorado automáticamente antes de cada h2 */
h2::before {
    content: "✦";
    color: #d4af37;
    margin-right: 0.5em;
    font-size: 1.2em;
    vertical-align: middle;
    text-shadow: 0 0 6px rgba(212, 175, 55, 0.7);
}

.icono-mistico {
    color: #d4af37;
    margin-right: 0.5em;
    font-size: 1.2em;
    vertical-align: middle;
}

.icono-lista {
    color: #8a2be288;
    margin-right: 0.5em;
    font-size: 1.1em;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5em;
        margin-top: 1em;
    }

    nav a {
        font-size: 0.9em;
        padding: 0.3em 0.6em;
        margin: 0;
        white-space: nowrap;
    }

    section {
        padding: 1.5em 2em;
    }

    form {
        width: 100%;
        padding: 0 1em;
    }

    .contact-buttons {
        flex-direction: column;
        gap: 0.8em;
    }

    .seccion-con-illustracion .contenido-servicios,
    .seccion-con-illustracion.bg-pergamino .contenido-sobre-mi {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* Icono de estrella morada antes de cada item de Servicios */
#servicios ul li::before {
    content: "\f005";
    /* Font Awesome: estrella hueca */
    font-family: "Font Awesome 6 Free";
    font-weight: 400;
    /* Regular para estrella hueca */
    color: #8a2be2;
    margin-right: 0.6em;
}

.oculto {
    display: none;
}

#servicios ul li {
    transition: transform 0.3s ease, color 0.3s ease;
}

#servicios ul li:hover {
    transform: translateX(5px);
    color: #d4af37;
}

header h1 {
    animation: pulseGlow 3s infinite alternate;
}

@keyframes pulseGlow {
    from {
        text-shadow: 0 0 8px rgba(212, 175, 55, 0.8);
    }

    to {
        text-shadow: 0 0 15px rgba(212, 175, 55, 1);
    }
}

.particle-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    background: #0d0d0d;
    overflow: hidden;
}

.particle-background::before,
.particle-background::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background-image:
        radial-gradient(#d4af3788 1px, transparent 1px),
        radial-gradient(#8a2be288 1.5px, transparent 1.5px);
    background-size: 80px 80px, 100px 100px;
    animation: moveStars 60s linear infinite;
    opacity: 0.6;
}

.particle-background::after {
    animation-direction: reverse;
    opacity: 0.4;
}

@keyframes moveStars {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-200px, -300px);
    }
}

/* Estrella fugaz */
@keyframes shootingStar {
    0% {
        transform: translateX(0) translateY(0) scale(0.5);
        opacity: 0;
    }

    30% {
        opacity: 1;
    }

    100% {
        transform: translateX(-600px) translateY(300px) scale(0.1);
        opacity: 0;
    }
}

.shooting-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    box-shadow: 0 0 10px #d4af37, 0 0 20px #d4af37;
    border-radius: 50%;
    animation: shootingStar 1.5s linear infinite;
    z-index: 1;
    top: 10%;
    left: 80%;
}

.acordeon .item {
    border: 1px solid #d4af37;
    border-radius: 8px;
    margin-bottom: 1em;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    overflow: hidden;
}

.acordeon .titulo {
    background-color: #1a1a1a;
    color: #aaa;
    font-size: 1.1em;
    font-weight: bold;
    width: 100%;
    text-align: left;
    padding: 10px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6em;
    font-family: "Lora", serif;
    box-shadow: 0 0 6px rgba(212, 175, 55, 0.4);
}

.acordeon .titulo:hover {
    background-color: #2a2a2a;
}

.acordeon .contenido {
    background-color: #1a1a1a;
    padding: 1em;
    display: none;
    animation: fadeIn 0.5s ease;
}

.acordeon .contenido.activo {
    display: block;
}
