@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap');

/* ========================================
   CSS VARIABLES - LIGHT MODE (DEFAULT)
   ======================================== */
:root {
  --primary: #298EDC;
  --secondary: #316093;
  --accent: #258073;
  --white: #FFFFFF;
  --black: #000000;
  --bg-body: #F8F9FA;
  --bg-card: #FFFFFF;
  --bg-navbar: rgba(255, 255, 255, 0.95);
  --bg-footer: #0D1117;
  --bg-section-alt: #E8EEF4;
  --text-primary: #1A1A2E;
  --text-secondary: #4A5568;
  --text-muted: #718096;
  --text-footer: #CBD5E0;
  --border-color: #E2E8F0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--accent));
  --gradient-hero: linear-gradient(135deg, rgba(41,142,220,0.85), rgba(37,128,115,0.85));
  --input-bg: #FFFFFF;
  --input-border: #CBD5E0;
  --overlay-dark: rgba(0,0,0,0.6);
  --scrollbar-track: #f1f1f1;
  --scrollbar-thumb: #c1c1c1;
  --cookie-bg: #FFFFFF;
}

/* ========================================
   DARK MODE (DEFAULT ON)
   ======================================== */
body.dark-mode {
  --bg-body: #111827;
  --bg-card: #1F2937;
  --bg-navbar: rgba(17, 24, 39, 0.95);
  --bg-footer: #0B0F19;
  --bg-section-alt: #1A2332;
  --text-primary: #F9FAFB;
  --text-secondary: #D1D5DB;
  --text-muted: #9CA3AF;
  --text-footer: #D1D5DB;
  --border-color: #374151;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.5);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.6);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.7);
  --gradient-hero: linear-gradient(135deg, rgba(17,24,39,0.8), rgba(31,41,55,0.8));
  --input-bg: #1F2937;
  --input-border: #4B5563;
  --overlay-dark: rgba(0,0,0,0.7);
  --scrollbar-track: #1F2937;
  --scrollbar-thumb: #4B5563;
  --cookie-bg: #1F2937;
}

/* ========================================
   BASE STYLES
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden;
}

body {
  font-family: 'Quicksand', sans-serif;
  background-color: var(--bg-body);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}
::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 4px;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--text-primary);
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent);
}

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

/* ========================================
   NAVBAR
   ======================================== */
.navbar-custom {
  background: var(--bg-navbar);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.8rem 0;
  transition: all 0.3s ease;
  border-bottom: 1px solid var(--border-color);
  z-index: 1050;
  overflow-x: hidden;
}

.navbar-custom.scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow-md);
}

.navbar-custom .navbar-brand img {
  height: 38px;
  transition: height 0.3s ease;
}

.navbar-custom.scrolled .navbar-brand img {
  height: 32px;
}

.navbar-custom .nav-link {
  color: var(--text-primary) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
  font-size: 0.95rem;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--primary) !important;
  background: rgba(41, 142, 220, 0.08);
}

.navbar-custom .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after {
  width: 60%;
}

.navbar-toggler {
  border: none;
  padding: 0.4rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: none;
  position: relative;
  width: 24px;
  height: 20px;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after,
.navbar-toggler-icon span {
  content: '';
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.navbar-toggler-icon::before {
  margin-bottom: 5px;
}

.navbar-toggler-icon::after {
  margin-top: 5px;
}

/* Dark mode toggle */
.dark-toggle {
  background: none;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.dark-toggle:hover {
  border-color: var(--primary);
  background: rgba(41, 142, 220, 0.1);
  transform: rotate(20deg);
}

.dark-toggle .icon-sun,
.dark-toggle .icon-moon {
  display: none;
}

body:not(.dark-mode) .dark-toggle .icon-sun {
  display: none;
}

body:not(.dark-mode) .dark-toggle .icon-moon {
  display: inline;
}

body.dark-mode .dark-toggle .icon-sun {
  display: inline;
}

body.dark-mode .dark-toggle .icon-moon {
  display: none;
}

/* ========================================
   HERO / PARALLAX
   ======================================== */
.hero-parallax {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1920&q=80') center center / cover no-repeat fixed;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-hero);
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 3.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.2rem;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-content p {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
  font-weight: 400;
}

/* Fallback parallax for unsupported browsers */
@supports not (background-attachment: fixed) {
  .hero-bg,
  .about-hero-bg,
  .page-banner-bg,
  .claims-hero-bg,
  .legal-hero-bg {
    background-attachment: scroll;
  }
}

@media (max-width: 767.98px) {
  .hero-bg,
  .about-hero-bg,
  .page-banner-bg,
  .claims-hero-bg,
  .legal-hero-bg {
    background-attachment: scroll;
  }
}

/* ========================================
   BUTTONS
   ======================================== */
.btn-primary-custom {
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  padding: 0.85rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(41, 142, 220, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(41, 142, 220, 0.45);
  color: #fff;
}

.btn-outline-custom {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  padding: 0.85rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn-outline-custom:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(41, 142, 220, 0.35);
}

.btn-accent-custom {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.85rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-accent-custom:hover {
  background: #1e6b5f;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 128, 115, 0.35);
}

/* ========================================
   SECTIONS
   ======================================== */
.section-padding {
  padding: 5rem 0;
}

.section-alt {
  background: var(--bg-section-alt);
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 3px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
}

/* ========================================
   STATS
   ======================================== */
.stats-section {
  background: var(--gradient-primary);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.stats-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.stat-item {
  text-align: center;
  color: #fff;
  position: relative;
  z-index: 1;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
  font-weight: 400;
}

.stat-divider {
  width: 1px;
  background: rgba(255,255,255,0.25);
  align-self: stretch;
}

/* ========================================
   CAROUSEL - TOOLS / BRANDS
   ======================================== */
.brands-section {
  padding: 3.5rem 0;
  overflow: hidden;
  background: var(--bg-body);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.carousel-track {
  display: flex;
  width: max-content;
  animation: scrollLogos 25s linear infinite;
}

.carousel-track:hover {
  animation-play-state: paused;
}

.carousel-item-logo {
  flex-shrink: 0;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.carousel-item-logo:hover {
  opacity: 1;
}

.carousel-item-logo:hover svg,
.carousel-item-logo:hover img {
  opacity: 1;
}

@keyframes scrollLogos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Tech carousel */
.tech-track {
  display: flex;
  width: max-content;
  animation: scrollTech 30s linear infinite;
}

.tech-track:hover {
  animation-play-state: paused;
}

.tech-item {
  flex-shrink: 0;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  height: 50px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.tech-item:hover {
  color: var(--primary);
}

.tech-item i {
  font-size: 1.6rem;
  transition: transform 0.3s ease;
}

.tech-item:hover i {
  transform: scale(1.15);
}

/* DevIcons colored mode overrides for dark mode */
body.dark-mode .tech-item i[class*="colored"] {
  filter: saturate(0.85) brightness(1.1);
}

/* Brand carousel img styling */
.carousel-item-logo img {
  height: 32px;
  width: auto;
  object-fit: contain;
  transition: all 0.3s ease;
}

body:not(.dark-mode) .carousel-item-logo img {
  filter: grayscale(1) brightness(0.1);
}

body.dark-mode .carousel-item-logo img {
  filter: grayscale(1) brightness(5);
}

.carousel-item-logo:hover img {
  filter: grayscale(0) brightness(1) !important;
}

@keyframes scrollTech {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ========================================
   CARDS
   ======================================== */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  height: 100%;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card .card-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(41, 142, 220, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  font-size: 1.5rem;
  color: var(--primary);
  transition: all 0.3s ease;
}

.service-card:hover .card-icon {
  background: var(--primary);
  color: #fff;
}

.service-card h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.service-card .card-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.3s ease;
}

.service-card:hover .card-link {
  gap: 0.6rem;
  color: var(--accent);
}

/* ========================================
   DETAIL PAGES - SERVICE
   ======================================== */
.service-hero {
  padding: 8rem 0 4rem;
  background: var(--gradient-primary);
  color: #fff;
  text-align: center;
}

.service-hero h1 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.service-hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto;
}

.service-detail-section {
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.service-detail-section .content-col p {
  color: var(--text-primary);
}

.dark-mode .service-detail-section .content-col p {
  color: #F9FAFB;
}

.light-mode .service-detail-section .content-col p,
body:not(.dark-mode) .service-detail-section .content-col p {
  color: #1A1A2E;
}

.service-detail-section .content-col {
  position: relative;
  z-index: 2;
}

.service-image-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.service-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  
}

.service-detail-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 0.8rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ========================================
   ABOUT PAGE
   ======================================== */
.about-hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 8rem 0 4rem;
}

.about-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=1920&q=80') center center / cover no-repeat fixed;
  z-index: -2;
}

.about-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(17,24,39,0.75), rgba(31,41,55,0.70));
  z-index: -1;
}

.about-hero h1 {
  color: #fff;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.about-hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

@supports not (background-attachment: fixed) {
  .about-hero-bg {
    background-attachment: scroll;
  }
}

.about-content {
  padding: 4rem 0;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
}

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

.value-card .value-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(41, 142, 220, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: var(--primary);
}

.value-card h4 {
  margin-bottom: 0.5rem;
}

.value-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.timeline-item {
  position: relative;
  padding-left: 2.5rem;
  padding-bottom: 2.5rem;
  border-left: 2px solid var(--border-color);
}

.timeline-item:last-child {
  border-left-color: transparent;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--bg-body);
}

.timeline-item h4 {
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.timeline-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ========================================
   CONTACT FORM
   ======================================== */
.contact-section {
  padding: 5rem 0;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

.contact-info-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.contact-info-card .info-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 12px;
  background: rgba(41, 142, 220, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
}

.contact-info-card h6 {
  margin-bottom: 0.1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.contact-info-card p {
  margin: 0;
  font-weight: 600;
  color: var(--text-primary);
}

.form-control-custom {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text-primary);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  font-family: 'Quicksand', sans-serif;
}

.form-control-custom:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(41, 142, 220, 0.15);
  outline: none;
}

.form-control-custom::placeholder {
  color: var(--text-muted);
}

select.form-control-custom {
  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='%23718096' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

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

.char-counter {
  text-align: right;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.char-counter.limit {
  color: #e53e3e;
  font-weight: 600;
}

/* ========================================
   CLAIMS BOOK
   ======================================== */
/* (claims-hero styles merged into PAGE BANNER above) */

/* ========================================
   LEGAL PAGES
   ======================================== */
/* (legal-hero styles merged into PAGE BANNER above) */

.legal-content {
  padding: 4rem 0;
}

.legal-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  color: var(--primary);
}

.legal-content p,
.legal-content ul {
  color: var(--text-secondary);
  line-height: 1.8;
  text-align: justify;
}

.legal-content ul {
  padding-left: 1.5rem;
}

.legal-content ul li {
  margin-bottom: 0.5rem;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--bg-footer);
  color: var(--text-footer);
  padding: 4rem 0 1.5rem;
}

.footer h5 {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.footer h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: var(--text-footer);
  font-size: 0.92rem;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-logo img {
  height: 36px;
  margin-bottom: 1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  margin-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.footer-bottom a {
  color: var(--primary);
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-footer);
  margin-right: 0.5rem;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.footer-social a svg {
  width: 16px;
  height: 16px;
}

.footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ========================================
   BOTTOM BAR - "Hecho con amor"
   ======================================== */
.bottom-bar {
  background: var(--bg-footer);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 0.8rem 0;
  text-align: center;
}

.bottom-bar p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.bottom-bar .heart {
  color: #e53e3e;
}

/* ========================================
   TOAST / ALERTS
   ======================================== */
.toast-custom {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  display: none;
  max-width: 380px;
  animation: slideInRight 0.4s ease;
}

.toast-custom.show {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.toast-custom .toast-icon {
  font-size: 1.3rem;
  color: var(--accent);
}

.toast-custom .toast-msg {
  font-size: 0.9rem;
  color: var(--text-primary);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ========================================
   PAGE BANNER (with background image)
   ======================================== */
.page-banner,
.claims-hero,
.legal-hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 8rem 0 4rem;
}

.page-banner > .container,
.claims-hero > .container,
.legal-hero > .container {
  position: relative;
  z-index: 2;
}

.page-banner-bg,
.claims-hero-bg,
.legal-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: -2;
}

.page-banner-overlay,
.claims-hero-overlay,
.legal-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(17,24,39,0.75), rgba(31,41,55,0.70));
  z-index: -1;
}

.page-banner h1,
.claims-hero h1,
.legal-hero h1 {
  color: #fff;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.page-banner p,
.claims-hero p,
.legal-hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.2rem;
  max-width: 650px;
  margin: 0 auto;
}

@supports not (background-attachment: fixed) {
  .page-banner-bg,
  .claims-hero-bg,
  .legal-hero-bg {
    background-attachment: scroll;
  }
}

.breadcrumb-custom {
  background: transparent;
  padding: 0;
  margin: 1rem 0 0;
}

.breadcrumb-custom .breadcrumb-item a {
  color: rgba(255,255,255,0.7);
}

.breadcrumb-custom .breadcrumb-item.active {
  color: rgba(255,255,255,0.9);
}

.breadcrumb-custom .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255,255,255,0.5);
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
  background: var(--gradient-primary);
  padding: 4rem 0;
  text-align: center;
  color: #fff;
}

.cta-section h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.cta-section p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.btn-white {
  background: #fff;
  color: var(--primary);
  border: none;
  padding: 0.85rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255,255,255,0.3);
  color: var(--secondary);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 991.98px) {
  .hero-content h1 {
    font-size: 2.4rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .stat-number {
    font-size: 2.4rem;
  }

  .navbar-collapse {
    background: var(--bg-navbar);
    padding: 1rem;
    border-radius: 12px;
    margin-top: 0.5rem;
    box-shadow: var(--shadow-md);
  }

  .stat-divider {
    width: 100%;
    height: 1px;
    margin: 1rem 0;
  }
}

@media (max-width: 767.98px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .section-padding {
    padding: 3rem 0;
  }

  .service-hero {
    padding: 7rem 0 2.5rem;
  }

  .about-hero,
  .page-banner,
  .claims-hero,
  .legal-hero {
    min-height: 45vh;
    padding: 7rem 0 2.5rem;
  }

  .service-hero h1 {
    font-size: 2rem;
  }

  .about-hero h1,
  .page-banner h1,
  .claims-hero h1,
  .legal-hero h1 {
    font-size: 2rem;
  }

  .footer {
    padding: 3rem 0 1rem;
  }
}

@media (max-width: 575.98px) {
  .hero-content h1 {
    font-size: 1.7rem;
  }

  .btn-primary-custom,
  .btn-outline-custom,
  .btn-white {
    padding: 0.75rem 1.8rem;
    font-size: 0.92rem;
  }
}

/* ========================================
   LOADING SCREEN
   ======================================== */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-body);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
}

.loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ========================================
   UTILITIES
   ======================================== */
.text-primary-custom {
  color: var(--primary) !important;
}

.text-accent-custom {
  color: var(--accent) !important;
}

.bg-primary-custom {
  background-color: var(--primary) !important;
}

.bg-accent-custom {
  background-color: var(--accent) !important;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

img[src*="logo"] {
  filter: none !important;
}

/* ========================================
   DARK MODE - ADDITIONAL CONTRAST FIXES
   ======================================== */
.dark-mode .service-card {
  background: #1F2937;
  border-color: #374151;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.dark-mode .service-card:hover {
  border-color: #60A5FA;
  box-shadow: 0 8px 25px rgba(41, 142, 220, 0.2);
}

.dark-mode .service-card .card-icon {
  background: rgba(96, 165, 250, 0.15);
  color: #60A5FA;
}

.dark-mode .service-card:hover .card-icon {
  background: #2563EB;
  color: #fff;
}

.dark-mode .service-card p {
  color: #D1D5DB;
}

.dark-mode .service-card .card-link {
  color: #60A5FA;
}

.dark-mode .value-card {
  background: #1F2937;
  border-color: #374151;
}

.dark-mode .value-card:hover {
  border-color: #4B5563;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.dark-mode .value-card .value-icon {
  background: rgba(96, 165, 250, 0.15);
  color: #60A5FA;
}

.dark-mode .value-card p {
  color: #D1D5DB;
}

.dark-mode .contact-info-card {
  background: #1F2937;
  border-color: #374151;
}

.dark-mode .contact-info-card:hover {
  border-color: #60A5FA;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.dark-mode .contact-info-card .info-icon {
  background: rgba(96, 165, 250, 0.15);
  color: #60A5FA;
}

.dark-mode .contact-info-card p {
  color: #F9FAFB;
}

.dark-mode .timeline-item {
  border-left-color: #374151;
}

.dark-mode .timeline-item h4 {
  color: #60A5FA;
}

.dark-mode .section-title {
  color: #F9FAFB;
}

.dark-mode .section-title::after {
  background: linear-gradient(135deg, #60A5FA, #34D399);
}

.dark-mode .section-subtitle {
  color: #D1D5DB;
}

.dark-mode .form-control-custom {
  background: #1F2937;
  border-color: #4B5563;
  color: #F9FAFB;
}

.dark-mode .form-control-custom:focus {
  border-color: #60A5FA;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

.dark-mode .form-control-custom::placeholder {
  color: #6B7280;
}

.dark-mode .form-label {
  color: #D1D5DB;
}

.dark-mode .char-counter {
  color: #9CA3AF;
}

.dark-mode .navbar-custom .nav-link {
  color: #F9FAFB !important;
}

.dark-mode .navbar-custom .nav-link:hover,
.dark-mode .navbar-custom .nav-link.active {
  color: #60A5FA !important;
  background: rgba(96, 165, 250, 0.1);
}

.dark-mode .dark-toggle {
  border-color: #4B5563;
  color: #F9FAFB;
}

.dark-mode .dark-toggle:hover {
  border-color: #60A5FA;
  background: rgba(96, 165, 250, 0.1);
}

.dark-mode .hero-content h1 {
  color: #FFFFFF;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.dark-mode .hero-content p {
  color: rgba(255,255,255,0.9);
}

.dark-mode .stat-item {
  color: #FFFFFF;
}

.dark-mode .stat-label {
  color: rgba(255,255,255,0.85);
}

.dark-mode .page-banner h1,
.dark-mode .service-hero h1,
.dark-mode .about-hero h1,
.dark-mode .claims-hero h1,
.dark-mode .legal-hero h1 {
  color: #FFFFFF;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.dark-mode .page-banner p,
.dark-mode .service-hero p,
.dark-mode .about-hero p,
.dark-mode .claims-hero p,
.dark-mode .legal-hero p {
  color: rgba(255,255,255,0.85);
}

.dark-mode .legal-content h3 {
  color: #60A5FA;
}

.dark-mode .legal-content p,
.dark-mode .legal-content ul li {
  color: #D1D5DB;
}

.dark-mode .footer {
  background: #0B0F19;
}

.dark-mode .footer h5 {
  color: #F9FAFB;
}

.dark-mode .footer-links a {
  color: #D1D5DB;
}

.dark-mode .footer-links a:hover {
  color: #60A5FA;
}

.dark-mode .footer-bottom p {
  color: #9CA3AF;
}

.dark-mode .bottom-bar {
  background: #0B0F19;
  border-top-color: #1F2937;
}

.dark-mode .bottom-bar p {
  color: #9CA3AF;
}

.dark-mode .brands-section {
  background: #111827;
  border-top-color: #1F2937;
  border-bottom-color: #1F2937;
}

.dark-mode .tech-item {
  color: #D1D5DB;
}

.dark-mode .tech-item:hover {
  color: #60A5FA;
}

.dark-mode .cta-section {
  background: linear-gradient(135deg, #1E40AF, #065F46);
}

.dark-mode .cta-section h2 {
  color: #FFFFFF;
}

.dark-mode .cta-section p {
  color: rgba(255,255,255,0.85);
}

.dark-mode .stats-section {
  background: linear-gradient(135deg, #1E3A5F, #134E4A);
}

.dark-mode .btn-primary-custom {
  background: linear-gradient(135deg, #3B82F6, #10B981);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.dark-mode .btn-primary-custom:hover {
  box-shadow: 0 6px 25px rgba(59, 130, 246, 0.5);
}

.dark-mode .btn-outline-custom {
  border-color: #60A5FA;
  color: #60A5FA;
}

.dark-mode .btn-outline-custom:hover {
  background: #2563EB;
  color: #FFFFFF;
}

.dark-mode .carousel-item-logo svg {
  color: #F9FAFB;
}

.dark-mode .page-loader {
  background: #111827;
}

/* Ensure dark mode doesn't break images */
.dark-mode .service-card img,
.dark-mode .value-card img {
  filter: brightness(0.95);
}
