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

/* Global overflow fix for mobile */
html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}

.contacto-hero,
.contact-cards-section,
.main-contact-section,
.footer-section {
  overflow-x: hidden;
  max-width: 100%;
}

/* ============ HERO SECTION ============ */
.contacto-hero {
  position: relative;
  min-height: 60vh;
  height: auto;
  background: linear-gradient(135deg, #1a7bb9 0%, #145d8a 50%, #1a2e35 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  padding-top: 130px;
  padding-bottom: 110px;
  overflow: hidden;
}

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

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

.contacto-hero .hero-bg-elements .shape-1 {
  width: 400px;
  height: 400px;
  background: #00cfff;
  top: -100px;
  right: -100px;
  animation: floatShape1 15s ease-in-out infinite;
}

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

.contacto-hero .hero-bg-elements .shape-3 {
  width: 250px;
  height: 250px;
  background: #fff;
  top: 30%;
  right: 10%;
  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);
  }
}

.contacto-hero .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse at center,
    transparent 0%,
    rgba(0, 0, 0, 0.3) 100%
  );
}

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

.contacto-hero .hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  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);
  }
}

.contacto-hero .hero-title {
  font-family: "Dancing Script", cursive;
  font-size: clamp(3.5rem, 12vw, 6rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1;
  text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.3);
}

.contacto-hero .hero-title .title-line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  animation: titleReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
  color: var(--color-white);
}

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

.contacto-hero .hero-subtitle {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 500;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.5s forwards;
  max-width: 500px;
  margin: 0 auto;
  color: var(--color-white);
  text-shadow: 1px 2px 5px rgba(0, 0, 0, 0.3);
}

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

.contacto-hero .wave-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 5;
}

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

/* ============ CONTACT CARDS ============ */
.contact-cards-section {
  background: #f5f9fc;
  padding-top: 60px;
  padding-bottom: 60px;
}

.contact-card {
  background: var(--color-white);
  border-radius: 20px;
  padding: 35px 25px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  height: 100%;
  position: relative;
  overflow: hidden;
  border: 2px solid #e8f4fc;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
}

.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  border-color: transparent;
}

.card-whatsapp::before {
  background: linear-gradient(90deg, #25d366, #128c7e);
}
.card-hospedaje::before {
  background: linear-gradient(90deg, #1a7bb9, #00cfff);
}
.card-email::before {
  background: linear-gradient(90deg, #f5a623, #ff8f00);
}
.card-location::before {
  background: linear-gradient(90deg, #c92020, #ff6b35);
}

.contact-card .card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--color-white);
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-whatsapp .card-icon {
  background: linear-gradient(135deg, #25d366, #128c7e);
}
.card-hospedaje .card-icon {
  background: linear-gradient(135deg, #1a7bb9, #00cfff);
}
.card-email .card-icon {
  background: linear-gradient(135deg, #f5a623, #ff8f00);
}
.card-location .card-icon {
  background: linear-gradient(135deg, #c92020, #ff6b35);
}

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

.contact-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 10px;
}

.contact-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 15px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.contact-link:hover {
  color: var(--color-secondary);
  gap: 12px;
}

.contact-link i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.contact-link:hover i {
  transform: translateX(5px);
}

/* ============ MAIN CONTACT SECTION ============ */
.main-contact-section {
  background: linear-gradient(180deg, #f5f9fc 0%, #fff 100%);
}

.contact-form-wrapper {
  background: var(--color-white);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
  height: 100%;
  border: 2px solid #e8f4fc;
}

.form-header {
  margin-bottom: 30px;
}

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

.form-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 10px;
}

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

.contact-form .form-control,
.contact-form .form-select {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 15px 20px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(26, 123, 185, 0.1);
  background: var(--color-white);
}

.contact-form .form-floating > label {
  padding: 15px 20px;
  color: var(--color-text-light);
}

.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: var(--color-white);
  padding: 18px 35px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  transition: all 0.4s ease;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

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

/* Info Wrapper */
.info-wrapper {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.quick-info,
.address-info {
  background: var(--color-white);
  border-radius: 20px;
  padding: 25px 30px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  border: 2px solid #e8f4fc;
}

.info-title {
  font-family: "Montserrat", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 15px;
}

.info-title i {
  color: var(--color-primary);
}

.horarios-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.horario-item {
  flex: 1;
  min-width: 120px;
  background: linear-gradient(135deg, #e8f4fc 0%, #f0f8ff 100%);
  padding: 15px;
  border-radius: 12px;
  text-align: center;
}

.horario-label {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-bottom: 5px;
}

.horario-value {
  display: block;
  font-weight: 700;
  color: var(--color-primary);
}

.address-text {
  color: var(--color-text);
  line-height: 1.8;
  margin: 0;
}

.map-wrapper {
  flex: 1;
  min-height: 200px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  border: 2px solid #e8f4fc;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 250px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 991px) {
  .contacto-hero {
    min-height: 55vh;
    height: auto;
    padding-top: 100px;
    padding-bottom: 80px;
  }

  .contact-form-wrapper {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .contacto-hero {
    min-height: 50vh;
    height: auto;
    padding-top: 90px;
    padding-bottom: 70px;
  }

  .contacto-hero .hero-badge {
    padding: 8px 18px;
    font-size: 0.75rem;
  }

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

  .contacto-hero .hero-subtitle {
    font-size: 0.95rem;
    padding: 0 10px;
  }

  .contacto-hero .wave-bottom {
    height: 50px;
  }

  .contact-cards-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

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

  .contact-card .card-icon {
    width: 65px;
    height: 65px;
    font-size: 1.6rem;
  }

  .contact-form-wrapper {
    padding: 25px;
  }
}

@media (max-width: 576px) {
  .contacto-hero {
    min-height: 45vh;
    padding-top: 85px;
    padding-bottom: 60px;
  }

  .contacto-hero .hero-badge {
    padding: 6px 15px;
    font-size: 0.7rem;
    margin-bottom: 15px;
  }

  .contacto-hero .hero-title {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
  }

  .contacto-hero .hero-subtitle {
    font-size: 0.85rem;
  }

  .contacto-hero .wave-bottom {
    height: 40px;
  }

  .contact-card .card-icon {
    width: 60px;
    height: 60px;
    font-size: 1.4rem;
  }

  .contact-card h3 {
    font-size: 1.2rem;
  }

  .horarios-grid {
    flex-direction: column;
  }

  .contact-form-wrapper {
    padding: 20px;
  }

  .form-title {
    font-size: 1.5rem;
  }
}
