:root {
    --color-bg: #0a0a0a;
    --color-surface: #141414;
    --color-surface-hover: #1f1f1f;
    --color-gold: #D4AF37;
    --color-gold-light: #F3E5AB;
    --color-gold-dark: #997A15;
    --color-text-main: #e0e0e0;
    --color-text-muted: #a0a0a0;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text-main);
}

body {
    overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
}

.gold-text {
    background: linear-gradient(135deg, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    text-shadow: 0px 2px 10px rgba(212, 175, 55, 0.1);
}

/* --- Utilities --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn-gold {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C);
    color: #0a0a0a;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    filter: brightness(1.1);
}

/* --- Navigation --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.75); /* Transparente permitiendo ver la imagen limpia */
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15); /* Fina línea dorada */
    transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.95); /* Un poco más oscuro al scrollear pero aún translúcido */
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding: 0.8rem 5%; /* Se encoge un poco al hacer scroll */
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-right: 2rem; /* Margen de protección */
    flex-shrink: 0; /* Evita que el contenedor del logo se aplaste */
}

.logo {
    height: 75px;
    width: auto;
    transition: transform 0.3s ease;
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--color-text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-gold);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-gold);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--color-gold);
    transition: all 0.3s ease;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    background: url('../images/hero-piano.png') center/cover no-repeat;
    padding: 0 20px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.3) 0%, rgba(10, 10, 10, 0.95) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    font-weight: 300;
}

/* --- Philosophy Section --- */
.philosophy-section {
    padding: 8rem 0;
    background-color: var(--color-surface);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.philosophy-card {
    background: var(--color-bg);
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.4s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.philosophy-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.3);
}

.philosophy-img-wrapper {
    height: 200px;
    overflow: hidden;
    position: relative;
    border-bottom: 2px solid rgba(212, 175, 55, 0.2);
}

.philosophy-img-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10,10,10, 1), transparent);
    z-index: 1;
}

.philosophy-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.6s ease;
    filter: grayscale(30%) sepia(20%);
}

.philosophy-card:hover .philosophy-img-wrapper img {
    transform: scale(1.05);
    filter: grayscale(0%) sepia(0%);
}

.philosophy-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    z-index: 2;
}

.philosophy-content h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.philosophy-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    text-align: justify;
    flex-grow: 1;
}

.values-card ul {
    list-style: none;
    padding: 0;
    margin-top: 0.5rem;
    flex-grow: 1;
}

.values-card li {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.values-card li span {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
}

/* --- Disciplines Section --- */
.disciplines-section {
    padding: 8rem 0;
    background-color: var(--color-bg);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--color-surface);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(212, 175, 55, 0.5);
    background-color: var(--color-surface-hover);
}

.card-img-wrapper {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.card-img-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(20,20,20, 1), transparent);
    z-index: 1;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.6s ease;
    filter: grayscale(80%) sepia(20%);
}

.card:hover img {
    transform: scale(1.1);
    filter: grayscale(0%) sepia(0%);
}

.card-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
    text-align: center;
}

.card-content h3 {
    font-size: 1.5rem;
    color: var(--color-gold-light);
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

/* --- Momentos Section --- */
.momentos-section {
    padding: 8rem 0;
    background-color: var(--color-bg);
}

.momentos-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.momentos-header h2 {
    margin-bottom: 1.5rem;
}

.momentos-description {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-text-muted);
}

.slider-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    background-color: #030303;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.slider::-webkit-scrollbar {
    display: none;
}

.slide {
    flex: 0 0 100%;
    width: 100%;
    height: 500px;
    object-fit: contain; /* Mostrar foto completa sin cortar */
    scroll-snap-align: center;
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: var(--color-gold);
    border: 1px solid rgba(212, 175, 55, 0.3);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    color: #fff;
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}

/* --- News Section --- */
.news-section {
    padding: 8rem 0;
    background-color: var(--color-surface);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.news-card {
    display: flex;
    flex-direction: column;
    background: var(--color-bg);
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.4);
}

.news-img-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #000;
}

.news-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Evita que el texto del afiche se corte */
    display: block;
    transition: transform 0.6s ease;
}

.news-card:hover .news-img-wrapper img {
    transform: scale(1.03);
}

.news-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
}

.news-badge {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: inline-block;
}

.news-content h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.news-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .news-card {
        flex-direction: row;
    }
    
    .news-img-wrapper {
        width: 45%;
    }
    
    .news-content {
        width: 55%;
        justify-content: center;
    }
}

/* --- Contact Section --- */
.contact-section {
    padding: 6rem 0 8rem;
    background: linear-gradient(to bottom, var(--color-bg), #050505);
}

.contact-box {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 4rem 2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.contact-box h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.contact-box p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.contact-info-wrapper {
    margin: 2rem 0;
}

.contact-email {
    display: inline-block;
    font-size: 1.6rem;
    font-family: var(--font-heading);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    padding-bottom: 5px;
    margin-bottom: 1.5rem;
    transition: text-shadow 0.3s ease;
}

.contact-email:hover {
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.contact-phones {
    margin-top: 1rem;
}

.contact-phones p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
}

.contact-phones a {
    color: var(--color-gold-light);
    text-decoration: none;
    font-size: 1.2rem;
    font-family: var(--font-body);
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-phones a:hover {
    color: #fff;
}

.contact-phones .separator {
    color: var(--color-gold-dark);
    margin: 0 10px;
    font-size: 1.2rem;
}

.contact-address {
    margin-top: 2rem;
}

.contact-address p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
}

.contact-address address {
    font-size: 1.1rem;
    color: var(--color-gold-light);
    font-style: normal;
    font-family: var(--font-body);
    font-weight: 500;
}

.contact-footer-note {
    margin-top: 3rem;
    font-style: italic;
    font-size: 0.9rem !important;
    opacity: 0.6;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 2rem 0;
    background-color: #030303;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 1s ease forwards;
}

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

.scroll-element {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1100px) {
    .logo {
        height: 55px;
    }
    
    .nav-links {
        gap: 1.2rem;
    }
    
    .nav-links a {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 75%;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.4s ease;
        z-index: 999;
    }

    .nav-links.nav-active {
        right: 0;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.7);
    }
    
    .hamburger {
        display: flex;
        z-index: 1000;
    }

    /* Animación del ícono hamburguesa a una "X" */
    .hamburger.toggle .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.toggle .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.toggle .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .contact-email {
        font-size: 1.2rem;
    }
}
