/*
Theme Name: HotelesAsequibles
Author: Pablo Cosias
Version: 1.1
*/

/* === ESTILOS GENERALES === */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  color: #2c3e50;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 20px 0;
}

/* === HEADER === */
.site-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  padding: 20px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-size: 32px;
  font-weight: bold;
  color: white;
  text-decoration: none;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.logo a:hover {
  transform: scale(1.05);
}

/* === FOOTER === */
.site-footer {
  margin-top: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 40px 0;
  text-align: center;
  color: white;
  box-shadow: 0 -4px 6px rgba(0,0,0,0.1);
}

/* === HERO CARD === */
.hotel-hero-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  margin-bottom: 30px;
  animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hotel-hero-image {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.hotel-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hotel-hero-image:hover img {
  transform: scale(1.1);
}

.hotel-hero-content {
  padding: 40px;
  background: linear-gradient(to bottom, white 0%, #f8f9fa 100%);
}

.hotel-title {
  font-size: 48px;
  margin: 0 0 20px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hotel-address {
  font-size: 18px;
  color: #555;
  margin: 15px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.maps-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(102, 126, 234, 0.1);
}

.maps-link:hover {
  background: rgba(102, 126, 234, 0.2);
  transform: translateX(5px);
}

/* === BOTONES CTA MEJORADOS === */
.hotel-cta-wrapper {
  margin-top: 25px;
}

.cta-button {
  display: inline-block;
  position: relative;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  padding: 18px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  box-shadow: 0 8px 20px rgba(245, 87, 108, 0.4);
  transition: all 0.3s ease;
  overflow: hidden;
  z-index: 1;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: width 0.4s ease;
  z-index: -1;
  border-radius: 50px;
}

.cta-button:hover::before {
  width: 100%;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(245, 87, 108, 0.6);
}

.cta-button:active {
  transform: translateY(-1px);
}

/* Icono de cohete animado para el botón */
.cta-button::after {
  content: '🚀';
  margin-left: 10px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.cta-button:hover::after {
  transform: translateX(5px);
}

/* === GRID DE CONTENIDO === */
.hotel-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  margin-top: 30px;
}

/* === TARJETAS === */
.hotel-card,
.hotel-list-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.hotel-card h2,
.hotel-card h3 {
  color: #667eea;
  border-bottom: 3px solid #f093fb;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

/* === LISTAS === */
.services-list,
.nearby-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.services-list li,
.nearby-list li {
  padding: 15px;
  margin-bottom: 10px;
  border-left: 4px solid #667eea;
  background: linear-gradient(to right, rgba(102, 126, 234, 0.05), transparent);
  border-radius: 5px;
  transition: all 0.3s ease;
}

.services-list li:hover,
.nearby-list li:hover {
  background: linear-gradient(to right, rgba(102, 126, 234, 0.1), transparent);
  transform: translateX(10px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* === CARRUSEL MEJORADO === */
.hotel-gallery-carousel {
  margin-top: 30px;
}

.carousel-container {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.carousel-slides {
  position: relative;
  width: 100%;
  height: 600px;
  background: #000;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 0;
}

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

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Botones del carrusel más atractivos */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9));
  color: white;
  border: none;
  font-size: 40px;
  width: 60px;
  height: 60px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.carousel-btn:hover {
  background: linear-gradient(135deg, rgba(240, 147, 251, 0.9), rgba(245, 87, 108, 0.9));
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 25px rgba(0,0,0,0.4);
}

.carousel-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

/* Puntos indicadores mejorados */
.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
  background: rgba(0,0,0,0.3);
  padding: 10px 20px;
  border-radius: 30px;
  backdrop-filter: blur(10px);
}

.carousel-dots .dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin: 0 6px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.carousel-dots .dot.active {
  background: linear-gradient(135deg, #f093fb, #f5576c);
  width: 40px;
  border-radius: 10px;
  border-color: white;
}

.carousel-dots .dot:hover {
  background: white;
  transform: scale(1.2);
}

/* === SIDEBAR STICKY === */
.sticky-card {
  position: sticky;
  top: 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
}

.sticky-card h3 {
  color: white;
  border-bottom: 3px solid rgba(255,255,255,0.3);
  font-size: 24px;
}

.sticky-card p {
  color: rgba(255,255,255,0.9);
  font-size: 16px;
}

.sticky-card .cta-button {
  width: 100%;
  text-align: center;
  margin-top: 20px;
}

/* === MAPA === */
.hotel-map iframe {
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hotel-grid {
    grid-template-columns: 1fr;
  }

  .carousel-slides {
    height: 400px;
  }

  .hotel-title {
    font-size: 36px;
  }

  .carousel-btn {
    width: 50px;
    height: 50px;
    font-size: 30px;
  }

  .carousel-prev {
    left: 10px;
  }

  .carousel-next {
    right: 10px;
  }
}

@media (max-width: 600px) {
  .carousel-slides {
    height: 300px;
  }

  .hotel-hero-image {
    height: 250px;
  }

  .hotel-hero-content {
    padding: 25px;
  }

  .hotel-title {
    font-size: 28px;
  }

  .cta-button {
    padding: 15px 30px;
    font-size: 16px;
  }
}

/* === ANIMACIONES ADICIONALES === */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.hotel-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.hotel-list-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.hotel-list-card:hover {
  animation: pulse 0.6s ease-in-out;
}

.hotel-list-card img {
  width: 100%;
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.hotel-list-card:hover img {
  transform: scale(1.05);
}

/* === FRONT PAGE: TARJETAS DE HOTELES === */

.hotel-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.hotel-card-link:hover,
.hotel-card-link:focus {
  color: inherit;
  text-decoration: none;
}

.hotel-card-title,
.hotel-card-address,
.hotel-card-excerpt,
.hotel-card-footer,
.hotel-card-content p,
.hotel-card-content div,
.hotel-card-content span {
  color: #2c3e50;
  text-decoration: none;
}

.hotel-card-title {
  color: #667eea;
  margin-top: 18px;
  margin-bottom: 12px;
  font-size: 22px;
}

.hotel-card-address {
  margin-bottom: 14px;
  font-size: 15px;
  color: #555;
}

.hotel-card-excerpt {
  font-size: 15px;
  color: #555;
}

.hotel-card-footer {
  margin-top: 12px;
  color: #667eea;
  font-weight: 600;
}

.hotel-card-image {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
  border-radius: 15px;
  background: #eef2f7;
}

.hotel-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

.hotel-list-card:hover .hotel-card-image img {
  transform: scale(1.05);
}

.hotel-card-content {
  padding-top: 16px;
}

.hotel-card-cta {
  margin-top: 14px;
}

.cta-button-small {
  display: inline-block;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 5px 14px rgba(245, 87, 108, 0.35);
  transition: all 0.3s ease;
}

.cta-button-small:hover {
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 87, 108, 0.45);
}

/* === FRONT PAGE: BUSCADOR Y FILTROS === */

.hotel-search-panel {
  background: white;
  border-radius: 24px;
  padding: 28px;
  margin: 35px 0 40px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
}

.hotel-search-field {
  margin-bottom: 24px;
}

.hotel-search-field label,
.hotel-filters-title {
  display: block;
  margin-bottom: 10px;
  color: #2c3e50;
  font-weight: 700;
  font-size: 16px;
}

.hotel-search-field input {
  width: 100%;
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-radius: 999px;
  padding: 16px 22px;
  font-size: 16px;
  color: #2c3e50;
  background: #f8f9fa;
  outline: none;
  transition: all 0.3s ease;
}

.hotel-search-field input:focus {
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.12);
}

.hotel-filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hotel-filter-chip {
  position: relative;
  cursor: pointer;
}

.hotel-filter-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.hotel-filter-chip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #f1f4f9;
  color: #2c3e50;
  font-size: 14px;
  font-weight: 600;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.hotel-filter-chip span::before {
  content: '+';
  font-weight: 800;
  color: #667eea;
}

.hotel-filter-chip:hover span {
  background: rgba(102, 126, 234, 0.12);
  transform: translateY(-2px);
}

.hotel-filter-chip input:checked + span {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: rgba(255,255,255,0.5);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.35);
}

.hotel-filter-chip input:checked + span::before {
  content: '✓';
  color: white;
}

.hotel-search-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #eef2f7;
}

.clear-filters-button {
  border: none;
  border-radius: 999px;
  padding: 11px 18px;
  background: #eef2f7;
  color: #2c3e50;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.clear-filters-button:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
}

.hotel-results-count {
  margin: 0;
  color: #667eea;
  font-weight: 700;
}

.hotel-card-services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.hotel-card-services span {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  font-size: 12px;
  font-weight: 700;
}

.hotel-no-results {
  margin: 35px 0;
  padding: 35px;
  text-align: center;
  background: white;
  border-radius: 24px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
}

.hotel-no-results h3 {
  margin-top: 0;
  color: #667eea;
}

.hotel-no-results p {
  margin-bottom: 0;
  color: #555;
}

.hotel-list-card[hidden],
.hotel-no-results[hidden] {
  display: none;
}

@media (max-width: 700px) {
  .hotel-search-panel {
    padding: 22px;
  }

  .hotel-search-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hotel-filter-options {
    gap: 9px;
  }

  .hotel-filter-chip span {
    font-size: 13px;
    padding: 9px 13px;
  }
}
