:root {
  --background: #f5f7fb;
  --foreground: #111827;
  --primary: #1f5fa6;
  --primary-light: rgba(31, 95, 166, 0.1);
  --primary-rgb: 31, 95, 166;
  --secondary: #e6f4f2;
  --secondary-rgb: 44, 139, 124;
  --accent: #d6a64f;
  --accent-rgb: 214, 166, 79;
  --border: #e2e8f0;
  --muted: #4b5563;
  --gradient-primary: linear-gradient(135deg, #1f5fa6 0%, #2c8b7c 100%);
  --gradient-hero: linear-gradient(180deg, #f5f7fb 0%, #eff4fa 50%, #ecf6f3 100%);
  --shadow-soft: 0 4px 20px -4px rgba(31, 41, 55, 0.12);
  --shadow-medium: 0 8px 30px -6px rgba(31, 41, 55, 0.16);
  --shadow-strong: 0 20px 50px -12px rgba(31, 41, 55, 0.2);
  --radius-lg: 1.5rem;
  --focus-ring: #0b3d91;
  --touch-target: 2.75rem;
}

html {
  font-size: 100%;
}

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--background);
  color: var(--foreground);
  scroll-behavior: smooth;
  line-height: 1.6;
}

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

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

label,
.form-label {
  font-weight: 600;
}

.form-control,
.form-select,
textarea,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"] {
  min-height: var(--touch-target);
}

.form-helper {
  color: var(--muted);
  font-size: 0.95rem;
}

.form-error {
  color: #b91c1c;
  font-weight: 600;
}

.form-control:focus,
.form-select:focus,
textarea:focus {
  border-color: var(--focus-ring);
  box-shadow: 0 0 0 0.15rem rgba(11, 61, 145, 0.2);
}

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.75rem 1rem;
  background: #ffffff;
  color: var(--foreground);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  transform: translateY(-200%);
  transition: transform 0.2s ease;
  z-index: 100;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.site-header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  z-index: 20;
}

.navbar-light .navbar-nav .nav-link {
  color: var(--foreground);
  font-weight: 500;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible,
.social-link:focus-visible,
.whatsapp-float:focus-visible,
.navbar-toggler:focus-visible,
.carousel-control-prev:focus-visible,
.carousel-control-next:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  box-shadow: none;
}

.btn,
.nav-link,
.social-link,
.whatsapp-float,
.navbar-toggler,
.carousel-control-prev,
.carousel-control-next {
  min-width: var(--touch-target);
  min-height: var(--touch-target);
}

.btn,
.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.navbar-toggler {
  padding: 0.5rem;
}

.section-gradient {
  background: var(--gradient-hero);
}

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

.hero-section {
  position: relative;
}

.hero-shapes .shape {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.7;
}

.shape-1 {
  width: 240px;
  height: 240px;
  background: rgba(var(--primary-rgb), 0.1);
  top: -80px;
  right: -80px;
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: rgba(var(--secondary-rgb, 44, 139, 124), 0.12);
  top: 45%;
  left: -80px;
}

.shape-3 {
  width: 140px;
  height: 140px;
  background: rgba(var(--accent-rgb), 0.16);
  bottom: 80px;
  right: 20%;
}

.badge-premium {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent);
  font-weight: 600;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
}

.btn-premium {
  border: none;
  padding: 0.75rem 1.75rem;
  border-radius: 0.9rem;
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow-medium);
}

.btn-premium:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-strong);
}

.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-glow {
  position: absolute;
  inset: -20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(31, 95, 166, 0.15), rgba(214, 166, 79, 0.12));
  filter: blur(30px);
  z-index: 0;
}

.hero-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-strong);
  z-index: 1;
}

.hero-image-card img {
  width: 100%;
  height: clamp(20rem, 60vh, 32.5rem);
  object-fit: cover;
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.1) 100%);
}

.hero-floating-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: #fff;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-medium);
  z-index: 2;
}

.icon-circle {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--primary-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.bounce {
  display: inline-block;
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

.image-frame {
  position: relative;
  padding: 0.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(31, 95, 166, 0.1), rgba(44, 139, 124, 0.08));
}

.card-premium {
  border-radius: 1.25rem;
  border: 1px solid rgba(226, 232, 240, 0.7);
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: var(--shadow-soft);
}

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

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  width: 2px;
  height: calc(100% - 1rem);
  background: rgba(31, 95, 166, 0.2);
}

.timeline-item {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.timeline-icon {
  position: absolute;
  top: 0.5rem;
  left: -0.6rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(31, 95, 166, 0.4);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-box {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.icon-box.secondary {
  background: var(--secondary);
  color: #2c8b7c;
}

.card-premium.featured {
  border-color: rgba(31, 95, 166, 0.2);
  background: linear-gradient(145deg, rgba(31, 95, 166, 0.06) 0%, #ffffff 100%);
}

.divider {
  display: block;
  width: 48px;
  height: 4px;
  margin-top: 1.5rem;
  border-radius: 999px;
  background: rgba(31, 95, 166, 0.2);
}

.quote-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2.5rem;
  color: rgba(31, 95, 166, 0.1);
}

.stars i {
  color: var(--accent);
}

.avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 2px solid rgba(31, 95, 166, 0.2);
  object-fit: cover;
}

.article-image {
  position: relative;
  height: 12.5rem;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card-premium:hover .article-image img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.2) 100%);
}

.footer {
  background: rgba(255, 255, 255, 0.6);
}

.social-link {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--secondary);
  color: #2c8b7c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--primary);
  color: #fff;
}

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-medium);
  z-index: 10;
  transition: transform 0.2s ease;
  text-decoration: none;
}

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

.py-lg-6 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

@media (max-width: 991px) {
  .hero-image-card img {
    height: clamp(18rem, 50vh, 26.25rem);
  }

  .hero-floating-card {
    position: static;
    margin-top: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
