/* Reset & Base */
body.home {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
}

.ag-hidden {
    visibility: hidden;
    opacity: 0;
}

/* =========================================================================
/* =========================================================================
   1. THE GENESIS INTRO
   ========================================================================= */
#ag-genesis-intro {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, #161616 0%, #000000 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 9999;
}

.ag-genesis-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)" opacity="0.05"/></svg>');
    pointer-events: none;
}

.ag-genesis-center {
    position: relative;
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: ag-float 6s ease-in-out infinite;
}

@keyframes ag-float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

#ag-genesis-logo {
    max-width: 350px;
    max-height: 150px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.15));
}

#ag-genesis-text {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
    background: linear-gradient(45deg, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ag-genesis-glow-img,
.ag-genesis-glow-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
    animation: ag-pulse 4s infinite alternate;
}

@keyframes ag-pulse {
    0% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.ag-genesis-scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: ag-fade-in-up 2s ease forwards 1s;
}

@keyframes ag-fade-in-up {
    to {
        opacity: 0.7;
        transform: translate(-50%, 0);
    }
}

.ag-genesis-scroll-hint span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.ag-mouse-icon {
    width: 24px;
    height: 36px;
    border: 2px solid #fff;
    border-radius: 12px;
    position: relative;
}

.ag-mouse-icon::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 6px;
    background: #fff;
    border-radius: 2px;
    animation: ag-scroll-wheel 2s infinite;
}

@keyframes ag-scroll-wheel {
    0% {
        top: 6px;
        opacity: 1;
    }

    100% {
        top: 18px;
        opacity: 0;
    }
}

/* Spacer for main content so it sits below intro */
#ag-cinematic-main {
    position: relative;
    z-index: 5;
    background: #000;
}


/* =========================================================================
   2. CINEMATIC MAIN CONTENT (V2 CANVAS)
   ========================================================================= */

/* Hero Section */
.ag-hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.ag-hero-bg {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

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

.ag-hero-content {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    padding: 20px;
}

.ag-hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.ag-hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto;
    color: #eaeaea;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* Glassmorphism Hover (Hidden, as Mega Button replaces it) */
.ag-booking-trigger {
    display: none;
}

/* Section Title */
.ag-sectionTitle {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 200;
    letter-spacing: 0.1em;
    margin-bottom: 40px;
    color: #fff;
}

/* Swiper 3D Gallery */
.ag-gallery-section {
    padding: 80px 0;
    background: #050505;
    overflow: hidden;
}

.ag-3d-slider {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
}

.swiper-slide.ag-glass-slide {
    background-position: center;
    background-size: cover;
    width: 320px;
    height: 480px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ag-slide-content {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
}

.ag-slide-content h3 {
    font-size: 1.5rem;
    margin: 0 0 10px 0;
    color: #fff;
    font-weight: 600;
}

.ag-slide-content p {
    font-size: 1rem;
    margin: 0;
    color: #ccc;
    font-weight: 300;
}

/* Amenities Grid V2 */
.ag-amenities-section {
    padding: 80px 5vw;
    background: #0a0a0a;
}

.ag-amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.ag-amenity-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.ag-amenity-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.ag-amenity-icon {
    font-size: 1.8rem;
}

.ag-amenity-text {
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #fff;
}

/* Environment & Map Section */
.ag-environment-section {
    position: relative;
    padding: 100px 5vw 150px;
    background: #000;
}

.ag-env-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.ag-env-header h2 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 20px;
}

.ag-env-header p {
    font-size: 1.2rem;
    color: #aaa;
    line-height: 1.6;
}

#ag-osm-map {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: 50vh;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1;
    /* For leaflet */
    filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%);
    /* Dark mode map effect */
}

/* Contact Info Glass Box */
.ag-contact-glass {
    margin-top: 50px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.ag-contact-glass h3 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.ag-contact-glass p {
    font-size: 1.2rem;
    margin: 10px 0;
    color: #ddd;
}

/* Mega Sticky Booking Button Removed (Now uses inline Pill button styles in shortcode) */

/* Responsive */
@media (min-width: 768px) {
    .swiper-slide.ag-glass-slide {
        width: 450px;
        height: 600px;
    }
}

/* =========================================================
   BLOG SECTION (LATEST NEWS)
========================================================= */
.ag-blog-section {
    padding: 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.ag-blog-header {
    text-align: center;
    margin-bottom: 40px;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.ag-blog-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.ag-blog-header p {
    font-size: 1.1rem;
    color: #e0e0e0;
}

.ag-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.ag-blog-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    display: flex;
    flex-direction: column;
}

.ag-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

.ag-blog-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ag-blog-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ag-blog-content h3 {
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    color: #fff;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.ag-blog-excerpt {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.ag-blog-readmore {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    transition: color 0.3s ease;
}

.ag-blog-card:hover .ag-blog-readmore {
    color: #d4a373;
    /* Reflejo dorado suave */
}

@media (max-width: 768px) {
    .ag-blog-header h2 {
        font-size: 2rem;
    }
}