/* --- RESET & BASICS --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Source Sans Pro', sans-serif;
  color: #555;
  line-height: 1.6;
  background-color: #fff;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

.section-padding {
  padding: 60px 0;
}

.bg-light {
  background-color: #f9f9f9;
}

.text-center {
  text-align: center;
}

/* --- TITULOS Y CABECERAS DE SECCION --- */
.header-block {
  margin-bottom: 40px;
}

.main-title {
  font-size: 32px;
  color: #333;
  font-weight: 300;
  margin-bottom: 10px;
}

.sub-title-blue {
  color: #50a8d8;
  font-size: 13px;
  letter-spacing: 0.5px;
  max-width: 900px;
  margin: 0 auto;
  font-weight: 600;
}

.line-divider {
  width: 100px;
  height: 2px;
  background-color: #50a8d8;
  margin: 20px auto 0;
}

/* --- HERO SECTION --- */
.hero-section {
  background: url('https://www.casacelin.com/images/demo/slideshow/portada-inicio.jpg') center/cover no-repeat;
  height: 85vh;
  position: relative;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.4);
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}

.hero-subtitle {
  font-size: 28px;
  letter-spacing: 2px;
  font-weight: 300;
  font-style: italic;
  margin-bottom: 10px;
}

.hero-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero-divider {
  letter-spacing: 3px;
  margin-bottom: 15px;
  color: #fff;
}

.hero-desc {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 400;
}

/* --- NAVBAR --- */
.navbar-wrapper {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo-box {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 24px;
  font-weight: 700;
  color: #333;
}

.logo-slogan {
  font-size: 11px;
  color: #888;
}

.nav-menu ul {
  display: flex;
  gap: 20px;
}

.nav-menu a {
  font-size: 12px;
  font-weight: 700;
  color: #666;
  transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #50a8d8;
}

.lang-selector a {
  font-size: 18px;
  margin-left: 5px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

/* --- GRID 3 COLUMNAS --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.info-card h3 {
  font-size: 20px;
  color: #333;
  margin-bottom: 15px;
}

.info-card h4 {
  font-size: 14px;
  color: #333;
  margin: 15px 0 5px;
}

.info-card p {
  font-size: 14px;
  margin-bottom: 12px;
  color: #666;
}

.info-card ul {
  list-style: disc;
  padding-left: 20px;
  font-size: 14px;
  color: #666;
}

.info-card ul li {
  margin-bottom: 5px;
}

/* --- GALERÍA --- */
.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.filter-btn {
  background: #e0e0e0;
  border: none;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
  background: #50a8d8;
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: rgba(80, 168, 216, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s;
  color: #fff;
  font-size: 24px;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

/* --- TARJETAS DE PRECIOS --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.price-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  text-align: center;
  padding-bottom: 25px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.price-header {
  background: #50a8d8;
  color: #fff;
  padding: 20px 10px;
  position: relative;
}

.price-header::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #50a8d8;
}

.price-header h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

.price-amount {
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 10px;
}

.cancel-policy {
  font-size: 10px;
  text-transform: uppercase;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.5);
}

.price-features {
  padding: 25px 15px;
  font-size: 13px;
  color: #666;
}

.price-features li {
  margin-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 10px;
}

.btn-price {
  display: inline-block;
  border: 1px solid #ccc;
  padding: 8px 20px;
  font-size: 12px;
  font-weight: 700;
  color: #666;
  transition: all 0.3s;
}

.btn-price:hover {
  background: #50a8d8;
  color: #fff;
  border-color: #50a8d8;
}

.min-stay {
  display: block;
  font-size: 11px;
  color: #888;
  margin-top: 10px;
}

.promo-banner {
  background: #aadbef;
  padding: 12px;
  color: #333;
  margin-bottom: 25px;
}

.promo-banner h4 {
  font-size: 14px;
  letter-spacing: 1px;
}

/* --- CALENDARIO DE DISPONIBILIDAD --- */
.calendar-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #ddd;
  padding: 20px;
}

.calendar-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f5f5f5;
  padding: 10px;
  margin-bottom: 15px;
}

.cal-nav-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  font-weight: bold;
  padding: 0 10px;
}

.cal-title-text {
  font-weight: 700;
  color: #333;
}

.calendar-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

.calendar-table th, 
.calendar-table td {
  padding: 8px;
  font-size: 13px;
  border: 1px solid #eee;
}

.calendar-table th {
  background: #f9f9f9;
  color: #333;
}

.calendar-table td.busy {
  background-color: #f8d7da;
  color: #721c24;
  font-weight: bold;
}

.calendar-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  font-size: 12px;
}

.legend-box.busy {
  width: 15px;
  height: 15px;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
}

/* --- FORMULARIO DE CONTACTO --- */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 30px;
  border: 1px solid #eee;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-size: 13px;
  color: #333;
  margin-bottom: 5px;
}

.req {
  color: red;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ccc;
  font-size: 14px;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #50a8d8;
}

.captcha-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.captcha-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.captcha-code {
  background: #50a8d8;
  color: #fff;
  font-family: monospace;
  font-size: 18px;
  padding: 5px 15px;
  letter-spacing: 3px;
  font-weight: bold;
  user-select: none;
}

.btn-refresh {
  background: none;
  border: none;
  cursor: pointer;
  color: #555;
  font-size: 16px;
}

.btn-submit {
  background: #50a8d8;
  color: #fff;
  border: none;
  padding: 10px 25px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-submit:hover {
  background: #3b8bb8;
}

/* --- FOOTER --- */
.footer-section {
  background: url('https://www.casacelin.com/images/igallery/resized/1-100/Porche_mesa_y_sillones-84-750-500-80-rd-255-255-255.jpg') center/cover no-repeat;
  position: relative;
  color: #fff;
}

.footer-overlay {
  background: rgba(0, 0, 0, 0.7);
  padding: 60px 0;
}

.footer-title {
  font-size: 32px;
  font-weight: 300;
  margin-bottom: 5px;
}

.footer-subtitle {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 15px;
}

.footer-phone {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 10px;
}

.footer-email a {
  color: #50a8d8;
}

.footer-address {
  font-size: 14px;
  margin: 15px 0 5px;
}

.footer-map-link {
  color: #50a8d8;
  font-size: 13px;
  text-decoration: underline;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
  .grid-3, .pricing-grid, .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #ccc;
    padding: 20px;
  }

  .nav-menu.open {
    display: block;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 15px;
  }

  .menu-toggle {
    display: block;
  }

  .grid-3, .pricing-grid, .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 24px;
  }
}

/* --- LIGHTBOX MODAL --- */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}

.lightbox-close:hover {
  color: #50a8d8;
}

/* Cursor pointer para indicar que se puede hacer clic en las imágenes */
.gallery-item {
  cursor: pointer;
}