* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    min-height: 100vh;
    background-color: #f5d8a9;
    overflow-x: hidden;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="%23684814"><circle cx="12" cy="12" r="10" stroke="%23684814" stroke-width="2" fill-opacity="0.5"/></svg>') 12 12, auto;
}

.container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f5d8a9;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.peru-map {
    animation: draw 2s ease-in-out forwards;
}

.loader-text {
    font-size: 2rem;
    font-weight: bold;
    color: #684814;
    margin-top: 1rem;
    opacity: 0;
    animation: fadeIn 1s ease-in-out 1.5s forwards;
}

/* Floating elements */
.floating-elements {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.floating-element {
    position: absolute;
    width: 50px;
    height: 50px;
    opacity: 0.7;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.floating-element img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Background shapes */
.background-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.shape {
    position: absolute;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.shape-1 {
    top: 0;
    left: 0;
    width: 50%;
    height: 50%;
    background-color: #684814;
    clip-path: polygon(0 0, 100% 0, 80% 100%, 0 80%);
}

.shape-2 {
    top: 0;
    right: 0;
    width: 50%;
    height: 75%;
    background-color: #f5d8a9;
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 80%);
}

.shape-3 {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: #746854;
    transform: skewY(-6deg) translateY(20px);
}

.shape-4 {
    top: 30%;
    left: 20%;
    width: 200px;
    height: 200px;
    background-color: rgba(244, 166, 40, 0.2);
    border-radius: 50%;
    filter: blur(40px);
}

.shape-5 {
    bottom: 20%;
    right: 10%;
    width: 150px;
    height: 150px;
    background-color: rgba(104, 72, 20, 0.15);
    border-radius: 50%;
    filter: blur(30px);
}

.content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.flag-container {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 40px;
    perspective: 500px;
}

.peru-flag {
    width: 100%;
    height: 100%;
    display: flex;
    transform-style: preserve-3d;
    animation: flagWave 6s ease-in-out infinite;
}

.flag-stripe {
    flex: 1;
    height: 100%;
}

.flag-stripe.red {
    background-color: #D91023;
}

.flag-stripe.white {
    background-color: #FFFFFF;
}

.title {
    font-size: 5rem;
    font-weight: bold;
    color: #f4a628;
    text-shadow: 2px 2px 0 #684814, -2px -2px 0 #684814, 2px -2px 0 #684814, -2px 2px 0 #684814;
    letter-spacing: 5px;
    position: relative;
    display: inline-block;
}

.title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 4px;
    background: linear-gradient(90deg, transparent, #f4a628, transparent);
}

.subtitle {
    font-size: 1.5rem;
    color: #F4A628;
    margin-top: 1rem;
    font-style: italic;
    opacity: 0;
    animation: fadeInUp 1s ease-in-out 0.5s forwards;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.image-container {
    width: 100%;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    position: relative;
    transform: perspective(1000px) rotateX(5deg);
    transition: transform 0.5s ease;
}

.image-container:hover {
    transform: perspective(1000px) rotateX(0);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.5));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    z-index: 2;
}

.image-container:hover .image-overlay {
    opacity: 1;
}

.overlay-text {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.main-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 10s ease;
}

.image-container:hover .main-image {
    transform: scale(1.1);
}

.image-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    transform: translateY(-50%);
    z-index: 3;
}

.image-control {
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.image-control:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.image-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: white;
}

.description {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    padding: 2rem;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.description-icon {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background-color: #f4a628;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.description-icon img {
    width: 30px;
    height: 30px;
}

.description p {
    color: #383227;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 1.5rem;
}

.facts-container {
    display: flex;
    justify-content: space-around;
    margin-top: 1.5rem;
}

.fact {
    text-align: center;
    animation: pulse 2s infinite alternate;
}

.fact-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #684814;
}

.fact-label {
    font-size: 0.875rem;
    color: #746854;
}

.navigation {
    max-width: 768px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.nav-button {
    position: relative;
    padding: 1rem 1.5rem;
    background-color: #2c261e;
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
    text-decoration: none;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #684814, #f4a628);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.nav-button:hover::before {
    opacity: 1;
}

.button-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.nav-button:hover .button-icon {
    transform: scale(1.2);
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(104, 72, 20, 0.2);
}

.made-by {
    display: flex;
    gap: 0.5rem;
    color: #684814;
}


.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: #684814;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #f4a628;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #684814;
    font-size: 0.875rem;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid #684814;
    border-radius: 20px;
    position: relative;
    margin-bottom: 0.5rem;
}

.wheel {
    width: 6px;
    height: 6px;
    background-color: #684814;
    border-radius: 50%;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

@media (min-width: 768px) {
    .main-content {
        flex-direction: row;
    }

    .image-container {
        width: 50%;
    }

    .description {
        width: 50%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}