/* ==========================================================================
   Taxi Campanillas - Design System & Stylesheet (Executive Mobile-First Edition)
   Colores: Azul Marino (#0f2b5c), Azul Real (#1d4ed8), Gris (#64748b), Verde (#10b981)
   ========================================================================== */

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

:root {
  --primary: #0f2b5c;
  --primary-hover: #0a1e42;
  --primary-light: #1d4ed8;
  --primary-soft: #eff6ff;
  --accent: #10b981;
  --accent-hover: #059669;
  --bg-main: #f8fafc;
  --surface: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 6px rgba(15, 43, 92, 0.04);
  --shadow-md: 0 10px 30px rgba(15, 43, 92, 0.08);
  --shadow-lg: 0 20px 45px rgba(15, 43, 92, 0.14);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --header-height: 72px;
}

/* Reset & Prevención de Overflow Horizontal */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 70px;
}

@media (min-width: 769px) {
  body {
    padding-bottom: 0;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.nowrap {
  white-space: nowrap;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* TOP NOTIFICATION BAR RESPONSIVA */
.top-bar {
  background: #0a1e42;
  color: #ffffff;
  padding: 8px 0;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 12px;
}

.top-bar-badge {
  font-weight: 500;
  white-space: nowrap;
}

.top-bar-contact {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-left: auto;
}

.top-bar-contact a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #e0f2fe;
  font-weight: 600;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.top-bar-contact a:hover {
  opacity: 0.85;
}

/* Conmutador de Idioma (ES / EN) */
.lang-switcher {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 2px;
  flex-shrink: 0;
}

.lang-btn {
  border: none;
  background: transparent;
  color: #ffffff;
  padding: 3px 9px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn.active {
  background: #ffffff;
  color: var(--primary);
}

/* Header & Navegación */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border-bottom: 1px solid var(--border);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-mark {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: #ffffff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.5px;
  box-shadow: 0 4px 12px rgba(15, 43, 92, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-text h1 {
  font-size: 1.3rem;
  letter-spacing: -0.5px;
  margin: 0;
  line-height: 1.1;
  color: var(--primary);
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-link {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-main);
  padding: 8px 4px;
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-light);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary-light);
  border-radius: 3px;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: var(--primary);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
}

.mobile-toggle:focus {
  outline: 2px solid var(--primary-light);
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 48px;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-light);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.25);
}

.btn-primary:hover {
  background: #1d40b0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29, 78, 216, 0.35);
}

.btn-accent {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

.btn-accent:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-whatsapp:hover {
  background: #1ebc59;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  color: #ffffff;
}

.btn-secondary {
  background: var(--surface);
  color: var(--primary);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
  background: var(--primary-soft);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  min-height: 38px;
}

.btn-lg {
  padding: 15px 30px;
  font-size: 1.02rem;
  border-radius: var(--radius-md);
}

/* Layout Grid Container */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 40px auto;
}

.section-header h2 {
  font-size: 2.1rem;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.08rem;
}

/* HERO SECTION */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0a1e42 0%, #0f2b5c 60%, #1e293b 100%);
  color: #ffffff;
  padding: 70px 0 80px 0;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 85% 15%, rgba(29, 78, 216, 0.25) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-content h1 {
  color: #ffffff;
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 18px;
  letter-spacing: -0.8px;
}

.hero-content p {
  font-size: 1.12rem;
  color: #cbd5e1;
  margin-bottom: 28px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Insignias de Confianza */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: -35px;
  position: relative;
  z-index: 10;
}

.trust-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: transform 0.3s;
}

.trust-card:hover {
  transform: translateY(-4px);
}

.trust-icon-box {
  width: 42px;
  height: 42px;
  background: var(--primary-soft);
  color: var(--primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
}

.trust-card h4 {
  font-size: 0.98rem;
  margin-bottom: 3px;
}

.trust-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Tarjetas de Servicios */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 30px 22px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  opacity: 1;
}

.service-badge {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-light);
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  display: inline-block;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  flex-grow: 1;
}

/* Filtros y Rejilla de Destinos (Qué ver en Málaga) */
.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 35px;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 30px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.places-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.place-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.place-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.place-card-image-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.place-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.place-card:hover .place-card-img {
  transform: scale(1.06);
}

.place-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 43, 92, 0.9);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.place-badge.badge-naturaleza { background: rgba(16, 185, 129, 0.92); }
.place-badge.badge-excursiones { background: rgba(217, 119, 6, 0.92); }
.place-badge.badge-costa { background: rgba(14, 165, 233, 0.92); }
.place-badge.badge-corporativo { background: rgba(15, 43, 92, 0.95); }

.place-quick-meta {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  display: flex;
  gap: 8px;
}

.place-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.place-card-title {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.place-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  flex-grow: 1;
}

.place-card-actions {
  display: flex;
  gap: 10px;
}

.place-card-actions .btn {
  flex: 1;
}

/* Formulario de Reservas y Contacto */
.form-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 35px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  max-width: 820px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-row-contact {
  display: grid;
  grid-template-columns: 6fr 4fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-main);
  color: var(--text-main);
  transition: all 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-light);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary-light);
  cursor: pointer;
  flex-shrink: 0;
}

.recaptcha-wrapper {
  margin: 15px 0;
  display: flex;
  justify-content: center;
  overflow-x: auto;
  width: 100%;
}

/* MÓDULO MODAL SWEETALERT2 CORREGIDO (AMPLITUD Y SCROLL INTERNO) */
.swal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.25s ease-out;
}

.swal-overlay.swal-visible {
  opacity: 1;
}

.swal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 660px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  padding: 26px;
  text-align: left;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.4);
  transform: scale(0.92);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid var(--border);
  overflow: hidden;
}

.swal-visible .swal-card {
  transform: scale(1);
}

.swal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.swal-title {
  font-size: 1.35rem;
  color: var(--primary);
  line-height: 1.25;
  margin: 0;
}

.swal-html {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.6;
  overflow-y: auto;
  max-height: calc(90vh - 160px);
  padding-right: 8px;
  margin-bottom: 16px;
}

.swal-html::-webkit-scrollbar {
  width: 6px;
}
.swal-html::-webkit-scrollbar-track {
  background: var(--bg-main);
  border-radius: 4px;
}
.swal-html::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.swal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.swal-btn {
  padding: 10px 22px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.swal-btn-confirm {
  background: var(--primary-light);
  color: #ffffff;
}

.swal-btn-confirm:hover {
  background: #1d40b0;
}

.swal-btn-cancel {
  background: #e2e8f0;
  color: #475569;
}

.swal-btn-cancel:hover {
  background: #cbd5e1;
}

/* Sticky Bottom Bar (Móviles) */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
  display: flex;
  z-index: 900;
  border-top: 1px solid var(--border);
}

.sticky-action {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-main);
  gap: 3px;
  min-height: 60px;
}

.sticky-action.action-call {
  background: var(--primary);
  color: #ffffff;
}

.sticky-action.action-whatsapp {
  background: var(--accent);
  color: #ffffff;
}

.sticky-action.action-book {
  background: var(--primary-light);
  color: #ffffff;
}

@media (min-width: 769px) {
  .mobile-sticky-bar {
    display: none;
  }
}

/* Footer */
.site-footer {
  background: var(--primary);
  color: #94a3b8;
  padding: 50px 0 25px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 35px;
  margin-bottom: 35px;
}

.footer-brand h3 {
  color: #ffffff;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 0.86rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* ==========================================================================
   MEDIA QUERIES - ADAPTACIÓN RESPONSIVA PERFECTA
   ========================================================================== */

/* Tablet Grande (769px - 1100px) */
@media (max-width: 1100px) {
  .places-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile & Tablet (<= 768px) */
@media (max-width: 768px) {
  .top-bar-badge {
    display: none; /* Ocultar texto largo en la barra superior móvil para evitar wrapping */
  }

  .top-bar-contact {
    width: 100%;
    justify-content: space-between;
    font-size: 0.8rem;
  }

  .logo-text h1 {
    font-size: 1.15rem;
  }

  .logo-mark {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--surface);
    flex-direction: column;
    padding: 25px 20px;
    box-shadow: var(--shadow-lg);
    clip-path: circle(0% at 100% 0);
    transition: clip-path 0.4s ease-in-out;
    z-index: 999;
  }

  .main-nav.open {
    clip-path: circle(140% at 100% 0);
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 18px;
    width: 100%;
  }

  .nav-link {
    font-size: 1.05rem;
    padding: 6px;
  }

  .mobile-toggle {
    display: block;
  }

  .hero {
    padding: 45px 0 55px 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 1rem;
    margin-bottom: 22px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .trust-grid {
    grid-template-columns: 1fr 1fr;
    margin-top: 0;
    gap: 14px;
    padding-top: 25px;
  }

  .trust-card {
    padding: 16px 12px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .places-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .form-card {
    padding: 24px 18px;
  }

  .form-grid, .form-row-contact {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .form-group.full-width {
    grid-column: span 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .swal-card {
    max-height: 94vh;
    padding: 18px;
  }
}

/* Pantallas Muy Pequeñas (<= 480px) */
@media (max-width: 480px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .top-bar-contact {
    font-size: 0.78rem;
    gap: 8px;
  }

  .hero-content h1 {
    font-size: 1.6rem;
  }
}
