/* CSS Reset / Normalize */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Colors */
  --accent: #ff6b3d;
  --dark: #0f1720;
  --text: #1a1f2e;
  --text-muted: #6b7280;
  --muted: #6b7280;
  --card: #ffffff;
  --glass: rgba(255, 255, 255, 0.06);
  --border: rgba(15, 23, 32, 0.06);
  --border-light: rgba(15, 23, 32, 0.03);
  
  /* Typography */
  --font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-size-base: 16px;
  --font-size-sm: 14px;
  --font-size-xs: 13px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-2xl: 28px;
  --font-size-3xl: 32px;
  
  --line-height-tight: 1.05;
  --line-height-base: 1.5;
  --line-height-relaxed: 1.7;
  
  --letter-spacing-tight: -0.02em;
  --letter-spacing-normal: 0;
  
  /* Spacing Scale */
  --space-xs: 0.5rem;    /* 8px */
  --space-sm: 0.75rem;   /* 12px */
  --space-md: 1rem;      /* 16px */
  --space-lg: 1.5rem;    /* 24px */
  --space-xl: 2rem;      /* 32px */
  --space-2xl: 3rem;     /* 48px */
  --space-3xl: 4rem;     /* 64px */
  --space-4xl: 6rem;     /* 96px */
  
  /* Layout */
  --container-max-width: 1200px;
  --container-padding-mobile: 1.5rem;
  --container-padding-desktop: 2rem;
  --section-spacing-mobile: 3rem;
  --section-spacing-desktop: 5rem;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 14px;
  --radius-full: 999px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(15, 23, 32, 0.04);
  --shadow-md: 0 6px 24px rgba(15, 23, 32, 0.04);
  --shadow-lg: 0 6px 18px rgba(255, 107, 61, 0.18);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
}

html {
  scroll-behavior: smooth;
  font-size: var(--font-size-base);
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f7f9fc 0%, #eef2f7 100%);
  color: var(--text);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
  color: var(--text);
}

h1 {
  font-size: var(--font-size-2xl);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-md);
}

h2 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-md);
  margin-top: 0;
}

h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-sm);
  margin-top: var(--space-lg);
}

p {
  margin-bottom: var(--space-md);
  line-height: var(--line-height-relaxed);
  max-width: 65ch; /* Control measure for readability */
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: var(--font-size-lg);
  color: var(--text-muted);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-lg);
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Lists */
ul, ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

li {
  margin-bottom: var(--space-sm);
  line-height: var(--line-height-relaxed);
}

ul ul, ol ul, ul ol, ol ol {
  margin-top: var(--space-sm);
  margin-bottom: var(--space-sm);
}

strong {
  font-weight: 700;
  color: var(--text);
}

/* Container */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: var(--container-padding-mobile);
}

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.logo {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.logo-container {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

@media (max-width: 540px) {
  .logo-container {
    width: 56px;
    height: 56px;
    padding: var(--space-sm);
  }
  
  .logo svg {
    width: 36px;
    height: 36px;
  }
}

.logo svg {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.brand {
  font-weight: 700;
  font-size: var(--font-size-lg);
  line-height: var(--line-height-tight);
}

.note {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  line-height: var(--line-height-base);
}

/* Navigation */
nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

nav a {
  color: var(--muted);
  font-size: var(--font-size-sm);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

nav a:hover {
  color: var(--text);
  background-color: rgba(15, 23, 32, 0.04);
}

nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

nav a.active {
  color: var(--accent);
  font-weight: 600;
}

nav .separator {
  color: var(--muted);
  opacity: 0.3;
}

/* Language Switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-family);
}

.lang-switcher:hover {
  background-color: rgba(15, 23, 32, 0.04);
  border-color: var(--accent);
}

.lang-switcher:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Main Content */
main {
  margin-bottom: var(--space-3xl);
}

/* Sections */
section {
  margin-bottom: var(--section-spacing-mobile);
  scroll-margin-top: 2rem;
}

section:last-of-type {
  margin-bottom: 0;
}

/* Hero Section */
.hero {
  background: linear-gradient(90deg, rgba(255, 107, 61, 0.08), rgba(0, 0, 0, 0.02));
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: start;
  margin-bottom: var(--section-spacing-mobile);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Tag/Badge Component */
.tag,
.kicker {
  display: inline-block;
  background: linear-gradient(135deg, rgba(255, 107, 61, 0.12) 0%, rgba(255, 107, 61, 0.08) 100%);
  color: var(--text);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: var(--font-size-xs);
  width: fit-content;
  border: 1px solid rgba(255, 107, 61, 0.15);
}

.cta-row {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
  align-items: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--accent);
  color: #fff;
  border: none;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: var(--font-size-base);
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
  text-decoration: none;
  width: fit-content;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 107, 61, 0.25);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn.secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  box-shadow: none;
}

.btn.secondary:hover {
  background-color: rgba(15, 23, 32, 0.04);
  transform: none;
  box-shadow: none;
}

.whatsapp-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Cards */
.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.card hr {
  margin: var(--space-lg) 0;
  border: none;
  border-top: 1px solid var(--border);
}

.price {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text);
}

.price-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.price-details {
  flex: 1;
  min-width: 200px;
}

.time-info {
  text-align: right;
}

.time-value {
  font-weight: 700;
}

/* Two-column layout for long text sections */
.text-two-column {
  column-count: 1;
  column-gap: var(--space-2xl);
  column-rule: 1px solid var(--border);
}

/* Advantages List */
.advantages {
  list-style: none;
  padding-left: 0;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.advantages > li {
  margin-bottom: var(--space-xl);
  padding-left: 0;
  break-inside: avoid;
}

.advantages > li > strong {
  display: block;
  margin-bottom: var(--space-sm);
  font-size: var(--font-size-base);
}

.advantages > li > ul {
  margin-top: var(--space-sm);
  padding-left: var(--space-lg);
}

/* Grid Layout */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-md);
}

/* Contact Section */
.contact-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

/* Footer */
footer {
  margin-top: var(--space-4xl);
  padding: var(--space-xl) 0;
  text-align: center;
  color: var(--muted);
  font-size: var(--font-size-sm);
  border-top: 1px solid var(--border);
}

/* Mobile Contact Button */
.mobile-contact {
  display: none;
}

/* Responsive Design */
@media (min-width: 640px) {
  :root {
    --font-size-2xl: 32px;
    --font-size-3xl: 40px;
  }
  
  h1 {
    font-size: var(--font-size-3xl);
  }
  
  .container {
    padding: var(--container-padding-desktop);
  }
  
  section {
    margin-bottom: var(--section-spacing-desktop);
  }
  
  .hero {
    margin-bottom: var(--section-spacing-desktop);
  }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1fr 420px;
    padding: var(--space-2xl);
  }
  
  nav {
    display: flex;
  }
  
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Two-column text layout for long content on desktop */
  .text-two-column {
    column-count: 2;
  }
  
  /* Prevent breaking inside important elements */
  .text-two-column h3,
  .text-two-column .advantages > li {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

@media (max-width: 899px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }
  
  nav {
    width: 100%;
    flex-wrap: wrap;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
  
  .price-info {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .time-info {
    text-align: left;
  }
}

@media (max-width: 540px) {
  .hero {
    padding: var(--space-lg);
  }
  
  .card {
    padding: var(--space-lg);
  }
  
  .mobile-contact {
    display: flex;
    position: fixed;
    right: var(--space-md);
    bottom: var(--space-md);
    z-index: 999;
  }
  
  .mobile-contact .btn {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  }
  
  h1 {
    font-size: var(--font-size-2xl);
  }
  
  .cta-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Print Styles */
@media print {
  .mobile-contact,
  .lang-switcher,
  nav {
    display: none;
  }
  
  .hero {
    background: transparent;
    box-shadow: none;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
