:root {
    --primary-color: #e63946;
    --secondary-color: #f1faee;
    --accent-color: #a8dadc;
    --dark-bg: #1d3557;
    --darker-bg: #0f1c2e;
    --text-light: #f1faee;
    --text-muted: #a8dadc;
    --font-main: 'Inter', sans-serif;
    --font-display: 'Playfair Display', serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--darker-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

/* Header & Nav */
header {
    background: rgba(15, 28, 46, 0.5);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
}

.logo span {
    color: var(--primary-color);
}

nav ul {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

nav a {
    font-weight: 500;
    color: var(--text-light);
    font-size: 0.9rem;
}

nav a.active {
    color: var(--primary-color);
}

/* Main Content */
main {
    flex: 1;
    padding: 3rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.page-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Backgrounds */
.bg-home {
    background: url('../resources/libro.jpg') no-repeat center center fixed;
    background-size: cover;
}

.bg-actividades {
    background: url('../resources/pinceleslienzo.jpg') no-repeat center center fixed;
    background-size: cover;
}

.bg-centros {
    background: url('../resources/centroarte.jpg') no-repeat center center fixed;
    background-size: cover;
}

.bg-inscripcion {
    background: url('../resources/inscripcion.jpg') no-repeat center center fixed;
    background-size: cover;
}

.bg-galeria {
    background: url('../resources/centroarte2.jpg') no-repeat center center fixed;
    background-size: cover;
}

.bg-mercado {
    background: url('../resources/mercadoarte.jpg') no-repeat center center fixed;
    background-size: cover;
}

.bg-condiciones {
    background: url('../resources/condiciones.jpg') no-repeat center center fixed;
    background-size: cover;
}

.bg-contacto {
    background: url('../resources/avionpapel.jpg') no-repeat center center fixed;
    background-size: cover;
}

/* Glassmorphism Content Block */
.content-block {
    background: rgba(15, 28, 46, 0.2);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.content-block h2,
.content-block h3 {
    font-family: var(--font-display);
    color: var(--primary-color);
    margin-bottom: 1rem;
    margin-top: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.content-block p,
.content-block li {
    color: #f1faee;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
}

.content-block ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

/* Images in content */
.content-block img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-weight: 500;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    color: white;
    font-family: var(--font-main);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
    transition: var(--transition);
}

.btn:hover {
    background: #c1121f;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.6);
}

/* Contact Page Specific Overrides */
.bg-contacto .content-block {
    background: rgba(15, 28, 46, 0.2);
    /* Almost transparent with slight color */
    backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.bg-contacto .content-block p,
.bg-contacto .form-group label {
    color: #fff;
    /* White text for better visibility on image */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    font-weight: 600;
}

.bg-contacto .page-title {
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.bg-contacto .form-group input,
.bg-contacto .form-group textarea {
    background: rgba(255, 255, 255, 0.3);
    /* Very transparent white */
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(2px);
}

.bg-contacto .form-group input:focus,
.bg-contacto .form-group textarea:focus {
    background: rgba(255, 255, 255, 0.5);
    border-color: #fff;
    outline: none;
}

/* Footer */
footer {
    background: rgba(15, 28, 46, 0.9);
    backdrop-filter: blur(10px);
    padding: 2rem 5%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: auto;
}

footer a {
    margin: 0 10px;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        justify-content: center;
    }

    .content-block {
        padding: 1.5rem;
    }
}