/* ============================================
   LAYOUT, TYPOGRAPHY, BUTTONS, UTILITIES
   ============================================ */

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px) { .container { padding: 0 40px; } }
@media (min-width: 1200px) { .container { padding: 0 48px; } }

/* Sections */
section {
  padding: var(--section-padding) 0;
  position: relative;
}
@media (min-width: 768px) {
  section { padding: var(--section-padding-lg) 0; }
}

/* Section Headers */
.section-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 16px;
  color: var(--navy);
  font-weight: 800;
}

.section-subtitle {
  font-size: 15px;
  color: var(--gray-500);
  max-width: 640px;
  line-height: 1.7;
}

.section-header {
  max-width: 700px;
  margin-bottom: 36px;
}

.section-header.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-header.center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* Text Utilities */
.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-center { text-align: center; }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.badge-glow {
  background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(91,33,182,0.12));
  color: var(--blue);
  border: 1px solid rgba(37,99,235,0.2);
}

.badge-light {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
}

.badge-orange {
  background: rgba(249,115,22,0.1);
  color: var(--orange);
  border: 1px solid rgba(249,115,22,0.2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37,99,235,0.35);
}

.btn-orange {
  background: linear-gradient(135deg, #F97316, #EA580C);
  color: #fff;
  box-shadow: var(--shadow-orange);
}
.btn-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(249,115,22,0.35);
}

.btn-outline {
  border: 2px solid rgba(255,255,255,0.3);
  color: #fff;
  background: transparent;
  backdrop-filter: blur(4px);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

.btn-outline-dark {
  border: 2px solid var(--gray-200);
  color: var(--gray-700);
  background: transparent;
}
.btn-outline-dark:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(37,99,235,0.04);
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  box-shadow: 0 4px 15px rgba(37,211,102,0.3);
}
.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37,211,102,0.4);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 13px;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

/* Background variations */
.bg-white { background: var(--white); }
.bg-gray { background: var(--gray-50); }
.bg-dark {
  background: var(--gradient-hero);
  color: #fff;
}
.bg-dark .section-label { color: var(--cyan); }
.bg-dark .section-title { color: #fff; }
.bg-dark .section-subtitle { color: rgba(255,255,255,0.65); }

/* Grid pattern overlay */
.grid-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0v60M0 30h60' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3C/svg%3E");
  pointer-events: none;
}

.dot-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(255,255,255,0.04)'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 16px 0;
  font-size: 13px;
  color: var(--gray-400);
}

.breadcrumbs a {
  color: var(--gray-500);
}

.breadcrumbs a:hover {
  color: var(--blue);
}

.breadcrumbs span {
  margin: 0 8px;
  color: var(--gray-300);
}

/* Page Hero (for inner pages) */
.page-hero {
  background: var(--gradient-hero);
  padding: calc(var(--header-h) + 48px) 0 56px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0v60M0 30h60' stroke='rgba(255,255,255,0.025)' stroke-width='1'/%3E%3C/svg%3E");
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-size: clamp(30px, 5vw, 48px);
  color: #fff;
  margin-bottom: 12px;
  font-weight: 800;
}

.page-hero p {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  line-height: 1.8;
}

.page-hero .breadcrumbs {
  margin-bottom: 16px;
}

.page-hero .breadcrumbs,
.page-hero .breadcrumbs a {
  color: rgba(255,255,255,0.5);
}

.page-hero .breadcrumbs a:hover {
  color: #fff;
}

/* Image placeholder fallback */
.img-placeholder {
  background: var(--gradient-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  padding: 20px;
  border-radius: var(--radius);
}
