/* Puntaxexo - Estilos personalizados */

:root {
    --primary-color: #25D366; /* Verde WhatsApp */
    --secondary-color: #FFC107; /* Amarillo */
    --dark-bg: #1a1a1a;
    --light-bg: #f8f9fa;
    --text-dark: #333;
    --text-light: #666;
    --white: #ffffff;
    --green-bg: #2d8659;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header / Navigation */
.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

/* Forzar ocultación de menús según tamaño de pantalla */
/* Desktop: mostrar solo desktop-menu, ocultar mobile-menu */
@media (min-width: 992px) {
    .desktop-menu {
        display: flex !important;
    }
    
    .mobile-menu {
        display: none !important;
    }
    
    .mobile-menu.navbar-collapse {
        display: none !important;
    }
    
    .mobile-menu.navbar-collapse.show {
        display: none !important;
    }
}

/* Móvil: ocultar desktop-menu, mostrar mobile-menu */
@media (max-width: 991.98px) {
    .desktop-menu {
        display: none !important;
    }
    
    .mobile-menu:not(.navbar-collapse) {
        display: flex !important;
    }
    
    .mobile-menu.text-center {
        display: block !important;
    }
    
    .mobile-menu.navbar-collapse.collapse:not(.show) {
        display: none !important;
    }
    
    .mobile-menu.navbar-collapse.collapse.show {
        display: block !important;
    }
    
    /* Asegurar que el botón del menú esté a la derecha */
    .mobile-menu.d-flex {
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    .mobile-menu .navbar-toggler {
        margin-left: auto;
    }
}

.navbar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark) !important;
    text-decoration: none;
}

.navbar-brand.d-lg-flex {
    justify-content: flex-start;
}

.logo-text {
    margin-right: 8px;
}

.logo-icon {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.language-selector {
    display: flex;
    gap: 5px;
}

/* Espaciado específico para desktop */
@media (min-width: 992px) {
    /* Espacio entre logo y idiomas */
    .navbar-brand-desktop {
        margin-right: 4rem !important;
    }
    
    /* Estilo de idiomas como botones unidos (como en la imagen) */
    .language-selector-desktop {
        gap: 0 !important;
        margin-right: calc(3.5rem + 60px) !important;
        background: #f5f5f5;
        border-radius: 20px;
        padding: 2px;
        display: inline-flex;
    }
    
    .language-selector-desktop .lang-link {
        padding: 6px 14px !important;
        border-radius: 0 !important;
        background: transparent !important;
        transition: all 0.2s ease;
    }
    
    .language-selector-desktop .lang-link:first-child {
        border-top-left-radius: 18px !important;
        border-bottom-left-radius: 18px !important;
    }
    
    .language-selector-desktop .lang-link:last-child {
        border-top-right-radius: 18px !important;
        border-bottom-right-radius: 18px !important;
    }
    
    .language-selector-desktop .lang-link.active {
        background: #25D366 !important;
        color: white !important;
    }
    
    .language-selector-desktop .lang-link:not(.active) {
        color: var(--text-light) !important;
    }
    
    .language-selector-desktop .lang-link:not(.active):hover {
        color: var(--text-dark) !important;
    }
    
    /* Menú de navegación con más espacio entre elementos */
    .navbar-nav-desktop {
        margin-left: 0 !important;
    }
    
    .navbar-nav-desktop .nav-link {
        margin: 0 4px !important;
        font-weight: 400 !important; /* Menos negrita para más espacio visual */
        letter-spacing: 0.2px;
    }
}

.lang-link {
    padding: 5px 12px;
    text-decoration: none;
    color: var(--text-light);
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.lang-link:hover,
.lang-link.active {
    color: var(--primary-color);
    background: rgba(37, 211, 102, 0.1);
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.btn-reservar {
    background: #24D366;
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-reservar:hover {
    background: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(36, 211, 102, 0.3);
    color: var(--white);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-bg);
    color: var(--white);
    text-align: center;
    padding-top: 80px;
}

.hero-backgrounds {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-background.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 40px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-slogan {
    font-size: 1.5rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-location {
    display: inline-block;
    background: transparent;
    padding: 8px 20px;
    border-radius: 20px;
    margin-bottom: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
}

.btn-hero {
    background: #24D366;
    color: var(--white);
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
}

.btn-hero:hover {
    background: #20ba5a;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(36, 211, 102, 0.4);
    color: var(--white);
}

/* Sections */
.section-padding {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 50px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Servicios */
.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(37, 211, 102, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
}

.service-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Galería */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-category-item {
    position: relative;
}

.gallery-category-card {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 15px;
    aspect-ratio: 1;
}

.gallery-category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    padding: 15px 20px;
    color: var(--white);
    text-align: left;
}

.gallery-category-overlay h5 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    letter-spacing: 0.5px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    aspect-ratio: 1;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 20px;
    color: var(--white);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: var(--light-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 3rem;
}

.gallery-placeholder p {
    margin-top: 10px;
    font-size: 1rem;
}

/* Lightbox para Galería */
#galleryLightbox .modal-content {
    background: rgba(0, 0, 0, 0.95) !important;
    border: none;
    border-radius: 0;
}

#galleryLightbox .modal-dialog {
    max-width: 90vw;
    margin: 0 auto;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    z-index: 1001;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 3rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.close-lightbox:hover {
    opacity: 1;
}

.lightbox-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 80px;
}

.lightbox-image-wrapper {
    position: relative;
    max-width: 100%;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
}

.lightbox-title {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 1000;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

@media (max-width: 768px) {
    .lightbox-container {
        padding: 40px 20px;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .close-lightbox {
        top: 10px;
        right: 15px;
        font-size: 2rem;
    }
}

/* Calendario */
.calendar-container {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.calendar-note {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Tarifas */
.bg-light {
    background: var(--light-bg) !important;
}

.nav-tabs {
    border-bottom: 2px solid #dee2e6;
}

.nav-tabs .nav-link {
    border: none;
    color: var(--text-light);
    font-weight: 500;
    padding: 15px 30px;
    margin: 0 5px;
    border-radius: 25px 25px 0 0;
}

.nav-tabs .nav-link.active {
    background: var(--primary-color);
    color: var(--white);
    border: none;
}

.table-tarifas {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
}

.table-tarifas thead {
    background: var(--primary-color);
    color: var(--white);
}

.table-tarifas thead th {
    border: none;
    padding: 15px;
    font-weight: 600;
}

.table-tarifas tbody tr {
    transition: background 0.3s ease;
}

.table-tarifas tbody tr:hover {
    background: rgba(37, 211, 102, 0.05);
}

.table-tarifas tbody td {
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
}

.badge {
    padding: 5px 10px;
    font-size: 0.75rem;
}

.btn-tarifas {
    background: #24D366;
    color: var(--white);
    padding: 12px 30px;
    border-radius: 25px;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-tarifas:hover {
    background: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(36, 211, 102, 0.3);
    color: var(--white);
}

/* Ubicación */
.bg-ubicacion {
    background: var(--green-bg);
    color: var(--white);
}

.bg-ubicacion .section-title,
.bg-ubicacion .section-subtitle {
    color: var(--white);
}

.ubicacion-info {
    padding: 40px;
}

.ubicacion-info i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--white);
}

.btn-ubicacion {
    background: var(--white);
    color: var(--green-bg);
    padding: 12px 30px;
    border-radius: 25px;
    border: none;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.btn-ubicacion i {
    color: var(--green-bg);
}

.btn-ubicacion:hover {
    background: var(--light-bg);
    transform: translateY(-2px);
    color: var(--green-bg);
}

.btn-ubicacion:hover i {
    color: var(--green-bg);
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
}

.social-link {
    color: var(--white);
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--primary-color);
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.8rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    color: var(--white);
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Responsive */
@media (max-width: 991.98px) {
    /* Header móvil */
    .header-fixed {
        padding: 10px 0;
    }
    
    .mobile-logo-wrapper {
        padding: 10px 0;
        text-align: center;
        width: 100%;
    }
    
    .mobile-logo-wrapper .navbar-brand {
        justify-content: center;
        width: 100%;
    }
    
    .navbar-collapse {
        margin-top: 10px;
        padding-top: 15px;
        border-top: 1px solid #e9ecef;
    }
    
    .navbar-collapse .navbar-nav {
        text-align: right !important;
    }
    
    .navbar-collapse .nav-link {
        padding: 10px 15px;
        text-align: right;
    }
    
    .navbar-collapse .btn-reservar {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
    
    .language-selector {
        margin-right: 0;
    }
    
    .navbar-toggler {
        border: none;
        padding: 5px 10px;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-slogan {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-tabs .nav-link {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
}

/* FullCalendar Custom Styles */
.fc {
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
}

/* Header del calendario */
.fc-header-toolbar {
    margin-bottom: 1rem;
    padding: 10px 0;
}

.fc-toolbar-title {
    font-size: 1.25rem !important;
    font-weight: 600;
    color: var(--text-dark);
}

.fc-button {
    padding: 6px 12px !important;
    font-size: 0.875rem !important;
    background-color: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    color: var(--text-dark) !important;
    border-radius: 4px !important;
}

.fc-button:hover {
    background-color: #e9ecef !important;
}

.fc-button-primary:not(:disabled):active,
.fc-button-primary:not(:disabled).fc-button-active {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

.fc-button-group > .fc-button {
    margin: 0 2px;
}

/* Días de la semana */
.fc-col-header-cell {
    padding: 8px 4px !important;
    font-size: 0.75rem !important;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-dark);
    background-color: #f8f9fa;
}

.fc-col-header-cell-cushion {
    padding: 4px;
}

/* Celdas del calendario */
.fc-daygrid-day {
    padding: 4px !important;
}

.fc-daygrid-day-frame {
    min-height: 60px;
}

.fc-daygrid-day-number {
    padding: 4px 6px !important;
    font-size: 0.875rem !important;
    font-weight: 500;
    color: var(--text-dark);
}

.fc-day-other .fc-daygrid-day-number {
    color: #adb5bd;
}

.fc-day-today {
    background-color: #fff9e6 !important;
}

.fc-day-today .fc-daygrid-day-number {
    background-color: #ffc107;
    color: var(--white);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Eventos del calendario */
.fc-event {
    border: none !important;
    border-radius: 12px !important;
    padding: 4px 8px !important;
    margin: 2px 0 !important;
    font-size: 0.75rem !important;
    font-weight: 500;
    cursor: default;
}

.fc-event-title {
    padding: 0 !important;
    font-weight: 500;
}

.fc-event.reserved {
    background-color: #6c757d !important;
    color: var(--white) !important;
}

.fc-event.not-available {
    background-color: #6c757d !important;
    color: var(--white) !important;
}

.fc-event[title*="Airbnb"] {
    background-color: #6c757d !important;
    color: var(--white) !important;
}

/* Ocultar botones de vista que no necesitamos */
.fc-dayGridMonth-button,
.fc-listWeek-button {
    display: none !important;
}

/* Ajustar espaciado general */
.fc-daygrid-body {
    border: 1px solid #dee2e6;
}

.fc-scrollgrid {
    border: none !important;
}

.fc-scrollgrid-section > td {
    border: 1px solid #dee2e6;
}

.fc-daygrid-day-top {
    flex-direction: row;
    justify-content: flex-start;
}

/* Responsive */
@media (max-width: 768px) {
    .fc {
        font-size: 0.75rem;
    }
    
    .fc-toolbar-title {
        font-size: 1rem !important;
    }
    
    .fc-button {
        padding: 4px 8px !important;
        font-size: 0.75rem !important;
    }
    
    .fc-daygrid-day-frame {
        min-height: 50px;
    }
    
    .fc-daygrid-day-number {
        font-size: 0.75rem !important;
        padding: 2px 4px !important;
    }
    
    .fc-event {
        font-size: 0.65rem !important;
        padding: 2px 6px !important;
    }
}
