/* ============================================================
   MiAutomotor.com.ar - Application Stylesheet
   Teal-based automotive color scheme
   ============================================================ */

/* ----------------------------------------------------------
   1. CSS VARIABLES
   ---------------------------------------------------------- */
:root {
  --primary: #0f766e;
  --primary-dark: #134e4a;
  --primary-light: #14b8a6;
  --primary-gradient: linear-gradient(135deg, #134e4a, #0f766e);
  --primary-gradient-hover: linear-gradient(135deg, #0f766e, #0d9488);

  --cyan: #0891b2;
  --purple: #7c3aed;
  --gold: #d97706;

  --green: #059669;
  --green-light: #d1fae5;
  --red: #dc2626;
  --red-light: #fee2e2;
  --amber: #d97706;
  --amber-light: #fef3c7;
  --gray: #64748b;
  --gray-light: #e2e8f0;

  --bg: #f0f4f8;
  --card: #ffffff;
  --heading: #1e293b;
  --text: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --input: #f8fafc;
  --input-border: #cbd5e1;
  --input-focus: #0f766e;

  --nav-bg: linear-gradient(135deg, #134e4a, #0f766e);
  --nav-text: #ffffff;
  --nav-hover: rgba(255,255,255,.15);

  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.08), 0 4px 6px rgba(0,0,0,.04);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --font: 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: .2s ease;
}

[data-theme="dark"] {
  --bg: #0f172a;
  --card: #1e293b;
  --heading: #f1f5f9;
  --text: #cbd5e1;
  --muted: #94a3b8;
  --border: #334155;
  --input: #1e293b;
  --input-border: #475569;
  --input-focus: #14b8a6;

  --nav-bg: linear-gradient(135deg, #0c2e2b, #0f4541);
  --nav-text: #f1f5f9;
  --nav-hover: rgba(255,255,255,.1);

  --green-light: #064e3b;
  --red-light: #7f1d1d;
  --amber-light: #78350f;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.2);
  --shadow: 0 1px 3px rgba(0,0,0,.25), 0 1px 2px rgba(0,0,0,.15);
  --shadow-md: 0 4px 6px rgba(0,0,0,.25), 0 2px 4px rgba(0,0,0,.15);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.3), 0 4px 6px rgba(0,0,0,.2);
}

/* ----------------------------------------------------------
   2. RESET & BASE
   ---------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* ----------------------------------------------------------
   3. LAYOUT
   ---------------------------------------------------------- */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}

.wrap--sm {
  max-width: 430px;
}

.wrap--md {
  max-width: 680px;
}

.wrap--lg {
  max-width: 960px;
}

.wrap--xl {
  max-width: 1200px;
}

.page-body {
  padding-top: 70px;
  min-height: calc(100vh - 70px);
}

/* ----------------------------------------------------------
   4. NAVIGATION (.ma-nav)
   ---------------------------------------------------------- */
.ma-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--nav-bg);
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  height: 58px;
}

.ma-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
  height: 100%;
}

.ma-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--nav-text);
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -.3px;
}

.ma-nav-brand img {
  height: 30px;
  width: auto;
}

.ma-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ma-nav-links a {
  color: var(--nav-text);
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: background var(--transition);
  white-space: nowrap;
}

.ma-nav-links a:hover,
.ma-nav-links a.active {
  background: var(--nav-hover);
  color: #fff;
}

.ma-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  padding: 8px 18px;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), color var(--transition);
  text-decoration: none;
}

.ma-nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,255,255,.25);
  color: var(--primary-dark);
}

.ma-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Hamburger toggle */
.ma-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.ma-nav-toggle span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--nav-text);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
  transform-origin: center;
}

.ma-nav-toggle.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.ma-nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.ma-nav-toggle.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Theme toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--nav-hover);
  border: none;
  border-radius: var(--radius);
  color: var(--nav-text);
  font-size: 16px;
  cursor: pointer;
  transition: background var(--transition);
}

.theme-toggle:hover {
  background: rgba(255,255,255,.25);
}

/* ----------------------------------------------------------
   5. TOPBAR
   ---------------------------------------------------------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--card);
  font-size: 13px;
  color: var(--muted);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ----------------------------------------------------------
   6. TYPOGRAPHY
   ---------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--heading);
  line-height: 1.25;
}

h1 {
  font-size: 22px;
  font-weight: 900;
}

h2 {
  font-size: 18px;
  font-weight: 900;
}

h3 {
  font-size: 16px;
  font-weight: 800;
}

h4 {
  font-size: 14px;
  font-weight: 700;
}

p {
  margin-bottom: 8px;
}

small {
  font-size: 12px;
  color: var(--muted);
}

.section-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--heading);
  padding-bottom: 10px;
  margin-bottom: 18px;
  border-bottom: 3px solid var(--primary);
  display: inline-block;
}

/* ----------------------------------------------------------
   7. BUTTONS
   ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition), filter var(--transition), background var(--transition);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: .55;
  pointer-events: none;
}

.btn--primary {
  background: var(--primary-gradient);
  color: #fff;
}

.btn--primary:hover {
  filter: brightness(1.12);
  color: #fff;
}

.btn--secondary {
  background: var(--card);
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn--secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn--success {
  background: linear-gradient(135deg, #047857, #059669);
  color: #fff;
}

.btn--success:hover {
  filter: brightness(1.12);
  color: #fff;
}

.btn--danger {
  background: var(--red);
  color: #fff;
}

.btn--danger:hover {
  background: #b91c1c;
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn--ghost:hover {
  background: var(--bg);
  border-color: var(--muted);
}

.btn--sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

.btn--lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 12px;
}

.btn-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ----------------------------------------------------------
   8. CARDS
   ---------------------------------------------------------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow);
}

.card--interactive {
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.card--interactive:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.card-header h3 {
  margin: 0;
}

/* Dashboard cards */
.dash-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.dash-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.dash-card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 20px;
  background: linear-gradient(135deg, rgba(15,118,110,.1), rgba(20,184,166,.1));
  color: var(--primary);
}

.dash-card h3 {
  font-size: 15px;
  font-weight: 800;
  margin: 0;
}

.dash-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* Stats cards */
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow);
  text-align: center;
}

.stat-number {
  font-size: 32px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.1;
}

.stat-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: 4px;
}

/* ----------------------------------------------------------
   9. FORMS
   ---------------------------------------------------------- */
label {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 4px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="date"],
input[type="search"],
input[type="url"],
select,
textarea {
  width: 100%;
  padding: 12px;
  background: var(--input);
  border: 1.5px solid var(--input-border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--input-focus);
  box-shadow: 0 0 0 3px rgba(15,118,110,.12);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
  font-weight: 500;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.form-error {
  font-size: 11px;
  color: var(--red);
  margin-top: 2px;
}

/* Checkbox / Radio custom */
input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
}

/* ----------------------------------------------------------
   10. TABLES
   ---------------------------------------------------------- */
.tbl-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.tbl th {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted);
  background: var(--bg);
  padding: 10px 12px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 2px solid var(--border);
}

.tbl td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}

.tbl tbody tr {
  transition: background var(--transition);
}

.tbl tbody tr:hover {
  background: rgba(15,118,110,.04);
}

.tbl tbody tr:last-child td {
  border-bottom: none;
}

.tbl--striped tbody tr:nth-child(even) {
  background: var(--bg);
}

/* ----------------------------------------------------------
   11. FILTERS
   ---------------------------------------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 14px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 160px;
}

.filter-group label {
  margin-bottom: 0;
}

.filter-group input,
.filter-group select {
  padding: 9px 12px;
  font-size: 13px;
}

.filter-actions {
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

/* ----------------------------------------------------------
   12. MODAL / OVERLAY
   ---------------------------------------------------------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.show {
  display: flex;
}

.modal-box {
  background: var(--card);
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  animation: fadeIn .2s ease;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  margin: 0;
  font-size: 17px;
}

.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: none;
  border-radius: var(--radius);
  font-size: 18px;
  color: var(--muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.modal-close:hover {
  background: var(--red-light);
  color: var(--red);
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid var(--border);
}

/* ----------------------------------------------------------
   13. LOADING OVERLAY (.lov)
   ---------------------------------------------------------- */
.lov {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 1100;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.lov.show {
  display: flex;
}

.spin {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255,255,255,.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

.lov-text {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

/* ----------------------------------------------------------
   14. TOAST
   ---------------------------------------------------------- */
.toast {
  display: none;
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: #1e293b;
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  z-index: 1200;
  max-width: 360px;
}

.toast.show {
  display: block;
  animation: slideIn .35s ease;
}

.toast--error {
  background: var(--red);
}

.toast--success {
  background: var(--green);
}

/* ----------------------------------------------------------
   15. PILLS / TAGS
   ---------------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.pill--green {
  background: var(--green-light);
  color: var(--green);
}

.pill--red {
  background: var(--red-light);
  color: var(--red);
}

.pill--amber {
  background: var(--amber-light);
  color: var(--amber);
}

.pill--gray {
  background: var(--gray-light);
  color: var(--gray);
}

.pill--teal {
  background: rgba(15,118,110,.1);
  color: var(--primary);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
  background: var(--bg);
  color: var(--muted);
}

.tag--primary {
  background: rgba(15,118,110,.1);
  color: var(--primary);
}

/* ----------------------------------------------------------
   16. TIMELINE (Vehicle History)
   ---------------------------------------------------------- */
.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
  border-radius: 1px;
}

.timeline-item {
  position: relative;
  padding-bottom: 20px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -24px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--card);
  box-shadow: 0 0 0 2px var(--primary);
  z-index: 1;
}

.timeline-dot--green {
  background: var(--green);
  box-shadow: 0 0 0 2px var(--green);
}

.timeline-dot--red {
  background: var(--red);
  box-shadow: 0 0 0 2px var(--red);
}

.timeline-dot--amber {
  background: var(--amber);
  box-shadow: 0 0 0 2px var(--amber);
}

.timeline-date {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 4px;
}

.timeline-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
}

.timeline-content h4 {
  margin-bottom: 4px;
}

.timeline-content p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* ----------------------------------------------------------
   17. LANDING PAGE
   ---------------------------------------------------------- */

/* Hero */
.hero {
  background: var(--primary-gradient);
  color: #fff;
  text-align: center;
  padding: 80px 18px 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(20,184,166,.2) 0%, transparent 60%);
  pointer-events: none;
}

.hero h1 {
  font-size: 36px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 14px;
  position: relative;
  letter-spacing: -.5px;
}

.hero p {
  font-size: 18px;
  color: rgba(255,255,255,.8);
  max-width: 600px;
  margin: 0 auto 28px;
  position: relative;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
}

.hero-cta .btn {
  padding: 14px 28px;
  font-size: 15px;
}

.hero-cta .btn--primary {
  background: #fff;
  color: var(--primary-dark);
}

.hero-cta .btn--primary:hover {
  background: #f0fdfa;
  color: var(--primary);
}

.hero-cta .btn--ghost {
  border-color: rgba(255,255,255,.4);
  color: #fff;
}

.hero-cta .btn--ghost:hover {
  background: rgba(255,255,255,.1);
  border-color: #fff;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 50px 0;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  border-radius: 14px;
  font-size: 26px;
  background: linear-gradient(135deg, rgba(15,118,110,.1), rgba(20,184,166,.08));
  color: var(--primary);
}

.feature-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
}

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 50px 0;
}

.pricing-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.pricing-card--featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-lg);
  position: relative;
}

.pricing-card--featured::before {
  content: 'Recomendado';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-gradient);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.pricing-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 40px;
  font-weight: 900;
  color: var(--heading);
  line-height: 1.1;
  margin-bottom: 4px;
}

.pricing-price span {
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
}

.pricing-desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

.pricing-features {
  text-align: left;
  margin-bottom: 24px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 13.5px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li::before {
  content: '\2713';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--green-light);
  color: var(--green);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

/* ----------------------------------------------------------
   18. RESPONSIVE
   ---------------------------------------------------------- */
@media (max-width: 768px) {
  .ma-nav-links {
    display: none;
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--primary-dark);
    padding: 10px;
    gap: 2px;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
  }

  .ma-nav-links.show {
    display: flex;
  }

  .ma-nav-links a {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
  }

  .ma-nav-toggle {
    display: flex;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .pricing {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero {
    padding: 60px 18px 40px;
  }

  .filters {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-group {
    min-width: 0;
  }

  .modal-box {
    max-width: 100%;
    margin: 10px;
    padding: 18px;
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  .toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
    text-align: center;
  }

  .stat-number {
    font-size: 26px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  h1 {
    font-size: 19px;
  }

  h2 {
    font-size: 16px;
  }

  .wrap {
    padding: 0 12px;
  }

  .card {
    padding: 12px;
  }

  .dash-card {
    padding: 14px;
  }

  .btn {
    padding: 9px 14px;
    font-size: 13px;
  }

  .btn--lg {
    padding: 12px 22px;
    font-size: 14px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero p {
    font-size: 14px;
  }

  .pricing-price {
    font-size: 32px;
  }

  .section-title {
    font-size: 17px;
  }

  .timeline {
    padding-left: 22px;
  }
}

/* ----------------------------------------------------------
   19. UTILITIES
   ---------------------------------------------------------- */

/* Text */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-muted { color: var(--muted); }
.text-primary { color: var(--primary); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.text-bold { font-weight: 800; }

/* Margins */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 14px; }
.mt-3 { margin-top: 22px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 14px; }
.mb-3 { margin-bottom: 22px; }
.mb-4 { margin-bottom: 32px; }

/* Gaps */
.gap-1 { gap: 8px; }
.gap-2 { gap: 14px; }
.gap-3 { gap: 22px; }

/* Display */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

/* Flex */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }

/* Grid */
.grid--2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.grid--3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.grid--4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

/* Width */
.w-full { width: 100%; }

/* Border */
.border-t { border-top: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border); }

/* Padding */
.p-0 { padding: 0; }
.p-1 { padding: 8px; }
.p-2 { padding: 14px; }
.p-3 { padding: 22px; }

/* Overflow */
.overflow-auto { overflow: auto; }
.overflow-hidden { overflow: hidden; }

/* Cursor */
.pointer { cursor: pointer; }

/* ----------------------------------------------------------
   20. ANIMATIONS
   ---------------------------------------------------------- */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes slideIn {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .6; }
}

.animate-fade { animation: fadeIn .3s ease; }
.animate-pulse { animation: pulse 1.5s ease-in-out infinite; }

/* ----------------------------------------------------------
   21. PRINT
   ---------------------------------------------------------- */
@media print {
  .ma-nav,
  .topbar,
  .toast,
  .lov,
  .modal-overlay,
  .ma-nav-toggle,
  .theme-toggle,
  .btn-row {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }

  .card {
    border: 1px solid #ccc;
    box-shadow: none;
    break-inside: avoid;
  }

  .page-body {
    padding-top: 0;
  }
}
