/* =====================================================
   PUERTO PALMERAS - HOSPEDAJE PAGE STYLES
   Premium design matching the main site
   ===================================================== */

/* ============ HERO SECTION ============ */
.hospedaje-hero {
  position: relative;
  min-height: 100vh;
  height: auto;
  background: url("../images/habitacionmatromonial1.webp") center/cover
    no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  padding-top: 100px;
  padding-bottom: 60px;
  overflow: hidden;
}

/* Background Elements */
.hospedaje-hero .hero-bg-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.hospedaje-hero .hero-bg-elements .floating-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.2;
  filter: blur(80px);
}

.hospedaje-hero .hero-bg-elements .shape-1 {
  width: 500px;
  height: 500px;
  background: #1a7bb9;
  top: -150px;
  right: -150px;
  animation: floatShape1 15s ease-in-out infinite;
}

.hospedaje-hero .hero-bg-elements .shape-2 {
  width: 400px;
  height: 400px;
  background: #f9a825;
  bottom: 10%;
  left: -100px;
  animation: floatShape2 18s ease-in-out infinite;
}

.hospedaje-hero .hero-bg-elements .shape-3 {
  width: 300px;
  height: 300px;
  background: #2d9a78;
  top: 30%;
  right: 5%;
  animation: floatShape3 12s ease-in-out infinite;
}

@keyframes floatShape1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(-30px, 50px) scale(1.1);
  }
  66% {
    transform: translate(20px, -30px) scale(0.95);
  }
}

@keyframes floatShape2 {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(60px, -40px) rotate(10deg);
  }
}

@keyframes floatShape3 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-40px, 30px) scale(1.15);
  }
}

.hospedaje-hero .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(26, 46, 53, 0.85) 0%,
    rgba(26, 123, 185, 0.6) 50%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

.hospedaje-hero .hero-content {
  position: relative;
  z-index: 2;
  padding: 0 20px;
}

/* Hero Badge */
.hospedaje-hero .hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 10px 25px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  animation: fadeInDown 0.8s ease forwards;
}

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

.hospedaje-hero .hero-title {
  font-family: "Dancing Script", cursive;
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 0.95;
  perspective: 1000px;
}

.hospedaje-hero .hero-title .title-line {
  display: block;
  opacity: 0;
  transform: translateY(60px) rotateX(-30deg);
  animation: titleReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hospedaje-hero .hero-title .title-line-1 {
  animation-delay: 0.3s;
  color: var(--color-white);
}

.hospedaje-hero .hero-title .title-line-2 {
  animation-delay: 0.5s;
  color: var(--color-accent);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

@keyframes titleReveal {
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

/* Hero Price Box */
.hero-price-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, #f5a623 0%, #ff6b35 100%);
  padding: 20px 50px;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 10px 40px rgba(245, 166, 35, 0.4);
  animation: fadeUp 0.8s ease 0.7s forwards;
  opacity: 0;
}

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

.hero-price-box .price-label {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 5px;
}

.hero-price-box .price-value {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
}

.hospedaje-hero .hero-subtitle {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 500;
  font-style: italic;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.9s forwards;
  max-width: 600px;
  margin: 0 auto;
  color: #ffffff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.3);
  background: rgba(0, 0, 0, 0.25);
  padding: 15px 30px;
  border-radius: 12px;
  backdrop-filter: blur(5px);
}

/* Wave Bottom */
.hospedaje-hero .wave-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  z-index: 5;
}

.hospedaje-hero .wave-bottom svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ============ INTRO SECTION ============ */
.hospedaje-intro {
  background: var(--color-white);
}

.hospedaje-intro .intro-card {
  background: linear-gradient(135deg, #e8f4fc 0%, #fff 100%);
  border-radius: 24px;
  padding: 50px 40px;
  text-align: center;
  box-shadow: 0 15px 50px rgba(26, 123, 185, 0.1);
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(26, 123, 185, 0.1);
}

.hospedaje-intro .intro-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-accent),
    #2d9a78
  );
}

.hospedaje-intro .intro-icon {
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: 20px;
  opacity: 0.4;
}

.hospedaje-intro .intro-text {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--color-text);
  line-height: 1.9;
  font-style: italic;
  margin: 0;
}

.hospedaje-intro .intro-decoration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
}

.hospedaje-intro .intro-decoration span {
  width: 60px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-primary),
    transparent
  );
}

.hospedaje-intro .intro-decoration i {
  color: var(--color-accent);
  font-size: 1.2rem;
}

/* ============ ROOM SECTIONS ============ */
.room-section {
  position: relative;
  overflow: hidden;
}

.room-simple {
  background: linear-gradient(180deg, #fff 0%, #f0f8ff 100%);
}

.room-double {
  background: linear-gradient(180deg, #fffef5 0%, #fff8e0 100%);
}

.room-matrimonial {
  background: linear-gradient(180deg, #fff5f5 0%, #ffe8e8 100%);
}

/* Room Gallery */
.room-gallery {
  position: relative;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 15px;
  height: clamp(280px, 35vw, 450px);
}

.gallery-grid .gallery-item {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-grid .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-grid .gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

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

.gallery-grid .gallery-item.main {
  grid-row: span 2;
}

.gallery-grid-alt {
  grid-template-columns: 1fr 2fr;
}

.gallery-grid-alt .gallery-item.main {
  grid-column: 2;
  grid-row: span 2;
}

/* Room Info */
.room-info {
  padding: 20px 0;
}

.room-badge {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.room-badge.badge-popular {
  background: linear-gradient(135deg, #f5a623 0%, #ff6b35 100%);
}

.room-badge.badge-premium {
  background: linear-gradient(135deg, #c92020 0%, #a51818 100%);
}

.room-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 20px;
}

.room-description {
  font-size: 1.05rem;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 25px;
}

.room-description strong {
  color: var(--color-primary);
}

.room-features {
  list-style: none;
  padding: 0;
  margin: 0 0 25px;
}

.room-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--color-text);
}

.room-features li i {
  color: #2d9a78;
  font-size: 1.1rem;
}

.room-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 25px;
}

.room-price .from {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.room-price .amount {
  font-family: "Playfair Display", serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--color-primary);
}

.room-price .period {
  font-size: 1rem;
  color: var(--color-text-light);
}

.btn-reserva-room {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: var(--color-white);
  padding: 15px 35px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.btn-reserva-room:hover {
  background: linear-gradient(135deg, #128c7e 0%, #25d366 100%);
  color: var(--color-white);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
}

/* ============ AMENITIES SECTION ============ */
.amenities-section {
  background: var(--color-white);
}

.section-badge {
  display: inline-block;
  background: rgba(26, 123, 185, 0.1);
  color: var(--color-primary);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

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

.amenity-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
  border-radius: 20px;
  padding: 35px 25px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 2px solid transparent;
  height: 100%;
}

.amenity-card:hover {
  transform: translateY(-10px);
  border-color: var(--color-primary);
  box-shadow: 0 20px 50px rgba(26, 123, 185, 0.15);
}

.amenity-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #00cfff 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--color-white);
  transition: all 0.4s ease;
}

.amenity-card:hover .amenity-icon {
  transform: scale(1.1) rotate(10deg);
}

.amenity-card h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 10px;
}

.amenity-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin: 0;
  line-height: 1.6;
}

/* ============ GARAGE SECTION ============ */
.garage-section {
  position: relative;
  background: linear-gradient(135deg, #f5a623 0%, #ff8f00 100%);
  overflow: hidden;
}

.garage-section .garage-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.garage-content {
  position: relative;
  z-index: 2;
  color: var(--color-white);
}

.garage-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.garage-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.garage-title span {
  display: inline-block;
  background: var(--color-white);
  color: #f5a623;
  padding: 5px 20px;
  border-radius: 8px;
}

.garage-description {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 25px;
  opacity: 0.95;
}

.garage-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.garage-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
}

.garage-features li i {
  font-size: 1.2rem;
}

/* Garage Images */
.garage-images {
  position: relative;
  height: clamp(280px, 35vw, 450px);
}

.garage-image {
  position: absolute;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s ease;
}

.garage-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.garage-image.main {
  width: 70%;
  height: 100%;
  left: 0;
  top: 0;
  z-index: 1;
}

.garage-image.secondary {
  width: 50%;
  height: 60%;
  right: 0;
  bottom: 0;
  z-index: 2;
  border: 5px solid var(--color-white);
}

.garage-image:hover {
  transform: scale(1.03);
}

/* ============ CTA HOSPEDAJE ============ */
.cta-hospedaje {
  position: relative;
  padding: 120px 0;
  background: url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?w=1920")
    center/cover fixed;
  overflow: hidden;
}

.cta-hospedaje .cta-bg-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.cta-hospedaje .cta-bg-elements .floating-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.3;
  filter: blur(100px);
}

.cta-hospedaje .cta-bg-elements .shape-1 {
  width: 400px;
  height: 400px;
  background: var(--color-primary);
  top: -100px;
  left: -100px;
  animation: floatShape1 15s ease-in-out infinite;
}

.cta-hospedaje .cta-bg-elements .shape-2 {
  width: 300px;
  height: 300px;
  background: #2d9a78;
  bottom: -50px;
  right: -50px;
  animation: floatShape2 18s ease-in-out infinite;
}

.cta-hospedaje .cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 40, 60, 0.8);
}

.cta-hospedaje .cta-title {
  font-family: "Dancing Script", cursive;
  font-size: clamp(3rem, 8vw, 5rem);
  color: var(--color-white);
  margin-bottom: 20px;
  line-height: 1;
}

.cta-hospedaje .cta-line-1 {
  display: block;
  opacity: 0;
  animation: fadeInLeft 0.8s ease 0.2s forwards;
}

.cta-hospedaje .cta-line-2 {
  display: block;
  color: var(--color-accent);
  opacity: 0;
  animation: fadeInRight 0.8s ease 0.4s forwards;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.cta-hospedaje .cta-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 35px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 991px) {
  .hospedaje-hero {
    min-height: 80vh;
  }

  .hospedaje-hero .hero-title {
    font-size: 3.5rem;
  }

  .gallery-grid {
    height: 300px;
  }

  .garage-images {
    height: 350px;
  }
}

@media (max-width: 768px) {
  .hospedaje-hero {
    min-height: 70vh;
  }

  .hospedaje-hero .hero-title {
    font-size: 2.8rem;
  }

  .hero-price-box {
    padding: 15px 35px;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    height: 350px;
  }

  .gallery-grid .gallery-item.main {
    grid-row: span 1;
    grid-column: span 2;
  }

  .gallery-grid-alt .gallery-item.main {
    grid-column: span 2;
    grid-row: span 1;
  }

  .room-title {
    font-size: 2rem;
  }

  .room-price .amount {
    font-size: 2.2rem;
  }

  .garage-images {
    height: 300px;
  }

  .garage-image.main {
    width: 100%;
    height: 60%;
    position: relative;
  }

  .garage-image.secondary {
    width: 60%;
    height: 50%;
    right: 20%;
    bottom: 0;
  }

  .garage-features {
    flex-direction: column;
    gap: 15px;
  }

  .cta-hospedaje {
    padding: 80px 0;
    background-attachment: scroll;
  }
}

@media (max-width: 576px) {
  .hospedaje-hero .hero-title {
    font-size: 2.2rem;
  }

  .hero-price-box .price-value {
    font-size: 2rem;
  }

  .room-info {
    padding: 0;
  }

  .amenity-card {
    padding: 25px 20px;
  }

  .amenity-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  /* Fix Gallery Display */
  /* Fix Gallery Display - Mobile Robust Fix */
  .gallery-grid,
  .gallery-grid-alt,
  .gallery-grid.gallery-grid-alt {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: auto !important;
    gap: 15px;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
  }

  .gallery-grid .gallery-item,
  .gallery-grid-alt .gallery-item {
    width: 100% !important;
    height: 250px !important;
    min-height: 250px !important;
    grid-column: auto !important;
    grid-row: auto !important;
    flex: 0 0 auto !important;
  }

  .gallery-grid .gallery-item img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
    display: block;
  }
}

/* ============ LARGE SCREENS & 4K SUPPORT ============ */
@media (min-width: 1400px) {
  .hospedaje-hero .hero-title {
    font-size: clamp(4rem, 8vw, 7rem);
  }

  .room-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
  }

  .room-price .amount {
    font-size: clamp(2.5rem, 3.5vw, 3.5rem);
  }

  .gallery-grid {
    height: clamp(400px, 30vw, 550px);
  }

  .garage-images {
    height: clamp(400px, 30vw, 550px);
  }

  .amenity-card {
    padding: clamp(35px, 4vw, 50px) clamp(25px, 3vw, 40px);
  }

  .amenity-icon {
    width: clamp(80px, 8vw, 100px);
    height: clamp(80px, 8vw, 100px);
    font-size: clamp(2rem, 2.5vw, 2.8rem);
  }
}

@media (min-width: 1920px) {
  .hospedaje-hero {
    min-height: 90vh;
  }

  .cta-hospedaje {
    padding: clamp(120px, 12vw, 180px) 0;
  }
}
