* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --gold-dark: #8B6914;
  --navy: #0D1B2A;
  --navy-mid: #1A2E44;
  --navy-light: #243B55;
  --cream: #F9F5EC;
  --cream-dark: #EDE8D8;
  --text-main: #1A1A1A;
  --text-muted: #5A5A5A;
  --text-light: #8A8A8A;
  --border: rgba(201,168,76,0.25);
  --shadow: 0 4px 30px rgba(13,27,42,0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* HEADER */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(13,27,42,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,0.3);
  padding: 0 1.5rem;
}
nav {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.logo-ico {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.logo-n { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: #fff; }
.logo-t { font-size: 0.6rem; color: var(--gold-light); letter-spacing: 2px; text-transform: uppercase; }
.nav-links { display: flex; gap: 1.8rem; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  transition: var(--transition);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--gold-light); border-bottom-color: var(--gold); }
.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
  color: var(--navy) !important;
  padding: 7px 18px !important;
  border-radius: 8px;
  font-weight: 600 !important;
  border-bottom: none !important;
}
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.burger span { display: block; width: 24px; height: 2px; background: var(--gold); border-radius: 2px; }
.mobile-menu {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: var(--navy);
  padding: 1.5rem;
  z-index: 999;
  flex-direction: column;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 1rem; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }

/* HERO */
.hero {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 50%, #1A2E44 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 110px 1.5rem 70px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(201,168,76,0.08) 0%, transparent 50%),
                    radial-gradient(circle at 80% 80%, rgba(201,168,76,0.05) 0%, transparent 50%);
  pointer-events: none;
}
.flag-bar { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #1A4CAA 33%, #fff 33% 66%, #1A4CAA 66%); opacity: 0.6; }
.h-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.35);
  color: var(--gold-light);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease;
}
.h-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.4rem;
  animation: fadeInUp 0.9s ease 0.1s both;
  max-width: 800px;
}
.h-title em { font-style: normal; background: linear-gradient(135deg, var(--gold), var(--gold-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.h-sub {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.6);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 2.8rem;
  animation: fadeInUp 0.9s ease 0.2s both;
}
.h-btns { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; animation: fadeInUp 0.9s ease 0.3s both; margin-bottom: 3.5rem; }
.btn-p {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  padding: 13px 30px;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(201,168,76,0.4);
}
.btn-p:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(201,168,76,0.5); }
.btn-s {
  background: transparent;
  color: rgba(255,255,255,0.82);
  padding: 13px 30px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-s:hover { border-color: var(--gold); color: var(--gold-light); background: rgba(201,168,76,0.07); }
.h-stats { display: flex; gap: 2.8rem; flex-wrap: wrap; justify-content: center; animation: fadeInUp 0.9s ease 0.4s both; }
.stat-num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--gold-light); display: block; }
.stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.45); letter-spacing: 1px; text-transform: uppercase; }

/* AREAS */
.areas-bg { background: var(--navy); padding: 75px 1.5rem; }
.areas-inner { max-width: 1400px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-tag { display: inline-block; font-size: 0.73rem; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 0.9rem; color: var(--gold-light); }
.section-title { font-family: var(--font-display); font-size: clamp(1.7rem, 3.8vw, 2.6rem); font-weight: 700; line-height: 1.15; margin-bottom: 0.9rem; color: #fff; }
.section-subtitle { font-size: 0.96rem; max-width: 530px; margin: 0 auto; line-height: 1.7; color: rgba(255,255,255,0.52); }
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1.1rem;
}
.area-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.area-card:hover { border-color: rgba(201,168,76,0.6); transform: translateY(-4px); background: rgba(255,255,255,0.07); }
.area-card.active { border-color: var(--gold); background: rgba(201,168,76,0.12); }
.area-icon { font-size: 1.9rem; margin-bottom: 0.65rem; display: block; }
.area-name { font-size: 0.87rem; font-weight: 600; color: rgba(255,255,255,0.85); margin-bottom: 0.25rem; }
.area-desc { font-size: 0.72rem; color: rgba(255,255,255,0.42); line-height: 1.5; }

/* CONSULTORIO */
.consultorio { background: var(--cream); padding: 75px 1.5rem; }
.consultorio-wrap { max-width: 1200px; margin: 0 auto; }
.consultorio-layout { display: grid; grid-template-columns: 1fr 390px; gap: 1.8rem; align-items: start; }

/* CHAT */
.chat-container {
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 650px;
}
.chat-header {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  padding: 1.2rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border-bottom: 1px solid rgba(201,168,76,0.22);
}
.chat-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  border: 2px solid rgba(201,168,76,0.45);
  position: relative;
}
.status-dot { position: absolute; bottom: 2px; right: 2px; width: 11px; height: 11px; background: #22c55e; border-radius: 50%; border: 2px solid var(--navy); }
.chat-info .name { font-weight: 600; color: #fff; font-size: 0.93rem; }
.chat-info .status { font-size: 0.72rem; color: var(--gold-light); }
.chat-tools { display: flex; gap: 0.45rem; margin-left: auto; }
.tool-btn {
  width: 34px; height: 34px;
  border-radius: 7px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.11);
  color: rgba(255,255,255,0.68);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.tool-btn:hover { background: rgba(255,255,255,0.14); color: #fff; }
.tool-btn.active { background: rgba(201,168,76,0.22); border-color: var(--gold); color: var(--gold-light); }
.quick-topics {
  padding: 0.9rem 1.4rem;
  border-bottom: 1px solid rgba(201,168,76,0.08);
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  background: #fafaf8;
}
.quick-tag {
  background: var(--cream-dark);
  border: 1px solid var(--border);
  color: var(--navy-light);
  padding: 4px 11px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.quick-tag:hover { background: var(--navy); color: var(--gold-light); border-color: var(--gold); }
.messages-area {
  flex: 1;
  padding: 1.4rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  background: #fafaf8;
  min-height: 340px;
  max-height: 440px;
}
.message-row { display: flex; gap: 9px; align-items: flex-end; }
.message-row.user { flex-direction: row-reverse; }
.msg-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.msg-avatar.bot { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); border: 1px solid rgba(201,168,76,0.35); }
.msg-avatar.user { background: var(--navy-light); }
.message-bubble {
  max-width: 78%;
  padding: 0.85rem 1rem;
  border-radius: 17px;
  font-size: 0.88rem;
  line-height: 1.65;
}
.message-bubble.bot { background: #fff; border: 1px solid var(--border); border-radius: 17px 17px 17px 4px; color: var(--text-main); }
.message-bubble.user { background: linear-gradient(135deg, var(--navy), var(--navy-mid)); color: #fff; border-radius: 17px 17px 4px 17px; }
.loading-bubble { min-width: 75px; }
.typing-dots { display: flex; gap: 5px; padding: 4px 0; }
.typing-dots span { width: 7px; height: 7px; background: var(--gold); border-radius: 50%; animation: typingDot 1.2s infinite; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
.message-meta { font-size: 0.66rem; margin-top: 3px; display: flex; align-items: center; gap: 7px; }
.message-meta.bot { color: var(--text-light); }
.message-meta.user { color: rgba(255,255,255,0.45); flex-direction: row-reverse; }
.speak-btn { background: none; border: none; cursor: pointer; font-size: 0.76rem; padding: 2px 3px; border-radius: 3px; color: var(--gold-dark); }
.speak-btn:hover { background: rgba(201,168,76,0.14); }
.msg-content strong { color: var(--navy); font-weight: 600; }
.msg-content em { color: var(--gold-dark); font-style: italic; }
.msg-content ul { margin: 0.45rem 0 0.45rem 1.1rem; }
.legal-ref { display: inline-block; background: rgba(201,168,76,0.11); border: 1px solid rgba(201,168,76,0.28); color: var(--gold-dark); font-size: 0.68rem; padding: 2px 7px; border-radius: 100px; margin: 0 2px; font-weight: 600; }
.highlight { background: rgba(201,168,76,0.14); padding: 1px 5px; border-radius: 3px; font-weight: 600; color: var(--gold-dark); }

/* INPUT AREA */
.input-area { padding: 1.1rem 1.4rem; background: #fff; border-top: 1px solid rgba(201,168,76,0.12); }
.area-chips { display: flex; gap: 0.45rem; margin-bottom: 0.65rem; overflow-x: auto; padding-bottom: 3px; }
.area-chip {
  background: var(--cream);
  border: 1px solid var(--border);
  color: var(--navy-light);
  padding: 3px 11px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  flex-shrink: 0;
}
.area-chip:hover, .area-chip.selected { background: var(--navy); color: var(--gold-light); border-color: var(--gold); }
.input-row { display: flex; gap: 0.65rem; align-items: flex-end; }
.input-field { flex: 1; position: relative; }
.input-field textarea {
  width: 100%;
  padding: 13px 46px 13px 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-main);
  background: var(--cream);
  resize: none;
  max-height: 110px;
  transition: var(--transition);
  outline: none;
  line-height: 1.5;
}
.input-field textarea:focus { border-color: var(--gold); background: #fff; box-shadow: 0 0 0 3px rgba(201,168,76,0.11); }
.mic-btn {
  position: absolute;
  right: 11px;
  bottom: 11px;
  width: 26px; height: 26px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text-light);
  transition: var(--transition);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mic-btn:hover { color: var(--gold-dark); background: rgba(201,168,76,0.09); }
.mic-btn.recording { color: #ef4444; animation: pulse 1s infinite; }
.send-btn {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border: none;
  border-radius: var(--radius);
  color: var(--navy);
  font-size: 1.05rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(201,168,76,0.32);
}
.send-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,168,76,0.48); }
.disclaimer { font-size: 0.67rem; color: var(--text-light); text-align: center; margin-top: 0.65rem; line-height: 1.5; }

/* SIDEBAR */
.sidebar { display: flex; flex-direction: column; gap: 1.1rem; }

/* AVATAR LSNIC */
.avatar-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(13,27,42,0.055);
}
.avatar-stage {
  width: 200px;
  height: 260px;
  margin: 0 auto 0.8rem;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(170deg, #00C9D4 0%, #00A8B5 60%, #007A85 100%);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
#avatarSvg { width: 100%; height: 100%; display: block; }
.avatar-status-text { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.6rem; min-height: 2.2rem; line-height: 1.45; }
.sign-simplified {
  font-size: 0.75rem;
  color: var(--navy);
  font-weight: 500;
  background: var(--cream-dark);
  padding: 7px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  min-height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 0.65rem;
  line-height: 1.5;
}
.sign-badge {
  background: var(--navy);
  color: var(--gold-light);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 0.65rem;
  display: inline-block;
}
.waveform { display: flex; align-items: center; gap: 3px; height: 26px; justify-content: center; margin: 0.4rem 0; }
.wave-bar { width: 3px; background: var(--gold); border-radius: 2px; animation: waveAnim 1.2s infinite; opacity: 0.55; }
.wave-bar:nth-child(1) { animation-delay: 0s; height: 7px; }
.wave-bar:nth-child(2) { animation-delay: 0.1s; height: 14px; }
.wave-bar:nth-child(3) { animation-delay: 0.2s; height: 22px; }
.wave-bar:nth-child(4) { animation-delay: 0.3s; height: 17px; }
.wave-bar:nth-child(5) { animation-delay: 0.4s; height: 11px; }
.wave-bar:nth-child(6) { animation-delay: 0.5s; height: 20px; }
.wave-bar:nth-child(7) { animation-delay: 0.6s; height: 9px; }
.wave-bar.off { animation-play-state: paused; }
.sign-controls { display: flex; gap: 0.45rem; justify-content: center; flex-wrap: wrap; }
.sign-btn {
  background: var(--cream);
  border: 1px solid var(--border);
  color: var(--navy);
  padding: 5px 11px;
  border-radius: 7px;
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}
.sign-btn:hover, .sign-btn.active { background: var(--navy); color: var(--gold-light); border-color: var(--gold); }
.sign-panel { margin-top: 0.8rem; display: none; }
.sign-panel-title { font-size: 0.72rem; font-weight: 600; color: var(--navy); margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 1px; }
.signs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  max-height: 200px;
  overflow-y: auto;
}
.sign-item {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 6px;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
}
.sign-item:hover { background: var(--navy); border-color: var(--gold); }
.sign-item:hover .sign-label { color: var(--gold-light); }
.sign-icon { font-size: 1.1rem; display: block; }
.sign-label { font-size: 0.6rem; color: var(--navy); font-weight: 500; display: block; margin-top: 2px; line-height: 1.2; }

/* AUDIO CARD */
.audio-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
}
.audio-status {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  background: var(--cream);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 0.8rem;
}
.audio-dot {
  width: 9px; height: 9px;
  background: #d1d5db;
  border-radius: 50%;
  flex-shrink: 0;
  transition: var(--transition);
}
.audio-dot.playing { background: #22c55e; box-shadow: 0 0 7px rgba(34,197,94,0.5); animation: pulse 1s infinite; }
.audio-status-text { font-size: 0.75rem; color: var(--text-muted); flex: 1; }
.progress-bar { height: 3px; background: var(--cream-dark); border-radius: 2px; overflow: hidden; margin: 0.5rem 0; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-light)); border-radius: 2px; width: 0%; transition: width 0.1s linear; }
.voice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem; margin: 0.5rem 0; }
.voice-option {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 7px 9px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.voice-option:hover { border-color: var(--gold); background: rgba(201,168,76,0.05); }
.voice-option.selected { background: rgba(201,168,76,0.11); border-color: var(--gold); }
.voice-icon { font-size: 1.1rem; display: block; }
.voice-name { font-size: 0.67rem; font-weight: 600; color: var(--navy); display: block; margin-top: 2px; }
.voice-lang { font-size: 0.62rem; color: var(--text-light); }
.speed-control {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0.75rem 0;
}
.speed-label { font-size: 0.72rem; color: var(--text-muted); min-width: 75px; }
.speed-slider {
  flex: 1;
  -webkit-appearance: none;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 50%, var(--cream-dark) 50%);
  border-radius: 2px;
  outline: none;
}
.speed-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; background: var(--gold); border-radius: 50%; cursor: pointer; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.speed-value { font-size: 0.72rem; color: var(--navy); font-weight: 600; min-width: 28px; }
.play-all-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  color: var(--gold-light);
  border: 1px solid rgba(201,168,76,0.28);
  border-radius: var(--radius);
  padding: 10px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.play-all-btn:hover { background: var(--navy-light); }

/* ACCESIBILIDAD */
.access-section {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  padding: 72px 1.5rem;
}
.access-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 1.3rem;
}
.access-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.4rem;
  text-align: center;
  transition: var(--transition);
}
.access-card:hover { background: rgba(255,255,255,0.09); border-color: rgba(201,168,76,0.45); transform: translateY(-4px); }
.access-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, rgba(201,168,76,0.22), rgba(201,168,76,0.09));
  border: 1px solid rgba(201,168,76,0.28);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  margin: 0 auto 1.1rem;
}
.access-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.access-desc { font-size: 0.82rem; color: rgba(255,255,255,0.52); line-height: 1.6; }
.access-badge {
  display: inline-block;
  background: rgba(201,168,76,0.18);
  color: var(--gold-light);
  font-size: 0.67rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 100px;
  margin-top: 0.65rem;
}

/* LEYES */
.codes-section { background: var(--cream); padding: 72px 1.5rem; }
.codes-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 1.1rem;
}
.code-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.code-card::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(to bottom, var(--gold), var(--gold-dark)); border-radius: 4px 0 0 4px; }
.code-card:hover { border-color: rgba(201,168,76,0.48); box-shadow: 0 7px 26px rgba(13,27,42,0.11); transform: translateY(-3px); }
.code-number { font-size: 0.67rem; font-weight: 700; color: var(--gold-dark); letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 0.35rem; }
.code-name { font-family: var(--font-display); font-size: 0.97rem; font-weight: 700; color: var(--navy); margin-bottom: 0.4rem; line-height: 1.28; }
.code-year { font-size: 0.72rem; color: var(--text-light); margin-bottom: 0.65rem; }
.code-preview { font-size: 0.77rem; color: var(--text-muted); line-height: 1.55; }
.code-btn {
  margin-top: 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold-dark);
  background: none;
  border: 1px solid rgba(201,168,76,0.28);
  border-radius: 5px;
  padding: 4px 11px;
  cursor: pointer;
  transition: var(--transition);
}
.code-btn:hover { background: var(--navy); color: var(--gold-light); border-color: var(--gold); }

/* FAQ */
.faq-section { background: var(--cream-dark); padding: 72px 1.5rem; }
.faq-wrap { max-width: 790px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 0.65rem;
  overflow: hidden;
  transition: var(--transition);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.1rem 1.4rem;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--cream-dark);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  transition: var(--transition);
  color: var(--gold-dark);
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--navy); color: var(--gold-light); border-color: var(--gold); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), padding 0.3s;
  padding: 0 1.4rem;
}
.faq-item.open .faq-answer { max-height: 350px; padding: 0 1.4rem 1.1rem; }
.faq-answer p { font-size: 0.84rem; color: var(--text-muted); line-height: 1.72; border-top: 1px solid rgba(201,168,76,0.09); padding-top: 0.9rem; }

/* FOOTER */
footer {
  background: var(--navy);
  padding: 55px 1.5rem 28px;
  border-top: 1px solid rgba(201,168,76,0.18);
}
.footer-inner { max-width: 1400px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.8rem;
  margin-bottom: 2.8rem;
}
.footer-brand p { font-size: 0.82rem; color: rgba(255,255,255,0.45); line-height: 1.68; margin-top: 0.9rem; max-width: 270px; }
.footer-col h4 { font-size: 0.76rem; font-weight: 600; color: var(--gold-light); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a { color: rgba(255,255,255,0.45); text-decoration: none; font-size: 0.81rem; transition: var(--transition); }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 1.3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.copyright { font-size: 0.75rem; color: rgba(255,255,255,0.32); }

/* FLOATING BUTTONS */
.float-buttons {
  position: fixed;
  bottom: 1.8rem;
  left: 1.4rem;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.float-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.float-btn:hover { transform: scale(1.1); }
.float-tts { background: var(--navy); color: var(--gold-light); border: 2px solid rgba(201,168,76,0.45); }
.float-sign { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--navy); border: 2px solid rgba(201,168,76,0.45); }

/* TOAST */
.toast-container {
  position: fixed;
  bottom: 1.8rem;
  right: 1.4rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  pointer-events: none;
}
.toast {
  background: var(--navy);
  color: #fff;
  padding: 11px 16px;
  border-radius: 11px;
  font-size: 0.8rem;
  border: 1px solid rgba(201,168,76,0.32);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 9px;
  animation: slideInRight 0.3s ease;
  pointer-events: auto;
  max-width: 290px;
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13,27,42,0.72);
  z-index: 2000;
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 1.4rem;
}
.modal.open { display: flex; }
.modal-content {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 1.8rem;
  max-width: 580px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 55px rgba(0,0,0,0.28);
  animation: fadeInUp 0.3s ease;
}
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.3rem; }
.modal-title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--navy); }
.modal-close { background: none; border: none; font-size: 1.35rem; cursor: pointer; color: var(--text-light); width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: var(--transition); }
.modal-close:hover { background: var(--cream-dark); }
.modal-body { font-size: 0.85rem; color: var(--text-muted); line-height: 1.72; }

/* ANIMATIONS */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes typingDot { 0%,80%,100% { transform: scale(0.7); opacity: 0.4; } 40% { transform: scale(1); opacity: 1; } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.45; } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: translateX(0); } }
@keyframes waveAnim { 0%,100% { transform: scaleY(0.5); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }
@keyframes blink { 0%,88%,100% { transform: scaleY(1); } 94% { transform: scaleY(0.08); } }
@keyframes headNod { 0%,100% { transform: rotate(0deg); } 30% { transform: rotate(2.5deg); } 70% { transform: rotate(-1.8deg); } }
@keyframes armRwave { 0%,100% { transform: rotate(0deg); } 20% { transform: rotate(-35deg); } 50% { transform: rotate(-15deg); } 75% { transform: rotate(-42deg); } }
@keyframes armLwave { 0%,100% { transform: rotate(0deg); } 25% { transform: rotate(18deg); } 60% { transform: rotate(-12deg); } }
@keyframes handFlex { 0%,100% { transform: rotate(0) scale(1); } 40% { transform: rotate(-20deg) scale(1.05); } 70% { transform: rotate(15deg) scale(0.97); } }
@keyframes handFlexL { 0%,100% { transform: rotate(0) scale(1); } 40% { transform: rotate(18deg) scale(1.04); } 70% { transform: rotate(-14deg) scale(0.98); } }
@keyframes breathe { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(1.025); } }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .consultorio-layout { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
}
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.8rem; }
}
@media (max-width: 640px) {
  .h-btns { flex-direction: column; align-items: center; }
  .btn-p, .btn-s { width: 100%; justify-content: center; }
  .areas-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .sidebar { display: flex; flex-direction: column; }
  .codes-grid { grid-template-columns: 1fr; }
  .access-grid { grid-template-columns: 1fr; }
  .voice-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}