:root {
  --water-light: #e0f7fa;
  --water-blue: #00bcd4;
  --water-deep: #00838f;
  --sand-light: #fff9c4;
  --summer-gold: #ffeb3b;
  --summer-orange: #ff9800;
  --brand-purple: #7c4dff;
  --brand-turchese: #00c2a8;
  --text-dark: #1f2937;
  --text-muted: #4b5563;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-weight: 800;
  line-height: 1.1;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
  position: relative;
}

/* Water Gradient Background */
.water-bg {
  background: linear-gradient(180deg, var(--water-light) 0%, var(--white) 100%);
  position: relative;
}

/* Hero Section */
.hero {
  padding: 120px 0 180px;
  text-align: center;
  position: relative;
}

.hero h1 {
  font-size: clamp(48px, 10vw, 92px);
  margin-bottom: 24px;
  color: var(--water-deep);
  text-shadow: 0 4px 10px rgba(0, 188, 212, 0.2);
}

.hero p {
  font-size: clamp(20px, 4vw, 28px);
  max-width: 850px;
  margin: 0 auto 40px;
  color: var(--text-muted);
}

/* Floating Elements */
.decoration {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.floating {
  animation: float 6s ease-in-out infinite;
}

.floating-delayed {
  animation: float 8s ease-in-out infinite 1s;
}

.bouncing {
  animation: bounce 4s ease-in-out infinite;
}

.rotating {
  animation: rotate 20s linear infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0);
  }

  50% {
    transform: translateY(-30px) rotate(5deg);
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1) rotate(-3deg);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Animated Waves */
.waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: url('../img/recurso8.svg');
  background-repeat: repeat-x;
  background-size: contain;
  animation: waveMove 15s linear infinite;
  z-index: 10;
}

@keyframes waveMove {
  from {
    background-position-x: 0;
  }

  to {
    background-position-x: 2000px;
  }
}

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  padding: 100px 0;
  z-index: 5;
  position: relative;
}

.info-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  padding: 50px;
  border-radius: 40px;
  box-shadow: 0 30px 60px rgba(0, 188, 212, 0.15);
  border: 2px solid var(--water-light);
}

.info-card:hover {
  border-color: var(--water-blue);
}

.info-card h3 {
  color: var(--water-deep);
  margin-bottom: 20px;
  font-size: 28px;
}

.price-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--brand-turchese), var(--water-blue));
  color: white;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 20px;
  margin-top: 20px;
}

/* Decorative Badges (Repurposed from gallery) */
.badge-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 8px solid var(--white);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  object-fit: cover;
  position: absolute;
}

/* Locations */
.locations {
  background: linear-gradient(180deg, var(--water-light) 0%, var(--sand-light) 100%);
  padding: 120px 0;
  border-radius: 100px 100px 0 0;
  position: relative;
}

.location-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 60px;
  margin-top: 60px;
}

.location-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.location-item img {
  width: 120px;
  height: 120px;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease;
}

.location-item:hover img {
  transform: scale(1.2) rotate(10deg);
}

/* Footer CTA */
.cta {
  padding: 140px 0;
  text-align: center;
  background: radial-gradient(circle at center, var(--water-light), var(--white));
}

.btn-large {
  display: inline-block;
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-turchese));
  color: white;
  text-decoration: none;
  padding: 24px 64px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 22px;
  box-shadow: 0 20px 40px rgba(124, 77, 255, 0.4);
}

.btn-large:hover {
  box-shadow: 0 30px 60px rgba(124, 77, 255, 0.5);
}

/* Decorative Background Shapes */
.bg-shape {
  position: fixed;
  opacity: 0.15;
  z-index: -1;
}

/* Reservation Form Styles */
.form-group {
  margin-bottom: 25px;
  text-align: left;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--water-deep);
}

.form-group input {
  width: 100%;
  padding: 15px 20px;
  border-radius: 15px;
  border: 2px solid var(--water-light);
  font-family: inherit;
  font-size: 16px;
  /* Prevents auto-zoom on iOS */
  background: white;
  min-height: 54px;
  /* Better touch target */
}

.form-group input:focus {
  outline: none;
  border-color: var(--water-blue);
  box-shadow: 0 0 0 4px rgba(0, 188, 212, 0.1);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Row-Style Calendar UI */
.calendar-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--water-light);
  padding: 15px;
  border-radius: 25px;
}

.calendar-row {
  background: white;
  padding: 15px 25px;
  border-radius: 20px;
  border: 4px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 30px;
  user-select: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.week-title {
  min-width: 100px;
  font-weight: 800;
  color: var(--brand-purple);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.week-days {
  flex: 1;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.day-cap {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  padding: 8px 12px;
  background: #f8fdff;
  border-radius: 10px;
  flex: 1;
  text-align: center;
}

.calendar-row.selected {
  background: var(--brand-turchese);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 25px rgba(0, 194, 168, 0.3);
}

.calendar-row.selected .week-title,
.calendar-row.selected .day-cap {
  color: white;
  background: rgba(255, 255, 255, 0.2);
}

.calendar-row:hover:not(.selected) {
  border-color: var(--water-blue);
}

/* --- MOBILE RESPONSIVENESS --- */

@media (max-width: 1100px) {
  .badge-img {
    width: 15vw;
    height: 15vw;
    min-width: 100px;
    min-height: 100px;
  }
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .hero {
    padding: 80px 0 100px;
  }

  .hero h1 {
    font-size: clamp(36px, 12vw, 52px);
  }

  .badge-img {
    display: none;
  }

  .bg-shape {
    opacity: 0.1;
    width: 35vw !important;
  }

  .decoration {
    scale: 0.6;
  }

  .info-grid {
    padding: 60px 0;
    gap: 30px;
    grid-template-columns: 1fr;
  }

  .info-card {
    padding: 30px;
    border-radius: 30px;
  }

  .location-list {
    gap: 40px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .calendar-rows {
    padding: 10px;
  }

  .calendar-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
  }

  .week-days {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    gap: 8px;
  }

  .day-cap {
    font-size: 12px;
    padding: 6px;
  }

  .location-item img {
    width: 80px;
    height: 80px;
  }

  .btn-large {
    padding: 18px 36px;
    font-size: 18px;
    width: 100%;
    max-width: 320px;
    display: flex;
    justify-content: center;
    margin: 0 auto;
  }

  .grid-mobile-stack {
    grid-template-columns: 1fr !important;
    text-align: center;
    gap: 40px !important;
  }

  .waves {
    height: 60px;
  }
}

@media (max-width: 480px) {
  .hero p {
    font-size: 18px;
  }

  .hero .decoration {
    display: none;
  }

  .info-card h3 {
    font-size: 22px;
  }

  .locations h2 {
    font-size: 32px !important;
  }
}

/* Availability Status Indicators */
.availability-status {
  margin-left: auto;
  font-size: 14px;
  font-weight: 800;
  padding: 8px 15px;
  border-radius: 12px;
  text-transform: uppercase;
}

.status-few {
  background: #fff3e0;
  color: #ef6c00;
  animation: pulse-few 2s infinite;
}

.status-soldout {
  background: #ffebee;
  color: #c62828;
}

.calendar-row.sold-out {
  opacity: 0.6;
  filter: grayscale(1);
  pointer-events: none !important;
  cursor: not-allowed !important;
}

@keyframes pulse-few {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }

  100% {
    opacity: 1;
  }
}

/* Success Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: white;
  width: min(500px, 92%);
  border-radius: 40px;
  padding: 40px;
  text-align: center;
  transform: translateY(40px) scale(0.9);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  border-top: 10px solid var(--brand-turchese);
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-card .icon-success {
  font-size: 80px;
  margin-bottom: 20px;
  display: inline-block;
}

.modal-card h2 {
  color: var(--water-deep);
  font-size: 32px;
  margin-bottom: 15px;
}

.modal-card p {
  color: var(--text-muted);
  font-size: 18px;
  margin-bottom: 30px;
}

.modal-redirect-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--water-blue), var(--brand-purple));
  width: 0%;
  transition: width 5s linear;
}

.modal-btn {
  background: var(--brand-purple);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 15px;
  font-weight: 800;
  cursor: pointer;
  font-size: 16px;
  transition: transform 0.2s;
}

.modal-btn:hover {
  transform: scale(1.05);
}