/* ============================================================
   TOP ARTE 3D — CSS Variables & Base Reset
   ============================================================ */

:root {
  /* Colors */
  --bg-primary:      #0B0F14;
  --bg-secondary:    #111827;
  --bg-card:         #1F2937;
  --blue-main:       #00AEEF;
  --blue-glow:       #38BDF8;
  --blue-hover:      #0284C7;
  --white:           #FFFFFF;
  --gray-light:      #ffffff;
  --gray-dark:       #ffffff;
  --gray-mid:        #ffffff;

  /* Glow */
  --glow-blue:       rgba(0, 174, 239, 0.15);
  --glow-blue-md:    rgba(0, 174, 239, 0.25);
  --glow-blue-lg:    rgba(0, 174, 239, 0.40);

  /* Typography */
  --font-primary:    'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-secondary:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* Spacing */
  --section-pad:     100px 0;
  --section-pad-sm:  60px 0;
  --container-max:   1280px;

  /* Border Radius */
  --radius-sm:       6px;
  --radius-md:       12px;
  --radius-lg:       20px;

  /* Shadows */
  --shadow-sm:       0 4px 16px rgba(0,0,0,0.20);
  --shadow-md:       0 10px 30px rgba(0,0,0,0.25);
  --shadow-lg:       0 20px 60px rgba(0,0,0,0.35);

  /* Transitions */
  --transition:      all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Gradients */
  --gradient-bg:     linear-gradient(135deg, #0B0F14 0%, #111827 100%);
  --gradient-blue:   linear-gradient(135deg, #00AEEF 0%, #0284C7 100%);
  --gradient-card:   linear-gradient(135deg, rgba(31,41,55,0.8) 0%, rgba(17,24,39,0.9) 100%);

  /* Z-index layers */
  --z-base:          1;
  --z-dropdown:      100;
  --z-sticky:        200;
  --z-overlay:       300;
  --z-modal:         400;
  --z-toast:         500;
}

/* ============================================================
   RESET & BASE
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-secondary);
  background-color: var(--bg-primary);
  color: var(--gray-light);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  outline: none;
}

/* ============================================================
   TYPOGRAPHY SCALE
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  color: var(--white);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1rem, 2vw, 1.25rem); }

p {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  color: var(--gray-light);
  line-height: 1.8;
}

/* ============================================================
   CONTAINER
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container { padding: 0 40px; }
}

@media (min-width: 1280px) {
  .container { padding: 0 60px; }
}

/* ============================================================
   SECTION BASE
   ============================================================ */

section {
  position: relative;
  overflow: hidden;
}

.section-pad {
  padding: var(--section-pad);
}

.section-pad-sm {
  padding: var(--section-pad-sm);
}

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

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

/* ============================================================
   SECTION HEADER
   ============================================================ */

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-main);
  background: rgba(0, 174, 239, 0.08);
  border: 1px solid rgba(0, 174, 239, 0.2);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-primary);
  color: var(--white);
  margin-bottom: 16px;
}

.section-title span {
  color: var(--blue-main);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--gray-mid);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--gradient-blue);
  margin: 20px auto 0;
  border-radius: 2px;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: var(--transition);
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: var(--gradient-blue);
  color: var(--white);
  box-shadow: 0 4px 20px var(--glow-blue-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--glow-blue-lg);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.25);
}

.btn-outline:hover {
  border-color: var(--blue-main);
  color: var(--blue-main);
  box-shadow: 0 4px 20px var(--glow-blue);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.40);
}

.btn-lg {
  padding: 18px 44px;
  font-size: 1rem;
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.82rem;
}

/* ============================================================
   CARDS
   ============================================================ */

.card {
  background: var(--gradient-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(0,174,239,0.04), transparent);
  opacity: 0;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 174, 239, 0.25);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35), 0 0 30px var(--glow-blue);
}

.card:hover::before {
  opacity: 1;
}

/* ============================================================
   GRID UTILITIES
   ============================================================ */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

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

@media (max-width: 767px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ============================================================
   BADGE / HIGHLIGHT
   ============================================================ */

.highlight {
  color: var(--blue-main);
}

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

/* ============================================================
   SCROLLBAR
   ============================================================ */

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--blue-main);
  border-radius: 3px;
}

/* ============================================================
   SELECTION
   ============================================================ */

::selection {
  background: var(--blue-main);
  color: var(--white);
}
