body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background-color: #111827;
    color: #f9fafb;
}

header {
    position: relative;
    background-image: url('../img/violinImg1.webp');
    /* Asegúrate de que esta ruta sea correcta */
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 5rem 1rem;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 24, 39, 0.6);
    /* negro con opacidad */
    z-index: 1;
}

.header-overlay {
    position: relative;
    z-index: 2;
}



section {
    padding: 3rem 1rem;
    max-width: 900px;
    margin: auto;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #fbbf24;
    display: inline-block;
}

.curriculum,
.presentacion {
    margin-bottom: 2rem;
}

form {
    display: flex;
    flex-direction: column;
}

input,
textarea {
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}

button {
    background-color: #fbbf24;
    color: #111827;
    font-weight: bold;
    border: none;
    padding: 0.75rem;
    border-radius: 5px;
    cursor: pointer;
}

.logo-principal {
    display: block;
    margin: 0 auto 1rem auto;
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease;
}

.logo-principal:hover {
    transform: scale(1.05);
}


footer {
    background-color: #1f2937;
    text-align: center;
    padding: 2rem 1rem;
    color: #9ca3af;
}

/* css para ala galeria de fotos */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.galeria-grid img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    object-fit: cover;
}

.galeria-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.6);
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 99999;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
    animation: aparecer 0.3s ease;
}

@keyframes aparecer {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}





/* css para el preloader de carga de pagina */

#page-loader,
#form-loader {
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #111827be;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #fbbf24;
    border-top: 6px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

body.loaded #page-loader {
  opacity: 0 !important;
  visibility: hidden !important;
  display: none !important;
  pointer-events: none !important;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
