/* =========================================
   AGENCES FRANCOPHONES RIVIERA MAYA
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Open+Sans:wght@400;500;600&display=swap');

/* === VARIABLES === */
:root {
  --primary: #005F8E;
  --primary-dark: #004A70;
  --primary-light: #0077B6;
  --secondary: #00C9A7;
  --secondary-dark: #00A88D;
  --accent: #FF6B35;
  --gold: #F4A261;
  --white: #FFFFFF;
  --light: #F0F8FF;
  --light-gray: #F5F7FA;
  --gray: #6B7280;
  --dark-gray: #374151;
  --dark: #1A2332;
  --text: #2D3748;
  --border: #E2E8F0;
  --shadow: 0 4px 20px rgba(0,95,142,0.12);
  --shadow-lg: 0 8px 40px rgba(0,95,142,0.18);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 24px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--secondary), #00A88D);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(0,201,167,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,201,167,0.45);
}
.btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #1DA851);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(37,211,102,0.35);
}
.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.45);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* === HEADER / NAV === */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,95,142,0.1);
  transition: box-shadow 0.3s;
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--primary);
}
.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
}
.logo span.highlight { color: var(--secondary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  padding: 8px 16px;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark-gray);
  transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
  background: var(--light);
}
.nav-cta {
  background: linear-gradient(135deg, #25D366, #1DA851) !important;
  color: white !important;
  padding: 10px 20px !important;
  border-radius: 50px !important;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37,211,102,0.4) !important;
  background: linear-gradient(135deg, #1DA851, #158a40) !important;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--primary);
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,40,70,0.82) 0%, rgba(0,95,142,0.55) 60%, rgba(0,201,167,0.25) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 24px;
  color: white;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: white;
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}
.hero h1 {
  color: white;
  max-width: 700px;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero h1 .highlight { color: var(--secondary); }
.hero-desc {
  font-size: 1.15rem;
  max-width: 580px;
  opacity: 0.9;
  margin-bottom: 36px;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 60px;
  flex-wrap: wrap;
}
.stat {
  text-align: center;
}
.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--secondary);
}
.stat-label {
  font-size: 0.85rem;
  opacity: 0.8;
  font-weight: 500;
}

/* === SECTIONS === */
.section {
  padding: 80px 24px;
}
.section-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: white;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.section-header h2 { margin-bottom: 14px; }
.section-header p {
  color: var(--gray);
  max-width: 580px;
  margin: 0 auto;
  font-size: 1.05rem;
}
.bg-light { background: var(--light-gray); }
.bg-dark { background: var(--dark); color: white; }
.bg-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
}

/* === FEATURED AGENCY (Top Tours) === */
.featured-agency {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 48px;
  color: white;
  position: relative;
  overflow: hidden;
  margin-bottom: 60px;
}
.featured-agency::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: rgba(0,201,167,0.15);
  border-radius: 50%;
}
.featured-agency::after {
  content: '';
  position: absolute;
  bottom: -40px; left: 60px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--dark);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}
.featured-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.featured-agency h3 {
  color: white;
  font-size: 2rem;
  margin-bottom: 12px;
}
.featured-agency p {
  opacity: 0.9;
  margin-bottom: 24px;
  font-size: 1.05rem;
  max-width: 520px;
}
.featured-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.tag {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
}
.featured-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.featured-img-wrap {
  width: 220px;
  height: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-lg);
}
.featured-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === AGENCY CARDS === */
.agencies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.agency-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.agency-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.agency-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: left;
}
.agency-card:hover::before { transform: scaleX(1); }
.agency-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.agency-card h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 8px;
}
.agency-card h3 a {
  color: inherit;
  transition: color 0.2s;
}
.agency-card h3 a:hover { color: var(--secondary); }
.agency-type {
  display: inline-block;
  background: var(--light);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.agency-type.specialist { background: #FFF3E0; color: #E65100; }
.agency-type.independent { background: #F3E5F5; color: #6A1B9A; }
.agency-type.multilingual { background: #E8F5E9; color: #2E7D32; }
.agency-desc {
  font-size: 0.92rem;
  color: var(--gray);
  margin-bottom: 20px;
  line-height: 1.6;
}
.agency-specialty {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--dark-gray);
  margin-bottom: 20px;
  padding: 12px;
  background: var(--light-gray);
  border-radius: var(--radius-sm);
}
.specialty-icon { font-size: 1rem; flex-shrink: 0; }
.agency-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: white;
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.25s;
  flex: 1;
  justify-content: center;
}
.wa-btn:hover {
  background: #1DA851;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
}

/* === CATEGORY LABELS === */
.cat-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  margin-top: 48px;
}
.cat-label:first-child { margin-top: 0; }
.cat-label h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cat-label::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--border), transparent);
}
.cat-line {
  width: 4px;
  height: 24px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

/* === EXCURSIONS PAGE === */
.excursions-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 140px 24px 80px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.excursions-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.pexels.com/photos/11423491/pexels-photo-11423491.jpeg?auto=compress&cs=tinysrgb&h=650&w=940') center/cover;
  opacity: 0.2;
}
.excursions-hero > * { position: relative; z-index: 1; }
.excursions-hero h1 { color: white; margin-bottom: 16px; }
.excursions-hero p { opacity: 0.9; max-width: 580px; margin: 0 auto 28px; font-size: 1.1rem; }

.excursion-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}
.excursion-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  border: 1px solid var(--border);
}
.excursion-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.excursion-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.excursion-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.excursion-card:hover .excursion-img img { transform: scale(1.06); }
.excursion-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--secondary);
  color: white;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
}
.excursion-body {
  padding: 24px;
}
.excursion-body h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--primary);
}
.excursion-body p {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 18px;
  line-height: 1.6;
}
.excursion-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.83rem;
  color: var(--dark-gray);
  font-weight: 600;
}
.excursion-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.excursion-price {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary);
}
.excursion-price span { font-size: 0.78rem; font-weight: 500; color: var(--gray); }

/* === WHATSAPP STICKY === */
.wa-sticky {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  transition: all 0.3s;
  animation: bounce 3s ease-in-out infinite;
}
.wa-sticky:hover {
  transform: scale(1.1);
  background: #1DA851;
  animation: none;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.wa-sticky svg { width: 28px; height: 28px; fill: white; }

/* === BANNER CTA === */
.cta-banner {
  background: linear-gradient(135deg, #25D366, #1DA851);
  padding: 60px 24px;
  text-align: center;
  color: white;
}
.cta-banner h2 { color: white; margin-bottom: 12px; }
.cta-banner p { opacity: 0.9; margin-bottom: 28px; font-size: 1.05rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-phone {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: 1px;
}

/* === BREADCRUMB === */
.breadcrumb {
  padding: 16px 24px;
  background: var(--light-gray);
  border-bottom: 1px solid var(--border);
}
.breadcrumb-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}
.breadcrumb a { color: var(--primary); font-weight: 600; }
.breadcrumb span { color: var(--gray); }

/* === FOOTER === */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 24px 30px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo { color: white; margin-bottom: 14px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; }
.footer-col h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a {
  font-size: 0.88rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.footer-col ul a:hover { opacity: 1; color: var(--secondary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.83rem;
  opacity: 0.6;
  flex-wrap: wrap;
  gap: 10px;
}

/* === REVEAL ON SCROLL === */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* === FILTER BAR === */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  align-items: center;
}
.filter-bar span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--dark-gray);
}
.filter-btn {
  padding: 8px 18px;
  border-radius: 50px;
  border: 2px solid var(--border);
  background: white;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--dark-gray);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: white;
    padding: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    gap: 4px;
  }
  .featured-inner { grid-template-columns: 1fr; }
  .featured-img-wrap { display: none; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .hero-actions { flex-direction: column; }
  .agencies-grid { grid-template-columns: 1fr; }
  .excursion-cards-grid { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .agencies-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}