/* ==========================================================================
   IBARRA GO - SISTEMA DE DISEÑO & ESTILOS GLOBALES
   Mobile First, Responsive & Accessible UI
   Paleta Oficial: Azul Cian (#009AE0), Rojo Vibrante (#E30613), Azul Oscuro (#00477F)
   ========================================================================== */

/* 1. VARIABLES GLOBALES / DESIGN TOKENS
   ========================================================================== */
:root {
  /* Paleta Primaria Oficial */
  --color-cyan: #009AE0;            /* Azul Cian Municipal */
  --color-cyan-hover: #0084c2;
  --color-cyan-light: #EBF7FC;
  --color-cyan-subtle: rgba(0, 154, 224, 0.08);

  --color-red: #E30613;             /* Rojo Vibrante */
  --color-red-hover: #c4040f;
  --color-red-light: #FDE8E9;
  --color-red-subtle: rgba(227, 6, 19, 0.08);

  --color-blue-dark: #00477F;        /* Azul Oscuro Institucional */
  --color-blue-darker: #00335C;
  --color-blue-light: #EBF3F9;

  /* Colores Neutros y Superficie */
  --color-white: #FFFFFF;
  --color-bg-body: #F8FAFC;
  --color-surface: #FFFFFF;
  --color-text-main: #111827;       /* Gris carbón / casi negro */
  --color-text-dark: #1E293B;
  --color-text-muted: #475569;      /* Gris oscuro para subtítulos y párrafos */
  --color-text-light: #94A3B8;
  --color-border: #E2E8F0;
  --color-border-subtle: #F1F5F9;

  /* Tipografías */
  --font-base: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Montserrat', 'Poppins', sans-serif;

  /* Bordes Redondeados (8px a 12px) */
  --radius-xs: 4px;
  --radius-sm: 8px;                 /* 8px */
  --radius-md: 10px;                /* 10px */
  --radius-lg: 12px;                /* 12px */
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Sombras Sutiles (box-shadow) */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 30px rgba(0, 71, 127, 0.12);
  --shadow-xl: 0 20px 40px rgba(0, 71, 127, 0.16);
  --shadow-cyan: 0 8px 24px rgba(0, 154, 224, 0.35);
  --shadow-red: 0 6px 20px rgba(227, 6, 19, 0.25);

  /* Transiciones Suaves */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout y Dimensiones */
  --container-max: 1200px;
}

/* 2. RESET Y BASE (MOBILE FIRST)
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-base);
  color: var(--color-text-main);
  background-color: var(--color-bg-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  border: none;
  outline: none;
}

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

ul, ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Accesibilidad y Foco */
:focus-visible {
  outline: 3px solid var(--color-cyan);
  outline-offset: 3px;
}

.skip-to-content {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--color-blue-dark);
  color: var(--color-white);
  padding: 0.75rem 1.25rem;
  z-index: 9999;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top var(--transition-normal);
}

.skip-to-content:focus {
  top: 1rem;
}

/* 3. CABECERA INSTITUCIONAL (HEADER)
   ========================================================================== */
.site-header {
  background-color: var(--color-cyan);
  color: var(--color-white);
  padding-top: 1rem;
  padding-bottom: 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 154, 224, 0.25);
  transition: padding var(--transition-normal), box-shadow var(--transition-normal);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

/* Logo IbarraGo> */
.logo-ibarrago {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-decoration: none;
  line-height: 1;
}

.logo-ibarrago .logo-arrow {
  color: var(--color-white);
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1;
  display: inline-block;
  transform: translateY(-1px);
  transition: transform var(--transition-normal);
}

.logo-ibarrago:hover .logo-arrow {
  transform: translateX(4px) translateY(-1px);
}

/* Acciones en Cabecera */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Botón directo de QR en Header */
.btn-header-qr {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.18);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-header-qr:hover {
  background: var(--color-white);
  color: var(--color-cyan);
}

/* Logo Oficial Alcaldía de Ibarra */
.logo-alcaldia {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--color-white);
  text-decoration: none;
}

.logo-alcaldia-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.logo-alcaldia-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  text-align: left;
}

.logo-alcaldia-subtitle {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 2px;
  opacity: 0.95;
  text-transform: uppercase;
}

.logo-alcaldia-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: var(--font-heading);
}

/* Eslogan institucional */
.header-slogan-wrapper {
  margin-top: 0.5rem;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.header-slogan {
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: 400; /* Regular */
  letter-spacing: 0.2px;
  opacity: 0.95;
}

/* 4. SECCIÓN PRINCIPAL (HERO SECTION)
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(180deg, #F0F8FD 0%, #FFFFFF 100%);
  padding-top: 2rem;
  padding-bottom: 3.5rem;
  overflow: hidden;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Columna Izquierda (Copywriting) */
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.indicator-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  background-color: var(--color-white);
  color: var(--color-blue-dark);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid rgba(0, 154, 224, 0.25);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.indicator-pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.indicator-icon {
  color: var(--color-cyan);
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1;
}

/* Título H1 */
.hero-title {
  font-family: var(--font-heading);
  line-height: 1.12;
  font-size: 2.15rem;
  letter-spacing: -0.5px;
}

.hero-title-main {
  display: block;
  color: var(--color-red); /* Rojo Vibrante */
  font-weight: 900;
  text-transform: uppercase;
}

.hero-title-sub {
  display: block;
  color: var(--color-text-main); /* Gris carbón / negro */
  font-weight: 800;
  margin-top: 0.35rem;
}

/* Subtítulo P */
.hero-subtitle {
  color: var(--color-text-muted); /* Gris oscuro */
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.55;
  max-width: 540px;
}

.hero-subtitle strong {
  color: var(--color-red);
  font-weight: 700;
}

/* Lista de Servicios en Hero */
.hero-services-list {
  background-color: var(--color-white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg); /* 12px */
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  margin-top: 0.25rem;
}

.hero-services-list h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-blue-dark);
  margin-bottom: 0.85rem;
  font-weight: 700;
}

.services-items {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--color-text-dark);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.4;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.service-item:hover {
  transform: translateX(4px);
  color: var(--color-cyan-hover);
}

/* Viñeta en rojo vibrante (#E30613) */
.service-bullet {
  width: 9px;
  height: 9px;
  background-color: var(--color-red);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.45rem;
  box-shadow: 0 0 0 3px var(--color-red-light);
  transition: transform var(--transition-fast);
}

.service-item:hover .service-bullet {
  transform: scale(1.3);
}

/* Botones de acción del Hero */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-md); /* 10px */
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
}

.btn-primary {
  background-color: var(--color-cyan);
  color: var(--color-white);
  box-shadow: var(--shadow-cyan);
}

.btn-primary:hover {
  background-color: var(--color-cyan-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 154, 224, 0.45);
}

.btn-secondary {
  background-color: var(--color-white);
  color: var(--color-blue-dark);
  border: 1.5px solid var(--color-border);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background-color: var(--color-bg-body);
  border-color: var(--color-cyan);
  color: var(--color-cyan);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-qr-action {
  background-color: #0F172A;
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.btn-qr-action:hover {
  background-color: #000000;
  color: #38BDF8;
  transform: translateY(-2px);
}

/* Columna Derecha (Visual: SMARTPHONE MOCKUP LIMPIO, SIN SOLAPAMIENTOS) */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.phone-mockup-wrapper {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.smartphone-device {
  background: #0F172A;
  border: 10px solid #1E293B;
  border-radius: 42px;
  box-shadow: 0 25px 60px -15px rgba(0, 71, 127, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.12);
  overflow: hidden;
  position: relative;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.smartphone-device:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 70px -15px rgba(0, 71, 127, 0.45);
}

/* Barra superior del teléfono */
.phone-status-bar {
  background-color: var(--color-white);
  padding: 0.5rem 1rem 0.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #334155;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
}

.phone-notch {
  width: 70px;
  height: 12px;
  background-color: #0F172A;
  border-radius: var(--radius-full);
  margin: 0 auto;
}

/* Pantalla interna de la App */
.phone-screen {
  background-color: #F8FAFC;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 480px;
  position: relative;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #E2E8F0;
}

.app-header-logo {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--color-text-main);
}

.app-header-mark {
  width: 18px;
  height: 18px;
  background-color: var(--color-red);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.6rem;
  font-weight: 900;
}

.app-hero-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #F1F5F9 100%);
  border-radius: var(--radius-md);
  padding: 0.9rem 0.75rem;
  text-align: center;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.app-hero-logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--color-cyan);
  letter-spacing: -0.5px;
}

.app-hero-logo span {
  color: var(--color-cyan-hover);
}

.app-hero-slogan {
  font-size: 0.65rem;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-top: 0.15rem;
}

.app-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-dark);
  text-align: center;
  margin-top: 0.2rem;
}

/* Grid de Botones en App */
.app-grid-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.app-action-card {
  background-color: var(--color-white);
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 0.85rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.app-action-card:hover, .app-action-card.active {
  border-color: var(--color-cyan);
  background-color: var(--color-cyan-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 154, 224, 0.15);
}

.app-action-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.2rem;
}

.icon-folder { background-color: #FEF3C7; color: #D97706; }
.icon-payment { background-color: #D1FAE5; color: #059669; }
.icon-verify { background-color: #DBEAFE; color: var(--color-cyan); }
.icon-cert { background-color: #FEE2E2; color: var(--color-red); }

.app-action-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.2;
}

/* Barra inferior del smartphone */
.phone-bottom-nav {
  margin-top: auto;
  background-color: var(--color-white);
  border-top: 1px solid #E2E8F0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.5rem 0.25rem 0.25rem;
}

.phone-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.6rem;
  color: #94A3B8;
}

.phone-nav-item.active {
  color: var(--color-cyan);
  font-weight: 700;
}

.phone-nav-item svg {
  width: 16px;
  height: 16px;
}

/* Mano táctil indicadora (👆) */
.hand-touch-indicator {
  position: absolute;
  bottom: 85px;
  right: -15px;
  z-index: 10;
  pointer-events: none;
  animation: tapEffect 3s infinite ease-in-out;
}

.hand-touch-svg {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
}

.touch-ripple {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 154, 224, 0.4);
  animation: ripplePulse 3s infinite;
}

@keyframes tapEffect {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-10px, -15px) scale(0.92); }
  35% { transform: translate(-10px, -15px) scale(0.88); }
  50% { transform: translate(0, 0) scale(1); }
}

@keyframes ripplePulse {
  0%, 20% { transform: scale(0.5); opacity: 0; }
  30% { opacity: 1; }
  45% { transform: scale(2.2); opacity: 0; }
  100% { opacity: 0; }
}

/* Floating Status Badges en el Mockup (Desktop) */
.floating-badge {
  display: none; /* Visible en desktop */
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-blue-dark);
  z-index: 4;
}

.badge-top-left {
  top: 25px;
  left: -40px;
  border-left: 4px solid var(--color-cyan);
}

.badge-bottom-right {
  bottom: 30px;
  right: -35px;
  border-left: 4px solid var(--color-red);
}

/* 4.5 SECCIÓN DEDICADA DEL EQUIPO DE ATENCIÓN (LIMPIA Y DESTACADA)
   ========================================================================== */
.team-citizen-section {
  background-color: var(--color-white);
  padding-top: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--color-border);
}

.team-card-banner {
  background: linear-gradient(135deg, var(--color-cyan-light) 0%, #FFFFFF 100%);
  border: 1.5px solid rgba(0, 154, 224, 0.25);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.team-photo-frame {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--color-white);
}

.team-clean-img {
  width: 100%;
  height: auto;
  display: block;
}

.team-content-box {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-align: center;
}

.team-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: rgba(0, 154, 224, 0.12);
  color: var(--color-blue-dark);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  align-self: center;
}

.team-headline {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-blue-dark);
}

.team-copy {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  max-width: 550px;
  margin: 0 auto;
}

/* 5. SECCIÓN DE SERVICIOS EXPANDIDA
   ========================================================================== */
.services-section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  background-color: var(--color-bg-body);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.section-tag {
  display: inline-block;
  background-color: var(--color-cyan-light);
  color: var(--color-cyan);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.65rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.95rem;
  font-weight: 800;
  color: var(--color-text-main);
  line-height: 1.2;
}

.section-title span {
  color: var(--color-red);
}

.section-desc {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin-top: 0.65rem;
}

.services-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.service-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--color-cyan);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 154, 224, 0.3);
}

.service-card:hover::before {
  opacity: 1;
}

.card-icon-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.card-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-cyan-light);
  color: var(--color-cyan);
  transition: transform var(--transition-normal);
}

.service-card:hover .card-icon-box {
  transform: scale(1.1);
  background-color: var(--color-cyan);
  color: var(--color-white);
}

.card-status-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  background-color: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

.card-title-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.card-red-bullet {
  width: 8px;
  height: 8px;
  background-color: var(--color-red);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px var(--color-red-light);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.3;
}

.card-description {
  color: var(--color-text-muted);
  font-size: 0.925rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.card-action-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-cyan);
  font-weight: 600;
  font-size: 0.88rem;
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.card-action-link:hover {
  color: var(--color-cyan-hover);
  gap: 0.7rem;
}

/* 6. BANNER DINÁMICO Y DESCARGA DIRECTA (SIN QRS EN BOTONES)
   ========================================================================== */
.prefooter-banner-section {
  position: relative;
  padding-top: 3.5rem;
  padding-bottom: 4rem;
  background-color: var(--color-white);
  overflow: hidden;
}

.dynamic-slanted-banner {
  background-color: var(--color-blue-dark);
  color: var(--color-white);
  padding: 1.75rem 2rem;
  border-radius: var(--radius-lg);
  margin-bottom: 3rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  transform: skewY(-1.2deg);
  transition: transform var(--transition-normal);
}

.dynamic-slanted-banner:hover {
  transform: skewY(-0.5deg) scale(1.01);
}

.banner-inner-content {
  transform: skewY(1.2deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.65rem;
}

.banner-badge-cyan {
  display: inline-block;
  background-color: var(--color-cyan);
  color: var(--color-white);
  font-size: 1.15rem;
  font-weight: 800;
  font-style: italic;
  padding: 0.35rem 1.25rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.banner-text-italic {
  font-size: 1.45rem;
  font-weight: 700;
  font-style: italic;
  color: var(--color-white);
  letter-spacing: 0.2px;
  line-height: 1.3;
}

/* Sección de Descarga Directa */
.download-section-wrapper {
  background-color: #F8FAFC;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem 1.5rem;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.download-header-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.badge-download-free {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--color-cyan);
  color: var(--color-white);
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: var(--shadow-cyan);
}

.download-subtitle-direct {
  color: var(--color-text-muted);
  font-size: 1rem;
  max-width: 580px;
}

/* Botones Directos de Tiendas (Google Play, App Store, Web) */
.direct-store-buttons-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  width: 100%;
}

.btn-store-direct {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  background-color: #0F172A;
  color: var(--color-white);
  width: 100%;
  max-width: 320px;
  padding: 1rem 1.35rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  transition: all var(--transition-normal);
  cursor: pointer;
}

.btn-store-direct:hover {
  background-color: #000000;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 71, 127, 0.25);
  border-color: var(--color-cyan);
}

.btn-store-direct.web-portal-btn {
  background-color: var(--color-blue-dark);
  border-color: rgba(0, 154, 224, 0.4);
}

.btn-store-direct.web-portal-btn:hover {
  background-color: var(--color-blue-darker);
}

.store-direct-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  fill: currentColor;
}

.store-direct-texts {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: left;
}

.store-direct-pretitle {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #94A3B8;
  font-weight: 600;
}

.store-direct-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-white);
  font-family: var(--font-heading);
}

/* Botón especial para abrir el QR Ciudadano */
.qr-share-cta-row {
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px dashed var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.btn-open-share-qr {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--color-white);
  color: var(--color-blue-dark);
  border: 2px solid var(--color-cyan);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.btn-open-share-qr:hover {
  background-color: var(--color-cyan-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* 7. BOTÓN FLOTANTE PERMANENTE PARA MOSTRAR QR DESDE EL CELULAR
   ========================================================================== */
.floating-qr-trigger {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 990;
  background-color: var(--color-cyan);
  color: var(--color-white);
  padding: 0.75rem 1.15rem;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(0, 154, 224, 0.45);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  border: 2px solid var(--color-white);
  transition: all var(--transition-fast);
}

.floating-qr-trigger:hover {
  transform: scale(1.05);
  background-color: var(--color-blue-dark);
}

.floating-qr-pulse {
  width: 8px;
  height: 8px;
  background-color: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10B981;
}

/* 8. MODAL DE CÓDIGO QR PARA MOSTRAR DESDE EL TELÉFONO
   ========================================================================== */
.qr-share-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.qr-share-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.qr-share-card {
  background: var(--color-white);
  border-radius: var(--radius-2xl);
  max-width: 440px;
  width: 100%;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px) scale(0.96);
  transition: transform var(--transition-normal);
}

.qr-share-modal-overlay.open .qr-share-card {
  transform: translateY(0) scale(1);
}

.qr-share-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #F1F5F9;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-text-muted);
}

.qr-share-close:hover {
  background: var(--color-red-light);
  color: var(--color-red);
}

.qr-display-box {
  width: 240px;
  height: 240px;
  margin: 1.25rem auto;
  background: #FFFFFF;
  padding: 0.75rem;
  border-radius: var(--radius-xl);
  border: 3px solid var(--color-cyan);
  box-shadow: 0 10px 25px rgba(0, 154, 224, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-share-img {
  width: 100%;
  height: 100%;
  display: block;
}

.qr-modal-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-blue-dark);
}

.qr-modal-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: 0.35rem;
  line-height: 1.45;
}

.qr-share-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.toast-copy {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0F172A;
  color: #FFFFFF;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 10000;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transition: transform var(--transition-normal);
  pointer-events: none;
}

.toast-copy.show {
  transform: translateX(-50%) translateY(0);
}

/* 9. FOOTER INSTITUCIONAL
   ========================================================================== */
.site-footer {
  background-color: #002A4D;
  color: #CBD5E1;
  padding-top: 3.5rem;
  padding-bottom: 2rem;
  border-top: 4px solid var(--color-cyan);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-white);
}

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

.footer-description {
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 320px;
}

.footer-title {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 24px;
  height: 2px;
  background-color: var(--color-red);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--color-cyan);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.footer-contact-icon {
  color: var(--color-cyan);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: #94A3B8;
}

/* 10. MEDIA QUERIES (DESKTOP & TABLETS)
   ========================================================================== */
@media (min-width: 640px) {
  .hero-title { font-size: 2.6rem; }
  .direct-store-buttons-grid {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .btn-store-direct {
    flex: 1 1 220px;
  }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .qr-share-buttons { flex-direction: row; }
}

@media (min-width: 992px) {
  .site-header { padding-top: 1.25rem; padding-bottom: 1.25rem; }
  .logo-ibarrago { font-size: 2.25rem; }
  .logo-alcaldia-mark { width: 44px; height: 44px; }
  .logo-alcaldia-title { font-size: 1.3rem; }
  .header-slogan { font-size: 1.05rem; }

  /* Grid 50/50 limpio */
  .hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3.5rem;
  }

  .hero-title { font-size: 3.1rem; }
  .phone-mockup-wrapper { max-width: 335px; }

  /* Mostrar floating badges en desktop */
  .floating-badge { display: flex; align-items: center; gap: 0.4rem; }

  /* Banner de equipo horizontal */
  .team-card-banner {
    flex-direction: row;
    text-align: left;
    padding: 2rem 2.5rem;
  }
  .team-photo-frame { max-width: 360px; }
  .team-content-box { text-align: left; }
  .team-tag { align-self: flex-start; }

  .services-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }

  .dynamic-slanted-banner { padding: 2.25rem 3.5rem; }
  .banner-inner-content { flex-direction: row; justify-content: center; gap: 1.5rem; }
  .banner-badge-cyan { font-size: 1.5rem; }
  .banner-text-italic { font-size: 1.85rem; }

  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 1200px) {
  .hero-title { font-size: 3.4rem; }
  .services-cards-grid { grid-template-columns: repeat(4, 1fr); }
}
