/* ==========================================================================
   PaisanoTV — Cartelera de Remates
   Design System & Styles
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Colors */
  --color-primary: #044420;
  --color-accent: #066830;
  --color-accent-light: #088a3e;
  --color-bg: #F4F7F5;
  --color-bg-white: #ffffff;
  --color-text: #1F2A37;
  --color-text-light: #5A6B7A;
  --color-text-muted: #8896A4;
  --color-border: #E2E8F0;
  --color-border-light: #EEF2EF;
  --color-shadow: rgba(4, 68, 32, 0.08);
  --color-shadow-hover: rgba(4, 68, 32, 0.16);
  --color-whatsapp: #25D366;
  --color-overlay: rgba(4, 68, 32, 0.55);

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.5rem;
  --fs-4xl: 3.25rem;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Sizes */
  --max-width: 1200px;
  --navbar-height: 72px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 50%;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

/* ---------- Container ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

h1 {
  font-size: var(--fs-4xl);
}

h2 {
  font-size: var(--fs-3xl);
}

h3 {
  font-size: var(--fs-xl);
}

h4 {
  font-size: var(--fs-lg);
}

p {
  color: var(--color-text-light);
  line-height: 1.7;
}

.section-title {
  font-size: var(--fs-3xl);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  font-size: var(--fs-md);
  color: var(--color-text-light);
  margin-bottom: var(--space-2xl);
  max-width: 600px;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-header .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--color-shadow-hover);
}

.btn-secondary {
  background-color: transparent;
  color: #fff;
  border-color: #fff;
}

.btn-secondary:hover {
  background-color: #fff;
  color: var(--color-primary);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-outline:hover {
  background-color: var(--color-accent);
  color: #fff;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--fs-xs);
}

.btn-block {
  width: 100%;
}

.btn-icon {
  width: 20px;
  height: 20px;
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--navbar-height);
  background: var(--color-bg-white);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: box-shadow var(--transition-base);
}

.navbar.scrolled {
  box-shadow: 0 2px 20px var(--color-shadow);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--color-primary);
}

.navbar-logo img,
.navbar-logo-img {
  height: 44px;
  width: auto;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.navbar-menu a {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-text-light);
  position: relative;
  padding: var(--space-xs) 0;
}

.navbar-menu a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-base);
}

.navbar-menu a:hover,
.navbar-menu a.active {
  color: var(--color-primary);
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
  width: 100%;
}

.navbar-menu .btn {
  padding: 0.5rem 1.25rem;
  text-transform: none;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-sm);
  z-index: 1001;
}

.navbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all var(--transition-base);
  border-radius: 2px;
}

.navbar-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(4, 68, 32, 0.80) 0%,
      rgba(4, 68, 32, 0.50) 50%,
      rgba(4, 68, 32, 0.30) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  color: #fff;
}

.hero-content h1 {
  font-size: var(--fs-4xl);
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--space-lg);
  line-height: 1.15;
}

.hero-content p {
  font-size: var(--fs-lg);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-2xl);
  max-width: 520px;
}

.hero-btns {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-dots {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: var(--space-sm);
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.hero-dot.active {
  background: #fff;
  border-color: #fff;
}

/* ---------- Sections ---------- */
.section {
  padding: var(--space-4xl) 0;
}

.section-alt {
  background: var(--color-bg-white);
}

/* ---------- Filter Bar ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-2xl);
  align-items: center;
}

.filter-bar.sticky {
  position: sticky;
  top: var(--navbar-height);
  z-index: 99;
  box-shadow: 0 4px 16px var(--color-shadow);
}

.filter-input,
.filter-select {
  flex: 1;
  min-width: 180px;
  padding: 0.7rem 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  color: var(--color-text);
  transition: border-color var(--transition-fast);
}

.filter-input:focus,
.filter-select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(31, 106, 74, 0.1);
}

.filter-input::placeholder {
  color: var(--color-text-muted);
}

.filter-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235A6B7A' d='M6 8.825a.5.5 0 01-.354-.146l-3.5-3.5a.5.5 0 11.708-.708L6 7.618l3.146-3.147a.5.5 0 01.708.708l-3.5 3.5a.5.5 0 01-.354.146z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.filter-bar .btn {
  flex-shrink: 0;
}

/* ---------- Cards Grid ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

/* ---------- Event Card ---------- */
.event-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  box-shadow: 0 2px 8px var(--color-shadow);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--color-shadow-hover);
}

.event-card-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.event-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.event-card:hover .event-card-img img {
  transform: scale(1.03);
}

.badge-date {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: var(--color-accent);
  color: #fff;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.event-card-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: var(--space-sm);
}

.event-card-title {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}

.event-card-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin: var(--space-xs) 0;
}

.event-card-meta span {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-sm);
  color: var(--color-text-light);
}

.event-card-meta svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--color-accent);
}

.event-card-footer {
  margin-top: auto;
  padding-top: var(--space-md);
}

/* ---------- Service Card ---------- */
.service-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  border: 1px solid var(--color-border-light);
  box-shadow: 0 2px 8px var(--color-shadow);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--color-shadow-hover);
}

.service-card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  border-radius: var(--radius-full);
  color: var(--color-accent);
}

.service-card-icon svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  margin-bottom: var(--space-sm);
  font-size: var(--fs-md);
}

.service-card p {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

/* ---------- News Card ---------- */
.news-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  box-shadow: 0 2px 8px var(--color-shadow);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--color-shadow-hover);
}

.news-card-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.news-card:hover .news-card-img img {
  transform: scale(1.03);
}

.news-card-body {
  padding: var(--space-lg);
}

.news-card-date {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-sm);
}

.news-card-body h3 {
  font-size: var(--fs-md);
  margin-bottom: var(--space-sm);
}

.news-card-body p {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-body a {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-accent);
}

.news-card-body a:hover {
  color: var(--color-primary);
}

/* ---------- Page Header ---------- */
.page-header {
  padding: var(--space-3xl) 0 var(--space-xl);
  text-align: center;
  background: var(--color-bg-white);
  border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
  font-size: var(--fs-3xl);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.page-header p {
  font-size: var(--fs-md);
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-2xl);
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--space-md);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-text-light);
  border: 1px solid var(--color-border);
  background: var(--color-bg-white);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.pagination a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.pagination .active {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.pagination .disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ---------- Empty State ---------- */
.empty-state {
  text-align: center;
  padding: var(--space-4xl) var(--space-xl);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.empty-state svg {
  width: 64px;
  height: 64px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.empty-state h3 {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.empty-state p {
  color: var(--color-text-light);
}

/* ---------- Detail Page ---------- */
.detail-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  padding: var(--space-2xl) 0;
}

.detail-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 16px var(--color-shadow);
}

.detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

.detail-info {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.detail-info h1 {
  font-size: var(--fs-2xl);
  color: var(--color-primary);
  line-height: 1.2;
}

.detail-date-time {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--color-accent);
}

.detail-date-time svg {
  width: 20px;
  height: 20px;
}

.detail-desc {
  font-size: var(--fs-base);
  color: var(--color-text-light);
  line-height: 1.7;
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-md);
}

.detail-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
}

.detail-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-sm);
  color: var(--color-text-light);
}

.detail-meta-item svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.detail-meta-item strong {
  color: var(--color-text);
  font-weight: 600;
}

.detail-btns {
  display: flex;
  gap: var(--space-md);
  margin-top: auto;
  flex-wrap: wrap;
}

.detail-btns .btn {
  flex: 1;
  min-width: 180px;
}

/* ---------- Tabs ---------- */
.tabs {
  margin: var(--space-2xl) 0;
}

.tabs-nav {
  display: flex;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: var(--space-xl);
  gap: var(--space-xs);
}

.tabs-nav button {
  padding: var(--space-md) var(--space-xl);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--color-text-light);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.tabs-nav button:hover {
  color: var(--color-accent);
}

.tabs-nav button.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-accent);
}

.tab-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-panel.active {
  display: block;
}

/* ---------- Live Video ---------- */
.live-video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 16px var(--color-shadow);
  background: #000;
}

.live-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Info Table ---------- */
.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table tr:nth-child(even) {
  background: var(--color-bg);
}

.info-table td {
  padding: var(--space-md) var(--space-lg);
  font-size: var(--fs-sm);
  border-bottom: 1px solid var(--color-border-light);
}

.info-table td:first-child {
  font-weight: 600;
  color: var(--color-text);
  width: 180px;
  white-space: nowrap;
}

.info-table td:last-child {
  color: var(--color-text-light);
}

/* ---------- Map Section ---------- */
.map-section h3 {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
}

.map-address {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.map-address svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.map-directions {
  margin-top: var(--space-lg);
  padding: var(--space-lg);
  background: var(--color-bg);
  border-radius: var(--radius-md);
}

.map-directions h4 {
  font-size: var(--fs-md);
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.map-directions p {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
}

/* ---------- Related Events ---------- */
.related-events {
  padding: var(--space-3xl) 0;
  border-top: 1px solid var(--color-border);
}

.related-events h2 {
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: var(--space-xl);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-3xl) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.footer h4 {
  font-size: var(--fs-md);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-lg);
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

.footer a:hover {
  color: #fff;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  font-size: var(--fs-sm);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-sm);
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.7);
}

.footer-logo {
  display: inline-block;
  margin-bottom: var(--space-md);
}

.footer-logo-img {
  height: 40px;
  width: auto;
}

.footer-contact-label {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-xs);
}

.footer-contact-text {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-sm);
}

.footer-about {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  transition: background var(--transition-fast);
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.2);
}

.footer-social svg {
  width: 20px;
  height: 20px;
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-lg) 0;
  text-align: center;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- WhatsApp Floating Button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--color-whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  cursor: pointer;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

/* ---------- View All Link ---------- */
.view-all {
  text-align: center;
  margin-top: var(--space-2xl);
}

.view-all a {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.view-all a:hover {
  color: var(--color-primary);
}

.view-all a svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.view-all a:hover svg {
  transform: translateX(4px);
}

/* ---------- Services Grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-top {
    grid-template-columns: 1fr;
  }

  .detail-image img {
    aspect-ratio: 16 / 9;
  }

  h1 {
    font-size: var(--fs-3xl);
  }
}

@media (max-width: 768px) {
  :root {
    --navbar-height: 64px;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .navbar-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--color-bg-white);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--navbar-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
    gap: var(--space-md);
    box-shadow: -4px 0 24px var(--color-shadow);
    transition: right var(--transition-base);
    z-index: 1000;
  }

  .navbar-menu.open {
    right: 0;
  }

  .navbar-toggle {
    display: flex;
  }

  .hero {
    min-height: 70vh;
  }

  .hero-content h1 {
    font-size: var(--fs-2xl);
  }

  .hero-content p {
    font-size: var(--fs-base);
  }

  .hero-btns {
    flex-direction: column;
  }

  .hero-btns .btn {
    width: 100%;
    text-align: center;
  }

  .filter-bar {
    flex-direction: column;
  }

  .filter-input,
  .filter-select {
    min-width: 100%;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .section-title {
    font-size: var(--fs-2xl);
  }

  .detail-btns {
    flex-direction: column;
  }

  .detail-btns .btn {
    min-width: 100%;
  }

  .tabs-nav {
    gap: 0;
  }

  .tabs-nav button {
    flex: 1;
    text-align: center;
    padding: var(--space-md);
    font-size: var(--fs-sm);
  }

  .detail-info h1 {
    font-size: var(--fs-xl);
  }

  .info-table td:first-child {
    width: 120px;
  }

  .pagination {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: var(--fs-xl);
  }

  .detail-info {
    padding: var(--space-lg);
  }

  .info-table td {
    padding: var(--space-sm) var(--space-md);
  }
}

/* ---------- Mobile Menu Overlay ---------- */
.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
}

.menu-overlay.active {
  display: block;
}