/* ===================================
   RESET Y CONFIGURACIÓN BASE
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --brand-color: #6b8159;
    --brand-dark: #4a5a3d;
    --brand-light: #8fa378;
    --text-light: #ffffff;
    --text-shadow: rgba(0, 0, 0, 0.8);
    --overlay-color: rgba(0, 0, 0, 0.45);
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   UTILIDADES SEO
   =================================== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===================================
   CARRUSEL DE FONDO
   =================================== */
.carousel-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

/* Imágenes del carrusel */
.carousel-slide:nth-child(1) {
    background-image: url('images/photo1.jpg');
}

.carousel-slide:nth-child(2) {
    background-image: url('images/photo2.jpg');
}

.carousel-slide:nth-child(3) {
    background-image: url('images/photo3.jpg');
}

.carousel-slide:nth-child(4) {
    background-image: url('images/photo4.jpg');
}

.carousel-slide:nth-child(5) {
    background-image: url('images/photo5.jpg');
}

/* Modo horizontal: usar imágenes específicas para landscape */
@media (orientation: landscape) {
    .carousel-slide {
        background-size: cover;
    }

    .carousel-slide:nth-child(1) {
        background-image: url('images/landscape/photo1.jpg');
    }

    .carousel-slide:nth-child(2) {
        background-image: url('images/landscape/photo2.jpg');
    }

    .carousel-slide:nth-child(3) {
        background-image: url('images/landscape/photo3.jpg');
    }

    .carousel-slide:nth-child(4) {
        background-image: url('images/landscape/photo4.jpg');
    }

    .carousel-slide:nth-child(5) {
        background-image: url('images/landscape/photo5.jpg');
    }
}

/* ===================================
   OVERLAY OSCURO
   =================================== */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            rgba(0, 0, 0, 0.6) 100%);
    z-index: 2;
}

/* ===================================
   CONTENIDO PRINCIPAL
   =================================== */
.content {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 60px 30px 40px;
    color: var(--text-light);
}

/* ===================================
   LOGO/TÍTULO
   =================================== */
.logo-container {
    flex: 0 0 auto;
    text-align: center;
    animation: fadeInDown 1.2s ease-out;
}

.logo-image {
    max-width: min(85vw, 450px);
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.6)) drop-shadow(0 2px 10px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 6px 25px rgba(0, 0, 0, 0.7)) drop-shadow(0 3px 12px rgba(0, 0, 0, 0.5));
}

/* ===================================
   INFORMACIÓN DEL LOCAL
   =================================== */
.info-container {
    flex: 0 0 auto;
    width: 100%;
    max-width: 400px;
    animation: fadeInUp 1.2s ease-out;
}

.info-block {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 28px 32px;
    text-align: center;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.info-block:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.info-block p {
    margin: 0;
    line-height: 1.8;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.address {
    font-size: 20px;
    font-weight: 500;
    color: var(--brand-light);
    margin-bottom: 16px !important;
    letter-spacing: 0.02em;
}

.hours {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
}

.reservations {
    font-size: 15px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 12px !important;
    font-style: italic;
}

/* ===================================
   BLOQUE SOCIAL (INSTAGRAM)
   =================================== */
.social-block {
    background: rgba(107, 129, 89, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(107, 129, 89, 0.4);
    border-radius: 20px;
    padding: 20px 32px;
    text-align: center;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-block:hover {
    background: rgba(107, 129, 89, 0.35);
    transform: translateY(-2px);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.instagram-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
}

.instagram-link:hover {
    color: var(--brand-light);
    transform: scale(1.05);
}

.instagram-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.instagram-link:hover .instagram-icon {
    transform: rotate(15deg) scale(1.1);
}

/* ===================================
   ANIMACIONES
   =================================== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   RESPONSIVE - AJUSTES FINOS
   =================================== */
@media (max-width: 480px) {
    .content {
        padding: 50px 25px 35px;
    }

    .info-block {
        padding: 24px 28px;
    }

    .social-block {
        padding: 18px 28px;
    }

    .address {
        font-size: 18px;
    }

    .hours {
        font-size: 15px;
    }

    .reservations {
        font-size: 14px;
    }

    .instagram-link {
        font-size: 15px;
    }
}

/* Optimización para pantallas muy altas (9:16) */
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 10/16) {
    .content {
        justify-content: space-around;
    }
}

/* Optimización para pantallas muy estrechas */
@media (max-width: 360px) {
    .content {
        padding: 40px 20px 30px;
    }

    .logo-text {
        font-size: 42px;
    }

    .info-block,
    .social-block {
        padding: 20px 24px;
    }
}