/* ========================================
   YATES DINKA - Design System
   Landing Page Turística Acapulco
   ======================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&family=Roboto:wght@300;400;500;700&display=swap');

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
  /* Colors */
  --navy-blue: #242f81;
  --white: #f4f4f2;
  --green: #809848;
  --light-blue: #5daaee;
  --gray-light: #f5f5f5;
  --gray-medium: #e0e0e0;
  --gray-dark: #666;
  --black: #1a1a1a;
  --red: #e74c3c;
  --cyan: #00bcd4;
  --orange: #f39c12;

  /* Typography */
  --font-heading: 'Roboto', Arial, sans-serif;
  --font-navbar: 'Libre Baskerville', Georgia, serif;
  --font-body: 'Roboto', Arial, sans-serif;

  /* Spacing */
  --section-padding: 50px 0;
  --container-max: 1200px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.2);
  --shadow-hover: 0 12px 48px rgba(0, 0, 0, 0.25);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 50px;
}

/* ========================================
   BASE STYLES
   ======================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--black);
  background-color: var(--white);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy-blue);
}

.navbar-logo span {
  font-family: var(--font-navbar);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
  margin-bottom: 1rem;
  color: var(--gray-dark);
}

a {
  color: var(--navy-blue);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--light-blue);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================
   SCROLL REVEAL ANIMATIONS
   ======================================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes wave {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered delays */
.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::after {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--light-blue);
  color: white;
  box-shadow: 0 4px 15px rgba(93, 170, 238, 0.4);
}

.btn-primary:hover {
  background: #4a9be0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(93, 170, 238, 0.5);
}

.btn-secondary {
  background: var(--navy-blue);
  color: white;
  box-shadow: 0 4px 15px rgba(36, 47, 129, 0.4);
}

.btn-secondary:hover {
  background: #1a2366;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(36, 47, 129, 0.5);
}

.btn-whatsapp {
  background: #25D366;
  color: white;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
  background: #1fb855;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--navy-blue);
  color: var(--navy-blue);
}

.btn-outline:hover {
  background: var(--navy-blue);
  color: white;
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--navy-blue);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-medium);
}

.navbar.scrolled {
  background: var(--navy-blue);
  box-shadow: var(--shadow-md);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-logo span {
  font-family: var(--font-navbar);
  font-size: 2.2rem;
  font-weight: 700;
  color: white;
  letter-spacing: 1px;
}

.navbar-logo img {
  height: 50px;
  width: auto;
  filter: brightness(0) invert(1);
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 35px;
}

.navbar-menu a {
  font-weight: 500;
  color: white;
  position: relative;
  padding: 5px 0;
}

.navbar-menu a:hover {
  color: var(--light-blue);
}

.navbar-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--light-blue);
  transition: var(--transition-medium);
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
  width: 100%;
}

.navbar-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--light-blue);
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 500;
  transition: var(--transition-medium);
}

.navbar-cta:hover {
  background: #4a9be0;
  color: white;
  transform: scale(1.05);
}

.navbar-cta i {
  font-size: 1.1rem;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
}

.mobile-toggle span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: var(--transition-medium);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -2;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(36, 47, 129, 0.85) 0%, rgba(36, 47, 129, 0.7) 50%, rgba(93, 170, 238, 0.6) 100%);
  z-index: -1;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  color: white;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.hero-tag i {
  color: var(--light-blue);
}

.hero-content h1 {
  color: white;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  margin-bottom: 30px;
  max-width: 500px;
}

.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 30px;
}

.hero-benefit {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
}

.hero-benefit i {
  color: var(--light-blue);
}

/* Hero Form Card */
.hero-form-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 35px;
  box-shadow: var(--shadow-lg);
  animation: fadeIn 1s ease 0.3s backwards;
}

.hero-form-card h3 {
  text-align: center;
  margin-bottom: 5px;
  color: var(--navy-blue);
  font-size: 1.5rem;
}

.hero-form-card .subtitle {
  text-align: center;
  color: var(--gray-dark);
  font-size: 0.9rem;
  margin-bottom: 25px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 18px;
}

.form-row .form-group {
  margin-bottom: 0;
}

.form-group {
  margin-bottom: 18px;
  position: relative;
}

.form-group label {
  display: none;
}

.form-group .input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--light-blue);
  font-size: 1rem;
  pointer-events: none;
  z-index: 2;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 14px 16px 14px 45px;
  border: 2px solid var(--gray-medium);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-fast);
  background-color: white;
  color: var(--black);
}

.form-group input::placeholder {
  color: var(--gray-dark);
  opacity: 1;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235daaee' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 45px;
  cursor: pointer;
  background-color: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.form-group select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231a3a5c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.form-group select option {
  padding: 14px 16px;
  background: white;
  color: var(--black);
  font-size: 0.95rem;
}

.form-group select option:checked {
  background: var(--light-blue);
  color: white;
}

.form-group select option:hover,
.form-group select option:focus {
  background: var(--light-blue);
  color: white;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--light-blue);
  box-shadow: 0 0 0 3px rgba(93, 170, 238, 0.2);
}

.form-group input:hover,
.form-group select:hover {
  border-color: var(--light-blue);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.hero-form-card .btn {
  width: 100%;
  padding: 16px;
  font-size: 1.05rem;
  margin-top: 10px;
}

/* ========================================
   WAVE DIVIDER
   ======================================== */
.wave-divider {
  position: relative;
  height: 100px;
  overflow: hidden;
}

.wave-divider svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 100%;
  animation: wave 15s linear infinite;
}

.wave-divider.top {
  transform: rotate(180deg);
}

/* ========================================
   INFO SECTION
   ======================================== */
.info-section {
  padding: var(--section-padding);
  background: var(--navy-blue);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  margin-bottom: 15px;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
}

.info-section .section-header h2,
.info-section .section-header p {
  color: white;
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.info-card {
  background: var(--gray-light);
  padding: 35px 25px;
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition-medium);
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.info-card h4 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  color: var(--navy-blue);
}

.info-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
  color: var(--gray-dark);
}

.info-card-icon {
  width: 70px;
  height: 70px;
  background: var(--light-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.info-card-icon i {
  font-size: 1.8rem;
  color: white;
}

/* ========================================
   EXPERIENCES SECTION
   ======================================== */
.experiences-section {
  padding: var(--section-padding);
  background: linear-gradient(180deg, var(--gray-light) 0%, var(--white) 100%);
}

.experience-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.experience-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-medium);
  position: relative;
}

.experience-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.experience-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.experience-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.experience-card:hover .experience-card-image img {
  transform: scale(1.1);
}

.experience-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.experience-tag.popular {
  background: var(--navy-blue);
  color: white;
}

.experience-tag.recommended {
  background: var(--light-blue);
  color: white;
}

.experience-card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.experience-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-medium);
  position: relative;
  display: flex;
  flex-direction: column;
}

.experience-features {
  margin-bottom: 20px;
}

.experience-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--gray-dark);
}

.experience-features li i {
  color: var(--light-blue);
  font-size: 0.85rem;
}

.experience-card-content h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.experience-card-content>p {
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.experience-card-content .btn {
  width: 100%;
}

.experience-bottom {
  margin-top: auto;
}

.experience-schedule {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  background: var(--gray-light);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.experience-schedule i {
  color: var(--navy-blue);
}

.experience-restriction {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #fff3cd;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: #856404;
  margin-bottom: 15px;
}

.experience-pricing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  padding: 15px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--light-blue);
}

.price-original {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.price-original span {
  font-size: 0.75rem;
  color: var(--gray-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.price-original strong {
  font-size: 1.1rem;
  color: var(--red);
  text-decoration: line-through;
  font-weight: 400;
}

.price-current {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background: var(--navy-blue);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
}

.price-current span {
  font-size: 0.7rem;
  color: var(--light-blue);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.price-current strong {
  font-size: 1.5rem;
  color: white;
  font-weight: 700;
}

.experience-card .btn {
  width: 100%;
  margin-top: auto;
}

/* ========================================
   REVIEWS SECTION
   ======================================== */
.reviews-section {
  padding: 30px 0 50px 0;
  background: var(--gray-light);
}

.reviews-header {
  text-align: center;
  margin-bottom: 30px;
}

.reviews-header .google-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.reviews-header .rating-score {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy-blue);
}

.reviews-header .stars {
  color: #fbbc04;
  font-size: 1.2rem;
}

.reviews-header .rating-count {
  color: var(--gray-dark);
  font-size: 0.9rem;
}

.reviews-carousel-wrapper {
  overflow: hidden;
  position: relative;
  margin: 0 -10px;
  padding: 10px;
}

.reviews-carousel {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
}

.reviews-carousel .review-card {
  flex: 0 0 calc(25% - 15px);
  max-width: calc(25% - 15px);
}

.review-card {
  background: white;
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-medium);
}

.review-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.review-card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  flex-wrap: nowrap;
}

.review-avatar {
  width: 50px;
  min-width: 50px;
  max-width: 50px;
  height: 50px;
  min-height: 50px;
  max-height: 50px;
  border-radius: 50%;
  background: var(--light-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
  flex-grow: 0;
  object-fit: cover;
}

.review-user-info h4 {
  font-size: 1rem;
  margin-bottom: 2px;
  font-family: var(--font-body);
  font-weight: 600;
}

.review-user-info span {
  font-size: 0.8rem;
  color: var(--gray-dark);
}

.review-stars {
  color: #fbbc04;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.review-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--gray-dark);
}

.reviews-link {
  text-align: center;
  margin-top: 40px;
}

.reviews-link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy-blue);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition-fast);
}

.reviews-link a:hover {
  color: var(--light-blue);
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-section {
  padding: var(--section-padding);
  background: var(--navy-blue);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 60px;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: auto;
  transition: var(--transition-slow);
}

.about-image:hover img {
  transform: scale(1.03);
}

.about-content h2 {
  color: white;
}

.about-content h2 span {
  color: var(--orange);
}

.about-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.value-card {
  background: white;
  padding: 25px;
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition-medium);
}

.value-card:hover {
  background: var(--light-blue);
  transform: translateY(-5px);
}

.value-card:hover h4,
.value-card:hover p {
  color: white;
}

.value-card:hover .value-card-icon {
  background: white;
}

.value-card:hover .value-card-icon i {
  color: var(--light-blue);
}

.value-card-icon {
  width: 55px;
  height: 55px;
  background: var(--light-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
}

.value-card-icon i {
  font-size: 1.4rem;
  color: white;
}

.value-card h4 {
  font-size: 1rem;
  margin-bottom: 10px;
  transition: var(--transition-medium);
}

.value-card p {
  font-size: 0.85rem;
  margin-bottom: 0;
  transition: var(--transition-medium);
}

/* ========================================
   GALLERY SECTION
   ======================================== */
.gallery-section {
  padding: var(--section-padding);
  background: var(--gray-light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 250px);
  gap: 15px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.gallery-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(36, 47, 129, 0.6) 0%, transparent 50%);
  opacity: 0;
  transition: var(--transition-medium);
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item-overlay {
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: 15px;
  color: white;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition-medium);
  z-index: 2;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item-overlay i {
  font-size: 1.5rem;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-section {
  padding: 30px 0 50px 0;
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
  align-items: stretch;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  min-height: 400px;
}

.contact-info h3 {
  margin-bottom: 25px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-item-icon {
  width: 50px;
  height: 50px;
  background: var(--light-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon i {
  font-size: 1.2rem;
  color: white;
}

.contact-item-text h4 {
  font-size: 1rem;
  margin-bottom: 5px;
  font-family: var(--font-body);
}

.contact-item-text p,
.contact-item-text a {
  font-size: 0.95rem;
  color: var(--gray-dark);
  margin: 0;
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 400px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--navy-blue);
  color: white;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 40px;
}

.footer-brand img {
  height: 60px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-family: var(--font-body);
  font-weight: 600;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition-fast);
}

a.footer-contact-item:hover {
  color: var(--light-blue);
}

.footer-contact-item i {
  color: var(--light-blue);
  width: 18px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  transition: var(--transition-medium);
}

.footer-social a:hover {
  background: var(--light-blue);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin: 0;
}

.footer-bottom .heart {
  color: #e74c3c;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    order: 1;
  }

  .hero-form-card {
    order: 2;
    max-width: 500px;
    margin: 0 auto;
  }

  .hero-content p {
    margin: 0 auto 30px;
  }

  .hero-benefits {
    justify-content: center;
  }

  .experience-cards {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 200px);
  }

  .gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {

  /* =====================
     CORRECCIÓN HEADER (MÓVIL)
     ===================== */
  .navbar .container {
    padding: 10px 15px;
    /* Reducción de padding */
  }

  /* =====================
     CORRECCIÓN OPINIONES (MÓVIL)
     ===================== */

  /* 1. Eliminamos el espacio entre tarjetas para que el cálculo sea exacto */
  .reviews-carousel {
    gap: 0;
  }

  /* 2. Ajustamos la tarjeta y le damos un pequeño margen interno invisible
        para que no se peguen al borde de la pantalla */
  .reviews-carousel .review-card {
    flex: 0 0 100%;
    max-width: 100%;
    margin-right: 0;
    /* Aseguramos que no haya margen derecho externo */
    border-radius: 0;
    /* Opcional: en móvil a veces se ve mejor cuadrado, o déjalo como está */
    border-right: 10px solid transparent;
    /* Truco visual para separar tarjetas sin romper la matemática */
    border-left: 10px solid transparent;
    /* Truco visual para separar tarjetas */
    background-clip: padding-box;
    /* Necesario para que el borde transparente funcione como margen */
    box-shadow: none;
    /* Quitamos sombra para limpiar visualmente o ajústala si prefieres */
    border: 1px solid var(--gray-medium);
    /* Borde suave para delimitar */
  }

  .navbar-logo img {
    height: 35px;
    /* Logo más pequeño */
  }

  .navbar-logo span {
    font-size: 1.4rem;
    /* Texto más pequeño */
  }

  .navbar-menu {
    position: fixed;
    top: 60px;
    /* Ajuste por nueva altura del header */
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 30px;
    gap: 20px;
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    opacity: 0;
    transition: var(--transition-medium);
  }

  .navbar-menu.active {
    transform: translateY(0);
    opacity: 1;
  }

  /* =====================
     CORRECCIÓN MENÚ (MÓVIL)
     ===================== */
  .navbar-menu a {
    color: var(--navy-blue);
    /* Texto oscuro para fondo blanco */
    width: 100%;
    text-align: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .navbar-menu a:last-child {
    border-bottom: none;
  }

  .navbar-cta.desktop {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .info-cards {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .gallery-item:nth-child(1) {
    grid-column: span 1;
  }

  .gallery-item {
    height: 200px;
  }

  /* Hide Información General section on mobile */
  .info-section,
  #info {
    display: none;
  }

  /* Fix Google rating stars on one line */
  .reviews-header .google-rating {
    flex-wrap: wrap;
    gap: 8px;
  }

  .reviews-header .stars {
    display: flex;
    flex-wrap: nowrap;
    gap: 2px;
  }

  .reviews-header .stars i {
    font-size: 1.1rem;
  }

  .reviews-header .rating-count {
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
  }

  /* =====================
     CORRECCIÓN OPINIONES (MÓVIL) - CARRUSEL HORIZONTAL
     ===================== */
  .reviews-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0 10px;
    box-sizing: border-box;
  }

  .reviews-carousel {
    display: flex;
    flex-direction: row;
    gap: 0;
    flex-wrap: nowrap;
    /* JS will handle transform */
  }

  .reviews-carousel .review-card {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    box-sizing: border-box;
    padding: 20px;
    margin: 0;
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
  }

  .review-card p {
    font-size: 0.9rem;
    line-height: 1.5;
    overflow: visible;
    white-space: normal;
    word-wrap: break-word;
    margin-top: 10px;
  }

  .review-card-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    width: 100%;
  }

  .reviews-carousel .review-avatar {
    width: 45px;
    min-width: 45px;
    max-width: 45px;
    height: 45px;
    min-height: 45px;
    max-height: 45px;
    font-size: 1rem;
    flex-shrink: 0;
  }

  .review-user-info {
    flex: 1;
    min-width: 0;
  }

  .review-user-info h4 {
    font-size: 0.95rem;
  }

  .review-stars {
    display: flex;
    flex-direction: row;
    gap: 2px;
    width: 100%;
    margin-bottom: 5px;
  }

  .review-stars i {
    font-size: 0.9rem;
  }

  /* Show all cards for carousel */
  .reviews-carousel .review-card:nth-child(n+5) {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand img {
    margin: 0 auto 20px;
  }

  .footer-social {
    justify-content: center;
  }

  /* Center contact info on mobile */
  .footer-contact {
    align-items: center;
  }

  .footer-contact-item {
    justify-content: center;
  }

  .footer-social-section {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* =====================
     CORRECCIÓN HERO (MÓVIL)
     ===================== */
  .hero {
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 20px;
  }

  .hero .container {
    gap: 20px;
  }

  .hero-content {
    padding: 0 15px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .hero-content p {
    font-size: 1rem;
    padding: 0 10px;
    margin-bottom: 15px;
  }

  .hero-benefits {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 10px;
  }

  .hero-benefit {
    font-size: 0.85rem;
    padding: 6px 12px;
  }

  /* Fix form card spacing */
  .hero-form-card {
    margin-top: 0;
  }

  /* Fix date input overflow - iOS Safari fix */
  .form-group {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .form-group input[type="date"] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 10px;
  }

  /* Ensure all form inputs don't overflow */
  .form-group input,
  .form-group select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    font-size: 16px;
    /* Prevents iOS zoom on focus */
  }

  .hero-form-card {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
    width: 100%;
    max-width: 100%;
    margin-bottom: 0;
  }

  .form-row .form-group {
    margin-bottom: 18px;
  }

  /* Increase small text sizes for mobile readability */
  body {
    font-size: 17px;
  }

  .review-card p {
    font-size: 0.95rem;
  }

  .experience-features li {
    font-size: 0.95rem;
  }

  .info-card p {
    font-size: 0.95rem;
  }

  .about-text p {
    font-size: 1rem;
  }

  .footer-links li a,
  .footer-contact li {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 70px;
    min-height: auto;
    padding-bottom: 40px;
  }

  .hero-form-card {
    padding: 25px 20px;
  }

  .hero-benefit {
    font-size: 0.8rem;
    padding: 8px 12px;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .experience-card-content {
    padding: 20px;
  }

  .contact-map {
    height: 300px;
  }
}

/* ========================================
   UTILITIES
   ======================================== */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 10px;
}

.mb-2 {
  margin-bottom: 20px;
}

.mb-3 {
  margin-bottom: 30px;
}

.mb-4 {
  margin-bottom: 40px;
}

.mt-0 {
  margin-top: 0;
}

.mt-1 {
  margin-top: 10px;
}

.mt-2 {
  margin-top: 20px;
}

.mt-3 {
  margin-top: 30px;
}

.mt-4 {
  margin-top: 40px;
}

/* ========================================
   MOBILE-ONLY UTILITY
   ======================================== */
.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .mobile-only {
    display: block;
  }
}

/* ========================================
   MOBILE STICKY CONTACT BAR
   ======================================== */
.mobile-contact-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  min-height: 50px;
  background: #242f81;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  z-index: 99999;
  padding: 8px 0;
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  justify-content: space-around;
  align-items: center;
}

.mobile-bar-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 25px;
  color: #5daaee;
  text-decoration: none;
  background: transparent;
  min-width: 50px;
  min-height: 35px;
  transition: color 0.2s ease;
}

.mobile-bar-item i {
  font-size: 22px;
  line-height: 1;
}

.mobile-bar-item:hover,
.mobile-bar-item:active {
  color: white;
}

/* Body padding for mobile to account for fixed bar */
@media (max-width: 768px) {
  body {
    padding-bottom: 60px;
  }
}