/* Estilos específicos para la página del Renacimiento */

.renaissance-era {
    --primary: #B8860B;
    --primary-dark: #8B6508;
    --primary-light: #DAA520;
    --accent: #FFD700;
    --accent-light: #FFF8DC;
    --secondary: #8B4513;
    --tertiary: #2F4F4F;
}

.renaissance-era header {
    background-color: rgba(184, 134, 11, 0.9);
    border-bottom: 2px solid var(--primary-dark);
}

.renaissance-era .logo {
    color: var(--accent);
}

.renaissance-era .nav-links a {
    color: #FFF8DC;
}

.renaissance-era .nav-links a:hover {
    color: white;
}

.renaissance-era .era-indicator {
    background-color: rgba(218, 165, 32, 0.2);
    color: var(--accent);
}

/* Hero Section Renacimiento */
.era-hero {
    padding: 180px 0 100px;
    background: linear-gradient(rgba(47, 79, 79, 0.8), rgba(47, 79, 79, 0.9)), 
                url('https://images.unsplash.com/photo-1513475382585-d06e58bcb0e0?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    color: #FFF8DC;
    position: relative;
    overflow: hidden;
}

.era-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(218, 165, 32, 0.1) 0%, transparent 50%);
}

.era-hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.era-hero-text {
    flex: 1;
}

.era-title {
    font-size: 68px;
    color: var(--accent);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Playfair Display', serif;
    position: relative;
    display: inline-block;
}

.era-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--accent));
}

.era-subtitle {
    font-size: 24px;
    color: #DAA520;
    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(47, 79, 79, 0.7);
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid var(--primary);
}

.era-description {
    font-size: 18px;
    line-height: 1.8;
    max-width: 700px;
    margin-bottom: 40px;
    background-color: rgba(47, 79, 79, 0.6);
    padding: 25px;
    border-radius: 10px;
    border-left: 5px solid var(--primary);
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.stat {
    text-align: center;
    background-color: rgba(184, 134, 11, 0.2);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--primary);
    min-width: 120px;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 5px;
    font-family: 'Playfair Display', serif;
}

.stat-label {
    font-size: 14px;
    color: #FFF8DC;
    opacity: 0.9;
}

.era-hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.perspective-container {
    width: 400px;
    height: 400px;
    position: relative;
    perspective: 1000px;
}

.renaissance-book {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    border-radius: 10px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(-15deg) rotateX(10deg);
    animation: bookFloat 8s ease-in-out infinite;
    box-shadow: 
        20px 20px 40px rgba(0, 0, 0, 0.4),
        inset 0 0 50px rgba(255, 215, 0, 0.2);
}

@keyframes bookFloat {
    0%, 100% { transform: rotateY(-15deg) rotateX(10deg) translateY(0); }
    50% { transform: rotateY(-15deg) rotateX(10deg) translateY(-20px); }
}

.renaissance-book::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background-color: #FFF8DC;
    border: 2px solid #DAA520;
    border-radius: 5px;
    box-shadow: inset 0 0 30px rgba(139, 69, 19, 0.1);
}

.renaissance-book::after {
    content: 'RENASCENTIA';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateY(15deg);
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: var(--primary-dark);
    letter-spacing: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.light-beam {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 200px;
    background: linear-gradient(to bottom, rgba(255, 215, 0, 0.3), transparent);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation: lightSweep 4s ease-in-out infinite;
}

@keyframes lightSweep {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* Características */
.era-features {
    padding: 100px 0;
    background-color: #FFF8DC;
    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(184, 134, 11, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(47, 79, 79, 0.05) 0%, transparent 20%);
}

.section-title {
    text-align: center;
    font-size: 48px;
    margin-bottom: 60px;
    color: var(--tertiary);
    position: relative;
    font-family: 'Playfair Display', serif;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--accent));
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 2;
}

.feature-card {
    background-color: white;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(184, 134, 11, 0.1);
    border: 1px solid rgba(184, 134, 11, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary), var(--accent));
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(184, 134, 11, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    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: 32px;
    box-shadow: 0 10px 20px rgba(184, 134, 11, 0.3);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, var(--accent), var(--primary));
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--tertiary);
    font-family: 'Playfair Display', serif;
}

.feature-card p {
    color: #555;
}

/* Galería */
.era-gallery {
    padding: 100px 0;
    background-color: #2F4F4F;
    color: white;
}

.era-gallery .section-title {
    color: var(--accent);
}

.section-subtitle {
    text-align: center;
    font-size: 20px;
    color: var(--accent-light);
    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: 10px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border-color: var(--accent);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.gallery-item:hover img {
    transform: scale(1.15) rotate(1deg);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(47, 79, 79, 0.9), transparent);
    color: white;
    padding: 30px;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 22px;
    margin-bottom: 8px;
    color: var(--accent);
    font-family: 'Playfair Display', serif;
}

.gallery-overlay p {
    font-size: 14px;
    opacity: 0.9;
}

/* Autores */
.era-authors {
    padding: 100px 0;
    background-color: #FFF8DC;
}

.era-authors .section-title {
    color: var(--tertiary);
}

.authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.author-card {
    background-color: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(184, 134, 11, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(184, 134, 11, 0.1);
}

.author-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(184, 134, 11, 0.2);
}

.author-portrait {
    margin-bottom: 25px;
}

.portrait-frame {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 8px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.portrait-frame::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: conic-gradient(var(--primary), var(--accent), var(--primary), var(--accent), var(--primary));
    border-radius: 50%;
    animation: rotate 10s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.portrait-shakespeare {
    width: 100%;
    height: 100%;
    background-color: #FFF8DC;
    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="%23DAA520" opacity="0.3"/><text x="90" y="100" font-family="Playfair Display" font-size="24" text-anchor="middle" fill="%238B6508">WS</text></svg>');
}

.portrait-cervantes {
    width: 100%;
    height: 100%;
    background-color: #FFF8DC;
    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="%23DAA520" opacity="0.3"/><text x="90" y="100" font-family="Playfair Display" font-size="24" text-anchor="middle" fill="%238B6508">MC</text></svg>');
}

.portrait-petrarca {
    width: 100%;
    height: 100%;
    background-color: #FFF8DC;
    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="%23DAA520" opacity="0.3"/><text x="90" y="100" font-family="Playfair Display" font-size="24" text-anchor="middle" fill="%238B6508">FP</text></svg>');
}

.author-card h3 {
    font-size: 26px;
    margin-bottom: 10px;
    color: var(--tertiary);
    font-family: 'Playfair Display', serif;
}

.author-work {
    font-style: italic;
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 16px;
}

.author-desc {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.author-quote {
    background-color: rgba(184, 134, 11, 0.1);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid var(--primary);
    margin-top: 20px;
}

.author-quote i {
    color: var(--primary);
    margin-right: 10px;
    font-size: 20px;
}

.author-quote p {
    color: var(--tertiary);
    font-style: italic;
    margin: 0;
    display: inline;
}

/* Obras - Carousel */
.era-works {
    padding: 100px 0;
    background-color: #2F4F4F;
    color: white;
}

.era-works .section-title {
    color: var(--accent);
}

.works-carousel {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.work-item {
    flex: 0 0 100%;
    display: flex;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(218, 165, 32, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.work-cover {
    flex: 0 0 300px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.work-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.cover-title {
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Playfair Display', serif;
    text-align: center;
}

.cover-author {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
}

.work-info {
    flex: 1;
    padding: 50px;
}

.work-info h3 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--accent);
    font-family: 'Playfair Display', serif;
}

.work-info p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 30px;
    opacity: 0.9;
}

.work-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
}

.work-link:hover {
    gap: 20px;
    color: white;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.carousel-prev,
.carousel-next {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(218, 165, 32, 0.2);
    border: 2px solid var(--accent);
    color: var(--accent);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: var(--accent);
    color: var(--tertiary);
    transform: scale(1.1);
}

/* Innovaciones */
.era-innovations {
    padding: 100px 0;
    background-color: #FFF8DC;
}

.innovations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.innovation-card {
    background-color: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(184, 134, 11, 0.1);
    transition: all 0.4s ease;
    border-top: 5px solid var(--primary);
}

.innovation-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(184, 134, 11, 0.2);
}

.innovation-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--tertiary), var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 32px;
}

.innovation-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--tertiary);
    font-family: 'Playfair Display', serif;
}

/* Navegación */
.era-navigation {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--tertiary), var(--primary-dark));
}

.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: var(--tertiary);
    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 10px 30px rgba(0, 0, 0, 0.2);
}

.nav-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    gap: 25px;
}

.nav-button.prev {
    background: linear-gradient(to right, var(--secondary), var(--primary));
    color: white;
}

.nav-button.next {
    background: linear-gradient(to right, var(--accent), #9370DB);
    color: var(--tertiary);
}

/* 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;
    }
    
    .perspective-container {
        width: 300px;
        height: 300px;
    }
    
    .work-item {
        flex-direction: column;
    }
    
    .work-cover {
        flex: 0 0 200px;
    }
}

@media (max-width: 768px) {
    .era-title {
        font-size: 48px;
    }
    
    .features-grid,
    .authors-grid,
    .innovations-grid {
        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: 36px;
    }
    
    .era-period {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
    }
}