/* Estilos específicos para la página del Barroco */

.baroque-era {
    --primary: #8A2BE2;
    --primary-dark: #4B0082;
    --primary-light: #9370DB;
    --accent: #FF00FF;
    --accent-light: #DDA0DD;
    --secondary: #191970;
    --tertiary: #8B008B;
}

.baroque-era header {
    background-color: rgba(74, 0, 130, 0.9);
    border-bottom: 2px solid var(--primary-dark);
}

.baroque-era .logo {
    color: var(--accent-light);
}

.baroque-era .nav-links a {
    color: #E6E6FA;
}

.baroque-era .nav-links a:hover {
    color: white;
}

.baroque-era .era-indicator {
    background-color: rgba(147, 112, 219, 0.2);
    color: var(--accent-light);
}

/* Hero Section Barroco */
.era-hero {
    padding: 180px 0 100px;
    background: linear-gradient(rgba(25, 25, 112, 0.85), rgba(74, 0, 130, 0.9)), 
                url('https://images.unsplash.com/photo-1578301978693-85fa9c0320b9?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    color: #E6E6FA;
    position: relative;
    overflow: hidden;
}

.era-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 30% 20%, rgba(138, 43, 226, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 0, 255, 0.1) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% { opacity: 0.3; }
    100% { opacity: 0.6; }
}

.era-hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.era-hero-text {
    flex: 1;
}

.era-title {
    font-size: 64px;
    color: var(--accent-light);
    margin-bottom: 20px;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.5);
    font-family: 'Libre Baskerville', serif;
    position: relative;
    display: inline-block;
}

.era-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    border-radius: 2px;
}

.era-subtitle {
    font-size: 24px;
    color: #9370DB;
    margin-bottom: 30px;
    font-style: italic;
    font-family: 'Cormorant Garamond', serif;
}

.era-period {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    color: var(--primary-light);
    flex-wrap: wrap;
}

.era-period span {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(25, 25, 112, 0.6);
    padding: 12px 24px;
    border-radius: 30px;
    border: 1px solid var(--primary);
    backdrop-filter: blur(5px);
}

.era-description {
    font-size: 18px;
    line-height: 1.8;
    max-width: 700px;
    margin-bottom: 40px;
    background-color: rgba(25, 25, 112, 0.5);
    padding: 25px;
    border-radius: 15px;
    border-left: 5px solid var(--accent);
    border-right: 5px solid var(--accent);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.stat {
    text-align: center;
    background-color: rgba(138, 43, 226, 0.2);
    padding: 20px;
    border-radius: 15px;
    border: 2px solid var(--primary);
    min-width: 140px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
    background-color: rgba(138, 43, 226, 0.4);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 5px;
    font-family: 'Libre Baskerville', serif;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

.stat-label {
    font-size: 14px;
    color: #E6E6FA;
    opacity: 0.9;
    font-weight: 500;
}

.era-hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.baroque-ornament {
    width: 400px;
    height: 400px;
    position: relative;
    filter: drop-shadow(0 0 20px rgba(138, 43, 226, 0.5));
}

.ornament-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--accent), var(--primary));
    border-radius: 50%;
    z-index: 2;
    animation: centerPulse 4s ease-in-out infinite;
}

@keyframes centerPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

.ornament-curve {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 3px solid transparent;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-top-color: var(--accent);
    border-right-color: var(--primary);
    border-bottom-color: var(--accent-light);
    border-left-color: var(--primary-light);
    animation: rotate 20s linear infinite;
}

.curve-1 {
    width: 300px;
    height: 300px;
    animation-duration: 25s;
    animation-direction: reverse;
}

.curve-2 {
    width: 250px;
    height: 250px;
    animation-duration: 20s;
}

.curve-3 {
    width: 200px;
    height: 200px;
    animation-duration: 15s;
    animation-direction: reverse;
}

@keyframes rotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Características */
.era-features {
    padding: 100px 0;
    background: linear-gradient(135deg, #0A0A2A 0%, #1A1A4A 100%);
    position: relative;
    overflow: hidden;
}

.era-features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(138, 43, 226, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(255, 0, 255, 0.1) 0%, transparent 30%);
}

.section-title {
    text-align: center;
    font-size: 48px;
    margin-bottom: 60px;
    color: var(--accent-light);
    position: relative;
    font-family: 'Libre Baskerville', serif;
    z-index: 2;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--accent), var(--primary-light));
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 2;
}

.feature-card {
    background: linear-gradient(135deg, rgba(25, 25, 112, 0.8), rgba(74, 0, 130, 0.8));
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(147, 112, 219, 0.3);
    backdrop-filter: blur(10px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 0, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.feature-card:hover::before {
    transform: translateX(100%);
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 25px 50px rgba(138, 43, 226, 0.4);
    border-color: var(--accent);
}

.feature-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 36px;
    box-shadow: 0 10px 25px rgba(138, 43, 226, 0.4);
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.feature-card:hover .feature-icon {
    transform: rotate(360deg) scale(1.1);
    background: linear-gradient(135deg, var(--accent), var(--primary));
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.6);
}

.feature-card h3 {
    font-size: 26px;
    margin-bottom: 15px;
    color: var(--accent-light);
    font-family: 'Libre Baskerville', serif;
    position: relative;
    z-index: 2;
}

.feature-card p {
    color: #C9C9E3;
    position: relative;
    z-index: 2;
    line-height: 1.6;
}

/* Galería */
.era-gallery {
    padding: 100px 0;
    background: linear-gradient(135deg, #2A0A2A 0%, #4A1A4A 100%);
    color: white;
}

.era-gallery .section-title {
    color: var(--accent);
}

.section-subtitle {
    text-align: center;
    font-size: 20px;
    color: #DDA0DD;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
}

.gallery-item:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 30px 60px rgba(138, 43, 226, 0.6);
    border-color: var(--accent);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease, filter 0.8s ease;
    filter: brightness(0.8);
}

.gallery-item:hover img {
    transform: scale(1.2) rotate(2deg);
    filter: brightness(1.1) contrast(1.2);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(74, 0, 130, 0.9), transparent);
    color: white;
    padding: 30px;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--accent);
    font-family: 'Libre Baskerville', serif;
}

.gallery-overlay p {
    font-size: 14px;
    opacity: 0.9;
}

/* Autores */
.era-authors {
    padding: 100px 0;
    background: linear-gradient(135deg, #0A2A0A 0%, #1A4A1A 100%);
}

.era-authors .section-title {
    color: #98FB98;
}

.authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.author-card {
    background: linear-gradient(135deg, rgba(25, 25, 112, 0.8), rgba(74, 0, 130, 0.8));
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(147, 112, 219, 0.3);
    backdrop-filter: blur(10px);
}

.author-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow: 0 30px 60px rgba(138, 43, 226, 0.6);
}

.author-portrait {
    margin-bottom: 25px;
}

.portrait-frame {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 8px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.portrait-frame::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: conic-gradient(var(--primary), var(--accent), var(--primary-light), var(--accent), var(--primary));
    border-radius: 50%;
    animation: rotate 10s linear infinite;
    z-index: -1;
}

.portrait-calderon {
    width: 100%;
    height: 100%;
    background-color: #2A0A2A;
    border-radius: 50%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="180" height="180" viewBox="0 0 180 180"><circle cx="90" cy="90" r="80" fill="%238A2BE2" opacity="0.4"/><text x="90" y="100" font-family="Libre Baskerville" font-size="28" text-anchor="middle" fill="%23DDA0DD">CB</text></svg>');
}

.portrait-quevedo {
    width: 100%;
    height: 100%;
    background-color: #2A0A2A;
    border-radius: 50%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="180" height="180" viewBox="0 0 180 180"><circle cx="90" cy="90" r="80" fill="%238A2BE2" opacity="0.4"/><text x="90" y="100" font-family="Libre Baskerville" font-size="28" text-anchor="middle" fill="%23DDA0DD">FQ</text></svg>');
}

.portrait-gongora {
    width: 100%;
    height: 100%;
    background-color: #2A0A2A;
    border-radius: 50%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="180" height="180" viewBox="0 0 180 180"><circle cx="90" cy="90" r="80" fill="%238A2BE2" opacity="0.4"/><text x="90" y="100" font-family="Libre Baskerville" font-size="28" text-anchor="middle" fill="%23DDA0DD">LG</text></svg>');
}

.author-card h3 {
    font-size: 26px;
    margin-bottom: 10px;
    color: var(--accent-light);
    font-family: 'Libre Baskerville', serif;
}

.author-work {
    font-style: italic;
    color: #9370DB;
    margin-bottom: 15px;
    font-size: 16px;
}

.author-desc {
    color: #C9C9E3;
    margin-bottom: 20px;
    line-height: 1.6;
}

.author-quote {
    background-color: rgba(255, 0, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid var(--accent);
    margin-top: 20px;
    backdrop-filter: blur(5px);
}

.author-quote i {
    color: var(--accent);
    margin-right: 10px;
    font-size: 20px;
}

.author-quote p {
    color: #E6E6FA;
    font-style: italic;
    margin: 0;
    display: inline;
}

/* Obras - Mosaico */
.era-works {
    padding: 100px 0;
    background: linear-gradient(135deg, #2A2A0A 0%, #4A4A1A 100%);
    color: white;
}

.era-works .section-title {
    color: #FFFF98;
}

.works-mosaic {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.mosaic-item {
    perspective: 1000px;
}

.work-card {
    background: linear-gradient(135deg, rgba(25, 25, 112, 0.9), rgba(74, 0, 130, 0.9));
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(147, 112, 219, 0.3);
    backdrop-filter: blur(10px);
    transform-style: preserve-3d;
    height: 100%;
}

.work-card:hover {
    transform: rotateY(15deg) rotateX(5deg) translateY(-10px);
    box-shadow: 0 30px 60px rgba(138, 43, 226, 0.6);
    border-color: var(--accent);
}

.work-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    transform: translateZ(30px);
}

.work-header h3 {
    font-size: 24px;
    color: var(--accent-light);
    font-family: 'Libre Baskerville', serif;
    margin: 0;
}

.work-year {
    background-color: var(--accent);
    color: var(--primary-dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
}

.work-author {
    color: #9370DB;
    font-style: italic;
    margin-bottom: 20px;
    transform: translateZ(20px);
}

.work-excerpt {
    color: #C9C9E3;
    line-height: 1.6;
    margin-bottom: 25px;
    transform: translateZ(10px);
}

.work-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    transform: translateZ(30px);
}

.work-link:hover {
    gap: 20px;
    color: white;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

/* Técnicas */
.era-techniques {
    padding: 100px 0;
    background: linear-gradient(135deg, #0A0A2A 0%, #1A1A4A 100%);
}

.techniques-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.technique-item {
    background: linear-gradient(135deg, rgba(74, 0, 130, 0.8), rgba(138, 43, 226, 0.8));
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.4s ease;
    border: 1px solid rgba(147, 112, 219, 0.3);
    backdrop-filter: blur(10px);
}

.technique-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(138, 43, 226, 0.6);
}

.technique-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 32px;
}

.technique-item h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--accent-light);
    font-family: 'Libre Baskerville', serif;
}

/* Navegación */
.era-navigation {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.nav-button {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 40px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 600;
    font-size: 18px;
    border: none;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.nav-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    gap: 25px;
}

.nav-button.prev {
    background: linear-gradient(to right, var(--renaissance), var(--primary));
}

.nav-button.next {
    background: linear-gradient(to right, var(--accent), var(--romantic));
}

/* Responsive */
@media (max-width: 1200px) {
    .era-hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .era-period {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .baroque-ornament {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .era-title {
        font-size: 48px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .features-grid,
    .authors-grid,
    .techniques-showcase {
        grid-template-columns: 1fr;
    }
    
    .works-mosaic {
        grid-template-columns: 1fr;
    }
    
    .gallery-container {
        grid-template-columns: 1fr;
    }
    
    .nav-buttons {
        flex-direction: column;
    }
    
    .nav-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .era-title {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .era-period {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .stat {
        width: 100%;
        max-width: 250px;
    }
}