/* ===========================
   Revista Flip Book Styles
   =========================== */

.revista-flipbook {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 60px 0;
    min-height: 100vh;
}

.flipbook-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Flip Book Container */
.flipbook {
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16/9;
    background: white;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    perspective: 1000px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Page Styles */
.page {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: rotateY(-90deg) translateZ(-400px);
    transform-style: preserve-3d;
    transition: opacity 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55),
                transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    backface-visibility: hidden;
    z-index: 1;
}

.page.active {
    opacity: 1;
    transform: rotateY(0deg) translateZ(0);
    z-index: 10;
}

.page.next {
    opacity: 0;
    transform: rotateY(90deg) translateZ(-400px);
    z-index: 5;
}

/* Page Content */
.page-content {
    width: 100%;
    height: 100%;
    padding: 50px 60px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
    position: relative;
}

/* Cover Page */
.page-cover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.cover-content {
    text-align: center;
    justify-content: space-around;
    padding: 40px;
}

.magazine-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.magazine-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    opacity: 0.95;
    font-weight: 300;
}

.cover-image-placeholder {
    margin: 30px 0;
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cover-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cover-footer {
    margin-top: 30px;
    font-size: 1.2rem;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    padding-top: 20px;
}

.back-cover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    justify-content: space-around;
}

.contact-info {
    font-size: 1.1rem;
    margin: 20px 0;
    line-height: 2;
}

/* Page Header */
.page-heading {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-header-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    margin-bottom: 30px;
    border-radius: 2px;
}

/* Page Body */
.page-body {
    color: #555;
    line-height: 1.8;
}

.page-body p {
    margin-bottom: 20px;
    text-align: justify;
}

.page-body h3 {
    color: #667eea;
    margin: 25px 0 15px 0;
    font-size: 1.3rem;
}

.contents-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.contents-list li {
    padding: 8px 0 8px 20px;
    position: relative;
    color: #555;
}

.contents-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* Gallery Page */
.gallery-page .page-content {
    padding: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 20px;
}

.gallery-item {
    text-align: center;
}

.gallery-image-placeholder {
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image-placeholder {
    transform: scale(1.05);
}

.gallery-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    color: #667eea;
    font-weight: 600;
    font-size: 1rem;
}

/* Food Section */
.food-section {
    margin-top: 20px;
}

.food-item p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
}

.food-highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.highlight {
    background: #f0f4ff;
    padding: 15px;
    border-left: 4px solid #667eea;
    border-radius: 4px;
    color: #333;
    font-size: 0.95rem;
}

/* Events List */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.event-item {
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.event-item:hover {
    border-color: #667eea;
    background: #f9fafb;
}

.event-date {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.event-item h3 {
    margin: 10px 0;
    color: #333;
    font-size: 1.1rem;
}

.event-item p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

/* Practical Info */
.practical-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-block {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.info-block h3 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.info-block p {
    color: #555;
    margin: 0;
    font-size: 0.95rem;
}

/* Controls */
.flipbook-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    padding: 30px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    flex-wrap: wrap;
}

.control-btn {
    width: 50px;
    height: 50px;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: #667eea;
    color: white;
    transform: scale(1.1);
}

.control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: scale(1);
}

.page-counter {
    font-size: 1.1rem;
    color: #667eea;
    font-weight: 600;
    min-width: 80px;
    text-align: center;
}

/* Page Indicators */
.page-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.page-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-indicator.active {
    background: #667eea;
    transform: scale(1.3);
}

.page-indicator:hover {
    background: #667eea;
}

/* Description */
.flipbook-description {
    color: #666;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .revista-flipbook {
        padding: 40px 20px;
    }

    .flipbook {
        aspect-ratio: 9/12;
    }

    .page-content {
        padding: 30px 25px;
    }

    .magazine-title {
        font-size: 2.2rem;
    }

    .magazine-subtitle {
        font-size: 1.1rem;
    }

    .page-heading {
        font-size: 1.6rem;
    }

    .flipbook-controls {
        gap: 20px;
    }

    .control-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .page-counter {
        font-size: 0.95rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .cover-image-placeholder {
        max-height: 150px;
    }
}

@media (max-width: 480px) {
    .flipbook {
        aspect-ratio: 1/1.4;
        border-radius: 5px;
    }

    .page-content {
        padding: 20px 15px;
    }

    .magazine-title {
        font-size: 1.8rem;
    }

    .page-heading {
        font-size: 1.3rem;
    }

    .flipbook-controls {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .control-btn {
        width: 45px;
        height: 45px;
    }

    .page-body,
    .info-block p,
    .event-item p {
        font-size: 0.9rem;
    }
}
