:root {
    --primary-red: #8B0000;
    --burgundy: #600000;
    --text-dark: #333;
    --text-light: #fff;
    --overlay-dark: rgba(0, 0, 0, 0.5);
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Lato', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: url('../images/BACKGROUND BODY.jpg') repeat;
    background-size: auto;
    font-family: var(--font-sans);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

/* Header & Language Selector */
header {
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: flex-end;
    position: relative;
    z-index: 100;
}

.custom-dropdown {
    position: relative;
    width: 160px;
    font-size: 14px;
}

.dropdown-trigger {
    background: var(--primary-red);
    color: var(--text-light);
    padding: 6px 10px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: var(--transition);
    min-width: 130px;
}

.dropdown-trigger span {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: center;
}

.dropdown-trigger:hover {
    background: var(--burgundy);
}

.dropdown-trigger .flag {
    width: 20px;
    height: 15px;
    margin-right: 8px;
    object-fit: cover;
}

.dropdown-trigger i {
    font-size: 10px;
    margin-left: 5px;
    transition: var(--transition);
}

.custom-dropdown.active i {
    transform: rotate(180deg);
}

.dropdown-options {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background: #fff;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    overflow: hidden;
}

.custom-dropdown.active .dropdown-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-option {
    padding: 10px 12px;
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: var(--transition);
    border-bottom: 1px solid #eee;
}

.dropdown-option:last-child {
    border-bottom: none;
}

.dropdown-option:hover {
    background: #f5f5f5;
    color: var(--primary-red);
}

.dropdown-option .flag {
    width: 20px;
    height: 15px;
    margin-right: 10px;
    object-fit: cover;
}

/* Main Content */
main {
    max-width: 1200px;
    width: 95%;
    text-align: center;
    padding-bottom: 30px;
    padding-top: 0;
}

h1 {
    font-family: var(--font-serif);
    color: var(--primary-red);
    font-size: 2.2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

.intro-text {
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    color: #444;
    font-size: 0.95rem;
}

.intro-text p {
    margin-bottom: 10px;
}

/* Hotel Cards */
.cards-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
    padding: 0 10px;
}

.hotel-card {
    position: relative;
    height: 380px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border-radius: 2px;
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.hotel-card:hover .card-bg {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.4));
    z-index: 1;
}

.hotel-logo {
    position: relative;
    z-index: 2;
    width: 65%;
    max-width: 280px;
    margin-bottom: 20px;
}

.card-btn {
    position: relative;
    z-index: 3;
    padding: 10px 30px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 30px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    font-weight: 400;
    transition: all 0.4s ease;
    margin-bottom: 20px;
}

.hotel-card:hover .card-btn {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
    border-color: white;
}

.hotel-address {
    position: relative;
    width: 100%;
    text-align: center;
    color: var(--text-light);
    z-index: 2;
    font-size: 0.9rem;
    font-weight: 300;
}

/* Badge overlay */
.middle-badge {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    background: #BD7C38;
    color: #fff;
    padding: 12px 30px;
    z-index: 10;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.6rem;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.middle-badge span {
    font-weight: normal;
}

/* Bottom Logos */
.bottom-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    margin: 20px auto 0;
    padding: 0 20px;
}

.bottom-logos img {
    height: 120px;
    width: auto;
    object-fit: contain;
}

.bottom-logos .logo-caltur { height: 80px; }
.bottom-logos .logo-arequipa { height: 130px; }

/* Responsive */
@media (max-width: 900px) {
    h1 {
        font-size: 2rem;
    }
    .cards-container {
        grid-template-columns: 1fr;
    }
    .hotel-card {
        height: 350px;
    }
    .middle-badge {
        position: relative;
        left: 0;
        top: 0;
        transform: none;
        margin: -20px auto 20px;
        display: inline-block;
    }
    .bottom-logos {
        gap: 20px;
    }
    .bottom-logos img {
        height: 80px;
    }
    .bottom-logos .logo-caltur { height: 50px; }
    .bottom-logos .logo-arequipa { height: 90px; }
}

@media (max-width: 600px) {
    .bottom-logos {
        flex-direction: column;
        gap: 30px;
    }
}

/* Footer Am Digital */
.footer-amdigital {
    text-align: center;
    padding: 15px 10px 25px;
    font-size: 12px;
    opacity: 0.7;
    margin-top: 20px;
}

.footer-amdigital a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
    transition: opacity 0.3s ease;
}

.footer-amdigital img {
    height: 18px;
    width: auto;
}

.footer-amdigital a:hover {
    opacity: 1;
}
