﻿ :root {
    --bg: #0a0a0f;
    --surface: #12121a;
    --surface2: #1a1a26;
    --border: #2a2a3e;
    --accent: #7c3aed;
    --accent2: #06b6d4;
    --accent3: #f59e0b;
    --text: #e8e8f0;
    --text-dim: #6b6b8a;
    --success: #10b981;
    --danger: #ef4444;
    --radius: 12px;
    --mono: 'Space Mono', monospace;
    --sans:  sans-serif;
  }

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

  body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    min-height: 100vh;
    overflow-x: hidden;
  }

  /* Background grid */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
      linear-gradient(rgba(124,58,237,0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(124,58,237,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
  }

  /* Glow orbs */
  .orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.15;
  }
  .orb1 { width: 400px; height: 400px; background: var(--accent); top: -100px; left: -100px; }
  .orb2 { width: 300px; height: 300px; background: var(--accent2); bottom: 0; right: -50px; }

  /* Header */
  header {
    position: relative;
    z-index: 10;
    padding: 24px 40px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(10px);
    background: rgba(10,10,15,0.8);
    position: sticky;
    top: 0;
  }

  .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--sans);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
  }

  .logo-icon {
    width: 36px; height: 36px;
   /*  background: linear-gradient(135deg, var(--accent), var(--accent2));
    border-radius: 8px;
   display: flex; 
    align-items: center; 
    justify-content: center;*/
    font-size: 18px;
  }

  .logo span { color: var(--accent2); }

  .header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
  }

  .badge {
    font-family: var(--mono);
    font-size: 0.65rem;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid var(--border);
    color: var(--text-dim);
    letter-spacing: 0.05em;
  }

  /* Main layout */
  .container {
    position: relative;
    z-index: 1;
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 24px;
  }

  /* Hero */
  .hero {
    text-align: center;
    margin-bottom: 48px;
  }

  .hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 12px;
  }

  .hero h1 .highlight {
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .hero p {
    color: var(--text-dim);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
  }

  /* Tabs */
  .tabs {
    display: flex;
    gap: 4px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 4px;
    margin-bottom: 32px;
    overflow-x: auto;
  }

  .tab-btn {
    flex: 1;
    min-width: 120px;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-dim);
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  .tab-btn.active {
    background: var(--surface2);
    color: var(--text);
    box-shadow: 0 0 0 1px var(--border);
  }

  .tab-btn:hover:not(.active) { color: var(--text); }

  /* Panel */
  .panel { display: none; }
  .panel.active { display: block; }

  /* ── GERADOR PRINCIPAL ── */
  .generator-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    align-items: start;
  }

  @media (max-width: 900px) {
    .generator-grid { grid-template-columns: 1fr; }
  }

  .card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
  }

  .card-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .card-title::before {
    content: '';
    width: 3px; height: 14px;
    background: var(--accent);
    border-radius: 2px;
  }

  /* Color picker section */
  .color-input-wrapper {
    position: relative;
    margin-bottom: 20px;
  }

  .color-preview-big {
    width: 100%;
    height: 100px;
    border-radius: 10px;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 12px;
  }

  .color-preview-big:hover { transform: scale(1.02); }

  #colorPicker {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100px;
    opacity: 0;
    cursor: pointer;
  }

  .hex-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
  }

  .hex-input {
    flex: 1;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text);
    font-family: var(--mono);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
    text-transform: uppercase;
  }

  .hex-input:focus { border-color: var(--accent); }

  .btn {
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
  }

  .btn-primary {
    background: linear-gradient(135deg, var(--accent), #9333ea);
    color: white;
  }

  .btn-primary:hover { opacity: 0.85; transform: translateY(-1px); }

  .btn-secondary {
    background: var(--surface2);
    color: var(--text);
    border: 1px solid var(--border);
  }

  .btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

  .btn-sm { padding: 6px 10px; font-size: 0.75rem; }

  .btn-ghost {
    background: transparent;
    color: var(--text-dim);
    border: 1px solid transparent;
  }

  .btn-ghost:hover { border-color: var(--border); color: var(--text); }

  /* Harmony selector */
  .harmony-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 20px;
  }

  .harmony-btn {
    padding: 10px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-dim);
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
  }

  .harmony-btn.active, .harmony-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(124,58,237,0.1);
  }

  /* Palette display */
  .palette-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
  }

  .palette-actions {
    display: flex;
    gap: 8px;
  }

  .palette-swatches {
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    height: 140px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
  }

  .swatch {
    flex: 1;
    position: relative;
    cursor: pointer;
    transition: flex 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 10px;
    overflow: hidden;
  }

  .swatch:hover { flex: 1.8; }

  .swatch-label {
    font-family: var(--mono);
    font-size: 0.6rem;
    opacity: 0;
    transition: opacity 0.2s;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
    text-align: center;
    padding: 4px 6px;
    border-radius: 4px;
    background: rgba(0,0,0,0.4);
    white-space: nowrap;
  }

  .swatch:hover .swatch-label { opacity: 1; }

  /* Color info grid */
  .color-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 20px;
  }

  .color-info-card {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
  }

  .color-info-card:hover { border-color: var(--accent2); }

  .color-info-card .label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-bottom: 4px;
  }

  .color-info-card .value {
    font-family: var(--mono);
    font-size: 0.82rem;
    color: var(--text);
    word-break: break-all;
  }

  .copy-hint {
    position: absolute;
    top: 6px; right: 8px;
    font-size: 0.6rem;
    color: var(--text-dim);
    opacity: 0;
    transition: opacity 0.2s;
  }

  .color-info-card:hover .copy-hint { opacity: 1; }

  /* Shades section */
  .shades-row {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
  }

  .shade-swatch {
    flex: 1;
    height: 50px;
    cursor: pointer;
    border-radius: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
  }

  .shade-swatch:first-child { border-radius: 8px 0 0 8px; }
  .shade-swatch:last-child { border-radius: 0 8px 8px 0; }
  .shade-swatch:hover { transform: scaleY(1.1); z-index: 2; }

  .shade-label {
    font-family: var(--mono);
    font-size: 0.55rem;
    opacity: 0;
    transition: opacity 0.2s;
    mix-blend-mode: difference;
    color: white;
  }

  .shade-swatch:hover .shade-label { opacity: 1; }

  /* CSS Output */
  .code-block {
    background: #0d0d16;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    font-family: var(--mono);
    font-size: 0.78rem;
    line-height: 1.8;
    overflow-x: auto;
    position: relative;
    margin-bottom: 16px;
    max-height: 300px;
    overflow-y: auto;
  }

  .code-block::-webkit-scrollbar { width: 4px; height: 4px; }
  .code-block::-webkit-scrollbar-track { background: transparent; }
  .code-block::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

  .code-comment { color: #4a4a6a; }
  .code-property { color: var(--accent2); }
  .code-value { color: #f59e0b; }
  .code-selector { color: var(--accent); }
  .code-bracket { color: var(--text-dim); }

  .copy-code-btn {
    position: absolute;
    top: 12px; right: 12px;
  }

  /* ── CONTRASTE ── */
  .contrast-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
  }

  @media (max-width: 700px) { .contrast-grid { grid-template-columns: 1fr; } }

  .contrast-preview {
    border-radius: 12px;
    padding: 32px;
    border: 1px solid var(--border);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .contrast-preview h2 { font-size: 1.5rem; margin-bottom: 8px; }
  .contrast-preview p { font-size: 0.9rem; opacity: 0.9; }

  .wcag-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
  }

  .wcag-badge {
    padding: 8px 16px;
    border-radius: 8px;
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid;
  }

  .wcag-pass { background: rgba(16,185,129,0.1); border-color: var(--success); color: var(--success); }
  .wcag-fail { background: rgba(239,68,68,0.1); border-color: var(--danger); color: var(--danger); }

  .ratio-display {
    text-align: center;
    margin-bottom: 24px;
  }

  .ratio-number {
    font-size: 4rem;
    font-weight: 800;
    font-family: var(--mono);
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .ratio-label { color: var(--text-dim); font-size: 0.85rem; }

  /* ── GRADIENTES ── */
  .gradient-preview {
    width: 100%;
    height: 160px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    transition: all 0.4s;
  }

  .gradient-controls {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
  }

  @media (max-width: 600px) { .gradient-controls { grid-template-columns: 1fr 1fr; } }

  .control-group label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 8px;
  }

  .control-group select, .control-group input[type=range], .control-group input[type=number] {
    width: 100%;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: var(--sans);
    padding: 8px 12px;
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
  }

  .control-group select:focus { border-color: var(--accent); }

  input[type=range] {
    -webkit-appearance: none;
    height: 4px !important;
    background: var(--surface2) !important;
    border-radius: 2px;
    padding: 0 !important;
    cursor: pointer;
  }

  input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    transition: transform 0.2s;
  }

  input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.3); }

  /* Color stops */
  .stops-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
  }

  .stop-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 10px;
  }

  .stop-color {
    width: 20px; height: 20px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    padding: 0;
  }

  .stop-hex {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--text);
    background: transparent;
    border: none;
    outline: none;
    width: 60px;
    text-transform: uppercase;
  }

  .stop-remove {
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0;
    transition: color 0.2s;
  }

  .stop-remove:hover { color: var(--danger); }

  /* ── PALETAS SALVAS ── */
  .saved-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
  }

  .saved-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.2s;
    cursor: pointer;
  }

  .saved-card:hover { border-color: var(--accent); transform: translateY(-2px); }

  .saved-swatches {
    display: flex;
    height: 80px;
  }

  .saved-swatch { flex: 1; }

  .saved-card-info {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .saved-card-name {
    font-weight: 700;
    font-size: 0.9rem;
  }

  .saved-card-date {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--text-dim);
  }

  /* Toast */
  #toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--surface2);
    border: 1px solid var(--success);
    border-radius: 10px;
    padding: 14px 20px;
    color: var(--success);
    font-family: var(--mono);
    font-size: 0.82rem;
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  #toast.show { transform: translateY(0); opacity: 1; }

  /* Random + AI label */
  .section-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--text-dim);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }

  .section-divider::before, .section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
  }

  /* Trending colors */
  .trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 8px;
    margin-bottom: 20px;
  }

  .trending-swatch {
    height: 50px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
    border: 2px solid transparent;
  }

  .trending-swatch:hover { transform: scale(1.1); border-color: white; }

  /* Color blindness simulator */
  .cb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 20px;
  }

  .cb-card {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
  }

  .cb-swatches {
    display: flex;
    height: 60px;
  }

  .cb-label {
    background: var(--surface2);
    padding: 8px 12px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  /* Tag */
  .tag {
    font-family: var(--mono);
    font-size: 0.6rem;
    padding: 2px 8px;
    border-radius: 20px;
    background: rgba(124,58,237,0.15);
    color: var(--accent);
    border: 1px solid rgba(124,58,237,0.3);
  }

  /* Export modal */
  .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }

  .modal-overlay.open { display: flex; }

  .modal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
  }

  .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
  }

  .modal-title { font-size: 1.2rem; font-weight: 800; }

  .close-btn {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.2s;
  }

  .close-btn:hover { border-color: var(--danger); color: var(--danger); }

  .export-formats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
  }

  .export-btn {
    padding: 14px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
  }

  .export-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(124,58,237,0.05); }

  .export-btn .icon { font-size: 1.5rem; display: block; margin-bottom: 6px; }

  /* Scrollbar */
  ::-webkit-scrollbar { width: 6px; height: 6px; }
  ::-webkit-scrollbar-track { background: var(--bg); }
  ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
  ::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

  /* Animations */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .panel.active { animation: fadeIn 0.3s ease; }

  .palette-swatches { animation: fadeIn 0.4s ease; }

  /* Range value display */
  .range-row {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .range-val {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--accent2);
    min-width: 32px;
    text-align: right;
  }

  /* Color picker mini */
  input[type=color] {
    -webkit-appearance: none;
    width: 30px; height: 30px;
    border: none;
    border-radius: 6px;
    padding: 0;
    cursor: pointer;
    background: none;
  }

  input[type=color]::-webkit-color-swatch-wrapper { padding: 0; border-radius: 6px; }
  input[type=color]::-webkit-color-swatch { border: none; border-radius: 6px; }

  /* Tailwind output */
  .tw-grid {
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    gap: 4px;
    margin-bottom: 16px;
  }

  .tw-swatch {
    height: 36px;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 2px;
  }

  .tw-swatch:hover { transform: scaleY(1.1); }
  .tw-swatch span { font-size: 0.45rem; font-family: var(--mono); opacity: 0; transition: opacity 0.2s; mix-blend-mode: difference; color: white; }
  .tw-swatch:hover span { opacity: 1; }

  /* Responsive */
  @media (max-width: 600px) {
    header { padding: 16px 20px; }
    .container { padding: 24px 16px; }
    .hero h1 { font-size: 1.8rem; }
    .color-info-grid { grid-template-columns: 1fr; }
    .gradient-controls { grid-template-columns: 1fr; }
    .export-formats { grid-template-columns: 1fr; }
    .tw-grid { grid-template-columns: repeat(6, 1fr); }
  }
  
   /* Sidebar */
    .sidebar {
      position: fixed;
      top: 0; right: -280px;
      width: 260px;
      height: 100vh;
      background: var(--primary);
      color: var(--light);
      padding: 60px 20px 20px;
      z-index: 200;
      transition: right 0.3s ease;
      overflow-y: auto;
      box-shadow: -4px 0 20px rgba(0,0,0,0.4);
      color:#fff;
    }

    .sidebar.active { right: 0; }

    .sidebar h3 {
      font-size: 1.1rem;
      font-weight: 700;
      margin-bottom: 16px;
      padding-bottom: 10px;
      border-bottom: 1px solid var(--border);
      color: var(--white);
    }

    .sidebar p { margin-bottom: 8px; }

    .sidebar a {
      color: var(--light);
      text-decoration: none;
      font-size: 0.9rem;
      transition: color 0.2s;
      display: block;
      padding: 4px 0;
    }

    .sidebar a:hover { color: var(--accent); }

		
	  header {
     /* background: var(--primary-dark);*/
      background-color:#0F2F55;
      padding: 0 clamp(16px, 4vw, 48px);
      position: sticky;
      top: 0;
      z-index: 100;
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 64px;
      box-shadow: 0 2px 16px rgba(0,0,0,0.25);
    }
	
  /* ── FOOTER ── */
    footer {
    /*  background: var(--primary-dark);*/
      background-color:#0F2F55;
      color: rgba(255,255,255,0.7);
      padding: 40px clamp(16px, 4vw, 48px);
      margin-top: 80px;
    }

    .footer-grid {
      max-width: 1100px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 2fr 1fr 1fr;
      gap: 40px;
    }

    @media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }

    .footer-brand .logo { display: inline-block; margin-bottom: 12px; }
    .footer-brand p { font-size: 0.85rem; line-height: 1.7; max-width: 280px; }

    .footer-col h4 { color: #fff; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.5px; margin-bottom: 14px; }
    .footer-col a { display: block; color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.83rem; margin-bottom: 8px; transition: color .2s; }
    .footer-col a:hover { color: var(--accent); }

    .footer-bottom {
      max-width: 1100px;
      margin: 32px auto 0;
      padding-top: 20px;
      border-top: 1px solid rgba(255,255,255,0.1);
      font-size: 0.8rem;
      text-align: center;
    }
    
    
    
    
    /*************menu lateral*********************/


		   .image-button {
            border: none;
            background: none;
            cursor: pointer;
        }
        .image-button img {
            width: 50px;
            transition: transform 0.2s ease;
        }
        .image-button:active img {
            transform: scale(0.95);
        }
		
		 /* Sidebar */
    .sidebar {
      position: fixed;
      top: 0; right: -280px;
      width: 260px;
      height: 100vh;
      background: var(--primary);
      color: var(--light);
      padding: 60px 20px 20px;
      z-index: 200;
      transition: right 0.3s ease;
      overflow-y: auto;
      box-shadow: -4px 0 20px rgba(0,0,0,0.4);
      color:#fff;
    }

    .sidebar.active { right: 0; }

    .sidebar h3 {
      font-size: 1.1rem;
      font-weight: 700;
      margin-bottom: 16px;
      padding-bottom: 10px;
      border-bottom: 1px solid var(--border);
      color: var(--white);
    }

    .sidebar p { margin-bottom: 8px; }

    .sidebar a {
      color: var(--light);
      text-decoration: none;
      font-size: 0.9rem;
      transition: color 0.2s;
      display: block;
      padding: 4px 0;
    }

    .sidebar a:hover { color: var(--accent); }

		
		
		
		
/*************menu lateral*********************/


  
  