/* =============================== */
/* ESTILOS BASE (PC/Desktop)       */
/* =============================== */

/* --- HERO SECTION --- */
.hero {
    background: 
        linear-gradient(135deg, rgba(44, 62, 80, 0.8), rgba(69, 66, 66, 0.1)),
        url('/laCavaRestaurant/assets/img/fondo.png') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 150px 20px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    height: 155px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Menús Section */
.featured-properties {
    padding: 4rem 0;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible;
}

.featured-properties h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

/* Container solo centra y limita el ancho */
.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

/* Grid de cards con scroll horizontal */
.properties-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 0 0 20px 0;
    scroll-behavior: smooth;
}

/* Scrollbar personalizada para properties-grid */
.properties-grid::-webkit-scrollbar {
    height: 8px;
    background: rgba(224, 180, 103, 0.1);
    border-radius: 4px;
}

.properties-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #e0b467, #d4a556);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.properties-grid::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #d4a556, #c89645);
}

.property-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 300px;
    min-width: 280px;
    flex-shrink: 0;
}

.property-card:hover {
    transform: translateY(-5px);
}

.property-card img {
    width: 100%;
    height: 324px;        /* Puedes bajar a 180px si quieres más espacio para el botón */
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    display: block;
}

.card-content {
    padding: 1.2rem;      /* Un poco menos de padding */
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    height: 100%;
}

.card-content h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 700;
    font-family: 'Georgia', serif;
}

.card-content p {
    color: #666;
    margin-bottom: 1.5rem;
    flex: 1 1 auto;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #e67e22;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
    margin-top: auto;
}

.btn:hover {
    background: #d35400;
}

/* =============================== */
/* MEDIA QUERIES SIMPLIFICADOS     */
/* =============================== */

/* Extra pequeño: hasta 400px */
/* @media (max-width: 400px) {
    .hero {
        padding: 18px 0 8px 0;
        height: auto;
    }
    .hero h1 {
        font-size: 1.3rem;
    }
    .hero p {
        font-size: 0.9rem;
    }
    .properties-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 2vw;
        max-width: 100vw;
    }
    .property-card {
        width: 98vw;
        min-width: 98vw;
        max-width: 98vw;
        height: 340px;
        min-height: 340px;
        max-height: 340px;
        flex-direction: column;
        align-items: stretch;
        margin: 0 auto;
        font-size: 0.95rem;
    }
    .property-card img {
        height: 180px; 
        width: 100%;
        object-fit: cover;
        border-radius: 8px 8px 0 0;
        margin: 0;
    }
    .card-content {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        padding: 10px 4px 10px 4px;
        height: 100%;
    }
    .btn {
        font-size: 0.95rem;
        padding: 0.7rem 1.2rem;
    }
} */

/* Tablet y móvil: hasta 768px */
/* @media (max-width: 768px) {
    .hero {
        padding: 40px 10px;
        height: auto;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    section {
        padding: 30px 0;
        margin-bottom: 18px;
    }
    h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    .properties-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 0 8px;
    }
    .property-card {
        width: 95vw;
        min-width: 95vw;
        max-width: 95vw;
        min-height: 380px;
        height: auto;
        padding: 0 4px;
        font-size: 0.95rem;
        flex-direction: column;      
        align-items: stretch;
    }
    .property-card img {
        height: 180px;
        width: 100%;
        max-width: 100%;
        object-fit: cover;
        border-radius: 8px 8px 0 0;
        margin: 0;
    }
    .card-content {
        padding: 18px 10px 18px 10px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        height: 100%;
    }
    
} */

/* Desktop reducido: desde 769px en adelante */
/* @media (min-width: 769px) {
    .properties-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
        padding: 0 20px;
    }
    .property-card {
        min-width: 220px;
        max-width: 100%;
        flex-direction: column;
        align-items: stretch;
        width: 18vw;
        
    }
    .property-card img {
        height: auto;
        width: 100%;
        object-fit: cover;
        border-radius: 8px 8px 0 0;
        margin: 0;
    }
    .card-content {
        display: flex;
        padding: 18px;
    }
    
} */
@media (max-width: 1250px) {
    .hero {
        background:
            url('/laCavaRestaurant/assets/img/logo1.png') no-repeat center center/contain;
        background-size: contain;      /* El logo ocupa todo el ancho disponible */
        background-repeat: no-repeat;
        background-position: center center;
        width: 100%;
        min-height: 220px;             /* Ajusta según el alto de tu logo */
        height: 40vh;                  /* O el valor que prefieras */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 40px 10px 20px 10px;  /* Espacio para el contenido */
    }
    .hero h1, .hero p, .hero .hero-button {
        position: relative;
        z-index: 2;
        color: #222;                   /* O el color que contraste con tu logo */
        text-shadow: 1px 1px 8px #fff, 0 0 2px #fff;
    }
}



.featured-properties h2 {
    margin-bottom: 30px;
    text-align: center;
    width: 100%;
}

/* Responsive: 3 columnas en tablet, 2 en móvil horizontal, 1 en móvil */
/* @media (max-width: 1200px) {
    .properties-grid {
        grid-template-columns: repeat(3, 1fr);
    }
} */
/* @media (max-width: 900px) {
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
} */
/* @media (max-width: 600px) {
    .properties-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 4vw;
        max-width: 100vw;
    }
    .property-card {
        width: 98vw;
        min-width: 98vw;
        max-width: 98vw;
        height: 400px;
        min-height: 400px;
        max-height: 400px;
    }
    .property-card img {
        height: 330px;
    }
    .card-content {
        padding: 14px 6px 10px 6px;
    }
} */
/* @media (min-width: 200px) and (max-width: 900px) {
    .properties-grid {
        grid-template-columns:repeat(3, 1fr);
        gap: 18px;
        padding: 0 6vw;
        max-width: 100vw;
        height: 790px;
    }
    .property-card {
        width: 90vw;
        min-width: 90vw;
        max-width: 90vw;
        height: 728px;
        min-height: 420px;
        max-height: 800px;
        flex-direction: column;
        align-items: stretch;
        margin: 0 auto;
        font-size: 1rem;
    }
    .property-card img {
        height: 650px; 
        width: 100%;
        object-fit: cover;
        border-radius: 8px 8px 0 0;
        margin: 0;
    }
    .card-content {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        padding: 16px 8px 16px 8px;
        height: 100%;
    }
    .btn {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }
} */

/* =============================== */
/* SECCIÓN SERVICIOS PRINCIPAL     */
/* =============================== */

.services-section {
    /* background: #f8f9fa; */
    padding: 0rem 0 3rem 0;
    width: 100%;
}

.services-section h2 {
    text-align: center;
    font-size: 2.3rem;
    margin-bottom: 1rem;
    font-family: 'Georgia', serif;
    color: #2c3e50;
    font-weight: 700;
}

.services-subtitle {
    text-align: center;
    color: #8b4513;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    font-style: italic;
    letter-spacing: 0.02em;
}

/* Grid de servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
    scroll-behavior: smooth;
}

/* Card de servicio */
.service-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 18px rgba(44,62,80,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, box-shadow 0.25s;
    position: relative;
    min-height: 420px;
}

.service-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 8px 32px rgba(139,69,19,0.15);
}

.decorative-element {
    height: 6px;
    width: 60px;
    background: #e67e22;
    border-radius: 3px;
    margin: 18px auto 0 auto;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
}

.service-icon {
    font-size: 2.6rem;
    background: #fbeee0;
    border-radius: 50%;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(230,126,34,0.10);
}

.service-title-section h3 {
    margin: 0 0 0.2rem 0;
    font-size: 1.3rem;
    color: #2c3e50;
    font-family: 'Georgia', serif;
    font-weight: 700;
}

.service-title-section .service-subtitle {
    margin: 0;
    color: #a0522d;
    font-size: 1rem;
    font-style: italic;
    font-weight: 500;
}

.service-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.service-content p {
    color: #444;
    font-size: 1rem;
    margin-bottom: 1.2rem;
    margin-top: 0.5rem;
}

.service-features {
    list-style: disc inside;
    color: #8b4513;
    font-size: 0.98rem;
    margin-bottom: 1.2rem;
    padding-left: 1.2em;
}

.service-features li {
    margin-bottom: 0.4em;
}

.service-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e67e22;
    color: #fff;
    padding: 0.9rem 1.7rem;
    border-radius: 7px;
    font-size: 1.08rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    border: none;
    margin-top: 1.2rem;
    box-shadow: 0 2px 8px rgba(230,126,34,0.10);
    gap: 0.6em;
}

.service-btn:hover {
    background: #d35400;
    transform: translateY(-2px) scale(1.04);
    color: #fff;
}

.btn-icon {
    font-size: 1.2em;
}

/* =============================== */
/* RESPONSIVE SERVICIOS            */
/* =============================== */

/* Animación para hints de scroll */
@keyframes fadeInOut {
    0%, 50%, 100% { opacity: 0.8; }
    25%, 75% { opacity: 0.3; }
}

@media (max-width: 900px) {
    .services-grid {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        gap: 1.2rem;
        max-width: 100vw;
        padding-bottom: 1rem;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        position: relative;
    }
    
    .service-card {
        min-width: 290px;
        max-width: 80vw;
        flex: 0 0 auto;
        scroll-snap-align: start;
        min-height: 360px;
    }
    
    /* Scrollbar para services-grid en móvil */
    .services-grid::-webkit-scrollbar {
        height: 8px;
        background: rgba(224, 180, 103, 0.1);
        border-radius: 4px;
    }
    
    .services-grid::-webkit-scrollbar-thumb {
        background: linear-gradient(90deg, #e0b467, #d4a556);
        border-radius: 4px;
        transition: background 0.3s ease;
    }
    
    .services-grid::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(90deg, #d4a556, #c89645);
    }
    
    /* Indicador visual de scroll */
    .services-grid::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 16px;
        width: 20px;
        background: linear-gradient(to left, rgba(255,255,255,0.8), transparent);
        pointer-events: none;
        z-index: 1;
        opacity: 1;
        transition: opacity 0.3s ease;
    }
    
    .services-grid.scroll-end::after {
        opacity: 0;
    }
}

@media (max-width: 600px) {
    .services-section {
        padding: 2.2rem 0 1.2rem 0;
    }
    .services-grid {
        padding: 0 4vw;
        gap: 1.2rem;
    }
    .service-card {
        min-height: 320px;
    }
    .service-header {
        padding: 1.1rem 0.7rem 0.3rem 0.7rem;
    }
    .service-content {
        padding: 0 0.7rem 1rem 0.7rem;
    }
    .service-btn {
        padding: 0.7rem 1.1rem;
        font-size: 1rem;
    }
}

/* =============================== */
/* RESPONSIVE PARA PROPERTIES-GRID */
/* =============================== */

/* Media query para móviles - properties-grid */
@media (max-width: 768px) {
    .properties-grid {
        gap: 16px;
        padding-bottom: 20px;
    }
    
    .property-card {
        min-width: 250px;
        width: 280px;
        height: 450px;
    }
    
    .property-card img {
        height: 200px;
    }
}

/* Media query para tablets - properties-grid */
@media (min-width: 769px) and (max-width: 1024px) {
    .properties-grid {
        gap: 20px;
    }
    
    .property-card {
        min-width: 300px;
        width: 320px;
    }
}

/* =============================== */
/* CALENDARIO DISPONIBILIDAD       */
/* =============================== */

/* Calendario disponibilidad reservas - Estilo unificado con gestionReservas */
.seccion-calendario-mensual {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 24px;
  max-width: 600px;
  margin: 0 auto 32px auto;
}

.seccion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.seccion-header h3 {
  margin: 0;
  color: #2c3e50;
  font-size: 1.5rem;
  font-weight: 700;
}

/* Toggle button styles */
.calendar-title-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 15px;
}

.toggle-btn {
  background: linear-gradient(135deg, #ff9800 0%, #ff6f00 100%);
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 4px rgba(255, 152, 0, 0.3);
}

.toggle-btn:hover {
  background: linear-gradient(135deg, #ff6f00 0%, #e65100 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(255, 152, 0, 0.4);
}

.toggle-icon {
  transition: transform 0.3s ease;
  font-size: 0.8rem;
}

.toggle-btn[aria-expanded="true"] .toggle-icon {
  transform: rotate(180deg);
}

/* Calendar content animation */
.calendar-wrapper {
  overflow: hidden;
  transition: all 0.4s ease;
}

.calendar-wrapper.collapsed {
  max-height: 0;
  opacity: 0;
  margin: 0;
  padding: 0;
}

.calendar-wrapper.expanded {
  max-height: 1000px;
  opacity: 1;
}

.calendar-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-btn {
  background: #f3f4f6;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 1rem;
  color: #6366f1;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
}

.nav-btn:hover:not(:disabled) {
  background: #e5e7eb;
  transform: translateY(-1px);
}

.nav-btn:disabled {
  color: #bbb;
  cursor: not-allowed;
  opacity: 0.5;
}

.calendar-wrapper {
  background: #fafafa;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #e5e7eb;
}

.calendar-container {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.calendar-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.day-header {
  text-align: center;
  font-weight: 600;
  color: #495057;
  padding: 12px 4px;
  font-size: 0.9rem;
  border-right: 1px solid #e9ecef;
}

.day-header:last-child {
  border-right: none;
}

.calendar-body {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.calendar-day {
  min-height: 80px;
  border-right: 1px solid #e9ecef;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  position: relative;
  background: white;
  transition: all 0.2s ease;
  padding: 6px 4px;
}

.calendar-day:last-child {
  border-right: none;
}

.calendar-day.empty {
  background: #f8f9fa;
  opacity: 0.5;
}

.calendar-day.closed {
  background: #ffeaea;
  color: #721c24;
}

.calendar-day.has-availability {
  background: #e6fae6;
  color: #1e7e34;
}

.calendar-day.today {
  background: #e3f2fd !important;
  border: 2px solid #2196f3 !important;
  font-weight: bold;
}

.day-number {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 2px;
  line-height: 1;
  flex-shrink: 0;
}

.closed-label {
  font-size: 0.6rem;
  color: #721c24;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1;
  margin-top: 2px;
  flex-shrink: 0;
}

.dia-comensales {
  font-size: 0.7rem;
  color: #1e7e34;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  margin-top: 2px;
  flex-shrink: 0;
}

.calendario-leyenda {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #6c757d;
}

/* Responsive */
@media (min-width: 992px) {
  .seccion-calendario-mensual {
    max-width: 700px;
    margin: 0 auto 24px auto;
  }
  
  .calendar-container {
    max-width: 650px;
  }
  
  .calendar-day {
    min-height: 95px;
    padding: 8px 6px;
  }
  
  .day-number {
    font-size: 1.2rem;
  }
  
  .dia-comensales {
    font-size: 0.75rem;
  }
  
  .closed-label {
    font-size: 0.65rem;
  }
}

@media (max-width: 768px) {
  .seccion-calendario-mensual {
    padding: 16px;
    margin: 0 auto 24px auto;
  }
  
  .calendar-day {
    min-height: 55px;
    padding: 4px 2px;
  }
  
  .day-number {
    font-size: 0.95rem;
  }
  
  .closed-label {
    font-size: 0.55rem;
  }
  
  .dia-comensales {
    font-size: 0.65rem;
  }
  
  .seccion-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .calendar-nav {
    justify-content: center;
  }
  
  .nav-btn {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
}


