/* Estilos Generales */
:root {
    --primary-color: #fd892b;
    --secondary-color: #fd892b;
    --accent-color: #be6217;
    --light-color: #f9f9f9;
    --dark-color: #333333;
    --text-color: #4d4d4d;
    --border-color: #e0e0e0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #fd892b 0%, #c2957b 100%);
    --gradient-dark: linear-gradient(135deg, #333 0%, #666 100%);
}

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

body {
    font-family: 'Raleway', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: #fd892b;
    margin-bottom: 15px;
    font-weight: 700;
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 20px;
    font-size: 2.5em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #fd892b;
    border-radius: 2px;
}

.btn {
    font-size: 17px;
    background: transparent;
    border: none;
    padding: 1em 1.5em;
    color: #ffffff;
    text-transform: uppercase;
    position: relative;
    transition: 0.5s ease;
    cursor: pointer;
}

.btn::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background-color: #fd892b;
    transition: 0.5s ease;
}

.btn:hover {
    color: #fff;
    transition-delay: 0.5s;
}

.btn:hover::before {
    width: 100%;
}

.btn::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 0;
    width: 100%;
    background-color: #fd892b;
    transition: 0.4s ease;
    z-index: -1;
}

.btn:hover::after {
    height: 100%;
    transition-delay: 0.4s;
    color: aliceblue;
}

/* Los estilos de .btn-primary y .btn-secondary heredan de .btn */

.btn-primary {
    color: #4b4b4b !important; /* Gris claro para mejor legibilidad en estado normal */
}

.btn-primary:hover {
    color: #ffffff !important; /* Blanco durante el hover */
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1em;
}

/* Header y Navegación */
header {
    background: rgba(255, 255, 255, 0.98);
    /* backdrop-filter optimizado - solo en navegadores modernos */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    /* Optimización de rendimiento */
    will-change: background-color, box-shadow;
    transform: translateZ(0); /* Aceleración por hardware */
}

header.scrolled {
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
    will-change: auto; /* Remover will-change cuando no se necesite */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    flex-direction: row-reverse;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

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

.logo:hover img {
    transform: scale(1.1);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #fd892b;
    transition: width 0.3s ease;
    border-radius: 2px;
}

nav ul li a:hover::after,
nav ul li.active a::after {
    width: 100%;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5em;
    color: var(--primary-color);
}

/* Menú Hamburguesa - Oculto por defecto en escritorio */
.hamburger {
    cursor: pointer;
    display: none !important;
    z-index: 1001;
    position: relative;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

.hamburger input {
    display: none;
}

.hamburger svg {
    height: 3em;
    transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger .line {
    fill: none;
    stroke: black;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
    transition:
        stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
        stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger .line-top-bottom {
    stroke-dasharray: 12 63;
}

.hamburger input:checked + svg {
    transform: rotate(-45deg);
}

.hamburger input:checked + svg .line-top-bottom {
    stroke-dasharray: 20 300;
    stroke-dashoffset: -32.42;
}

/* Menú móvil desplegable - Oculto por defecto en escritorio */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding-top: 80px;
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.mobile-menu.active {
    transform: translateX(0);
    display: block;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-menu ul li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-menu ul li a {
    display: block;
    padding: 20px 30px;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.1em;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, padding-left 0.3s ease;
}

.mobile-menu ul li a:hover {
    background-color: var(--primary-color);
    color: white;
    padding-left: 40px;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

/* Carrusel de imágenes de fondo */
.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 1.2s ease-in-out, transform 1.2s ease-in-out;
    will-change: opacity, transform;
}

.carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
    will-change: auto; /* Remover will-change cuando está activo */
}

.carousel-slide.prev {
    transform: translateX(-100%);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Optimización de rendimiento para imágenes */
    image-rendering: -webkit-optimize-contrast;
    transform: translateZ(0); /* Aceleración por hardware */
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(192, 102, 0, 0.4), rgba(165, 93, 0, 0.4));
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(142, 124, 195, 0.3), rgba(194, 123, 160, 0.3));
    z-index: 2;
}

.hero-content {
    max-width: 900px;
    padding: 0 20px;
    position: relative;
    z-index: 3;
}

.hero h2 {
    font-size: 4em;
    margin-bottom: 30px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.4em;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* Features Section */
.features {
    padding: 120px 0;
    background: white;
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, var(--light-color), white);
}

.features-grid {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    gap: 30px;
}

.feature-box {
    background: white;
    padding: 50px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    flex: 1;
    min-width: 0;
    will-change: transform;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
}

.feature-box:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.feature-box:hover .feature-icon {
    transform: scale(1.1);
}

.feature-box h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.feature-box p {
    color: var(--text-color);
    line-height: 1.8;
}

/* Disciplinas Destacadas */
.featured-disciplines {
    padding: 120px 0;
    background: var(--light-color);
    position: relative;
}

.featured-disciplines::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, white, var(--light-color));
}

.featured-disciplines .disciplines-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px;
    margin-bottom: 60px;
    justify-items: center;
    justify-content: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.featured-disciplines .disciplines-grid .discipline-card {
    width: 100%;
    max-width: 420px;
    height: 220px;
}

.discipline-card {
    background-color: #c5771e;
    background-image: linear-gradient(43deg, #5e3200 0%, #ff9939 46%, #FFCC70 100%);
    border-radius: 8px;
    color: white;
    overflow: hidden;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.320, 1), box-shadow 0.4s ease;
    cursor: pointer;
    will-change: transform;
}

/* Imagen de fondo dentro de la tarjeta */
.discipline-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.discipline-card:hover {
    transform: rotateY(10deg) rotateX(10deg) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    will-change: auto;
}

/* Overlay oscuro para mejorar la legibilidad del texto */
.discipline-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    transition: background 0.3s ease;
    z-index: 1;
}

.discipline-card:hover::before {
    background: rgba(0, 0, 0, 0.2);
}

.discipline-content {
    padding: 20px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: white;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
}

.discipline-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
}

.discipline-card h3 a {
    color: inherit;
    text-decoration: none;
}

.discipline-card h3 a:hover {
    color: white;
}

.center-button {
    text-align: center;
}

/* Próximos Eventos */
.upcoming-events {
    padding: 120px 0;
    background: white;
    position: relative;
}

.upcoming-events::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, var(--light-color), white);
}

.events-carousel {
    display: flex;
    overflow-x: auto;
    gap: 40px;
    padding: 30px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--light-color);
}

.events-carousel::-webkit-scrollbar {
    height: 10px;
}

.events-carousel::-webkit-scrollbar-track {
    background: var(--light-color);
    border-radius: 5px;
}

.events-carousel::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 5px;
}

.event-card {
    min-width: 400px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
    display: flex;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    will-change: auto;
}

.event-date {
    background: var(--gradient-primary);
    color: white;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 120px;
}

.event-date .day {
    font-size: 2.5em;
    font-weight: bold;
    font-family: 'Playfair Display', serif;
}

.event-date .month {
    font-size: 1.3em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-details {
    padding: 30px;
    flex: 1;
}

.event-time {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.event-details h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

/* Testimonios */
.testimonials {
    padding: 120px 0;
    background: var(--light-color);
    position: relative;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, white, var(--light-color));
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    will-change: auto;
}

.testimonial-content {
    position: relative;
    padding: 25px 0;
}

.testimonial-content::before {
    content: '"';
    font-size: 6em;
    color: rgba(142, 124, 195, 0.1);
    position: absolute;
    top: -30px;
    left: -20px;
    font-family: 'Playfair Display', serif;
}

.testimonial-author h4 {
    margin-bottom: 8px;
    color: var(--primary-color);
    font-size: 1.2em;
}

.testimonial-author p {
    font-size: 0.95em;
    color: var(--text-color);
    font-style: italic;
}

/* Call to Action */
.cta {
    padding: 150px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('../images/fotos/Danza\ urbana\ infantil\ de\ 7\ a\ 12\ años/du-inf1.jpg');
    background-size: cover;
    background-position: center;
    /* background-attachment: fixed; - Removido para mejor rendimiento (causa problemas de FPS) */
    background-attachment: scroll;
    text-align: center;
    color: white;
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(142, 124, 195, 0.3), rgba(194, 123, 160, 0.3));
    z-index: 1;
}

.cta .container {
    position: relative;
    z-index: 2;
}

.cta h2 {
    color: white;
    font-size: 3em;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.cta p {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Estadísticas */
.stats {
    padding: 80px 0;
    background: white;
    position: relative;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, var(--light-color), white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    will-change: auto;
}

.stat-number {
    font-size: 3em;
    font-weight: bold;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Galería Visual */
.visual-gallery {
    padding: 120px 0;
    background: var(--light-color);
    position: relative;
}

.visual-gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, white, var(--light-color));
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    grid-template-rows: repeat(2, 250px);
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    will-change: auto;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    color: white;
    margin-bottom: 5px;
    font-size: 1.3em;
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9em;
}

/* Hero Scroll */
.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 2em;
    animation: bounce 2s infinite;
    cursor: pointer;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Mejoras en disciplinas */
.discipline-content {
    padding: 25px;
}

.discipline-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    margin-top: 15px;
}

.discipline-link:hover {
    color: var(--accent-color);
}

/* Mejoras en eventos */
.event-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    margin-top: 15px;
    transition: color 0.3s ease;
}

.event-link:hover {
    color: var(--accent-color);
}

/* Mejoras en testimonios */
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.author-info p {
    margin: 0;
    font-size: 0.9em;
    color: var(--text-color);
}

/* Mejoras en CTA */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Footer */
footer {
    background: var(--gradient-dark);
    color: white;
    padding: 80px 0 30px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, var(--light-color), var(--gradient-dark));
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-column h3 {
    color: white;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
    font-size: 1.3em;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 25px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
    font-size: 1.2em;
    overflow: hidden;
}

.social-icons a img {
    width: 25px;
    height: 25px;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: brightness(0) invert(1);
}

.social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.social-icons a:hover img {
    filter: brightness(1) invert(0);
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
}

/* Animaciones de Scroll - Optimizadas para rendimiento */
.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
    /* Eliminado filter: blur() para mejor rendimiento */
}

/* Animación más suave para elementos con contenido complejo */
.discipline-item.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    will-change: opacity, transform;
}

.scroll-animate.animate-in {
    opacity: 1;
    transform: translateY(0) !important;
    will-change: auto; /* Remover will-change después de la animación */
}

.scroll-animate.delay-1 {
    transition-delay: 0.05s;
}

.scroll-animate.delay-2 {
    transition-delay: 0.1s;
}

.scroll-animate.delay-3 {
    transition-delay: 0.15s;
}

.scroll-animate.delay-4 {
    transition-delay: 0.2s;
}

.scroll-animate.delay-5 {
    transition-delay: 0.25s;
}

/* Animaciones más suaves para elementos específicos */
.scroll-animate.smooth {
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.scroll-animate.fast {
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
    will-change: opacity, transform;
}

/* Efectos especiales para diferentes tipos de elementos - Optimizados */
.scroll-animate.slide-left {
    transform: translateY(40px) translateX(-30px);
    will-change: opacity, transform;
}

.scroll-animate.slide-right {
    transform: translateY(40px) translateX(30px);
    will-change: opacity, transform;
}

.scroll-animate.scale-in {
    transform: translateY(40px) scale(0.95);
    will-change: opacity, transform;
}

.scroll-animate.rotate-in {
    transform: translateY(40px) rotate(2deg);
    will-change: opacity, transform;
}

/* Reset de transformaciones específicas cuando se animan */
.scroll-animate.slide-left.animate-in {
    transform: translateY(0) translateX(0) !important;
    will-change: auto;
}

.scroll-animate.slide-right.animate-in {
    transform: translateY(0) translateX(0) !important;
    will-change: auto;
}

.scroll-animate.scale-in.animate-in {
    transform: translateY(0) scale(1) !important;
    will-change: auto;
}

.scroll-animate.rotate-in.animate-in {
    transform: translateY(0) rotate(0deg) !important;
    will-change: auto;
}


/* Animaciones originales */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Reglas explícitas para pantallas grandes - Ocultar menú hamburguesa */
@media (min-width: 769px) {
    /* Asegurar que la navegación normal esté visible */
    nav {
        display: block !important;
        visibility: visible !important;
    }
    
    .uiv-nav,
    .uiv-container {
        display: flex !important;
        visibility: visible !important;
    }
    
    .hamburger {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
        position: absolute !important;
        left: -9999px !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .hamburger input,
    .hamburger svg,
    .hamburger label {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
    }
    
    .mobile-menu {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        transform: translateX(-100%) !important;
    }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .container {
        width: 95%;
    }
    
    .hero h2 {
        font-size: 3.5em;
    }
}

@media (max-width: 992px) {
    .hero h2 {
        font-size: 3em;
    }
    
    .feature-box {
        padding: 40px 25px;
    }
    
    .featured-disciplines .disciplines-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        max-width: 800px;
    }
    
    .featured-disciplines .disciplines-grid .discipline-card {
        width: 100%;
        max-width: 380px;
        height: 200px;
    }
    
    .event-card {
        min-width: 350px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: auto !important;
        height: auto !important;
        overflow: visible !important;
        pointer-events: auto !important;
        position: relative !important;
        left: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .hamburger input {
        display: none !important; /* Ocultar el checkbox visualmente */
        position: absolute !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    
    .hamburger svg {
        display: block !important;
        visibility: visible !important;
        width: auto !important;
        height: 3em !important;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .mobile-menu {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    header {
        height: auto;
        min-height: 70px;
    }
    
    header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
    }
    
    .logo img {
        height: 40px;
    }
    
    /* Ocultar navegación de escritorio en móviles */
    nav {
        display: none !important;
    }
    
    .uiv-nav,
    .uiv-container {
        display: none !important;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 200px);
    }
    
    .gallery-item.large {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .hero {
        margin-top: 70px; /* Ajustado a la altura del header en móviles */
        padding-top: 10px; /* Espacio adicional para evitar que se corte */
        min-height: calc(100vh - 70px); /* Ajustar altura mínima */
    }
    
    .hero h2 {
        font-size: 2.5em;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 20px;
    }
    
    /* Asegurar que las secciones no se corten con la navbar */
    .features,
    .stats,
    .featured-disciplines,
    .testimonials,
    .upcoming-events {
        scroll-margin-top: 80px; /* Espacio para la navbar fija al hacer scroll */
    }
    
    .features-grid {
        flex-direction: column;
        gap: 30px;
    }
    
    .feature-box {
        width: 100%;
        max-width: 100%;
    }

    .featured-disciplines .disciplines-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        max-width: 700px;
        gap: 15px;
    }
    
    .featured-disciplines .disciplines-grid .discipline-card {
        width: 100%;
        max-width: 340px;
        height: 180px;
    }
    
    .discipline-card h3 {
        font-size: 16px;
    }

    .event-card {
        min-width: 300px;
        flex-direction: column;
    }

    .event-date {
        min-width: auto;
        padding: 20px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 90vh;
    }

    .hero h2 {
        font-size: 2.2em;
    }

    .section-title {
        font-size: 2em;
    }
    
    .logo img {
        height: 35px;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .container {
        width: 100%;
        padding: 0 15px;
    }
    
    .disciplines-grid {
        grid-template-columns: 1fr;
    }
    
    .disciplines-grid .discipline-card {
        width: 100%;
        max-width: 350px;
        height: 200px;
    }
    
    .discipline-card h3 {
        font-size: 14px;
    }
    
    /* Ajustes adicionales para móviles pequeños */
    .hamburger {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: auto !important;
        height: auto !important;
    }
    
    .hamburger svg {
        height: 2.5em;
        display: block !important;
        visibility: visible !important;
    }
    
    .mobile-menu {
        display: block !important;
        visibility: visible !important;
    }
    
    .mobile-menu ul li a {
        padding: 18px 25px;
        font-size: 1em;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .hero p {
        font-size: 1.1em;
    }
    
    .btn {
        padding: 0.8em 1.2em;
        font-size: 15px;
    }
    
    .feature-box {
        padding: 30px 20px;
    }
    
    .stat-number {
        font-size: 2.5em;
    }
}

/* Botón flotante de Chat (esquina inferior izquierda) */
.chat-fab {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 1100;
}

.chat-fab a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: 30px;
    padding: 12px 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    font-weight: 600;
}

.chat-fab a:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.2);
}

.chat-fab img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Widget de chat */
.chat-widget {
    position: fixed;
    left: 20px;
    bottom: 80px;
    width: 320px;
    max-height: 60vh;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    overflow: hidden;
    display: none;
    flex-direction: column;
    z-index: 1101;
}

.chat-widget.open {
    display: flex;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 700;
}

.chat-close-btn {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 0;
    border-radius: 8px;
    width: 28px;
    height: 28px;
    cursor: pointer;
}

.chat-messages {
    padding: 12px;
    overflow-y: auto;
    flex: 1;
    background: #fafafa;
}

.chat-input {
    display: flex;
    gap: 8px;
    padding: 10px;
    background: #fff;
    border-top: 1px solid var(--border-color);
}

.chat-input input[type="text"] {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    outline: none;
}

.chat-send-btn {
    background: var(--gradient-primary);
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 600;
    cursor: pointer;
}

/* Iframe del chat embebido */
.chat-iframe {
    width: 100%;
    height: 360px;
    border: 0;
    background: #fff;
}

/* --- Nav animada Uiverse (namespaced .uiv-*) --- */
.uiv-outline {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.uiv-rect {
    stroke-dashoffset: 5;
    stroke-dasharray: 0 0 10 40 10 40;
    transition: 0.5s;
    stroke: #fd892b;
}

.uiv-nav {
    position: relative;
    width: min(900px, 100%);
    height: 60px;
    border-radius: 40px;
    margin: 0 auto 0 80px;
}

.uiv-container {
    position: relative;
    inset: 0;
    background: #fff;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    padding: 0.5em;
    border-radius: 40px;
    overflow: visible;
}

.uiv-container:hover .uiv-outline .uiv-rect {
    transition: 999999s;
    stroke-dashoffset: 1;
    stroke-dasharray: 0;
}

.uiv-btn {
    padding: 0.5em 1.2em;
    color: #212121;
    cursor: pointer;
    transition: 0.1s;
    border-radius: 10px;
    font-weight: 500;
}

.uiv-btn:hover {
    background: #fd892b;
    color: #fff;
}

.uiv-btn:hover ~ .uiv-outline .uiv-rect {
    stroke-dashoffset: 0;
    stroke-dasharray: 0 0 10 40 10 40;
    transition: 0.5s !important;
}

/* Que el bloque ocupe el ancho del dropdown móvil */
nav.active .uiv-nav { width: 100%; }
nav.active .uiv-container { justify-content: space-between; gap: 6px; }
@media (max-width: 768px) {
    .uiv-nav { height: auto; }
    .uiv-container { flex-wrap: wrap; padding: 0.4em 0.6em; }
    .uiv-outline, .uiv-rect { display: none; }
    .uiv-btn { padding: 0.6em 0.9em; }
}

/* Aviso de cookies */
.cookie-consent-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1200;
    padding: 16px;
}

.cookie-consent-backdrop.open {
    display: flex;
}

.cookie-card {
  max-width: 640px; /* más ancha para texto en español */
  width: 100%;
  padding: 1rem;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 20px 20px 30px rgba(0, 0, 0, .05);
}

.cookie-card .title {
  font-weight: 600;
  color: rgb(31 41 55);
}

.cookie-card .description {
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.4rem;
  color: rgb(75 85 99);
}

.cookie-card .description a {
  color: rgb(59 130 246);
}

.cookie-card .description a:hover {
  text-decoration-line: underline;
}

.cookie-card .actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 1rem;
  column-gap: 0.75rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cookie-card .pref {
  font-size: 0.85rem;
  line-height: 1rem;
  color: rgb(31 41 55);
  text-decoration-line: underline;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  background-color: transparent;
  cursor: pointer;
}

.cookie-card .pref:hover { color: rgb(156 163 175); }

.cookie-card .reject {
  font-size: 0.85rem;
  line-height: 1rem;
  background-color: transparent;
  font-weight: 500;
  border-radius: 0.5rem;
  color: rgb(75 85 99);
  padding: 0.625rem 1rem;
  border: 1px solid rgb(209 213 219);
  transition: all .15s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.cookie-card .reject:hover { 
  background-color: rgb(243 244 246);
  border-color: rgb(156 163 175);
}

.cookie-card .accept {
  font-size: 0.85rem;
  line-height: 1rem;
  background-color: rgb(17 24 39);
  font-weight: 500;
  border-radius: 0.5rem;
  color: #fff;
  padding: 0.625rem 1rem;
  border: none;
  transition: all .15s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.cookie-card .accept:hover { background-color: rgb(55 65 81); }

@media (min-width: 768px) {
  .cookie-consent-backdrop { align-items: center; }
}

/* Estilos para la sección de ubicación */
.location {
    padding: 40px 0 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.location-description {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.map-container {
    margin: 40px 0;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.map-container:hover {
    transform: translateY(-5px);
}

.location-info {
    margin-top: 40px;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.location-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.location-item:hover {
    transform: translateX(10px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.location-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    min-width: 30px;
}

.location-item span {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .location {
        padding: 30px 0 60px 0;
    }
    
    .location-description {
        font-size: 1rem;
        margin-bottom: 30px;
        padding: 0 20px;
    }
    
    .map-container {
        margin: 30px 0;
        margin-left: 20px;
        margin-right: 20px;
    }
    
    .map-container iframe {
        height: 350px;
    }
    
    .location-details {
        padding: 0 20px;
        gap: 15px;
    }
    
    .location-item {
        padding: 15px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .location-item i {
        font-size: 1.3rem;
    }
    
    .location-item span {
        font-size: 0.9rem;
    }
    
    /* Asegurar que el header tenga el z-index correcto */
    header {
        z-index: 1001;
    }
    
    /* Asegurar que el menú móvil esté por encima de todo */
    .mobile-menu {
        z-index: 1000;
    }
    
    /* Ajustes para el contenido principal en móviles */
    main.container {
        padding: 0 15px;
    }
    
    /* Ajustes para tablas en móviles */
    table {
        font-size: 0.9em;
    }
    
    /* Ajustes para formularios en móviles */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Evita zoom en iOS */
    }
}

/* ===================================
   PERSONALIZACIÓN CHATBOT N8N
   =================================== */

/* Botón flotante del chat (el icono que abre el chat) */
#n8n-chat .chat-window-toggle {
    background-color: #fd892b !important; /* Color morado de tu web */
    box-shadow: 0 4px 12px rgba(142, 124, 195, 0.4) !important;
}

#n8n-chat .chat-window-toggle:hover {
    background-color: #fd892b !important; /* Un tono más oscuro al pasar el ratón */
    transform: scale(1.05);
}

/* Encabezado del chat */
#n8n-chat .chat-header {
    background: linear-gradient(135deg, #fd892b 0%, #ffa255 100%) !important;
}

/* Mensajes del bot */
#n8n-chat .chat-message-from-bot {
    background-color: #f5f3f9 !important; /* Fondo claro morado */
    border-left: 3px solid #fd892b !important;
}

/* Mensajes del usuario */
#n8n-chat .chat-message-from-user {
    background-color: #fd892b !important; /* Morado de tu web */
    color: white !important;
}

/* Input de texto */
#n8n-chat .chat-input {
    border: 2px solid #e0dce8 !important;
    border-radius: 24px !important;
}

#n8n-chat .chat-input:focus {
    border-color: #ff9d4d !important;
    box-shadow: 0 0 0 3px rgba(142, 124, 195, 0.1) !important;
}

/* Botón de enviar mensaje */
#n8n-chat .chat-submit-button {
    background-color: #fd7505 !important;
    color: white !important;
}

#n8n-chat .chat-submit-button:hover {
    background-color: #fd7302 !important;
}

/* Scrollbar del chat */
#n8n-chat .chat-messages::-webkit-scrollbar-thumb {
    background-color: #fa9e52 !important;
}

/* ========== CONTACTO CSS ========== */

/* Contact Page Styles */
.contact-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info, .contact-form {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.contact-info h3, .contact-form h3 {
    color: #333;
    margin-bottom: 25px;
    font-size: 24px;
    position: relative;
    padding-bottom: 10px;
}

.contact-info h3:after, .contact-form h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #d81b60;
}

.info-item {
    display: flex;
    margin-bottom: 20px;
}

.info-item .icon {
    width: 50px;
    height: 50px;
    background-color: rgba(216, 27, 96, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d81b60;
    font-size: 20px;
    margin-right: 15px;
}

.info-item .text h4 {
    margin: 0 0 5px;
    font-size: 18px;
    color: #333;
}

.info-item .text p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

.social-media {
    margin-top: 30px;
}

.social-media h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.social-icons {
    display: flex;
}

.social-icon {
    width: 50px;
    height: 50px;
    background-color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    text-decoration: none;
    /* Eliminar todas las transiciones y efectos hover */
    transition: none !important;
}

.social-icon:hover {
    /* Eliminar todos los efectos hover */
    background-color: #333 !important;
    transform: none !important;
    box-shadow: none !important;
}

.social-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    /* Eliminar transiciones en las imágenes */
    transition: none !important;
    filter: none !important;
}

.social-icon:hover img {
    /* Eliminar efectos hover en las imágenes */
    transform: none !important;
    filter: none !important;
}


/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #d81b60;
    outline: none;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
}

.checkbox-group label {
    margin-bottom: 0;
}

.checkbox-group a {
    color: #d81b60;
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

button.btn {
    background-color: #d81b60;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-block;
    text-align: center;
    font-weight: 500;
}

button.btn:hover {
    background-color: #c2185b;
}

/* Map Section */
.map-section {
    padding: 60px 0;
}

.map-section h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    color: #333;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.map-placeholder img {
    width: 100%;
    height: auto;
    display: block;
}

/* FAQ Section */
.faq-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.faq-section h3 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 24px;
    color: #333;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h4 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.toggle-icon {
    font-size: 24px;
    color: #d81b60;
    transition: transform 0.3s ease;
}

.faq-item.active .toggle-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    margin: 0;
    padding-bottom: 20px;
    color: #666;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }

    .contact-info {
        margin-bottom: 30px;
        order: 2;
    }
    
    .contact-form {
        order: 1;
    }
}

@media (max-width: 768px) {
    .info-item .icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .info-item .text h4 {
        font-size: 16px;
    }

    .faq-question h4 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .contact-info, .contact-form {
        padding: 20px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
    }

    button.btn {
        width: 100%;
    }
}

/* ========== DISCIPLINAS CSS ========== */

/* Estilos específicos para la página de Disciplinas */

/* Banner de la página */
.page-banner {
    height: 40vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/sala-principal.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 80px;
}

.banner-content {
    max-width: 800px;
    padding: 0 20px;
}

.banner-content h1 {
    font-size: 3em;
    margin-bottom: 15px;
    color: white;
}

.banner-content p {
    font-size: 1.2em;
}

/* Introducción */
.intro {
    padding: 60px 0;
    background-color: white;
}

.intro-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.2em;
    line-height: 1.8;
}

/* Disciplinas */
.disciplines {
    padding: 40px 0 80px;
}

/* Asegurar que las tarjetas de disciplinas mantengan su contenido visible */
.discipline-item {
    visibility: visible;
}

.discipline-item.scroll-animate {
    visibility: visible;
}

/* Contenedor de las disciplinas en columna */
.disciplines-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.discipline-item {
    position: relative;
    width: 100%;
    min-height: 450px;
    background-image: linear-gradient(163deg, #ff7b00 0%, #ffab5c 100%);
    border-radius: 20px;
    transition: all .3s;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 24px;
    gap: 24px;
    color: rgb(61, 61, 61);
    overflow: hidden;
}

.discipline-item > div {
    margin: auto 0;
}

.discipline-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #ffffff;
    border-radius: 14px;
    transition: all .2s;
    z-index: 0;
}

.discipline-item:hover::before {
    transform: scale(0.98);
    border-radius: 20px;
}

.discipline-item:hover {
    box-shadow: 0px 0px 30px 1px rgba(255, 123, 0, 0.25);
}

/* Estilo reverse para alternar imagen y texto */
.discipline-item.reverse {
    flex-direction: row-reverse;
}

.discipline-image {
    flex: 0 0 40%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

.discipline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 8px;
}

.discipline-info {
    flex: 1;
    padding: 10px 10px 50px 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    gap: 16px;
    z-index: 1;
}

.discipline-info h2 {
    color: #ff7b00;
    margin: 0 0 12px;
    font-size: 1.4em;
    text-transform: none;
    font-weight: 700;
    line-height: 1.3;
    position: static;
}

.discipline-description {
    margin-bottom: 0;
    line-height: 1.7;
    font-size: 0.95rem;
}

.discipline-details {
    display: flex;
    margin-bottom: 0;
    gap: 20px;
    flex-wrap: wrap;
}

.detail {
    flex: 1;
}

.detail h3 {
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #ff7300;
    font-weight: 600;
}

.detail ul {
    list-style: none;
}

.detail ul li {
    margin-bottom: 6px;
    position: relative;
    padding-left: 15px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.detail ul li::before {
    content: '•';
    color: #ff7300;
    position: absolute;
    left: 0;
    font-size: 1.2em;
}

.card-button {
    width: 100%;
    border-radius: 1rem;
    border: none;
    background: linear-gradient(-45deg, #ffa672 0%, #ff7300 100%);
    color: #fff;
    font-size: 1rem;
    padding: 0.75rem 1.25rem;
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transform: none;
    transition: background 0.3s ease;
    margin-top: auto;
    z-index: 1;
    box-shadow: 0 8px 20px rgba(255, 123, 0, 0.25);
}

.card-button:hover {
    filter: brightness(1.05);
}

@media (min-width: 1024px) {
    .card-button {
        position: absolute;
        left: 50%;
        bottom: 30px;
        width: 60%;
        transform: translate(-50%, 120%);
        opacity: 0;
        transition: 0.3s ease-out;
        margin-top: 0;
        padding: 0.85rem 1.5rem;
        border-radius: 1.2rem;
        box-shadow: 0 12px 24px rgba(255, 123, 0, 0.25);
    }

    .discipline-item:hover .card-button {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    .discipline-info {
        padding-bottom: 140px;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .disciplines-grid {
        gap: 30px;
        padding: 0 15px;
    }

    .discipline-item {
        min-height: 420px;
        padding: 18px;
        gap: 18px;
    }

    .discipline-image {
        flex: 0 0 35%;
    }
}

@media (max-width: 768px) {
    .page-banner {
        height: 30vh;
    }

    .banner-content h1 {
        font-size: 2.5em;
    }

    .disciplines-grid {
        gap: 25px;
        padding: 0 10px;
    }

    .discipline-item {
        min-height: unset;
        flex-direction: column;
        padding: 18px;
        gap: 18px;
    }

    .discipline-item.reverse {
        flex-direction: column;
    }

    .discipline-image {
        flex: 0 0 200px;
        width: 100%;
    }

    .discipline-info {
        padding: 0;
        margin-top: 10px;
        padding-bottom: 30px;
        gap: 14px;
    }

    .discipline-info h2 {
        text-align: center;
        font-size: 1.25em;
        margin: 0;
    }

    .discipline-description {
        font-size: 0.9rem;
        margin-bottom: 0;
    }

    .discipline-details {
        flex-direction: column;
        gap: 10px;
    }

    .card-button {
        position: relative;
        transform: none;
        width: 100%;
        opacity: 1;
        display: block;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .page-banner {
        height: 25vh;
    }

    .banner-content h1 {
        font-size: 2em;
    }

    .disciplines-grid {
        padding: 0 5px;
    }

    .discipline-item {
        padding: 14px;
        gap: 14px;
    }

    .discipline-image {
        flex: 0 0 150px;
    }

    .discipline-info h2 {
        font-size: 1.2em;
    }

    .discipline-description {
        font-size: 0.85rem;
    }

    .card-button {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}

/* ========== HORARIOS CSS ========== */

/* Estilos específicos para la página de Horarios */

/* Banner de la página */
.page-banner {
    height: 40vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/calendario2025.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 80px;
}

.banner-content {
    max-width: 800px;
    padding: 0 20px;
}

.banner-content h1 {
    font-size: 3em;
    margin-bottom: 15px;
    color: white;
}

.banner-content p {
    font-size: 1.2em;
}

/* Filtros */
.filters {
    padding: 40px 0;
    background-color: white;
}

.filter-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 250px;
}

.filter-group label {
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--dark-color);
}

.filter-group select {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: white;
    font-family: 'Raleway', sans-serif;
    font-size: 1em;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(142, 124, 195, 0.2);
}

/* Horarios */
.schedule {
    padding: 20px 0 80px;
    background-color: var(--light-color);
}

.schedule-container {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.schedule-header {
    display: flex;
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.time-column, .day-column {
    padding: 15px;
    text-align: center;
}

.time-column {
    flex: 0 0 120px;
    background-color: var(--dark-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.day-column {
    flex: 1;
    min-width: 120px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.day-column.weekend {
    background-color: var(--accent-color);
}

.time-row {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.time-row:last-child {
    border-bottom: none;
}

.day-column.empty {
    background-color: #f9f9f9;
}

.class-item {
    padding: 10px;
    border-radius: 5px;
    margin: 5px;
    color: white;
    transition: all 0.3s ease;
}

.class-item:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.class-item h4 {
    margin-bottom: 5px;
    color: white;
    font-size: 1em;
}

.class-item p {
    margin-bottom: 5px;
    font-size: 0.85em;
    opacity: 0.9;
}

/* Colores para las diferentes disciplinas */
.class-item.ballet {
    background-color: #8e7cc3; /* Morado - Ballet */
}

.class-item.sevillanas {
    background-color: #e06666; /* Rojo - Sevillanas */
}

.class-item.flamenco {
    background-color: #cc0000; /* Rojo oscuro - Flamenco */
}

.class-item.infantil {
    background-color: #93c47d; /* Verde - Infantil */
}

.class-item.funky {
    background-color: #f6b26b; /* Naranja - Funky */
}

.class-item.contemporanea {
    background-color: #76a5af; /* Azul - Contemporánea */
}

.class-item.disco {
    background-color: #c27ba0; /* Rosa - Disco */
}

.class-item.caribenos {
    background-color: #6fa8dc; /* Azul claro - Caribeños */
}

.class-item.stretching {
    background-color: #9b59b6; /* Púrpura - Stretching */
}

.class-item.danza-vientre {
    background-color: #e67e22; /* Naranja oscuro - Danza del Vientre */
}

.class-item.funky-infantil {
    background-color: #f39c12; /* Naranja claro - Funky Infantil */
}

.class-item.ballet-infantil {
    background-color: #9b59b6; /* Púrpura claro - Ballet Infantil */
}

/* Información Adicional */
.additional-info {
    padding: 80px 0;
    background-color: white;
}

.info-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.info-column {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    background-color: var(--light-color);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.info-column h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8em;
}

.info-column ul {
    list-style: none;
    margin-bottom: 20px;
}

.info-column ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.info-column ul li::before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.price-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
}

.price-list li:last-child {
    border-bottom: none;
}

.price-value {
    font-weight: 600;
    color: var(--accent-color);
}

/* Sección de Precios */
.pricing-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.pricing-header {
    text-align: center;
    margin-bottom: 50px;
}

.pricing-header h2 {
    color: var(--primary-color);
    font-size: 2.5em;
    margin-bottom: 30px;
}

.pricing-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.info-card {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    min-width: 300px;
    max-width: 400px;
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3em;
}

.info-card p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.info-card ul {
    list-style: none;
    margin-top: 15px;
}

.info-card ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.info-card ul li::before {
    content: '→';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.pricing-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
    align-items: center;
}

.pricing-category {
    background-color: white;
    padding: 25px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 600px;
    transition: box-shadow 0.3s ease;
}

.pricing-category:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pricing-category h3 {
    color: var(--primary-color);
    margin: 0 0 15px;
    font-size: 1.3em;
    text-align: left;
    padding: 0;
    border: none;
}

.pricing-category .price-list {
    margin: 0;
}

.pricing-category .price-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.pricing-category .price-list li:last-child {
    border-bottom: none;
}

.pricing-category .price-item {
    font-weight: 500;
}

.pricing-category .price-value {
    font-weight: 700;
    color: #e67e22;
    font-size: 1.1em;
}

.pricing-notes {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    padding: 0 16px;
}

.pricing-notes h3 {
    color: var(--primary-color);
    font-size: 1.25em;
    margin: 18px 0 8px;
}

.pricing-notes h3:first-child {
    margin-top: 0;
}

.pricing-notes p {
    margin: 0 -60px 10px;
    line-height: 1.6;
    color: var(--text-color);
    text-align: center;
    white-space: nowrap;
}

/* Ajustes para móviles */
@media (max-width: 768px) {
    .pricing-notes {
        padding: 0 20px;
    }
    
    .pricing-notes p {
        margin: 0 0 15px 0;
        white-space: normal;
        text-align: left;
        font-size: 0.95em;
        line-height: 1.7;
        word-wrap: break-word;
    }
}

@media (max-width: 576px) {
    .pricing-notes {
        padding: 0 15px;
    }
    
    .pricing-notes p {
        font-size: 0.9em;
        line-height: 1.6;
        margin-bottom: 12px;
    }
}

/* Fix específico para el botón de reservar clase de prueba - Jerarquía de z-index */
.info-column {
    position: relative;
    z-index: 1;
}

.info-column .btn-primary {
    position: relative;
    z-index: 10;
}

.info-column .btn-primary::after {
    z-index: -1;
}

.info-column .btn-primary:hover {
    z-index: 15;
}

/* Responsive */
@media (max-width: 992px) {
    .schedule-container {
        overflow-x: auto;
    }

    .info-column {
        flex: 0 0 calc(50% - 15px);
    }
    
    .pricing-grid {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .page-banner {
        height: 30vh;
    }

    .banner-content h1 {
        font-size: 2.5em;
    }

    .filter-group {
        min-width: 100%;
    }

    .info-column {
        flex: 0 0 100%;
    }
    
    .pricing-info {
        flex-direction: column;
        align-items: center;
    }
    
    .info-card {
        min-width: 100%;
        max-width: 100%;
    }
    
    .pricing-header h2 {
        font-size: 2em;
    }
    
    /* Mejoras para el horario en móviles */
    .schedule-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .schedule-header {
        min-width: 600px;
    }
    
    .time-row {
        min-width: 600px;
    }
    
    .time-column {
        flex: 0 0 100px;
        font-size: 0.9em;
        padding: 12px 8px;
    }
    
    .day-column {
        min-width: 100px;
        padding: 10px 5px;
    }
    
    .class-item {
        padding: 12px 8px;
        margin: 4px;
        font-size: 0.85em;
    }
    
    .class-item h4 {
        font-size: 0.95em;
        margin-bottom: 6px;
    }
    
    .class-item p {
        font-size: 0.8em;
        margin-bottom: 4px;
        line-height: 1.3;
    }
}

@media (max-width: 576px) {
    .page-banner {
        height: 25vh;
    }

    .banner-content h1 {
        font-size: 2em;
    }

    .time-column {
        flex: 0 0 80px;
        font-size: 0.85em;
        padding: 10px 6px;
    }
    
    .day-column {
        min-width: 90px;
        padding: 8px 4px;
    }
    
    .class-item {
        padding: 10px 6px;
        margin: 3px;
        font-size: 0.8em;
    }
    
    .class-item h4 {
        font-size: 0.9em;
        margin-bottom: 5px;
    }
    
    .class-item p {
        font-size: 0.75em;
        margin-bottom: 3px;
    }
    
    .pricing-grid {
        gap: 15px;
    }
    
    .pricing-category {
        padding: 20px 25px;
    }
}

/* ========== QUIENES SOMOS CSS ========== */

/* Estilos específicos para la página de Quiénes Somos */

/* Banner de la página */
.page-banner {
    height: 40vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/sala-principal.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 80px;
}

.banner-content {
    max-width: 800px;
    padding: 0 20px;
}

.banner-content h1 {
    font-size: 3em;
    margin-bottom: 15px;
    color: white;
}

.banner-content p {
    font-size: 1.2em;
}

/* Historia */
.history {
    padding: 80px 0;
    background-color: white;
}

.history-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.history-text {
    flex: 1;
}

.history-text h2 {
    color: var(--primary-color);
    font-size: 2.5em;
    margin-bottom: 30px;
}

.history-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.feature-list {
    list-style: none;
    margin: 25px 0 0;
    padding: 0;
    display: grid;
    gap: 15px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--light-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.feature-list i {
    color: var(--primary-color);
    font-size: 1.4em;
}

.feature-list span {
    font-weight: 600;
    color: var(--dark-color);
}

.history-image {
    flex: 1;
    max-width: 500px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.history-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.history-image:hover img {
    transform: scale(1.05);
}

/* Valores */
.values {
    padding: 80px 0;
    background-color: var(--light-color);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.value-card {
    background-color: white;
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
}

.value-icon {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.value-card h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1.5em;
}

.value-card p {
    line-height: 1.6;
}

/* Instalaciones */
.facilities {
    padding: 80px 0;
    background-color: white;
}

.facilities-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.facilities-text {
    flex: 1;
}

.facilities-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.facilities-text ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.facilities-text ul li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.facilities-gallery {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}



/* Responsive */
@media (max-width: 992px) {
    .history-content {
        flex-direction: column;
    }

    .history-image {
        max-width: 100%;
        order: -1;
    }

    .facilities-content {
        flex-direction: column;
    }

}

@media (max-width: 768px) {
    .page-banner {
        height: 30vh;
    }

    .banner-content h1 {
        font-size: 2.5em;
    }

    .history-text h2 {
        font-size: 2em;
    }

    .facilities-gallery {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 576px) {
    .page-banner {
        height: 25vh;
    }

    .banner-content h1 {
        font-size: 2em;
    }

}

/* ========== MULTIMEDIA CSS ========== */

/* Multimedia Page Styles */
.multimedia-content {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.filter-btn {
    background-color: #fff;
    border: 1px solid #ddd;
    color: #333;
    padding: 8px 20px;
    margin: 0 5px 10px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.filter-btn:hover, .filter-btn.active {
    background-color: #d81b60;
    color: white;
    border-color: #d81b60;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .overlay {
    transform: translateY(0);
}

.overlay h3 {
    margin: 0 0 5px;
    font-size: 18px;
}

.overlay p {
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .filter-btn {
        padding: 6px 15px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr;
    }

    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }

    .filter-btn {
        width: 80%;
        margin-bottom: 8px;
    }
}

