/* Main button title marquee (single, consolidated) */
.btn-title { overflow: hidden; white-space: nowrap; width: 100%; text-align: center; display: block; font-size: 2rem; font-weight: 700; color: #0ea5a4; position: relative; scrollbar-width: none; }
.btn-title::-webkit-scrollbar { display: none; }
.scroll-title { display: inline-block; min-width: 100%; white-space: nowrap; vertical-align: middle; animation: marquee-title 6s linear infinite; scrollbar-width: none; }
.scroll-title::-webkit-scrollbar { display: none; }
@keyframes marquee-title { 0% { transform: translateX(100%);} 100% { transform: translateX(-100%);} }
/* Marquee effect for main page title, visible and sharp, sin desenfoque */
.app-title {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  text-align: center;
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  color: #0ea5a4;
  letter-spacing:2.5px;
  position: relative;
  background: none;
  text-shadow: none;
}
.app-title span {
  display: inline-block;
  min-width: 100%;
  white-space: nowrap;
  vertical-align: middle;
  animation: marquee-title 8s linear infinite;
}
.app-title {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  text-align: center;
  display: block;
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(90deg, #0ea5a4 20%, #14b8a6 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 12px rgba(14,165,164,0.18);
  letter-spacing:2.5px;
  position: relative;
}
.app-title span {
  display: inline-block;
  min-width: 100%;
  white-space: nowrap;
  vertical-align: middle;
  animation: marquee-title 8s linear infinite;
}

/* Header nav links estáticos y centrados */
.header-nav {
  width: 100%;
  display: flex;
  gap: 10px;
  justify-content: center;
  position: relative;
  flex-wrap: wrap;
}
.header-link {
  display: inline-block;
  min-width: max-content;
  padding: 10px 18px;
  border-radius: 12px;
  background: #e0f7fa;
  color: #0ea5a4;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  margin-bottom: 4px;
  transition: background 0.2s, color 0.2s;
}
.header-link:hover {
  background: #14b8a6;
  color: #fff;
}
/* Títulos de los botones principales estáticos */
.btn-title {
  white-space: nowrap;
  width: 100%;
  text-align: center;
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #0ea5a4;
}
.scroll-title {
  display: inline-block;
  width: auto;
  white-space: nowrap;
  vertical-align: middle;
}
/* Título de botón principal siempre en una sola línea, centrado y sin saltos */
.btn-title {
  white-space: nowrap;
  width: 100%;
  text-align: center;
  display: block;
  overflow-x: auto;
  font-size: 2rem;
  font-weight: 700;
  color: #0ea5a4;
}
.scroll-title {
  display: inline-block;
  width: auto;
  white-space: nowrap;
  vertical-align: middle;
}
/* Header responsive: logo, título y nav uno debajo del otro en pantallas pequeñas */
.header-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 1100px;
  width: 100vw;
  margin: 0 auto;
  gap: 10px;
}

@media (min-width: 700px) {
  .header-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
  .header-logo {
    margin-bottom: 0 !important;
    margin-right: 18px;
  }
  .app-title {
    margin-bottom: 0 !important;
    margin-right: 18px;
    font-size: 2.2rem !important;
  }
  .header-nav {
    margin-bottom: 0 !important;
  }
}

/* Marquee effect for header nav links */
.header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  overflow-x: auto;
  white-space: nowrap;
  width: 100%;
  justify-content: center;
}
.header-link {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 12px;
  background: #e0f7fa;
  color: #0ea5a4;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  margin-bottom: 4px;
  transition: background 0.2s, color 0.2s;
}
.header-link:hover {
  background: #14b8a6;
  color: #fff;
}

/* Marquee effect for app-title */
.app-title {
  overflow-x: auto;
  white-space: nowrap;
  width: 100%;
  text-align: center;
}
/* Botón de enviar del formulario de contacto */
form#contactForm button[type="submit"] {
  background: linear-gradient(90deg,#0ea5a4 0%,#14b8a6 100%) !important;
  color: #fff !important;
  border-radius: 12px !important;
  width: 100% !important;
  max-width: 400px !important;
  min-width: 180px !important;
  height: 40px !important; /* tamaño compacto y consistente */
  font-size: 1rem !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 12px rgba(14,165,164,0.13) !important;
  border: none !important;
  padding: 0 !important;
  margin-top: 0 !important;
  display: block !important;
  letter-spacing: 1px !important;
  transition: box-shadow 0.2s, transform 0.2s !important;
}
/* Contact page layout */
.contact-content { display:flex; justify-content:center; align-items:flex-start; min-height:80vh; background:#f8fafc; }
.md-card { background:#fff; border-radius:16px; box-shadow: var(--elevation-3); }
.md-form { padding:24px 20px; margin-top:16px; display:flex; flex-direction:column; gap:16px; max-width:420px; width:100%; }
.md-info { background:#e0f7fa; border-radius:8px; padding:10px 12px; color:#0ea5a4; font-size:0.95rem; font-weight:600; text-align:center; }
.md-label { color:#0ea5a4; font-weight:700; font-size:1rem; }
.md-input, .md-textarea { padding:12px 14px; border-radius:12px; border:1.5px solid #0ea5a4; background:#f7f8fa; font-size:1rem; color:#0f172a; outline:none; transition:border-color .2s, box-shadow .2s, background .2s; }
.md-input:focus, .md-textarea:focus { border-color:#14b8a6; box-shadow: 0 0 0 3px rgba(20,184,166,0.18); background:#fff; }
.md-textarea { resize: vertical; min-height: 120px; }
.md-button { border: none; border-radius:12px; height:40px; font-weight:700; cursor:pointer; box-shadow: var(--elevation-2); transition: box-shadow .2s, transform .2s; }
.md-button.primary { background: linear-gradient(90deg,#0ea5a4 0%,#14b8a6 100%); color:#fff; }
.md-button.primary:hover { box-shadow: var(--elevation-3); transform: translateY(-1px); }
.md-button.full { width:100%; max-width:400px; align-self:center; }
.md-status { margin-top:6px; font-weight:600; color:#0ea5a4; text-align:center; min-height:20px; }
.md-button[disabled] { opacity: .6; cursor: not-allowed; }

/* Placeholders */
.md-input::placeholder, .md-textarea::placeholder { color:#6b7280; }

/* Honeypot visually hidden */
.hp-field { position: absolute; left: -9999px; width: 0; height: 0; opacity: 0; pointer-events: none; }

/* Minor tidy: reduce excessive gaps in main content */
.main-content { padding-bottom: 12px; }
/* Campos de texto del formulario de contacto */
form#contactForm input[type="text"],
form#contactForm input[type="email"],
form#contactForm textarea {
  color: #0f172a !important; /* texto visible oscuro */
  background: #f7f8fa !important;
  border: 1.5px solid #0ea5a4 !important;
}
form#contactForm input::placeholder,
form#contactForm textarea::placeholder {
  color: #6b7280 !important; /* placeholder gris medio */
}
form#contactForm button[type="submit"]:hover, form#contactForm button[type="submit"]:focus {
  box-shadow: 0 4px 16px rgba(14,165,164,0.18) !important;
  transform: translateY(-2px) scale(1.02) !important;
}
/* Archivo restaurado: styles.css */

.footer-copyright {
  text-align: center;
  color: #666;
  font-size: 0.85rem;
  font-weight: 400;
  padding: 12px 16px 72px 16px;
  margin: 0;
  letter-spacing: 0.3px;
  background: #f5f5f5;
  border-top: 1px solid #e0e0e0;
  width: 100%;
}
.horizontal-scroll {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  width: 100%;
  font-size: 1.01rem;
  font-weight: 400;
  color: #7b7b7b;
  line-height: 1.45;
  opacity: 0.95;
  letter-spacing: 0.1px;
  text-align: left;
}
.horizontal-scroll .scroll-text {
  display: inline-block;
  /* padding-left: 100%; */
  animation: marquee-scroll 28s linear infinite;
}
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
/* BOTÓN PRINCIPAL CON BORDE GRADIENTE Y FONDO BLANCO */
.main-btn.minimalist-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff !important;
  box-shadow: 0 8px 32px rgba(14,165,164,0.18), 0 2px 24px rgba(14,165,164,0.10);
  border-radius: 2.5rem;
  padding: 2rem 2rem 1.2rem 2rem;
  min-width: 260px;
  min-height: 170px;
  max-width: 900px;
  width: 100%;
  transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
  border: none !important;
  position: relative;
  color: #0ea5a4;
  font-family: 'Roboto', 'Roboto Serif', serif;
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 2rem;
  cursor: pointer;
  outline: none;
}
.main-btn.minimalist-btn::before {
  display: none !important;
}
.main-btn.minimalist-btn > * {
  position: relative;
  z-index: 1;
}
.main-btn.minimalist-btn:hover, .main-btn.minimalist-btn:focus {
  box-shadow: 0 12px 40px rgba(14,165,164,0.22), 0 2px 24px rgba(14,165,164,0.13);
  transform: translateY(-4px) scale(1.03);
  background: #fff;
}
.main-btn .btn-title {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 900;
  color: #0ea5a4;
  margin-bottom: 1.2rem;
  letter-spacing: 2px;
  text-align: center;
  word-break: break-word;
  white-space: normal;
  width: 100%;
  overflow-wrap: anywhere;
}
.main-btn .btn-subtitle {
  font-size: 1.3rem;
  font-weight: 700;
  color: #333;
  line-height: 1.45;
  margin-bottom: 0.2rem;
  opacity: 0.95;
  letter-spacing: 0.1px;
  text-align: center;
  animation: marquee 3s linear infinite alternate;
  white-space: nowrap;
  overflow: hidden;
}
@import url('https://fonts.googleapis.com/css2?family=Roboto+Serif:wght@400;700&display=swap');
:root {
  --bg: #f5f5f5;
  --text: #222;
  --muted: #7b7b7b;
  --border: #e5e7eb;
  --accent: #0ea5a4;
  --accent-dark: #0d8f8e;
  --radius: 16px;
  --font-size: 18px;
  --font-family: 'Roboto', sans-serif;
  --elevation-1: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  --elevation-2: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
  --elevation-3: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
  --elevation-4: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
}

[data-theme="dark"] {
  --bg: #18181b;
  --text: #fff;
  --muted: #a1a1aa;
  --border: #333;
  --accent: #14b8a6;
}

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

html, body {
  height: 100%;
  font-family: 'Roboto', sans-serif;
  background: var(--bg);
  color: #222;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow-x: hidden;
  padding-bottom: 56px; /* Espacio exacto para bottom-nav fijo */
  padding-top: 64px; /* Espacio para header fijo */
}

.app-container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg);
  overflow-x: hidden;
}

/* Material Design Header */
.material-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #0ea5a4 0%, #14b8a6 100%);
  color: #fff;
  padding: 12px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.header-logos-marquee {
  width: 100vw;
  overflow: hidden;
  background: transparent;
  padding: 8px 0;
}

.header-logos-scroll {
  display: flex;
  align-items: center;
  gap: 32px;
  animation: header-marquee 10s linear infinite; /* aún más velocidad */
  white-space: nowrap;
}

.header-logos-scroll img {
  height: 32px;
  filter: brightness(1.1);
  opacity: 0.95;
  transition: transform 0.3s, opacity 0.3s;
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 8px;
  border-radius: 8px;
}

.header-logos-scroll img:hover {
  transform: scale(1.12) translateY(-2px);
  opacity: 1;
  background: rgba(255, 255, 255, 0.25);
}

@keyframes header-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.app-header {
  width: 100vw;
  display: flex;
  align-items: center;
.header-bar img {
  animation: logo-bounce-in 1.2s cubic-bezier(.4,0,.2,1);
  will-change: transform, opacity;
}

.app-title {
  animation: title-fade-in 1.4s cubic-bezier(.4,0,.2,1);
  will-change: opacity, transform;
}

@keyframes logo-bounce-in {
  0% { opacity: 0; transform: scale(0.7) translateY(-40px); }
  60% { opacity: 1; transform: scale(1.08) translateY(8px); }
  80% { transform: scale(0.96) translateY(-4px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes title-fade-in {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Animación para los botones principales */
/*
.main-btn.minimalist-btn {
  animation: btn-fade-in 1.2s cubic-bezier(.4,0,.2,1);
  will-change: opacity, transform;
}
.main-btn.minimalist-btn:nth-child(1) { animation-delay: 0.2s; }
.main-btn.minimalist-btn:nth-child(2) { animation-delay: 0.35s; }
.main-btn.minimalist-btn:nth-child(3) { animation-delay: 0.5s; }
*/

@keyframes btn-fade-in {
  0% { opacity: 0; transform: translateY(40px) scale(0.96); }
  80% { opacity: 1; transform: translateY(-6px) scale(1.04); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.horizontal-scroll {
  margin-bottom: 0.2rem;
}
.horizontal-scroll .scroll-text {
  display: inline-block;
  min-width: 100%;
  animation: footer-marquee 100s linear infinite;
}
  background: rgba(255,255,255,0.92);
  border-bottom: 2px solid #0ea5a4;
  box-shadow: 0 6px 24px rgba(14,165,164,0.10);
  }
  .main-btn.minimalist-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: 1.5rem;
    padding: 0;
    margin: -3px;
    background: linear-gradient(120deg, #0ea5a4, #14b8a6, #a7ffeb 90%);
    pointer-events: none;
    -webkit-mask:
      linear-gradient(#fff 0 0) content-box,
      linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    mask:
      linear-gradient(#fff 0 0) content-box,
      linear-gradient(#fff 0 0);
  }
  .main-btn.minimalist-btn > * {
    position: relative;
    z-index: 1;
  }
  .header-nav {
    display: flex;
    gap: 18px;
  }
  .header-link {
    color: #0ea5a4;
    font-weight: 600;
    font-size: 1.08rem;
    text-decoration: none;
    padding: 7px 16px;
    border-radius: 18px;
    background: linear-gradient(90deg, #e0f7fa 60%, #fff 100%);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(14,165,164,0.06);
  }
  .header-link:hover, .header-link:focus {
    background: linear-gradient(90deg, #0ea5a4 60%, #a7ffeb 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(14,165,164,0.13);
}

.app-title {
  font-size: 2.3rem;
  font-weight: 900;
  color: #0ea5a4;
  letter-spacing: 2px;
  margin: 0;
  text-align: center;
  font-family: 'Roboto', Arial, sans-serif;
  text-shadow: 0 2px 12px rgba(14,165,164,0.10);
  background: linear-gradient(90deg, #0ea5a4 20%, #14b8a6 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.menu-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--accent);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.2s;
}

.menu-btn:active {
  background: var(--border);
}

.spacer {
  width: 44px;
}

.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  max-width: 400px;
  height: 100vh;
  background: rgba(255,255,255,0.98);
  box-shadow: 2px 0 16px rgba(0,0,0,0.08);
  z-index: 100;
  display: none;
  flex-direction: column;
  animation: fadeInSidebar 0.3s;
}

.sidebar.active {
  display: flex;
}

@keyframes fadeInSidebar {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 20px 12px 20px;
}

.sidebar-header h2 {
  font-size: 1.5rem;
  color: var(--accent);
}

.close-sidebar {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--muted);
  cursor: pointer;
}

.sidebar-content {
  padding: 20px;
}

.setting-group {
  margin-bottom: 24px;
}

.setting-group label {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 6px;
  display: block;
}

select {
  width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 1rem;
  background: #fff;
  color: var(--text);
  margin-top: 4px;
}

.sidebar-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.15);
  z-index: 99;
  display: none;
}

.sidebar-overlay.active {
  display: block;
}

.content {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 32px 16px 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 70vh;
  overflow-x: hidden;
}

.main-content {
  margin-top: 80px;
  margin-bottom: 0;
  min-height: auto;
  animation: fadeInUp 0.5s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  overflow-x: hidden;
  padding: 0 16px 80px 16px;
  flex: 1;
}

.main-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 auto;
  max-width: 600px;
  width: 100%;
  padding-bottom: 0;
}

/* Material Design Cards */
.material-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--elevation-2);
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  min-height: 92px; /* Normaliza altura mínima entre tarjetas */
}

.material-card:hover {
  box-shadow: var(--elevation-3);
  transform: translateY(-2px);
}

.material-card:active {
  box-shadow: var(--elevation-4);
  transform: translateY(-1px);
}

.card-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #0ea5a4 0%, #14b8a6 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.card-icon .material-symbols-outlined {
  font-size: 32px;
}

.card-content {
  flex: 1;
  min-width: 0;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0ea5a4;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.card-subtitle {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
}

/* Ripple Effect */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.main-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  border-radius: 1.5rem;
  box-shadow: none;
  padding: 2.2rem 2.2rem 1.3rem 2.2rem;
  min-width: 180px;
  min-height: 170px;
  max-width: 220px;
  transition: box-shadow 0.2s, transform 0.2s;
  border: none;
  text-decoration: none;
  color: #0ea5a4;
  font-family: 'Roboto', 'Roboto Serif', serif;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  cursor: pointer;
  position: relative;
  background: none;
}
.main-btn:hover, .main-btn:focus {
  box-shadow: 0 8px 32px rgba(14,165,164,0.18);
  transform: translateY(-4px) scale(1.03);
  background: linear-gradient(90deg,#e0f7fa 60%,#fff 100%);
  color: #0ea5a4;
}

.main-btn .icon {
  margin-bottom: 1.1rem;
}

.btn-label {
  font-size: 1.13rem;
  font-weight: 700;
  color: #0ea5a4;
  letter-spacing: 0.2px;
  text-align: center;
  font-family: 'Roboto', 'Roboto Serif', serif;
}

.submenu-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  align-items: stretch;
}
.submenu-btn {
  background: #fff;
  border: none;
  border-radius: 12px;
  box-shadow: var(--elevation-1);
  padding: 16px;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  text-align: left;
  text-decoration: none;
  font-family: 'Roboto', sans-serif;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 68px;
}

.submenu-btn:hover {
  box-shadow: var(--elevation-2);
  transform: translateY(-2px);
}

.submenu-btn:active {
  box-shadow: var(--elevation-3);
  transform: translateY(0);
}
.submenu-btn b {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  display: inline-block;
  animation: marquee 3s linear infinite alternate;
  text-shadow: 0 2px 8px rgba(22,35,110,0.18);
}
.submenu-btn .desc {
  font-size: 1rem;
  color: #fff;
  font-weight: 400;
  margin-top: 0.2rem;
  display: block;
  text-shadow: 0 1px 4px rgba(11,68,149,0.10);
  animation: marquee 3s linear infinite alternate;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(10px); }
}
.mtc-sutran-btn {
  flex: 1;
  margin-bottom: 0;
  padding: 14px 0;
  font-size: 1.08rem;
  background: linear-gradient(135deg, #fff 70%, #e0f7fa 100%);
  color: var(--accent);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(14,165,164,0.10);
  border: 1.5px solid #e0f7fa;
  border-radius: 14px;
  transition: box-shadow 0.2s, background 0.2s, color 0.2s;
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.5px;
  outline: none;
}
.mtc-sutran-btn:active, .mtc-sutran-btn:focus {
  background: linear-gradient(135deg, #e0f7fa 80%, #fff 100%);
  color: #0e7c7b;
  box-shadow: 0 1px 4px rgba(14,165,164,0.12);
}
.doc-btn {
  display: block;
  width: 100%;
  max-width: 600px;
  margin: 0 auto 12px auto;
  border: none;
  border-radius: 12px;
  padding: 16px;
  font-family: 'Roboto', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: var(--elevation-1);
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow: hidden;
  color: #fff;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}

.doc-btn:hover {
  box-shadow: var(--elevation-2);
  transform: translateY(-2px);
}

.doc-btn:active {
  box-shadow: var(--elevation-3);
  transform: translateY(0);
}
.doc-btn b, .submenu-btn b {
  margin-bottom: 0;
  display: inline-block;
}
.doc-btn .desc, .submenu-btn .desc {
  margin-top: 0;
  line-height: 1.25;
}
.doc-btn .desc {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  margin-top: 0.3rem;
  display: block;
  color: #fff;
  opacity: 1;
  animation: marquee 3s linear infinite alternate;
}
.doc-btn span, .doc-btn b {
  animation: marquee 3s linear infinite alternate;
  display: inline-block;
}
.doc-btn b {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(22,35,110,0.18);
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(10px); }
}
.doc-btn.soat {
  background: linear-gradient(90deg, #57B191 0%, #452D80 100%);
}
.doc-btn.citv {
  background: linear-gradient(90deg, #BF0909 0%, #D9230F 100%);
}
.doc-btn.vehicular {
  background: linear-gradient(90deg, #84C24B 0%, #535C57 100%);
}
.doc-btn.licencia {
  background: linear-gradient(90deg, #FF0000 0%, #303030 100%);
}
.doc-btn.ruc {
  background: linear-gradient(90deg, #B0112D 0%, #034694 100%);
}
/* NUEVOS BOTONES GAS */
.doc-btn.gas {
  background: linear-gradient(90deg, #FF6B35 0%, #004E89 100%);
}
.doc-btn.gas-fise {
  background: linear-gradient(90deg, #1AA260 0%, #005F73 100%);
}
.submenu-btn.sat-lima {
  background: linear-gradient(90deg, #16236E 0%, #149CD7 100%);
}
.submenu-btn.sat-callao {
  background: linear-gradient(90deg, #0B4495 0%, #5CBDD9 100%);
}
.submenu-btn.otras-ciudades {
  background: linear-gradient(90deg, #FF6600 0%, #996633 100%);
}
.submenu-btn.mtc {
  background: linear-gradient(90deg, #FF0000 0%, #2C2C2C 100%);
}
.submenu-btn.sutran {
  background: linear-gradient(90deg, #112947 0%, #17375F 100%);
}
.submenu-btn.atu {
  background: linear-gradient(90deg, #004A98 0%, #00A0E0 100%);
}
.submenu-btn.sat-captura {
  background: linear-gradient(90deg, #16236E 0%, #149CD7 100%);
}
.submenu-btn.pnp {
  background: linear-gradient(90deg, #104938 0%, #B59E6A 100%);
}
.submenu-btn.lunas {
  background: linear-gradient(90deg, #104938 0%, #B59E6A 100%);
}
/* NUEVOS BOTONES SAT */
.submenu-btn.sat-nacional {
  background: linear-gradient(90deg, #0F4C75 0%, #3282B8 100%);
}
.submenu-btn.sat-captura-nacional {
  background: linear-gradient(90deg, #1B3D6F 0%, #2E5090 100%);
}
.submenu-btn.sutran-verifica {
  background: linear-gradient(90deg, #1A4B63 0%, #2B5F7F 100%);
}

/* Mejorar contraste de subtítulos */
.doc-btn .desc { color: #fff; opacity: 1; }

.prop-btn {
  display: block;
  width: 100%;
  max-width: 600px;
  margin: 0 auto 12px auto;
  border: none;
  border-radius: 12px;
  padding: 16px;
  font-family: 'Roboto', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: var(--elevation-1);
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow: hidden;
  color: #fff;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}

.prop-btn:hover {
  box-shadow: var(--elevation-2);
  transform: translateY(-2px);
}

.prop-btn:active {
  box-shadow: var(--elevation-3);
  transform: translateY(0);
}
.prop-btn b {
  font-family: 'Roboto', 'Roboto Serif', serif;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  display: inline-block;
  animation: marquee 3s linear infinite alternate;
}
.prop-btn .desc {
  font-family: 'Roboto', 'Roboto Serif', serif;
  font-size: 1rem;
  font-weight: 400;
  margin-top: 0.05rem;
  display: block;
  color: #fff;
  opacity: 1;
  animation: marquee 3s linear infinite alternate;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(10px); }
}
/* Gradientes personalizados */
.prop-btn.sunarp { background: linear-gradient(90deg, #7DB848 0%, #323B36 100%); }
.prop-btn.sbs { background: linear-gradient(90deg, #002469 0%, #01C4B3 100%); }
.prop-btn.precio { background: linear-gradient(90deg, #75AD45 0%, #00A7A4 100%); }
.prop-btn.historial, .prop-btn.seguimiento, .prop-btn.alerta, .prop-btn.tive { background: linear-gradient(90deg, #8ABE2E 0%, #2B2A29 100%); }
/* NUEVOS BOTONES SUV */
.prop-btn.suv-placa { background: linear-gradient(90deg, #1e3c72 0%, #2a5298 100%); }
.prop-btn.suv-duenos { background: linear-gradient(90deg, #667eea 0%, #764ba2 100%); }
.prop-btn.suv-cambio { background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%); }

.city-btn {
  display: block;
  width: 100%;
  max-width: 600px;
  margin: 0 auto 12px auto;
  border: none;
  border-radius: 12px;
  padding: 16px;
  font-family: 'Roboto', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: var(--elevation-1);
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow: hidden;
  color: #fff;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}

.city-btn:hover {
  box-shadow: var(--elevation-2);
  transform: translateY(-2px);
}

.city-btn:active {
  box-shadow: var(--elevation-3);
  transform: translateY(0);
}
.city-btn b {
  font-family: 'Roboto', 'Roboto Serif', serif;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  display: inline-block;
  animation: marquee 3s linear infinite alternate;
}
.city-btn .desc {
  font-family: 'Roboto', 'Roboto Serif', serif;
  font-size: 1rem;
  font-weight: 400;
  margin-top: 0.05rem;
  display: block;
  color: #fff;
  opacity: 1;
  animation: marquee 3s linear infinite alternate;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(10px); }
}
.city-btn.piura { background: linear-gradient(90deg, #F5DEB3 0%, #004D99 100%); }
.city-btn.cusco { background: linear-gradient(90deg, #FFD700 0%, #4B0082 100%); }
.city-btn.ica { background: linear-gradient(90deg, #800020 0%, #C8AE73 100%); }
.city-btn.puno { background: linear-gradient(90deg, #007AA8 0%, #E0FFFF 100%); }
.city-btn.cajamarca { background: linear-gradient(90deg, #38761D 0%, #D2B48C 100%); }
.city-btn.arequipa { background: linear-gradient(90deg, #808080 0%, #FFFFFF 100%); }
.city-btn.huanuco { background: linear-gradient(90deg, #CC5500 0%, #006400 100%); }
.city-btn.chiclayo { background: linear-gradient(90deg, #FFD700 0%, #8B4513 100%); }
.city-btn.chachapoyas { background: linear-gradient(90deg, #8FBC8F 0%, #B07B57 100%); }
/* NUEVAS CIUDADES */
.city-btn.piura-sat { background: linear-gradient(90deg, #FFD700 0%, #FF8C00 100%); }
.city-btn.tarapoto { background: linear-gradient(90deg, #228B22 0%, #90EE90 100%); }
.city-btn.tacna { background: linear-gradient(90deg, #4169E1 0%, #87CEEB 100%); }
.city-btn.andahuaylas { background: linear-gradient(90deg, #DC143C 0%, #FF6347 100%); }
.city-btn.huancayo { background: linear-gradient(90deg, #8B008B 0%, #DA70D6 100%); }
.city-btn.pucallpa { background: linear-gradient(90deg, #FF4500 0%, #FFD700 100%); }
.city-btn.trujillo { background: linear-gradient(90deg, #20B2AA 0%, #48D1CC 100%); }
.city-btn.huanuco-sat { background: linear-gradient(90deg, #CD5C5C 0%, #F08080 100%); }

@media (max-width: 600px) {
  .app-header {
    font-size: 1.1rem;
    padding: 12px 0 6px 0;
  }
  .main-content {
    margin-top: 64px;
    margin-bottom: 64px;
    padding: 0 4vw;
    max-width: 100vw;
  }
  .main-buttons {
    flex-direction: column;
    gap: 18px;
    width: 100%;
    align-items: center;
  }
  .main-btn {
    width: 92vw;
    max-width: 360px;
    min-width: unset;
    padding: 22px 8px 16px 8px;
    font-size: 1rem;
  }
  .main-btn .icon {
    width: 40px;
    height: 40px;
    margin-bottom: 6px;
  }
  .btn-label {
    font-size: 1rem;
  }
  .submenu-buttons {
    max-width: 98vw;
    gap: 14px;
  }
  .submenu-btn {
    width: 100%;
    max-width: none;
    padding: 18px 12px 12px 12px;
    font-size: 1rem;
  }
  .submenu-btn .desc {
    font-size: 0.95rem;
  }
  .footer {
    font-size: 0.85rem;
    padding: 12px 0;
  }
  .mtc-sutran-btn {
    font-size: 1rem;
    padding: 12px 0;
  }
}

/* Botones PIT personalizados */
.submenu-btn.pit-deuda, .submenu-btn.pit-foto, .submenu-btn.pit-captura {
  background: linear-gradient(120deg, #448C25 0%, #9DDDF9 100%);
}

/* Floating Action Button para regresar */
.fab-back {
  position: fixed;
  top: 80px;
  left: 16px;
  z-index: 1001;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  border: none;
  box-shadow: var(--elevation-3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  color: #0ea5a4;
}

.fab-back:hover {
  box-shadow: var(--elevation-4);
  transform: scale(1.05);
  background: #f0f0f0;
}

.fab-back:active {
  transform: scale(0.95);
}

.fab-back .material-symbols-outlined {
  font-size: 28px;
}

/* Bottom Navigation Bar - Material Design */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 56px;
  box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
  z-index: 1000;
  padding: 0 8px;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #666;
  padding: 6px 12px;
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  position: relative;
  min-width: 64px;
  max-width: 120px;
}

.nav-item .material-symbols-outlined {
  font-size: 24px;
  transition: all 0.3s;
}

.nav-label {
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 4px;
  letter-spacing: 0.5px;
}

.nav-item.active {
  color: #0ea5a4;
}

.nav-item.active .material-symbols-outlined {
  font-variation-settings: 'FILL' 1;
}

.nav-item:active {
  background: rgba(14, 165, 164, 0.1);
}

/* Agency banner base styles (all viewports) */
.agency-banner {
  margin: 8px auto 12px auto;
  max-width: 900px;
}
.agency-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 4px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.agency-scroll::-webkit-scrollbar { display: none; }
.agency-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  background: #fff;
  color: #0ea5a4;
  border-radius: 16px;
  box-shadow: var(--elevation-1);
  text-decoration: none;
  white-space: nowrap;
  transition: all .2s cubic-bezier(.4,0,.2,1);
  font-weight: 700;
  letter-spacing: .3px;
  flex: 0 0 auto;
  min-width: 80px;
  scroll-snap-align: start;
}
.agency-chip:hover { box-shadow: var(--elevation-2); transform: translateY(-1px); }
.agency-chip:active { box-shadow: var(--elevation-3); }
.agency-chip:visited { color: #0ea5a4; }
/* Light tints per chip label */
.agency-chip[href*="sat"] { background: linear-gradient(180deg,#ffffff 0%,#f0fbff 100%); }
.agency-chip[href*="atu"] { background: linear-gradient(180deg,#ffffff 0%,#f3fffb 100%); }
.agency-chip[href*="sutran"] { background: linear-gradient(180deg,#ffffff 0%,#fff7f2 100%); }
.agency-chip[href*="mtc"] { background: linear-gradient(180deg,#ffffff 0%,#f8f9ff 100%); }
.agency-chip[href*="pit"] { background: linear-gradient(180deg,#ffffff 0%,#f9fff5 100%); }

/* Responsive adjustments for Material Design */
@media (max-width: 600px) {
  .material-header {
    padding: 8px 0;
  }
  
  .header-logos-marquee {
    padding: 6px 0;
  }
  
  .header-logos-scroll {
    gap: 24px;
  }
  
  .header-logos-scroll img {
    height: 28px;
    padding: 3px 6px;
  }
  
  .main-content {
    margin-top: 64px;
    padding: 0 12px;
  }
  
  /* Agency horizontal banner */
  .agency-banner {
    margin: 4px auto 8px auto; /* Reduce espacio superior/inferior */
    max-width: 600px;
  }
  .agency-scroll {
    display: flex;
    gap: 8px; /* Menor separación para compactar */
    overflow-x: auto;
    padding: 6px 2px; /* Menor padding para reducir altura total */
    scrollbar-width: none; /* Firefox */
    scroll-snap-type: x mandatory;
  }
  .agency-scroll::-webkit-scrollbar { display: none; }
  .agency-chip {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px; /* Chips más compactos */
    background: #fff;
    color: #0ea5a4; /* primario consistente */
    border-radius: 16px;
    box-shadow: var(--elevation-1);
    text-decoration: none;
    white-space: nowrap;
    transition: all .2s cubic-bezier(.4,0,.2,1);
    font-weight: 700;
    letter-spacing: .3px;
    flex: 0 0 auto;
    min-width: 80px;
    justify-content: center;
    scroll-snap-align: start;
  }
  .agency-chip:hover { box-shadow: var(--elevation-2); transform: translateY(-1px); }
  .agency-chip:active { box-shadow: var(--elevation-3); }

  /* Color accents per chip label (optional light tints) */
  .agency-chip[href*="sat"] { background: linear-gradient(180deg,#ffffff 0%,#f0fbff 100%); }
  .agency-chip[href*="atu"] { background: linear-gradient(180deg,#ffffff 0%,#f3fffb 100%); }
  .agency-chip[href*="sutran"] { background: linear-gradient(180deg,#ffffff 0%,#fff7f2 100%); }
  .agency-chip[href*="mtc"] { background: linear-gradient(180deg,#ffffff 0%,#f8f9ff 100%); }
  .agency-chip[href*="pit"] { background: linear-gradient(180deg,#ffffff 0%,#f9fff5 100%); }

  /* Arrows removidas */

  .material-card {
    padding: 16px;
    min-height: 88px; /* Altura mínima coherente en móvil */
  }
  
  .card-icon {
    width: 48px;
    height: 48px;
  }
  
  .card-icon .material-symbols-outlined {
    font-size: 28px;
  }
  
  .card-title {
    font-size: 1.1rem;
  }
  
  .card-subtitle {
    font-size: 0.85rem;
  }
  
  .nav-label {
    font-size: 0.7rem;
  }
}
