/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #1770B8;
    --primary-yellow: #ffee00fb;
    --secondary-blue: #31A9E0;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #333333;
    --text-gray: #666666;
    --border-gray: #e0e0e0;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    scroll-behavior: smooth;
}

/* Scroll padding for fixed header */
html {
    scroll-padding-top: 120px;
}

/* Ensure target sections have proper spacing */
.dances-subsection[id],
.dances-section[id] {
    scroll-margin-top: 120px;
}

/* Hero section container */
.bailes-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Title container - positioned on the left */
.title-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 3rem;
    /* max-width: 50%; */
}

@media (min-width: 1201px) {
    .bailes-hero .title-container {
        margin-top: 3rem;
    }
}

.title-wrapper h1 {
    font-size: 2.8rem;
    font-weight: bold;
    color: var(--primary-blue);
    margin-top: 1.4rem;
    line-height: 1.2;
}

/* 
.description-wrapper {
    padding-left: 4rem; 
} 
*/

.description-wrapper p {
    font-size: 0.7rem;
    color: var(--text-gray);
    line-height: 1.5;
    max-width: 80%;
}

/* Row containers */
.int-style-container,
.american-style-container {
    display: grid;
    grid-template-columns: 42px 1fr 2fr;
    gap: 0.7rem;
    margin-bottom: 1.4rem;
    align-items: start;
    padding: 1.4rem;
    border-radius: 8.4px;
}

/* Estilo Internacional - Blue theme */
.int-style-container {
    background: linear-gradient(135deg, 
        #0F4C75 0%, 
        var(--primary-blue) 25%, 
        var(--secondary-blue) 50%, 
        #4A90E2 75%, 
        #87CEEB 100%);
    color: var(--white);
    box-shadow: 0 8px 32px rgba(23, 112, 184, 0.3);
}

.int-style-container .col-two.style-name-wrapper h2,
.int-style-container .col-two.style-name-wrapper p {
    color: var(--white);
}

.int-style-container .col-three .sub-wrapper {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 255, 255, 0.85) 100%);
    border-left: 4px solid var(--primary-yellow);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.int-style-container .col-three .sub-wrapper h3 {
    color: var(--primary-blue);
}

.int-style-container .col-three .sub-wrapper p {
    color: var(--text-gray);
}

/* Estilo Americano - Purple/Red theme */
.american-style-container {
    background: linear-gradient(135deg, 
        #8B5CF6 0%, 
        #A855F7 20%, 
        #C084FC 40%, 
        #E879F9 60%, 
        #F472B6 80%, 
        #FB7185 100%);
    color: var(--white);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.3);
}

.american-style-container .col-two.style-name-wrapper h2 {
    color: var(--white);
}

.american-style-container .col-two.style-name-wrapper p {
    color: var(--white);
    opacity: 0.9;
}

.american-style-container .col-three .sub-wrapper {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 255, 255, 0.85) 100%);
    border-left: 4px solid var(--primary-blue);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.2);
}

.american-style-container .col-three .sub-wrapper h3 {
    color: #8B5CF6;
}

.american-style-container .col-three .sub-wrapper p {
    color: var(--text-gray);
}

/* Column one - vertical line */
.col-one.line-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
}

/* Vertical line for Estilo Internacional */
.int-style-container .col-one.line-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, 
        var(--primary-yellow) 0%, 
        #FFD700 30%, 
        #FFA500 60%, 
        rgba(255, 255, 255, 0.8) 100%);
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(255, 237, 0, 0.5);
}

/* Vertical line for Estilo Americano */
.american-style-container .col-one.line-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, 
        #FBBF24 0%, 
        #F59E0B 30%, 
        #EF4444 60%, 
        rgba(255, 255, 255, 0.8) 100%);
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}

/* Column two - main title of the row */
.col-two.style-name-wrapper h2 {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 0.14rem;
    line-height: 1.3;
}

.col-two.style-name-wrapper p {
    font-size: 0.77rem;
    color: var(--text-gray);
    line-height: 1.4;
    max-width: 90%;
}

/* Column three - sub-categories in horizontal rows */
.col-three.sub-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
}

.col-three .sub-wrapper {
    background: var(--white);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-yellow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.col-three .sub-wrapper:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.col-three .sub-wrapper h3 {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--dark-gray);
}

.col-three .sub-wrapper p {
    font-size: 0.8rem;
    color: var(--text-gray);
    line-height: 1.4;
}

/* Title row with bailes link */
.title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    min-height: 2.5rem;
}

.title-row h3 {
    margin: 0;
    line-height: 1.2;
    display: flex;
    align-items: center;
}

.bailes-link {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-gray);
    transition: all 0.3s ease;
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    height: fit-content;
    line-height: 1.2;
}

.bailes-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.bailes-link:hover {
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(23, 112, 184, 0.3);
}

.bailes-link:hover::before {
    left: 100%;
}

.click-icon {
    transition: all 0.3s ease;
    width: 14px;
    height: 14px;
}

.bailes-link:hover .click-icon {
    transform: translate(2px, -2px) scale(1.1);
}

/* ========================================
   DANCES SECTIONS STYLES (from all-dances-plugin)
   ======================================== */

/* Container */
.dances-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Tabs wrapper */
.dances-tabbed-wrapper {
    padding: 40px 0 0;
    background: var(--white);
}

.dances-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 0 auto 32px;
    padding: 0 20px;
}

.dances-tab {
    border: 1px solid var(--primary-blue);
    background: var(--white);
    color: var(--primary-blue);
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.01em;
    box-shadow: 0 6px 18px rgba(23, 112, 184, 0.08);
}

.dances-tab:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(23, 112, 184, 0.14);
}

.dances-tab:focus-visible {
    outline: 2px solid var(--secondary-blue);
    outline-offset: 2px;
}

.dances-tab.is-active {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    border-color: transparent;
}

/* Estilo Americano tab - uses purple/pink gradient from american-style-container */
.dances-tab[data-target="estilo-americano"].is-active {
    background: linear-gradient(135deg, 
        #8B5CF6 0%, 
        #A855F7 20%, 
        #C084FC 40%, 
        #E879F9 60%, 
        #F472B6 80%, 
        #FB7185 100%);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.3);
}

.dances-tab[data-target="estilo-americano"]:hover {
    box-shadow: 0 10px 24px rgba(139, 92, 246, 0.2);
}

.dances-tab[data-target="estilo-americano"]:focus-visible {
    outline: 2px solid #8B5CF6;
    outline-offset: 2px;
}

/* Inactive Estilo Americano tab - purple border to match theme */
.dances-tab[data-target="estilo-americano"]:not(.is-active) {
    border-color: #8B5CF6;
    color: #8B5CF6;
}

.dances-tab[data-target="estilo-americano"]:not(.is-active):hover {
    background: rgba(139, 92, 246, 0.05);
    box-shadow: 0 6px 18px rgba(139, 92, 246, 0.12);
}

.dances-tab-panels {
    position: relative;
}

.dances-tab-panel {
    display: none;
}

.dances-tab-panel.is-active {
    display: block;
}

/* Section Styling */
.dances-section {
    padding: 80px 0;
    position: relative;
    overflow: visible;
}

.dances-section:nth-child(odd) {
    background: var(--light-gray);
}

.dances-section:nth-child(even) {
    background: var(--white);
}

/* Estilo Americano Section - Purple/Pink theme matching tab button */
.dances-section.estilo-americano {
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.05) 0%, 
        rgba(168, 85, 247, 0.08) 20%, 
        rgba(192, 132, 252, 0.06) 40%, 
        rgba(232, 121, 249, 0.08) 60%, 
        rgba(244, 114, 182, 0.06) 80%, 
        rgba(251, 113, 133, 0.05) 100%) !important;
    position: relative;
}

.dances-section.estilo-americano::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, 
        #8B5CF6 0%, 
        #A855F7 20%, 
        #C084FC 40%, 
        #E879F9 60%, 
        #F472B6 80%, 
        #FB7185 100%);
    z-index: 1;
}

/* Typography */
.dances-main-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--primary-blue);
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.dances-section.estilo-americano .dances-main-title {
    color: #8B5CF6;
    text-shadow: 0 2px 4px rgba(139, 92, 246, 0.1);
}

.dances-main-title.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.dances-subtitle {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.dances-section.estilo-americano .dances-subtitle {
    color: #A855F7;
}

.dances-subtitle.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.dances-subtitle::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    border-radius: 2px;
}

/* Estilo Americano section - decoration line colors */
.dances-section.estilo-americano .dances-subtitle::after {
    background: linear-gradient(135deg, 
        #8B5CF6 0%, 
        #A855F7 20%, 
        #C084FC 40%, 
        #E879F9 60%, 
        #F472B6 80%, 
        #FB7185 100%);
}

/* Subsection Spacing */
.dances-subsection {
    margin-bottom: 4rem;
    overflow: visible;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Ensure parent containers don't block scrolling */
.dances-container {
    overflow-x: hidden;
    overflow-y: visible;
    width: 100%;
    max-width: 100%;
}

/* Grid Layouts */
.dances-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
    justify-items: center;
    width: 100%;
}

.dances-grid.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Ballroom Grid - 5 items in one row */
.ballroom-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    width: 100%;
    margin: 0 auto;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    touch-action: pan-x pan-y pinch-zoom;
    scroll-behavior: smooth;
    will-change: scroll-position;
    justify-content: center;
    padding: 10px 0;
}

.ballroom-grid::-webkit-scrollbar {
    display: none;
}

.ballroom-grid .dance-item {
    flex: 0 0 auto;
    width: 196px;
    min-width: 196px;
    max-width: 196px;
    height: 196px;
    border-radius: 8.4px;
    margin: 0;
    scroll-snap-align: center;
    flex-shrink: 0;
    aspect-ratio: 1;
}

/* Latin Grid - 5 items in one row */
.latin-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    width: 100%;
    margin: 0 auto;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    touch-action: pan-x pan-y pinch-zoom;
    scroll-behavior: smooth;
    will-change: scroll-position;
    justify-content: center;
    padding: 10px 0;
}

.latin-grid::-webkit-scrollbar {
    display: none;
}

.latin-grid .dance-item {
    flex: 0 0 auto;
    width: 196px;
    min-width: 196px;
    max-width: 196px;
    height: 196px;
    border-radius: 8.4px;
    margin: 0;
    scroll-snap-align: center;
    flex-shrink: 0;
    aspect-ratio: 1;
}

/* Smooth Grid - 4 items */
.smooth-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 900px;
    margin: 0 auto;
    gap: 20px;
    justify-items: center;
    align-items: start;
}

.smooth-grid .dance-item {
    width: 196px;
    max-width: 196px;
    height: 196px;
    aspect-ratio: 1;
}

/* Rhythm Grid - 5 items in one row */
.rhythm-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    width: 100%;
    margin: 0 auto;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    touch-action: pan-x pan-y pinch-zoom;
    scroll-behavior: smooth;
    will-change: scroll-position;
    justify-content: center;
    padding: 10px 0;
}

.rhythm-grid::-webkit-scrollbar {
    display: none;
}

.rhythm-grid .dance-item {
    flex: 0 0 auto;
    width: 196px;
    min-width: 196px;
    max-width: 196px;
    height: 196px;
    border-radius: 8.4px;
    margin: 0;
    scroll-snap-align: center;
    flex-shrink: 0;
    aspect-ratio: 1;
}

/* Nightclub Grid - 7 items (always scrollable on all screen sizes) */
.nightclub-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    width: 100%;
    margin: 0 auto;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-blue) transparent;
    -ms-overflow-style: -ms-autohiding-scrollbar;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    touch-action: pan-x;
    scroll-behavior: smooth;
    will-change: scroll-position;
    justify-content: flex-start;
    padding: 10px 0;
    margin: 0 -15px;
    padding-left: 15px;
    padding-right: 15px;
}

/* Hide carousel navigation arrows */
.carousel-nav,
.carousel-prev,
.carousel-next {
    display: none !important;
}

.nightclub-grid::-webkit-scrollbar {
    height: 4px;
}

.nightclub-grid::-webkit-scrollbar-track {
    background: transparent;
}

.nightclub-grid::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 2px;
}

/* Estilo Americano section - scrollbar colors for all grids */
.dances-section.estilo-americano .smooth-grid,
.dances-section.estilo-americano .rhythm-grid,
.dances-section.estilo-americano .nightclub-grid {
    scrollbar-color: #8B5CF6 transparent;
}

/* Estilo Americano section - webkit scrollbar colors */
.dances-section.estilo-americano .smooth-grid::-webkit-scrollbar,
.dances-section.estilo-americano .rhythm-grid::-webkit-scrollbar,
.dances-section.estilo-americano .nightclub-grid::-webkit-scrollbar {
    height: 4px;
}

.dances-section.estilo-americano .smooth-grid::-webkit-scrollbar-track,
.dances-section.estilo-americano .rhythm-grid::-webkit-scrollbar-track,
.dances-section.estilo-americano .nightclub-grid::-webkit-scrollbar-track {
    background: transparent;
}

.dances-section.estilo-americano .smooth-grid::-webkit-scrollbar-thumb,
.dances-section.estilo-americano .rhythm-grid::-webkit-scrollbar-thumb,
.dances-section.estilo-americano .nightclub-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, 
        #8B5CF6 0%, 
        #A855F7 20%, 
        #C084FC 40%, 
        #E879F9 60%, 
        #F472B6 80%, 
        #FB7185 100%);
    border-radius: 2px;
}

.nightclub-grid .dance-item {
    flex: 0 0 auto;
    width: 196px;
    min-width: 196px;
    max-width: 196px;
    height: 196px;
    border-radius: 8.4px;
    margin: 0;
    scroll-snap-align: center;
    flex-shrink: 0;
    aspect-ratio: 1;
}

/* Dance Item Styling */
.dance-item {
    background: var(--white);
    border-radius: 8.4px;
    overflow: hidden;
    box-shadow: 0 2.8px 14px rgba(23, 112, 184, 0.1);
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    opacity: 0;
    transform: translateY(21px);
    min-height: 196px;
    height: 196px;
    display: flex;
    flex-direction: column;
    width: 196px;
    max-width: 196px;
    margin: 0 auto;
    aspect-ratio: 1;
}

/* White space area below image - container for title */
.dance-item > .dance-title {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

.dance-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.dance-item:hover {
    transform: translateY(-2.8px) scale(1.01);
    box-shadow: 0 5.6px 17.5px rgba(23, 112, 184, 0.15);
}

.dance-item:active {
    transform: translateY(-4px) scale(0.98);
}

/* Dance Image */
.dance-image {
    height: 150px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    flex-shrink: 0;
    width: 100%;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.placeholder-image::after {
    content: "🎭";
    font-size: 2.1rem;
    opacity: 0.7;
    color: var(--white);
    transition: all 0.2s ease;
}

.dance-item:hover .placeholder-image {
    transform: scale(1.1);
}

.dance-item:hover .placeholder-image::after {
    transform: scale(1.2);
    opacity: 1;
}

/* Dance Title */
.dance-title {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin: 0;
    padding: 0 0.7rem;
    text-align: center;
    transition: color 0.2s ease;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 0;
}

.dance-item:hover .dance-title {
    color: var(--secondary-blue);
}

/* Estilo Americano section - card title colors */
.dances-section.estilo-americano .dance-title {
    color: #8B5CF6;
}

.dances-section.estilo-americano .dance-item:hover .dance-title {
    color: #A855F7;
}

/* Dance Info Overlay (Hidden by default, shown on hover/click) */
.dance-info {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0.7rem;
    opacity: 0;
    transition: all 0.15s ease;
    text-align: center;
    backdrop-filter: blur(2px);
}

.dance-info::before {
    content: attr(data-dance-name);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 0 1.4px 2.8px rgba(0, 0, 0, 0.7);
    margin-bottom: 0.7rem;
    display: block;
}

.dance-item:hover .dance-info,
.dance-item.active .dance-info {
    opacity: 1;
}

.dance-info p {
    margin: 0;
    color: var(--white);
    font-size: 0.85rem;
    line-height: 1.6;
    text-shadow: 0 0.7px 1.4px rgba(0, 0, 0, 0.5);
}

/* Breaking Section - Match Hero Section Styling */
.breaking {
    background: linear-gradient(135deg, 
        #0F4C75 0%, 
        var(--primary-blue) 25%, 
        var(--secondary-blue) 50%, 
        #4A90E2 75%, 
        #87CEEB 100%);
    color: var(--white) !important;
    box-shadow: 0 8px 32px rgba(23, 112, 184, 0.3);
    position: relative;
    overflow: hidden;
}

.breaking * {
    color: var(--dark-gray) !important;
}

.breaking::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.breaking .dances-main-title {
    color: var(--dark-gray) !important;
    text-shadow: none;
    position: relative;
    z-index: 2;
}

.breaking-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.breaking-content.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.breaking-content p {
    font-size: 1.3rem;
    line-height: 1.8;
    margin: 0;
    color: var(--dark-gray) !important;
    text-shadow: none;
    font-weight: 500;
}

/* ========================================
   ANIMATION KEYFRAMES
   ======================================== */

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}


@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Staggered Animation Classes */
.dance-item:nth-child(1) { transition-delay: 0.1s; }
.dance-item:nth-child(2) { transition-delay: 0.2s; }
.dance-item:nth-child(3) { transition-delay: 0.3s; }
.dance-item:nth-child(4) { transition-delay: 0.4s; }
.dance-item:nth-child(5) { transition-delay: 0.5s; }
.dance-item:nth-child(6) { transition-delay: 0.6s; }
.dance-item:nth-child(7) { transition-delay: 0.7s; }

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1200px) {
    .bailes-hero {
        padding: 2.5rem;
    }
    
    .title-wrapper h1 {
        font-size: 3rem;
    }
    
    .col-two.style-name-wrapper h2 {
        font-size: 2rem;
    }
    
    .col-three.sub-wrapper {
        gap: 0.8rem;
    }
}

@media (max-width: 1024px) {
    .col-three.sub-wrapper {
        flex-direction: column;
        gap: 1rem;
    }
    
    .title-row {
        margin-bottom: 0.5rem;
    }
}

/* Horizontal scrolling for screens less than 1145px */
@media (max-width: 1145px) {
    /* Horizontal scrolling for 5-item grids */
    .ballroom-grid,
    .latin-grid,
    .rhythm-grid {
        gap: 15px;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: thin;
        scrollbar-color: var(--primary-blue) transparent;
        -ms-overflow-style: -ms-autohiding-scrollbar;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        touch-action: pan-x;
        scroll-behavior: smooth;
        will-change: scroll-position;
        padding: 10px 0;
        margin: 0 -15px;
        padding-left: 15px;
        padding-right: 15px;
        justify-content: flex-start;
    }
    
    .ballroom-grid::-webkit-scrollbar,
    .latin-grid::-webkit-scrollbar,
    .rhythm-grid::-webkit-scrollbar {
        height: 4px;
    }
    
    .ballroom-grid::-webkit-scrollbar-track,
    .latin-grid::-webkit-scrollbar-track,
    .rhythm-grid::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .ballroom-grid::-webkit-scrollbar-thumb,
    .latin-grid::-webkit-scrollbar-thumb,
    .rhythm-grid::-webkit-scrollbar-thumb {
        background: var(--primary-blue);
        border-radius: 2px;
    }
    
    /* Estilo Americano section - scrollbar colors for responsive breakpoints */
    .dances-section.estilo-americano .smooth-grid::-webkit-scrollbar-thumb,
    .dances-section.estilo-americano .rhythm-grid::-webkit-scrollbar-thumb,
    .dances-section.estilo-americano .nightclub-grid::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, 
            #8B5CF6 0%, 
            #A855F7 20%, 
            #C084FC 40%, 
            #E879F9 60%, 
            #F472B6 80%, 
            #FB7185 100%);
    }
    
    .dances-section.estilo-americano .smooth-grid,
    .dances-section.estilo-americano .rhythm-grid {
        scrollbar-color: #8B5CF6 transparent;
    }
    
    .ballroom-grid .dance-item,
    .latin-grid .dance-item,
    .rhythm-grid .dance-item {
        flex: 0 0 auto;
        width: 180px;
        min-width: 180px;
        max-width: 180px;
        height: 180px;
        scroll-snap-align: center;
        flex-shrink: 0;
        margin-right: 0;
        aspect-ratio: 1;
    }
    
    /* Ensure dance subsections don't overflow */
    .dances-subsection {
        overflow-x: visible;
        overflow-y: visible;
        width: 100%;
    }
    
    .dances-container {
        overflow-x: hidden;
        width: 100%;
    }
    
    /* Mobile: Smaller cards for nightclub grid */
    .nightclub-grid {
        gap: 15px;
    }
    
    .nightclub-grid .dance-item {
        width: 180px;
        min-width: 180px;
        max-width: 180px;
        height: 180px;
    }
    
    /* 2 columns for smooth grid */
    .smooth-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 15px;
        max-width: 100%;
        justify-items: center;
    }
    
    .smooth-grid .dance-item {
        width: 180px;
        max-width: 180px;
        height: 180px;
        aspect-ratio: 1;
    }
}

/* Tablet optimizations for smooth grid (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .smooth-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        max-width: 100%;
        padding: 0 20px;
        justify-items: center;
    }
    
    .smooth-grid .dance-item {
        width: 200px;
        max-width: 200px;
        height: 200px;
        aspect-ratio: 1;
    }
    
    /* Ensure cards are properly centered on tablet */
    .dances-subsection {
        padding: 0 10px;
    }
}

@media (max-width: 768px) {
    .bailes-hero {
        padding: 1rem;
        max-height: none;
        min-height: auto;
    }
    
    .title-container {
        max-width: 100%;
        margin-bottom: 2rem;
    }
    
    .title-wrapper h1 {
        font-size: 2.5rem;
    }
    
    .description-wrapper {
        padding-left: 1rem;
    }
    
    .int-style-container,
    .american-style-container {
        grid-template-columns: 40px 1fr;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .col-three.sub-wrapper {
        grid-column: 1 / -1;
        margin-top: 1rem;
        flex-direction: column;
    }
    
    .col-three .sub-wrapper {
        padding: 1rem;
    }
    
    .title-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
    }
    
    .bailes-link {
        flex-shrink: 0;
    }
    
    .dances-container {
        padding: 0 15px;
    }
    
    .dances-section {
        padding: 60px 0;
    }
    
    .dances-main-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .dances-subtitle {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .dance-item {
        min-height: 180px;
        height: 180px;
    }
    
    .dance-image {
        height: 140px;
        flex-shrink: 0;
    }
    
    .dance-title {
        font-size: 0.77rem;
    }
    
    .dance-info p {
        font-size: 0.595rem;
    }
}

@media (max-width: 480px) {
    .title-wrapper h1 {
        font-size: 2rem;
    }
    
    .col-two.style-name-wrapper h2 {
        font-size: 1.5rem;
    }
    
    .col-three .sub-wrapper h3 {
        font-size: 1.2rem;
    }
    
    .bailes-link {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    .click-icon {
        width: 12px;
        height: 12px;
    }
    
    .dances-container {
        padding: 0 10px;
    }
    
    .dances-main-title {
        font-size: 1.8rem;
    }
    
    .dances-subtitle {
        font-size: 1.3rem;
    }
    
    .dance-item {
        min-height: 160px;
        height: 160px;
    }
    
    .dance-image {
        height: 120px;
        flex-shrink: 0;
    }
    
    .dance-title {
        font-size: 0.7rem;
        margin: 0.56rem 0.56rem 0.28rem;
    }
    
    /* Very small screens - ensure proper sizing */
    .ballroom-grid .dance-item,
    .latin-grid .dance-item,
    .rhythm-grid .dance-item,
    .nightclub-grid .dance-item {
        width: 160px;
        min-width: 160px;
        max-width: 160px;
        height: 160px;
    }
    
    .smooth-grid .dance-item {
        width: 160px;
        max-width: 160px;
        height: 160px;
    }
    
    /* Ensure containers don't overflow */
    .dances-subsection {
        overflow-x: visible;
        width: 100%;
        max-width: 100%;
    }
    
    .dances-container {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }
    
    .dance-info {
        padding: 0 0.8rem 0.8rem;
    }
    
    .dance-item:hover .dance-info,
    .dance-item.active .dance-info {
        padding: 0.8rem;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

.dance-item:focus,
.hero-nav-item:focus {
    outline: 3px solid var(--primary-yellow);
    outline-offset: 2px;
}

.dance-item:focus .dance-title,
.hero-nav-item:focus .nav-title {
    color: var(--primary-yellow);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .dance-item,
    .hero-nav-item {
        border: 2px solid var(--primary-blue);
    }
    
    .dance-item:hover,
    .hero-nav-item:hover {
        border-color: var(--secondary-blue);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .dance-item,
    .dances-main-title,
    .dances-subtitle,
    .dances-grid,
    .breaking-content,
    .hero-title,
    .hero-subtitle,
    .hero-nav-item {
        transition: none;
        animation: none;
    }
    
    .dance-item:hover,
    .hero-nav-item:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    .bailes-hero-website-container {
        background: white !important;
        color: black !important;
    }
    
    .bailes-hero {
        background: white !important;
        color: black !important;
        min-height: auto;
    }
    
    .dance-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .dance-image {
        display: none;
    }
    
    .hero-nav-item {
        background: white !important;
        color: black !important;
        border: 1px solid #ccc;
    }
}

/* ========================================
   DANCE STYLE ACCORDIONS
   ======================================== */

.dance-accordion-container {
    margin-top: 40px;
    margin-bottom: 40px;
}

.dance-accordion-item {
    background: var(--white, #ffffff);
    border: 1px solid var(--border-gray, #e0e0e0);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    transition: box-shadow 0.3s ease;
}

.dance-accordion-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.dance-accordion-item.active {
    border-color: var(--primary-blue, #1770B8);
    box-shadow: 0 4px 16px rgba(23, 112, 184, 0.15);
}

.dance-accordion-header {
    width: 100%;
    padding: 20px 24px;
    background: var(--white, #ffffff);
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-gray, #333333);
}

.dance-accordion-header:hover {
    background: var(--light-gray, #f8f9fa);
}

.dance-accordion-header[aria-expanded="true"] {
    background: var(--primary-blue, #1770B8);
    color: var(--white, #ffffff);
}

.dance-accordion-header[aria-expanded="true"] .dance-accordion-icon {
    transform: rotate(180deg);
}

.dance-accordion-title {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.dance-accordion-icon {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    color: inherit;
    transform-origin: center;
}

.dance-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--white, #ffffff);
    padding: 0;
}

.dance-accordion-content.active {
    max-height: none;
    padding: 0;
}

.dance-accordion-content-inner {
    padding: 24px;
    line-height: 1.8;
    color: var(--text-gray, #666666);
}

.dance-accordion-content-inner p {
    margin-bottom: 16px;
}

.dance-accordion-content-inner p:last-child {
    margin-bottom: 0;
}

/* Judges, Trainers, and Schools Grids */
.judges-grid,
.trainers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

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

.judge-item,
.trainer-item,
.school-item {
    background: var(--white, #ffffff);
    border: 1px solid var(--border-gray, #e0e0e0);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.judge-item:hover,
.trainer-item:hover,
.school-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.judge-image,
.trainer-image,
.school-image {
    margin-bottom: 12px;
    border-radius: 6px;
    overflow: hidden;
}

.judge-image img,
.trainer-image img,
.school-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Judge card layout */
.judge-item {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.judge-item .judge-image {
    flex-shrink: 0;
    margin-bottom: 0;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--light-gray, #f8f9fa);
}

.judge-item .judge-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.judge-item .judge-info {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.judge-item .judge-info h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    color: var(--primary-blue, #1770B8);
    letter-spacing: 0.02em;
}

.judge-item .judge-info .judge-certification {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(23, 112, 184, 0.12);
    color: var(--primary-blue, #1770B8);
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0;
    width: fit-content;
    letter-spacing: 0.02em;
}

.judge-item .judge-info p:not(.judge-certification) {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-gray, #666666);
    margin: 0;
}

/* School card layout */
.school-card-inner {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.school-logo-wrap {
    flex-shrink: 0;
    padding: 20px 20px 0;
    text-align: center;
    background: var(--light-gray, #f8f9fa);
    border-bottom: 1px solid var(--border-gray, #e0e0e0);
}

.school-logo-img {
    width: 100%;
    max-width: 140px;
    height: auto;
    max-height: 100px;
    object-fit: contain;
    display: inline-block;
}

.school-details {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.school-name {
    color: var(--primary-blue, #1770B8);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.school-address,
.school-trainers,
.school-style {
    font-size: 0.9rem;
    color: var(--text-gray, #666666);
    margin: 0;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.school-address i,
.school-trainers i,
.school-style i {
    flex-shrink: 0;
    color: var(--primary-blue, #1770B8);
    width: 18px;
    text-align: center;
    margin-top: 2px;
}

.school-style-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    background: rgba(23, 112, 184, 0.12);
    color: var(--primary-blue, #1770B8);
    font-size: 0.85rem;
    font-weight: 600;
}

.school-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.school-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--light-gray, #f8f9fa);
    color: var(--primary-blue, #1770B8);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.school-link:hover {
    background: var(--primary-blue, #1770B8);
    color: var(--white, #ffffff);
    transform: scale(1.08);
}

.school-link-ig:hover {
    background: #E1306C;
    color: #fff;
}

.school-link-whatsapp:hover {
    background: #25D366;
    color: #fff;
}

.school-description {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-gray, #e0e0e0);
}

.school-description p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 8px 0;
    color: var(--text-gray, #666666);
}

.school-description p:last-child {
    margin-bottom: 0;
}

.judge-info h4,
.trainer-info h4 {
    color: var(--primary-blue, #1770B8);
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.judge-info p,
.trainer-info p,
.school-info p {
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--text-gray, #666666);
}

.school-info p i {
    margin-right: 8px;
    color: var(--primary-blue, #1770B8);
    width: 16px;
}

.school-info a {
    color: var(--primary-blue, #1770B8);
    text-decoration: none;
}

.school-info a:hover {
    text-decoration: underline;
}

.no-data {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-gray, #666666);
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dance-accordion-container {
        margin-top: 30px;
        margin-bottom: 30px;
    }
    
    .dance-accordion-header {
        padding: 16px 20px;
        font-size: 1rem;
    }
    
    .dance-accordion-title {
        font-size: 1rem;
    }
    
    .dance-accordion-content-inner {
        padding: 20px;
    }
    
    .judges-grid,
    .trainers-grid,
    .schools-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}