/* Custom style.css for El Campillo (VUT-37/00380) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --color-leaf-dark: #1b3a24;
    --color-leaf: #2c5e3b;
    --color-leaf-light: #528b62;
    --color-leaf-tint: #f3f7f4;
    --color-stone: #555c56;
    --color-stone-light: #8e968f;
    --color-sand: #f0eae1;
    --color-wood: #a87c53;
    --color-wood-dark: #7a5433;
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

body {
    font-family: var(--font-sans);
    background-color: #fafbfc;
    color: #2b2e2a;
    scroll-behavior: smooth;
}

img.h-10 {
    height: 4rem;
    width: 4rem;
}

.px-6 {
    padding-left: 1rem;
    padding-right: 1rem;
}

h1,
h2,
h3,
.font-serif {
    font-family: var(--font-serif);
}

/* Glassmorphism & premium UI containers */
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(44, 94, 59, 0.05);
}

.shadow-premium {
    box-shadow: 0 20px 40px -15px rgba(27, 58, 36, 0.07);
}

/* Custom button styles */
.btn-primary {
    background-color: var(--color-leaf);
    color: white;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--color-leaf-dark);
    transform: translateY(-2px);
}

.btn-wood {
    background-color: var(--color-wood);
    color: white;
    transition: all 0.3s ease;
}

.btn-wood:hover {
    background-color: var(--color-wood-dark);
    transform: translateY(-2px);
}

/* Interactive Calendar Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    cursor: default;
}

.day-free {
    background-color: var(--color-leaf-tint);
    color: var(--color-leaf-dark);
    border: 1px solid rgba(82, 139, 98, 0.15);
}

.day-free:hover {
    background-color: #e5efe7;
}

.day-occupied {
    background-color: #fde8e8;
    color: #9b1c1c;
    border: 1px solid rgba(253, 232, 232, 0.5);
    text-decoration: line-through;
    position: relative;
}

.day-occupied::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 1.5px;
    background-color: rgba(155, 28, 28, 0.3);
    transform: rotate(-45deg);
}

.day-header {
    font-weight: 600;
    color: var(--color-stone);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding-bottom: 8px;
    text-align: center;
}

/* Lightbox Modal styles */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 18, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    position: relative;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    border: 4px solid white;
}

/* Canvas signature element */
#signature-canvas {
    background-color: #fdfdfd;
    border: 2px dashed var(--color-stone-light);
    border-radius: 8px;
    cursor: crosshair;
    touch-action: none;
}

/* Active sidebar / Tab states */
.tab-active {
    border-bottom: 2px solid var(--color-leaf);
    color: var(--color-leaf);
    font-weight: 600;
}

/* Badges for admin panel */
.badge-pending {
    background-color: #fde8e8;
    color: #9b1c1c;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-weight: 600;
}

.badge-ready {
    background-color: #fef08a;
    color: #713f12;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-weight: 600;
}

.badge-sent {
    background-color: #def7ec;
    color: #03543f;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-weight: 600;
}

section#opiniones {
    padding-bottom: 2rem;
}

section#opiniones #reviews-carousel-container {
    padding-bottom: 4rem;
}

/* Responsive grid layout adjustments */
@media (max-width: 640px) {
    .calendar-day {
        font-size: 0.8rem;
    }
}

/* Menús móviles inferiores fijos estilo Airbnb (< 900px) */
@media (max-width: 900px) {

    /* Ocultar elementos redundantes de la barra de navegación superior en móviles */
    .links-desktop,
    .btn-reservar-desktop {
        display: none !important;
    }

    /* Mostrar barra de navegación móvil inferior en el inicio público */
    .nav-mobile {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 64px;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
        z-index: 50;
        align-items: center;
        justify-content: space-around;
        padding: 0 1rem;
    }

    /* Ocultar pestañas de escritorio y el botón de logout duplicado en admin */
    .tabs-desktop,
    .logout-desktop {
        display: none !important;
    }

    /* Mostrar barra de navegación móvil inferior en admin */
    .nav-mobile-admin {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 64px;
        background-color: #1b3a24;
        /* leaf-dark */
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.15);
        z-index: 50;
        align-items: center;
        justify-content: space-around;
        padding: 0 0.5rem;
    }

    /* Padding inferior del body para evitar solapamientos al final de la página */
    body {
        padding-bottom: 80px !important;
    }
}

/* Ocultar menús móviles por defecto en resoluciones mayores */
@media (min-width: 901px) {

    .nav-mobile,
    .nav-mobile-admin {
        display: none !important;
    }
}

/* Centrado general de las tarjetas de servicios */
.servicio-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

/* Cuadrícula de 2 columnas para servicios entre 450px y 767px */
@media (min-width: 350px) and (max-width: 767px) {

    div.px-6,
    section.px-6 {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    div.servicios-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 1rem;
    }

    div#gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 600px) {

    .p-8 {
        padding: 1rem !important;
    }

    div#gallery-grid img {
        max-height: 10rem;
    }
}