/* ==========================================================================
   BASE STYLES
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #fafafa;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    padding-top: 65px; /* Solo para el music player */
    color: #333;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 300;
    line-height: 1.2;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
    font-weight: 300;
}

.flow-text {
    font-size: 1.2rem;
    line-height: 1.8;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

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

section {
    padding: 4rem 0;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.gallery-item {
    display: contents;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* Music Player */
.floating-music-player {
    background: linear-gradient(135deg, #673ab7 0%, #9c27b0 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    padding: 8px 20px;
    height: 60px;
}

.player-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    gap: 1rem;
}

.player-info {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.song-marquee {
    width: 100%;
    height: 34px;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    background: rgba(0,0,0,0.3);
    border-radius: 3px;
    margin-bottom: 4px;
    padding: 2px 0;
}

.song-marquee {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
    min-height: 1.2em;
}

.marquee-content {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 12s linear infinite;
}

.marquee-content.short-text {
    animation: none;
    padding-left: 0;
    display: block;
    text-align: left;
}

.artist-info {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    margin-bottom: 0.5rem;
}

/* Timeline */
.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-top: 0.5rem;
}

.timeline {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.timeline-progress {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b 0%, #ee5a24 100%);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s ease;
    position: relative;
}

.timeline-progress::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.timeline:hover .timeline-progress::after {
    width: 12px;
    height: 12px;
}

.time-display {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.time-display span {
    font-family: 'Courier New', monospace;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.control-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.control-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

.control-btn:hover::before {
    width: 100%;
    height: 100%;
}

.control-btn:active {
    transform: scale(0.95);
}

.control-btn:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

.play-btn {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.play-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.playlist-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    border-color: rgba(255, 255, 255, 0.4);
}

.playlist-btn:hover {
    background: linear-gradient(135deg, #ff5252 0%, #d84315 100%);
    transform: scale(1.1) rotate(10deg);
}

.stop-btn {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    border-color: rgba(255, 255, 255, 0.4);
}

.stop-btn:hover {
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
    transform: scale(1.1);
}

/* Playlist Dropdown - Enhanced */
.playlist-dropdown {
    position: absolute;
    top: 100%;
    right: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    min-width: 280px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    border: 1px solid rgba(103, 58, 183, 0.1);
    backdrop-filter: blur(10px);
}

.playlist-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(10px);
}

.playlist {
    padding: 1.5rem;
}

.playlist-title {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
    text-align: center;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.8rem;
}

.song-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: #f8f9fa;
}

.song-item:hover {
    background: linear-gradient(135deg, #673ab7 0%, #9c27b0 100%);
    color: white;
    transform: translateX(5px);
    box-shadow: 0 4px 16px rgba(103, 58, 183, 0.2);
}

.song-item.active {
    background: linear-gradient(135deg, #673ab7 0%, #9c27b0 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px rgba(103, 58, 183, 0.3);
}

.song-title {
    font-weight: 500;
    font-size: 0.95rem;
}

.song-duration {
    font-size: 0.85rem;
    opacity: 0.7;
    font-weight: 400;
}

.song-item:hover .song-duration {
    opacity: 0.9;
}

/* Marquee Animation */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Navigation */
/* Navigation */
.main-navigation {
    background-color: #673ab7;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 65px;
    width: 100%;
    z-index: 999;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 60px;
}

.brand-logo {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.5rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav-links li a:hover {
    background-color: rgba(255,255,255,0.1);
}

.button-collapse {
    display: none;
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #673ab7 0%, #9c27b0 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 60px);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-image {
    flex: 1;
    text-align: center;
    padding: 2rem;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-height: 80vh;
    object-fit: cover;
    transition: opacity 0.4s ease;
}

.hero-text {
    flex: 1;
    padding: 2rem;
    color: white;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Gallery Section */
.gallery-section {
    background-color: #f8f9fa;
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

/* About Section */
.about-section {
    background-color: white;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.bio-text .flow-text {
    color: #555;
    text-align: justify;
    margin-bottom: 1.5rem;
}

/* Contact Section */
/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    padding: 6rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.contact-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-grid-horizontal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    align-items: start;
}

.contact-grid-horizontal .contact-item {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(103, 58, 183, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(103, 58, 183, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    min-height: 100px;
}

.contact-grid-horizontal .contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(103, 58, 183, 0.2);
    border-color: rgba(103, 58, 183, 0.3);
}

.contact-grid-horizontal .contact-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    transition: all 0.3s ease;
}

.contact-grid-horizontal .contact-link:hover {
    color: inherit;
    transform: scale(1.02);
}

.contact-grid-horizontal .contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, #673ab7 0%, #9c27b0 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(103, 58, 183, 0.3);
    transition: all 0.3s ease;
}

.contact-grid-horizontal .contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-grid-horizontal .contact-icon.whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.contact-grid-horizontal .contact-icon.facebook {
    background: linear-gradient(135deg, #1877F2 0%, #0C5FDB 100%);
    box-shadow: 0 4px 16px rgba(24, 119, 242, 0.3);
}

.contact-grid-horizontal .contact-icon.twitter {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.contact-grid-horizontal .contact-icon.youtube {
    background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);
    box-shadow: 0 4px 16px rgba(255, 0, 0, 0.3);
}

.contact-grid-horizontal .contact-icon.instagram {
    background: linear-gradient(135deg, #833AB4 0%, #FD1D1D 50%, #FCB045 100%);
    box-shadow: 0 4px 16px rgba(131, 58, 180, 0.3);
}

.contact-grid-horizontal .contact-text {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
}

.contact-grid-horizontal .contact-text strong {
    font-size: 1rem;
    color: #333;
    font-weight: 600;
    margin: 0;
}

.contact-grid-horizontal .contact-text span {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

.contact-grid-horizontal .contact-item:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
}

.contact-grid-horizontal .contact-item:hover .contact-text strong {
    color: #673ab7;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-item {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(103, 58, 183, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(103, 58, 183, 0.1);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-align: left;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(103, 58, 183, 0.2);
    border-color: rgba(103, 58, 183, 0.3);
}

.contact-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: inherit;
    transform: scale(1.02);
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, #673ab7 0%, #9c27b0 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(103, 58, 183, 0.3);
    transition: all 0.3s ease;
}

.contact-icon svg {
    width: 28px;
    height: 28px;
}

.contact-icon.whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.contact-icon.facebook {
    background: linear-gradient(135deg, #1877F2 0%, #0C5FDB 100%);
    box-shadow: 0 4px 16px rgba(24, 119, 242, 0.3);
}

.contact-icon.youtube {
    background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);
    box-shadow: 0 4px 16px rgba(255, 0, 0, 0.3);
}

.contact-icon.instagram {
    background: linear-gradient(135deg, #833AB4 0%, #FD1D1D 50%, #FCB045 100%);
    box-shadow: 0 4px 16px rgba(131, 58, 180, 0.3);
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.contact-text strong {
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
    margin: 0;
}

.contact-text span {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
}

.contact-item:hover .contact-text strong {
    color: #673ab7;
}

/* ==========================================================================
   COMPONENTS
   ========================================================================== */

/* Cards */
.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-image {
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.lightbox.open {
    display: flex;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-prev,
.lightbox-next,
.lightbox-close {
    position: absolute;
    background: rgba(255,255,255,0.15);
    color: white;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-close:hover {
    background: rgba(255,255,255,0.25);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-close { top: 20px; right: 20px; font-size: 1.8rem; }

/* Footer */
.page-footer {
    background-color: #673ab7;
    color: white;
    margin-top: 0;
}

.page-footer .container {
    text-align: center;
    padding: 1rem 20px;
}

.page-footer p {
    margin: 0;
}

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

/* Mobile First Approach - Base Styles for Mobile */

/* Small Mobile (320px - 480px) */
@media only screen and (max-width: 480px) {
    :root {
        --base-font-size: 14px;
    }
    
    body {
        font-size: var(--base-font-size);
        padding-top: 50px; /* Solo para el music player */
    }
    
    .floating-music-player {
        height: 65px;
        padding: 8px 15px;
        min-height: 65px;
    }
    
    .player-container {
        flex-direction: row;
        gap: 1rem;
        align-items: center;
        height: 100%;
    }
    
    .player-info {
        flex: 1;
        min-width: 0;
    }
    
    .song-title {
        font-size: 0.85rem;
        line-height: 1.2;
    }
    
    .artist-info {
        font-size: 0.75rem;
        margin-bottom: 0;
    }
    
    .timeline-container {
        display: none; /* Ocultar timeline en móviles */
    }
    
    .player-controls {
        gap: 0.4rem;
        flex-shrink: 0;
    }
    
    .control-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
        border-width: 1px;
    }
    
    .play-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .main-navigation {
        top: 50px;
    }
    
    .nav-wrapper {
        padding: 0 15px;
        height: 50px;
    }
    
    .contact-grid-horizontal {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-grid-horizontal .contact-item {
        padding: 1rem;
        min-height: 80px;
    }
    
    .contact-grid-horizontal .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .contact-grid-horizontal .contact-icon.twitter {
        width: 40px;
        height: 40px;
    }
    
    .contact-grid-horizontal .contact-icon.twitter svg {
        width: 20px;
        height: 20px;
    }
    
    .contact-grid-horizontal .contact-text strong {
        font-size: 0.9rem;
    }
    
    .contact-grid-horizontal .contact-text span {
        font-size: 0.75rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .hero-text, .hero-image {
        padding: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .gallery-image {
        height: 200px;
    }
    
    .floating-music-player {
        height: 50px;
        padding: 5px 15px;
    }
    
    .player-container {
        gap: 0.5rem;
    }
    
    .song-marquee {
        height: 28px;
    }
    
    .marquee-content {
        font-size: 0.85rem;
    }
    
    .control-btn {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .play-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .main-navigation {
        top: 50px;
    }
    
    .nav-wrapper {
        padding: 0 15px;
        height: 50px;
    }
    
    .brand-logo {
        font-size: 1.2rem;
    }
    
    .playlist-dropdown {
        right: 5px;
        min-width: 200px;
        padding: 0.8rem;
    }
    
    .song-item {
        padding: 0.6rem;
    }
    
    .lightbox-image {
        max-width: 95vw;
        max-height: 90vh;
    }
    
    .lightbox-prev,
    .lightbox-next,
    .lightbox-close {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }
    
    .contact-item {
        font-size: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Mobile (481px - 768px) */
@media only screen and (min-width: 481px) and (max-width: 768px) {
    body {
        padding-top: 55px; /* Solo para el music player */
    }
    
    .floating-music-player {
        height: 70px;
        padding: 8px 20px;
        min-height: 70px;
    }
    
    .player-container {
        flex-direction: row;
        gap: 1.2rem;
        align-items: center;
        height: 100%;
    }
    
    .player-info {
        flex: 1;
        min-width: 0;
    }
    
    .song-title {
        font-size: 0.9rem;
        line-height: 1.2;
    }
    
    .artist-info {
        font-size: 0.8rem;
        margin-bottom: 0;
    }
    
    .timeline-container {
        display: none; /* Ocultar timeline en tablets */
    }
    
    .player-controls {
        gap: 0.5rem;
        flex-shrink: 0;
    }
    
    .control-btn {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
        border-width: 1.5px;
    }
    
    .play-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .main-navigation {
        top: 55px;
    }
    
    .nav-wrapper {
        height: 55px;
    }
    
    .contact-grid-horizontal {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
    
    .contact-grid-horizontal .contact-item {
        padding: 1.2rem;
        min-height: 90px;
    }
    
    .contact-grid-horizontal .contact-icon.twitter {
        width: 45px;
        height: 45px;
    }
    
    .contact-grid-horizontal .contact-icon.twitter svg {
        width: 22px;
        height: 22px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .gallery-image {
        height: 220px;
    }
    
    .floating-music-player {
        height: 55px;
    }
    
    .main-navigation {
        top: 55px;
    }
    
    .nav-wrapper {
        height: 55px;
    }
    
    .brand-logo {
        font-size: 1.3rem;
    }
}

/* Tablet (769px - 1024px) */
@media only screen and (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .gallery-image {
        height: 240px;
    }
    
    .hero-content {
        padding: 0 30px;
    }
    
    .container {
        padding: 0 30px;
    }
}

/* Desktop (1025px - 1440px) */
@media only screen and (min-width: 1025px) and (max-width: 1440px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-content {
        max-width: 1100px;
    }
}

/* Large Desktop (1441px+) */
@media only screen and (min-width: 1441px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-content {
        max-width: 1400px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 35px;
    }
    
    .gallery-image {
        height: 280px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* High DPI Displays */
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi) {
    .hero-image img,
    .gallery-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Touch Devices */
@media (hover: none) and (pointer: coarse) {
    .control-btn {
        min-width: 44px;
        min-height: 44px;
    }
    
    .song-item {
        padding: 1rem;
    }
    
    .gallery-image:hover {
        transform: none;
    }
    
    .card:hover {
        transform: none;
    }
    
    .nav-links li a:hover {
        background-color: transparent;
    }
    
    /* Add active states for touch */
    .control-btn:active {
        transform: scale(0.95);
    }
    
    .song-item:active {
        background-color: #f5f5f5;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .marquee-content {
        animation: none !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1a1a1a;
        --bg-secondary: #2d2d2d;
        --text-primary: #ffffff;
        --text-secondary: #b0b0b0;
    }
    
    body {
        background-color: var(--bg-primary);
        color: var(--text-primary);
    }
    
    .gallery-section,
    .about-section,
    .contact-section {
        background-color: var(--bg-secondary);
    }
    
    .card {
        background-color: var(--bg-secondary);
        box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    }
    
    .section-title {
        color: var(--text-primary);
    }
    
    .bio-text .flow-text {
        color: var(--text-secondary);
    }
}

/* Print Styles */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .floating-music-player,
    .main-navigation,
    .lightbox {
        display: none !important;
    }
    
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .gallery-image {
        height: 150px;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    a[href^="#"]::after {
        content: " (" attr(href) ")";
    }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    body {
        padding-top: 45px; /* Solo para el music player */
    }
    
    .floating-music-player {
        height: 60px;
        padding: 6px 15px;
        min-height: 60px;
    }
    
    .player-container {
        flex-direction: row;
        gap: 1rem;
        align-items: center;
        height: 100%;
    }
    
    .player-info {
        flex: 1;
        min-width: 0;
    }
    
    .song-title {
        font-size: 0.8rem;
        line-height: 1.1;
    }
    
    .artist-info {
        font-size: 0.7rem;
        margin-bottom: 0;
    }
    
    .timeline-container {
        display: none; /* Ocultar timeline en landscape */
    }
    
    .player-controls {
        gap: 0.3rem;
        flex-shrink: 0;
    }
    
    .control-btn {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
        border-width: 1px;
    }
    
    .play-btn {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }
    
    .main-navigation {
        top: 45px;
    }
    
    .nav-wrapper {
        height: 45px;
    }
    
    .song-marquee {
        height: 24px;
    }
    
    .marquee-content {
        font-size: 0.8rem;
    }
    
    .control-btn {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
    }
    
    .play-btn {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }
    
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-content {
        min-height: auto;
        flex-direction: row;
    }
    
    .hero-image img {
        max-height: 60vh;
    }
}

/* Ultra-wide Screens (21:9 aspect ratio) */
@media (min-aspect-ratio: 21/9) and (min-width: 2560px) {
    .container {
        max-width: 1600px;
    }
    
    .hero-content {
        max-width: 1600px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 40px;
    }
    
    .gallery-image {
        height: 300px;
    }
}

/* Mobile Menu Enhancements */
@media only screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #673ab7;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links li {
        margin: 0.5rem 0;
    }
    
    .nav-links li a {
        display: block;
        padding: 1rem;
        text-align: center;
        border-radius: 8px;
    }
    
    .button-collapse {
        display: block;
        position: relative;
        z-index: 1000;
    }
    
    .button-collapse:focus {
        outline: 2px solid white;
        outline-offset: 2px;
    }
}

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

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #673ab7;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 3000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* Visually Hidden */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles */
*:focus {
    outline: 2px solid #673ab7;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .control-btn {
        border: 2px solid white;
    }
    
    .card {
        border: 1px solid #333;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #673ab7;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.back-to-top:hover {
    background: #5e35b1;
    transform: translateY(-2px);
}

.back-to-top:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Footer Navigation */
.footer-nav {
    margin-top: 1rem;
    text-align: center;
}

.footer-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    padding: 0 8px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

.separator {
    color: rgba(255,255,255,0.5);
    margin: 0 8px;
}

/* Section Descriptions */
.section-description {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Playlist Title */
.playlist-title {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    color: #333;
}