/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    padding-bottom: 60px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
header {
    background-color: #1a1a1a;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-align: center;
}

.logo img {
    height: 60px;
    width: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid #ff6b00;
}

.logo h1 {
    font-size: 1.5rem;
    margin: 0;
}

/* Navegación desktop */
.desktop-nav ul {
    display: flex;
    list-style: none;
}

.desktop-nav li {
    margin-left: 20px;
}

.desktop-nav a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    transition: all 0.3s;
    border-radius: 5px;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: #ff6b00;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Menú hamburguesa */
.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Menú móvil */
.mobile-nav {
    display: none;
    background-color: #2a2a2a;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    overflow-y: auto;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav li {
    border-bottom: 1px solid #444;
}

.mobile-nav a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 20px;
    transition: background-color 0.3s;
    font-size: 1.2rem;
    text-align: center;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    background-color: #ff6b00;
    color: white;
}

/* Hero Section con presentación */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
}

.hero-presentacion {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    text-align: left;
}

.hero-logo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #ff6b00;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero-texto {
    flex: 1;
    max-width: 600px;
}

.hero-texto h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-texto p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    background-color: #ff6b00;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
}

.btn:hover {
    background-color: #e55a00;
    transform: translateY(-2px);
}

/* Álbumes destacados */
.albumes-destacados {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.albumes-destacados h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.subtitulo-seccion {
    text-align: center;
    color: #666;
    margin-bottom: 50px;
    font-style: italic;
    font-size: 1.1rem;
}

.albumes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.album-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.album-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.album-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.album-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.album-card:hover .album-img img {
    transform: scale(1.05);
}

.album-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(76, 175, 80, 0.95);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
    z-index: 2;
}

.album-info {
    padding: 20px;
}

.album-info h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
    color: #333;
}

.album-info p {
    margin-bottom: 15px;
    color: #666;
    line-height: 1.5;
}

.album-meta {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    font-size: 0.9em;
    color: #666;
}

.album-meta small {
    display: flex;
    align-items: center;
    gap: 5px;
}

.album-btn-container {
    text-align: center;
    margin-top: 15px;
}

.ver-mas-container {
    text-align: center;
    margin-top: 40px;
}

.btn-secondary {
    background: #6c757d !important;
}

.btn-secondary:hover {
    background: #5a6268 !important;
}

.btn-disabled {
    background: #ccc !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

.btn-disabled:hover {
    background: #ccc !important;
    transform: none !important;
}

/* Estilos para la paleta de álbumes */
.albumes-paleta {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

.album-paleta-item {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.album-paleta-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.album-paleta-item.con-fotos {
    border: 2px solid #4CAF50;
}

.album-paleta-item.sin-fotos {
    opacity: 0.8;
}

.album-paleta-img {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.album-paleta-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.album-paleta-item:hover .album-paleta-img img {
    transform: scale(1.05);
}

.album-badge-con-fotos,
.album-badge-vacio {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
    z-index: 2;
}

.album-badge-con-fotos {
    background: rgba(76, 175, 80, 0.95);
    color: white;
}

.album-badge-vacio {
    background: rgba(255, 152, 0, 0.95);
    color: white;
}

.album-paleta-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.album-paleta-info h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333;
}

.album-paleta-info p {
    margin-bottom: 15px;
    color: #666;
    line-height: 1.6;
}

.album-cantidad {
    color: #ff6b00 !important;
    font-size: 1.1rem;
    font-weight: bold;
}

.album-btn-center {
    text-align: center;
    margin-top: 20px;
}

.subtitulo-albumes {
    text-align: center;
    margin-bottom: 40px;
    color: #666;
    font-size: 1.1rem;
}

.no-albumes {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.no-albumes i {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 20px;
}

.no-albumes h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.no-albumes p {
    color: #666;
    font-size: 1.1rem;
}

/* Redes Sociales */
.redes-sociales {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.redes-sociales h2 {
    margin-bottom: 30px;
    font-size: 2.5rem;
    color: #333;
}

.redes-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.red-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 30px;
    border-radius: 15px;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.red-social:hover {
    transform: translateY(-5px);
    color: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.red-social i {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.red-social span {
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
}

/* Página de álbumes */
.albumes-page {
    padding: 100px 0 80px;
    min-height: calc(100vh - 140px);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.album-descripcion {
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.fotos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.foto-item {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.foto-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.foto-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s;
}

.foto-item:hover img {
    transform: scale(1.05);
}

.foto-acciones {
    padding: 20px;
    text-align: center;
    background: #f8f9fa;
}

.btn-descargar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 0.95rem;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
}

.btn-descargar:hover {
    background: linear-gradient(135deg, #218838 0%, #1e9e8a 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

.btn-volver-container {
    text-align: center;
    margin-top: 40px;
}

.btn-volver {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(108, 117, 125, 0.3);
}

.btn-volver:hover {
    background: linear-gradient(135deg, #5a6268 0%, #343a40 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.4);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    text-align: center;
    padding: 25px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 998;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.3);
}

footer a {
    color: #ff6b00;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

footer a:hover {
    color: #ff8c42;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    .hero-presentacion {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .hero-texto h2 {
        font-size: 2.2rem;
    }
    
    .hero-texto p {
        font-size: 1.1rem;
    }
    
    .album-paleta-item {
        grid-template-columns: 1fr;
    }
    
    .album-paleta-img {
        height: 200px;
    }
    
    .redes-links {
        flex-direction: column;
        align-items: center;
    }
    
    .red-social {
        width: 100%;
        max-width: 280px;
    }
    
    .fotos-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .albumes-destacados h2,
    .redes-sociales h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero-logo {
        width: 150px;
        height: 150px;
    }
    
    .hero-texto h2 {
        font-size: 1.8rem;
    }
    
    .albumes-grid {
        grid-template-columns: 1fr;
    }
    
    .fotos-grid {
        grid-template-columns: 1fr;
    }
    
    .album-paleta-info {
        padding: 20px;
    }
    
    .album-paleta-info h3 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Animaciones adicionales */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.album-card,
.album-paleta-item,
.foto-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Efectos de carga para imágenes */
.album-img img,
.album-paleta-img img,
.foto-item img {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}