/* ==========================================================
   Betancort Transporte — Styles
   Convertido desde React + Tailwind a CSS nativo
   ========================================================== */

/* ---------- Design System ---------- */
:root {
  --font-sans: "Poppins", ui-sans-serif, system-ui, sans-serif;

  /* Paleta corporativa */
  --primary: #0B5FC6;
  --primary-dark: #0A4EA5;
  --navy: #16324F;
  --secondary: #F6F9FC;
  --background: #FFFFFF;
  --foreground: #16324F;
  --card: #FFFFFF;
  --card-foreground: #16324F;
  --muted: #F6F9FC;
  --muted-foreground: #64748B;
  --accent: #3B82C4;
  --accent-foreground: #FFFFFF;
  --border: #E2E8F0;
  --input: #E2E8F0;
  --ring: #0B5FC6;
  --whatsapp: #25D366;
  --destructive: #EF4444;

  /* Sombras */
  --shadow-soft: 0 2px 8px -2px rgba(22, 50, 79, 0.08);
  --shadow-card: 0 18px 40px -24px rgba(22, 50, 79, 0.45);
  --shadow-lift: 0 26px 60px -28px rgba(11, 95, 198, 0.55);

  /* Transiciones */
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);

  /* Radios */
  --radius: 0.75rem;
  --radius-sm: calc(0.75rem - 4px);
  --radius-lg: calc(0.75rem + 4px);
  --radius-xl: calc(0.75rem + 8px);
  --radius-2xl: calc(0.75rem + 16px);
}

/* Gradientes */
:root {
  --gradient-hero: linear-gradient(
    120deg,
    rgba(22, 50, 79, 0.92),
    rgba(11, 95, 198, 0.7)
  );
  --gradient-primary: linear-gradient(135deg, #0B5FC6, #3B82C4);
}

/* ---------- Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

button {
  cursor: pointer;
  font-family: inherit;
}

h1, h2, h3, h4, h5, h6, p {
  margin: 0;
}

figure {
  margin: 0;
}

/* ---------- Utilities ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.w-full {
  width: 100%;
}

.min-w-0 {
  min-width: 0;
}

.hidden {
  display: none !important;
}

/* ---------- Header / Nav ---------- */
#header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: all 0.3s;
}

.header-transparent {
  background: transparent;
}

.header-solid {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-soft);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  min-height: 76px;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 2.75rem;
  width: auto;
  transition: all 0.3s;
}

@media (min-width: 768px) {
  .logo-img {
    height: 3.25rem;
  }
}

.logo-light {
  filter: brightness(0) invert(1);
}

.logo-dark {
  filter: none;
}

/* Nav links desktop */
.nav-links {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -0.375rem;
  left: 0;
  height: 2px;
  width: 0;
  background-color: var(--primary);
  transition: width 0.2s;
}

.nav-link:hover::after {
  width: 100%;
}

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

.header-solid .nav-link {
  color: var(--foreground);
}

.header-solid .nav-link:hover {
  color: var(--primary);
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hide-mobile {
  display: none !important;
}

@media (min-width: 1024px) {
   .hide-mobile {
     display: inline-flex !important;
   }
 }

/* Menu toggle (mobile hamburger) */
.menu-toggle {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--background);
  font-size: 1.5rem;
  line-height: 1;
  transition: color 0.2s;
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

.header-solid .menu-toggle {
  color: var(--foreground);
}

.menu-icon {
  display: block;
}

/* Mobile menu */
.mobile-menu {
  border-top: 1px solid var(--border);
  background: var(--background);
  padding: 0 1.25rem 1.25rem;
}

.mobile-menu.hidden {
  display: none;
}

.mobile-menu-list {
  display: block;
}

.mobile-menu-link {
  display: block;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

.mobile-menu-cta {
  padding-top: 1rem;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 9999px;
  background-image: var(--gradient-primary);
  padding: 0.75rem 1.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  text-decoration: none;
  cursor: pointer;
}

.btn-primary:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 9999px;
  background-color: var(--whatsapp);
  padding: 0.75rem 1.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  text-decoration: none;
}

.btn-whatsapp:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 92vh;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}

.hero-content {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 1.25rem 5rem;
}

.hero-text {
  max-width: 36rem;
}

.badge-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hero-title {
  margin-top: 1.5rem;
  font-size: 2.25rem;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-subtitle {
  margin-top: 1rem;
  font-size: 1.125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
}

@media (min-width: 640px) {
  .hero-subtitle {
    font-size: 1.25rem;
  }
}

.hero-desc {
  margin-top: 1rem;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  line-height: 1.6;
}

.hero-buttons {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Counters */
.hero-counters {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 48rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: 2rem;
}

@media (min-width: 640px) {
  .hero-counters {
    grid-template-columns: repeat(4, 1fr);
  }
}

.counter-value {
  font-size: 1.875rem;
  font-weight: 700;
  color: #fff;
}

.counter-label {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- Sections ---------- */
.section {
  padding: 6rem 0;
}

.bg-background {
  background-color: var(--background);
}

.bg-secondary {
  background-color: var(--secondary);
}

.section-header {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
}

.section-title {
  margin-top: 0.75rem;
  font-size: clamp(1.85rem, 4vw, 2.7rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.section-desc {
  margin-top: 1rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* ---------- Grids ---------- */
.grid-4 {
  margin-top: 3.5rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.grid-3 {
  margin-top: 3.5rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Service / Ventaja / Proceso Cards ---------- */
.service-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background: var(--secondary);
  padding: 1.25rem;
  transition: all 0.3s;
  text-decoration: none;
}

.service-card:hover {
  border-color: rgba(11, 95, 198, 0.3);
  box-shadow: var(--shadow-card);
}

.service-icon {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  flex-shrink: 0;
  place-items: center;
  border-radius: 0.75rem;
  background: var(--card);
  color: var(--primary);
  transition: background 0.3s, color 0.3s;
}

.service-card:hover .service-icon {
  background: rgba(11, 95, 198, 0.1);
}

.service-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke-width: 1.8;
}

.service-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
}

.service-text {
  flex: 1;
  min-width: 0;
}

.service-desc {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}

/* Ventaja cards */
.ventaja-card {
  display: flex;
  gap: 1rem;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s;
}

.ventaja-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: var(--shadow-card);
}

.ventaja-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  place-items: center;
  border-radius: 0.75rem;
  background: rgba(11, 95, 198, 0.1);
  color: var(--primary);
}

.ventaja-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke-width: 1.8;
}

.ventaja-title {
  font-weight: 600;
  color: var(--navy);
}

.ventaja-desc {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

/* Proceso cards */
.proceso-card {
  position: relative;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background: var(--secondary);
  padding: 1.75rem;
  transition: all 0.3s;
}

.proceso-card:hover {
  box-shadow: var(--shadow-card);
}

.proceso-number {
  font-size: 2.25rem;
  font-weight: 700;
  color: rgba(11, 95, 198, 0.25);
}

.proceso-title {
  margin-top: 0.75rem;
  font-weight: 600;
  color: var(--navy);
}

.proceso-desc {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

/* ---------- Gallery ---------- */
.gallery-grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-card);
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  transition: transform 0.3s;
}

.gallery-item:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(22, 50, 79, 0);
  transition: background 0.3s;
}

.gallery-item:hover .gallery-item-overlay {
  background: rgba(22, 50, 79, 0.35);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 50, 79, 0.9);
  padding: 1rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.lightbox.hidden {
  display: none;
}

.lightbox-img {
  max-height: 82vh;
  width: auto;
  max-width: 100%;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-lift);
}

.lightbox-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.lightbox-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  font-size: 1.5rem;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-close {
  top: 1.25rem;
  right: 1.25rem;
}

.lightbox-prev {
  left: 0.75rem;
}

@media (min-width: 768px) {
  .lightbox-prev {
    left: 2rem;
  }
}

.lightbox-next {
  right: 0.75rem;
}

@media (min-width: 768px) {
  .lightbox-next {
    right: 2rem;
  }
}

/* ---------- Testimonios ---------- */
.testimonio-card {
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s;
}

.testimonio-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: var(--shadow-card);
}

.testimonio-stars {
  font-size: 1.125rem;
  letter-spacing: 0.05em;
  color: #f59e0b;
}

.testimonio-text {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.testimonio-author {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.testimonio-name {
  display: block;
  font-weight: 600;
  color: var(--navy);
}

.testimonio-lugar {
  display: block;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* ---------- CTA ---------- */
.cta-section {
  padding: 6rem 0;
  background: var(--gradient-primary);
}

.cta-content {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  text-align: center;
}

.cta-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #fff;
}

@media (min-width: 640px) {
  .cta-title {
    font-size: 2.25rem;
  }
}

.cta-desc {
  margin-top: 0.75rem;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
}

.cta-btn {
  margin-top: 2rem;
  display: inline-flex;
}

/* ---------- Contacto ---------- */
.contacto-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .contacto-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.contacto-cards {
  margin-top: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contacto-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background: var(--secondary);
  padding: 1rem;
  transition: box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

@media (min-width: 768px) {
  .contacto-card {
    gap: 1rem;
    padding: 1.25rem;
  }
}

.contacto-card:hover {
  box-shadow: var(--shadow-card);
}

.contacto-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  place-items: center;
  border-radius: 0.75rem;
}

.whatsapp-icon {
  background: rgba(37, 211, 102, 0.15);
  color: var(--whatsapp);
}

.email-icon {
  background: rgba(11, 95, 198, 0.1);
  color: var(--primary);
}

.clock-icon {
  background: rgba(59, 130, 196, 0.15);
  color: var(--accent);
}

.contacto-card-text {
  min-width: 0;
  flex: 1;
}

.contacto-card-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.contacto-card-value {
  display: block;
  font-weight: 600;
  color: var(--navy);
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Form */
.contacto-form {
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  min-width: 0;
}

@media (min-width: 768px) {
  .contacto-form {
    padding: 2.5rem;
  }
}

.form-row {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-group {
  margin-top: 1.25rem;
}

.form-row .form-group {
  margin-top: 0;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}

.form-input {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--input);
  background: var(--background);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(11, 95, 198, 0.25);
}

/* Validation states */
.form-input.error {
  border-color: var(--destructive);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.form-input.error:focus {
  border-color: var(--destructive);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3);
}

.form-input.valid {
  border-color: var(--whatsapp);
  box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.15);
}

.form-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='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-select.error {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23EF4444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

.form-textarea {
  resize: vertical;
  min-height: 7rem;
}

/* Error message */
.form-error {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--destructive);
  line-height: 1.3;
  min-height: 0;
  overflow: hidden;
  transition: all 0.25s ease;
  max-height: 0;
  opacity: 0;
}

.form-error.visible {
  max-height: 3rem;
  opacity: 1;
}

/* Character counter */
.form-chars {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.7rem;
  color: var(--muted-foreground);
  text-align: right;
}

/* Required asterisk */
.required {
  color: var(--destructive);
}

/* Submit button loading state */
.btn-submit .btn-loader {
  display: none;
}

.btn-submit.loading .btn-text {
  visibility: hidden;
}

.btn-submit.loading .btn-loader {
  display: inline-flex;
  visibility: visible;
}

.spinner {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.btn-submit {
  margin-top: 1.75rem;
  width: 100%;
  justify-content: center;
}

.form-status {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted-foreground);
  transition: color 0.3s;
  min-height: 1.2rem;
}

.form-status.success {
  color: var(--whatsapp);
  font-weight: 500;
}

.form-status.error {
  color: var(--destructive);
  font-weight: 500;
}

.form-status.warning {
  color: #92400e;
  font-weight: 500;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy);
  padding: 4rem 0;
  color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-logo {
  height: 3rem;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-desc {
  margin-top: 1rem;
  max-width: 20rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.footer-heading {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
}

.footer-links {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.footer-links a {
  transition: color 0.2s;
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding: 1.5rem 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  font-size: 0.75rem;
}

.footer-credit {
  text-align: center;
  font-size: 0.75rem;
  padding: 0.75rem 1.25rem 1.25rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-credit a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-credit a:hover {
  color: #fff;
}

/* ---------- Floating Buttons ---------- */
.floating-buttons {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .floating-buttons {
    right: 1.5rem;
    bottom: 1.5rem;
  }
}

.floating-btn {
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
}

.scroll-top-btn {
  width: 2.75rem;
  height: 2.75rem;
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-card);
  transition: all 0.3s;
}

.scroll-top-btn:hover {
  background: var(--primary);
}

.scroll-top-btn.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.scroll-top-btn.hidden {
  transform: translateY(0.75rem);
  opacity: 0;
  pointer-events: none;
}

.whatsapp-float {
  width: 3.5rem;
  height: 3.5rem;
  background: var(--whatsapp);
  color: #fff;
  box-shadow: var(--shadow-lift);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.05);
}

/* ---------- Reveal Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .service-card,
  .ventaja-card,
  .testimonio-card,
  .gallery-item img,
  .scroll-top-btn {
    transition: none;
  }
}

/* ==========================================================
   Cookie Consent Banner
   ========================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--background);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 30px rgba(22, 50, 79, 0.12);
  padding: 1rem 1.25rem;
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.cookie-banner.hidden {
  transform: translateY(100%);
  pointer-events: none;
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .cookie-banner-content {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }
}

.cookie-banner-text {
  flex: 1;
}

.cookie-banner-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.cookie-banner-desc {
  font-size: 0.825rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}

.cookie-banner-desc a {
  color: var(--primary);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.15s;
  font-family: var(--font-sans);
}

.cookie-btn:active {
  transform: scale(0.97);
}

.cookie-btn-accept {
  background: var(--primary);
  color: #fff;
}

.cookie-btn-accept:hover {
  background: var(--primary-dark);
}

.cookie-btn-reject {
  background: transparent;
  color: var(--muted-foreground);
  border: 1px solid var(--border);
}

.cookie-btn-reject:hover {
  background: var(--secondary);
  color: var(--foreground);
}

/* ==========================================================
   Captcha
   ========================================================== */
.captcha-group {
  margin-bottom: 1.25rem;
}

.captcha-row {
  position: relative;
  display: flex;
  align-items: center;
}

.captcha-input {
  max-width: 14rem;
}

.captcha-icon {
  position: absolute;
  left: 0.75rem;
  font-size: 1.25rem;
  pointer-events: none;
}

.captcha-input {
  padding-left: 2.75rem;
}

/* ==========================================================
   FAQ / Acordeón
   ========================================================== */
.faq-container {
  max-width: 48rem;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  transition: color 0.2s;
  line-height: 1.4;
  gap: 1rem;
}

.faq-trigger:hover {
  color: var(--primary);
}

.faq-trigger:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.faq-chevron {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--muted-foreground);
  transition: transform 0.3s ease;
}

.faq-item[data-open="true"] .faq-chevron {
  transform: rotate(180deg);
}

.faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.faq-item[data-open="true"] .faq-content {
  grid-template-rows: 1fr;
}

.faq-content-inner {
  overflow: hidden;
}

.faq-answer {
  padding: 0 0 1.25rem 0;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.faq-answer a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-answer a:hover {
  color: var(--primary-dark);
}

.faq-cta {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--muted-foreground);
}

.faq-cta a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-cta a:hover {
  color: var(--primary-dark);
}
