body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background-color: #ffffff; 
}

/* estructura principal del home */
main.home {
    flex: 1; 
    position: relative;
}

/* banner principal con vídeo */
.home-banner {
    height: 100vh; 
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;     
    justify-content: center;
    background-color: #ffffff; 
}

.home-banner-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: #ffffff;
}

.home-banner-video {
    width: 100%;
    height: auto;          
    min-height: 120%;      
    object-fit: cover;
    display: block; 
}

/* capa oscura para mejorar lectura del texto */
.home-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55); 
    z-index: 2;
}

.home-banner-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    padding: 0 2rem;
    margin-top: 80px;
}

.home-banner-content h1 {
    font-size: 3.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.home-banner-content p {
    max-width: 750px;
    font-size: 1.3rem;
    line-height: 1.6;
    margin: 0 auto 2.5rem;
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* botón principal del banner */
.home-banner-btn {
    background-color: var(--gold-accent);
    color: var(--white);
    text-decoration: none;
    padding: 1rem 2.8rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    transition: var(--transition);
    display: inline-block;
    border: 2px solid var(--gold-accent);
}

.home-banner-btn:hover {
    background-color: transparent;
    color: var(--gold-accent);
    transform: scale(1.05);
}

/* sección de experiencia */
.home-experience {
   padding: 12rem 8% 6rem;
    text-align: center;
}

.home-experience h2 {
    font-size: 2.8rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.home-experience p {
    max-width: 700px;
    margin: 0 auto 4rem;
    color: #555;
    font-size: 1.1rem;
}

/* tarjetas de experiencia */
.home-experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.home-experience-card {
    background: #f8f1e1;
    padding: 4rem 2.5rem;
    border-radius: 20px;
    
}

.home-experience-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

.home-experience-card h3 {
    font-size: 1.6rem;
    color: var(--primary-blue);
    margin-bottom: 1.2rem;
    transition: var(--transition);
}

.home-experience-card:hover h3 {
    color: var(--gold-accent);
}

.home-experience-card p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 0;
}

/* sección de historia */
.home-story {
    padding: 8rem 8%;
    background-color: var(--white);
}

.home-story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.home-story-text h2 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    color: var(--primary-blue);
    line-height: 1.2;
}

.home-story-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #444;
}

/* galería de imágenes del home */
.home-story-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.home-story-images img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.5s ease;
}

.home-story-images img:hover {
    transform: scale(1.05) translateY(-5px);
}

/* aviso de cookies */
.cookie-banner{
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 9999;
  width: min(420px, calc(100vw - 36px));
  background: rgba(20, 20, 22, 0.92);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  padding: 14px;
  backdrop-filter: blur(10px);
  display: block; /* CLAVE */
}


/* Botón Descubrir Habitaciones */
.home-banner-btn-descubrir {
    display: inline-block;
    background-color: var(--accent-gold); /* El color dorado crema */
    color: var(--white) !important;
    text-decoration: none;
    padding: 14px 35px;
    border-radius: 50px; /* Puntas totalmente redondeadas */
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--accent-gold);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3); /* Sombra suave */
    cursor: pointer;
}

.home-banner-btn-descubrir:hover {
    background-color: transparent; /* Fondo transparente al pasar el ratón */
    color: var(--accent-gold) !important;
    transform: translateY(-3px); /* Se eleva un poquito */
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.5); /* Sombra más intensa */
}

.home-banner-btn-descubrir:active {
    transform: translateY(-1px); /* Efecto de pulsación */
    box-shadow: 0 2px 10px rgba(197, 160, 89, 0.4);
}

/* responsive principal */
@media (max-width: 1024px) {
    .home-story-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .home-banner-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .home-banner {
        height: 70vh;
    }

    .home-banner-video {
        min-height: 130%;
    }

    .home-banner-content h1 {
        font-size: 2.2rem;
    }

    .home-story-images {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .home-experience {
        padding: 5rem 5%;
    }
}

@media (max-width: 480px) {
    .home-story-images {
        grid-template-columns: 1fr;
    }
}


/* panel lateral de sostenibilidad */
.sustainability-drawer {
    position: fixed;
    right: 0;
    bottom: 24px;
    z-index: 9998;
    display: flex;
    align-items: stretch;
    width: 356px;
    max-width: calc(100vw - 8px);
    transform: translateX(300px);
    transition: transform 0.35s ease;
}

.sustainability-drawer.sustainability-drawer--open {
    transform: translateX(0);
}

/* pestaña para abrir y cerrar */
.sustainability-drawer__toggle {
    border: none;
    background: linear-gradient(180deg, #c5a059 0%, #d3ae69 100%);
    color: var(--white);
    width: 56px;
    min-width: 56px;
    border-radius: 14px 0 0 14px;
    box-shadow: -8px 10px 25px rgba(0, 0, 0, 0.16);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 8px;
}

.sustainability-drawer__toggle-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.sustainability-drawer__arrow {
    font-size: 1rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.sustainability-drawer.sustainability-drawer--open .sustainability-drawer__arrow {
    transform: rotate(180deg);
}

/* contenido del panel de sostenibilidad */
.sustainability-drawer__panel {
    width: 300px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.98),
        rgba(245, 242, 234, 0.98)
    );
    color: var(--primary-blue);
    border: 1px solid rgba(197, 160, 89, 0.28);
    border-left: none;
    border-radius: 0 16px 16px 0;
    box-shadow: -8px 10px 25px rgba(0, 0, 0, 0.12);
    padding: 18px 18px 16px;
}

.sustainability-drawer__tag {
    display: inline-block;
    margin-bottom: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background-color: rgba(197, 160, 89, 0.15);
    color: var(--gold-accent);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sustainability-drawer__panel h3 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    color: var(--primary-blue);
}

.sustainability-drawer__panel p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.55;
    color: #555;
}

/* sostenibilidad en móvil */
@media (max-width: 768px) {
    .sustainability-drawer {
        bottom: 12px;
        width: 310px;
        max-width: none;
        transform: translateX(260px);
    }

    .sustainability-drawer.sustainability-drawer--open {
        transform: translateX(0);
    }

    .sustainability-drawer__toggle {
        width: 50px;
        min-width: 50px;
        padding: 12px 6px;
        border-radius: 12px 0 0 12px;
    }

    .sustainability-drawer__panel {
        width: 260px;
        padding: 16px 14px;
        border-radius: 0;
    }

    .sustainability-drawer__panel h3 {
        font-size: 0.95rem;
    }

    .sustainability-drawer__panel p {
        font-size: 0.8rem;
        line-height: 1.45;
    }
}

@media (max-width: 360px) {
    .sustainability-drawer {
        width: 290px;
        transform: translateX(240px);
    }

    .sustainability-drawer__panel {
        width: 240px;
    }
}


/* sección de estadísticas */
.home-stats {
    padding: 4rem 8% 2rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8f6f1 100%);
}

.home-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.home-stat-card {
    background: var(--white);
    border: 1px solid rgba(197, 160, 89, 0.18);
    border-radius: 18px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 14px 30px rgba(0,0,0,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    will-change: transform;
}

.home-stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 35px rgba(0,0,0,0.1);
}

.home-stat-number {
    display: block;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--gold-accent);
    margin-bottom: 0.6rem;
}

.home-stat-card p {
    margin: 0;
    color: var(--primary-blue);
    font-weight: 600;
}


/* animaciones de aparición al hacer scroll */
.reveal {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: transform, opacity;
}

.reveal-up {
    transform: translateY(36px);
}

.reveal-left {
    transform: translateX(-36px);
}

.reveal-right {
    transform: translateX(36px);
}

.reveal.reveal-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* ===== BOTÓN HERO MEJORADO ===== */

/* animación del botón principal al cargar */
.home-banner-btn-descubrir--active {
    animation: homeButtonPulse 1.4s ease;
}

@keyframes homeButtonPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
    }
    50% {
        transform: scale(1.04);
        box-shadow: 0 8px 24px rgba(197, 160, 89, 0.45);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
    }
}


/* prepara elementos para efectos de movimiento */
.home-experience-card,
.home-stat-card,
.home-story-images img {
    transform-style: preserve-3d;
    will-change: transform;
}

/* ===== RESPONSIVE EXTRA ===== */

@media (max-width: 768px) {
    .home-stats {
        padding: 3rem 5% 1rem;
    }

    .home-stat-number {
        font-size: 2rem;
    }

    .reveal,
    .reveal-up,
    .reveal-left,
    .reveal-right {
        transition-duration: 0.65s;
    }
}
