/* ==========================================================================
   AMPI MEM - DIRECTORIO DIGITAL Y PORTAL DE GESTIÓN 2026
   Look & Feel Oficial de www.ampimem.org
   ========================================================================== */

:root {
  /* Official Palette from ampimem.org */
  --ampi-green: #218a5c;
  --ampi-green-hover: #19704a;
  --ampi-green-light: #e8f5ef;
  --ampi-green-border: rgba(33, 138, 92, 0.25);

  --ampi-dark: #091E3E;
  --ampi-dark-deep: #061429;
  --ampi-dark-surface: #0d264f;

  --ampi-light: #EEF9FF;
  --ampi-gold: #f59e0b;
  --ampi-gold-dark: #d97706;

  --wa-green: #25d366;
  --wa-green-hover: #128c7e;

  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;
  --white:     #ffffff;

  /* Typography matching ampimem.org */
  --font-body: 'DM Sans', sans-serif;
  --font-heading: 'Rubik', sans-serif;
  --font-accent: 'Nunito', sans-serif;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(9, 30, 62, 0.12);
  --shadow-hover: 0 16px 32px rgba(9, 30, 62, 0.16);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.25s ease-in-out;
}

/* Global Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: #f5f8fa;
  color: var(--slate-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-fluid {
  width: 100%;
  padding: 0 2rem;
}

/* Helpers */
.text-ampi-green { color: var(--ampi-green) !important; }
.text-gold { color: var(--ampi-gold) !important; }
.bg-gold { background-color: var(--ampi-gold) !important; }
.ampi-green-bg { background-color: var(--ampi-green) !important; color: var(--white) !important; }
.navy-bg { background-color: var(--ampi-dark) !important; color: var(--white) !important; }
.blue-bg { background-color: #0284c7 !important; color: var(--white) !important; }
.purple-bg { background-color: #7e22ce !important; color: var(--white) !important; }

/* ==========================================================================
   WHATSAPP FLOATING BUTTON (Official from ampimem.org)
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: var(--wa-green);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  text-decoration: none;
  transition: var(--transition);
}

.whatsapp-float:hover {
  background-color: var(--wa-green-hover);
  transform: scale(1.08);
}

.whatsapp-float img {
  width: 32px;
  height: 32px;
}

.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  background: var(--ampi-dark);
  color: var(--white);
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   TOPBAR (Matching ampimem.org)
   ========================================================================== */
.topbar-container {
  background-color: var(--ampi-dark-deep);
  color: #d1d5db;
  font-size: 0.825rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.45rem 0;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-info {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.topbar-info span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.topbar-info i {
  color: var(--ampi-green);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.topbar-socials {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.topbar-socials a {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  text-decoration: none;
  transition: var(--transition);
}

.topbar-socials a:hover {
  background-color: var(--ampi-green);
  border-color: var(--ampi-green);
}

.btn-portal-access {
  background: rgba(33, 138, 92, 0.25);
  border: 1px solid var(--ampi-green);
  color: #6ee7b7;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.775rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.btn-portal-access:hover {
  background: var(--ampi-green);
  color: var(--white);
}

/* ==========================================================================
   NAVBAR (Matching ampimem.org)
   ========================================================================== */
.main-navbar-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--ampi-dark);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  padding: 0.75rem 0;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.ampi-logo-header {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-item {
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.4rem 0.2rem;
  transition: var(--transition);
  position: relative;
}

.nav-item:hover,
.nav-item.active-nav {
  color: var(--ampi-green);
}

.nav-item.active-nav::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--ampi-green);
}

.navbar-cta-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.btn-admin-nav {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: var(--transition);
}

.btn-admin-nav:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--ampi-green);
  color: #a7f3d0;
}

.btn-platicamos {
  background-color: var(--ampi-green);
  color: var(--white);
  text-decoration: none;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(33, 138, 92, 0.35);
}

.btn-platicamos:hover {
  background-color: var(--ampi-green-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.directory-hero {
  background: radial-gradient(circle at 75% 20%, #12386e 0%, var(--ampi-dark) 50%, var(--ampi-dark-deep) 100%);
  color: var(--white);
  padding: 4.5rem 0 3.5rem;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 960px;
}

.hero-label-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #a7f3d0;
  margin-bottom: 1.25rem;
}

.dot-live {
  width: 8px;
  height: 8px;
  background-color: var(--ampi-green);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(33, 138, 92, 0.7);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(33, 138, 92, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(33, 138, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(33, 138, 92, 0); }
}

.hero-main-title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1.15rem;
}

.hero-lead {
  font-size: 1.1rem;
  color: #cbd5e1;
  max-width: 800px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

/* KPI Bar */
.hero-kpi-bar {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 1.15rem 2.25rem;
  gap: 2.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.kpi-metric-item {
  text-align: center;
}

.kpi-metric-num {
  font-family: var(--font-heading);
  font-size: 1.95rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.kpi-metric-label {
  font-size: 0.775rem;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.kpi-metric-sep {
  width: 1px;
  height: 38px;
  background: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   DIRECTORY SECTION & FILTER CARD
   ========================================================================== */
.directory-section {
  padding: 2.5rem 0 5rem;
}

.search-filter-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--slate-200);
  padding: 1.75rem 2rem;
  margin-top: -3.5rem;
  position: relative;
  z-index: 10;
  margin-bottom: 2rem;
}

/* Search Box */
.search-input-box {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.search-box-icon {
  position: absolute;
  left: 1.25rem;
  font-size: 1.25rem;
  color: var(--slate-400);
  pointer-events: none;
}

.search-input-box input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.05rem;
  padding: 1.15rem 3.5rem 1.15rem 3.25rem;
  border-radius: var(--radius-lg);
  border: 2px solid var(--slate-200);
  background-color: var(--slate-50);
  color: var(--slate-900);
  transition: var(--transition);
}

.search-input-box input:focus {
  outline: none;
  background-color: var(--white);
  border-color: var(--ampi-green);
  box-shadow: 0 0 0 4px rgba(33, 138, 92, 0.15);
}

.btn-clear-search {
  position: absolute;
  right: 1.25rem;
  width: 28px;
  height: 28px;
  background: var(--slate-200);
  border: none;
  border-radius: 50%;
  color: var(--slate-600);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Category Tabs */
.category-selection-tabs {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border-bottom: 1px solid var(--slate-200);
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  overflow-x: auto;
}

.cat-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--slate-600);
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
  transition: var(--transition);
}

.cat-tab-btn:hover {
  background-color: var(--slate-100);
  color: var(--ampi-dark);
}

.cat-tab-btn.active {
  background-color: var(--ampi-green);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(33, 138, 92, 0.3);
}

.cat-badge {
  background: rgba(0, 0, 0, 0.08);
  font-size: 0.775rem;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
}

.cat-tab-btn.active .cat-badge {
  background: rgba(255, 255, 255, 0.25);
  color: var(--white);
}

/* Secondary Filters */
.filter-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.filter-opt-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-600);
}

.form-select-ampi {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.55rem 2.2rem 0.55rem 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-300);
  background-color: var(--white);
  color: var(--slate-800);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23218a5c'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 1rem;
  appearance: none;
  -webkit-appearance: none;
}

.form-select-ampi:focus {
  outline: none;
  border-color: var(--ampi-green);
}

.filter-chips-cluster {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chip-filter-btn {
  font-family: var(--font-body);
  font-size: 0.825rem;
  font-weight: 600;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--slate-300);
  background: var(--white);
  color: var(--slate-700);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.chip-filter-btn:hover {
  border-color: var(--ampi-green);
  color: var(--ampi-green);
}

.chip-filter-btn.active {
  background-color: var(--ampi-green-light);
  border-color: var(--ampi-green);
  color: var(--ampi-green);
  font-weight: 700;
}

.view-mode-toggle-group {
  display: flex;
  align-items: center;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.btn-toggle-view {
  background: var(--white);
  border: none;
  padding: 0.55rem 0.85rem;
  color: var(--slate-500);
  cursor: pointer;
  transition: var(--transition);
}

.btn-toggle-view:hover {
  background: var(--slate-100);
  color: var(--slate-800);
}

.btn-toggle-view.active {
  background: var(--slate-100);
  color: var(--ampi-green);
}

/* Results Feedback Bar */
.results-feedback-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--slate-200);
  font-size: 0.85rem;
  color: var(--slate-500);
}

.btn-reset-filters {
  background: none;
  border: none;
  color: var(--ampi-green);
  font-size: 0.825rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-reset-filters:hover {
  text-decoration: underline;
}

/* ==========================================================================
   OFFICIAL SPONSORS STRIP (ampimem.org real assets)
   ========================================================================== */
.official-sponsors-strip {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.15rem 2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.sponsors-title-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--ampi-green);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sponsors-logos-container {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.sponsor-brand-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  transition: var(--transition);
}

.sponsor-brand-img:hover {
  opacity: 1;
  transform: scale(1.08);
}

/* ==========================================================================
   DIRECTORY CARDS & GRID
   ========================================================================== */
.directory-cards-container {
  display: grid;
  gap: 1.75rem;
}

.directory-cards-container.view-grid {
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}

/* Individual Advisor Card */
.advisor-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.advisor-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--ampi-green-border);
}

.card-media {
  position: relative;
  width: 100%;
  height: 270px;
  background-color: var(--slate-100);
  overflow: hidden;
  cursor: pointer;
}

.advisor-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.advisor-card:hover .advisor-photo {
  transform: scale(1.05);
}

.photo-fallback-avatar {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(135deg, var(--ampi-dark) 0%, var(--ampi-green) 100%);
}

.card-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 30, 62, 0.05) 0%, rgba(9, 30, 62, 0.75) 100%);
  pointer-events: none;
}

.badge-type {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.725rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-socio {
  background: rgba(9, 30, 62, 0.92);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.5);
}

.badge-afiliado {
  background: rgba(33, 138, 92, 0.92);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.company-logo-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  background: var(--white);
  border-radius: 50%;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  border: 2px solid var(--white);
}

.company-logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.card-verified-tag {
  position: absolute;
  bottom: 14px;
  left: 12px;
  font-size: 0.725rem;
  color: #a7f3d0;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.card-body {
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ampi-dark);
  line-height: 1.3;
  margin-bottom: 0.35rem;
  cursor: pointer;
  transition: var(--transition);
}

.card-name:hover {
  color: var(--ampi-green);
}

.card-agency {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-600);
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.card-location {
  font-size: 0.8rem;
  color: var(--slate-500);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.card-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.15rem;
}

.cred-pill {
  font-size: 0.675rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-transform: uppercase;
}

.cred-sedeco {
  background: var(--ampi-green-light);
  color: var(--ampi-green);
  border: 1px solid var(--ampi-green-border);
}

.cred-ec0110 {
  background: #fef3c7;
  color: var(--ampi-gold-dark);
  border: 1px solid rgba(217, 119, 6, 0.3);
}

.cred-antiguedad {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid rgba(29, 78, 216, 0.2);
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--slate-100);
}

.btn-profile-view {
  background: var(--slate-100);
  color: var(--ampi-dark);
  border: 1px solid var(--slate-200);
  font-family: var(--font-body);
  font-size: 0.825rem;
  font-weight: 700;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.btn-profile-view:hover {
  background: var(--ampi-dark);
  color: var(--white);
  border-color: var(--ampi-dark);
}

.btn-icon-action {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
}

.btn-wa-action {
  background: var(--wa-green);
  color: var(--white);
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.35);
}

.btn-wa-action:hover {
  background: var(--wa-green-hover);
  transform: translateY(-2px);
}

.btn-call-action {
  background: var(--ampi-green-light);
  color: var(--ampi-green);
  border: 1px solid var(--ampi-green-border);
}

.btn-call-action:hover {
  background: var(--ampi-green);
  color: var(--white);
  transform: translateY(-2px);
}

/* LIST VIEW MODE */
.directory-cards-container.view-list {
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.directory-cards-container.view-list .advisor-card {
  flex-direction: row;
  align-items: center;
  padding: 0.75rem 1.25rem;
}

.directory-cards-container.view-list .card-media {
  width: 65px;
  height: 65px;
  min-width: 65px;
  border-radius: var(--radius-md);
}

.directory-cards-container.view-list .card-media-overlay,
.directory-cards-container.view-list .company-logo-badge,
.directory-cards-container.view-list .card-verified-tag,
.directory-cards-container.view-list .badge-type {
  display: none;
}

.directory-cards-container.view-list .card-body {
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr 1.5fr;
  align-items: center;
  gap: 1rem;
}

.directory-cards-container.view-list .card-name {
  font-size: 1rem;
  margin-bottom: 0;
}

.directory-cards-container.view-list .card-agency,
.directory-cards-container.view-list .card-location,
.directory-cards-container.view-list .card-credentials {
  margin-bottom: 0;
}

.directory-cards-container.view-list .card-actions {
  display: flex;
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* ==========================================================================
   NOTARIOS DE CASA SECTION
   ========================================================================== */
.notarios-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.75rem;
}

.notario-item-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  transition: var(--transition);
}

.notario-item-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--ampi-green);
}

.notario-photo-box {
  width: 90px;
  height: 110px;
  min-width: 90px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--slate-100);
}

.notario-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.notario-details-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.notario-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ampi-green);
  background: var(--ampi-green-light);
  border: 1px solid var(--ampi-green-border);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.35rem;
  width: fit-content;
}

.notario-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ampi-dark);
  line-height: 1.3;
  margin-bottom: 0.35rem;
}

.notario-address-text {
  font-size: 0.775rem;
  color: var(--slate-500);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.notario-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--ampi-dark);
  color: var(--white);
  text-decoration: none;
  font-size: 0.825rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  width: fit-content;
  transition: var(--transition);
}

.notario-call-btn:hover {
  background: var(--ampi-green);
  transform: translateY(-1px);
}

/* ==========================================================================
   OFFICIAL FOOTER (Matching ampimem.org)
   ========================================================================== */
.official-ampi-footer {
  background-color: var(--ampi-dark-deep);
  color: #d1d5db;
  padding: 4.5rem 0 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 2fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-logo-card {
  background: var(--ampi-green);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.footer-brand-logo {
  max-width: 170px;
  height: auto;
}

.footer-title h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background-color: var(--ampi-green);
}

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

.contact-item i {
  font-size: 1.15rem;
  margin-top: 0.2rem;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-nav-list a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
}

.footer-nav-list a:hover {
  color: var(--white);
  transform: translateX(4px);
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.825rem;
  color: #94a3b8;
}

/* ==========================================================================
   ADMIN PORTAL VIEW (PLATAFORMA COMPLETA DE GESTIÓN)
   ========================================================================== */
#adminPortalView {
  background-color: #f1f5f9;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-top-nav {
  background-color: var(--ampi-dark);
  color: var(--white);
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.admin-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.admin-header-logo {
  height: 44px;
  width: auto;
}

.admin-title-group {
  display: flex;
  flex-direction: column;
}

.admin-portal-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
}

.admin-portal-badge {
  font-size: 0.75rem;
  color: #a7f3d0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.admin-user-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.825rem;
}

.admin-user-icon {
  font-size: 1.75rem;
  color: var(--ampi-green);
}

.admin-user-info div {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.admin-user-info span {
  color: #94a3b8;
  font-size: 0.725rem;
}

.btn-exit-admin {
  background: var(--ampi-green);
  color: var(--white);
  border: none;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: var(--transition);
}

.btn-exit-admin:hover {
  background: var(--ampi-green-hover);
}

/* Admin Main Layout */
.admin-main-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  flex-grow: 1;
}

.admin-sidebar {
  background: var(--white);
  border-right: 1px solid var(--slate-200);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.admin-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.admin-nav-item {
  width: 100%;
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate-700);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  transition: var(--transition);
}

.admin-nav-item span {
  flex-grow: 1;
  margin-left: 0.75rem;
}

.admin-nav-item i {
  font-size: 1.05rem;
  color: var(--slate-500);
}

.admin-nav-item:hover {
  background-color: var(--slate-100);
  color: var(--ampi-dark);
}

.admin-nav-item.active {
  background-color: var(--ampi-green-light);
  color: var(--ampi-green);
  font-weight: 700;
}

.admin-nav-item.active i {
  color: var(--ampi-green);
}

.admin-nav-counter {
  background: rgba(33, 138, 92, 0.15);
  color: var(--ampi-green);
  font-size: 0.75rem;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
}

.admin-sidebar-footer {
  padding-top: 1.5rem;
  border-top: 1px solid var(--slate-200);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--ampi-green);
}

.admin-content-pane {
  padding: 2.25rem 2.5rem;
  overflow-y: auto;
}

.admin-tab-pane {
  display: none;
}

.admin-tab-pane.active {
  display: block;
  animation: fadeInPane 0.25s ease;
}

@keyframes fadeInPane {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.admin-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--slate-200);
  padding-bottom: 1.25rem;
}

.admin-page-header h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--ampi-dark);
  margin-bottom: 0.25rem;
}

.admin-page-header p {
  color: var(--slate-500);
  font-size: 0.95rem;
}

.admin-header-buttons {
  display: flex;
  gap: 0.75rem;
}

/* Common Buttons */
.btn-primary-ampi {
  background-color: var(--ampi-green);
  color: var(--white);
  border: none;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.btn-primary-ampi:hover {
  background-color: var(--ampi-green-hover);
  transform: translateY(-1px);
}

.btn-primary-ampi.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

.btn-outline-ampi {
  background: var(--white);
  color: var(--slate-700);
  border: 1px solid var(--slate-300);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.btn-outline-ampi:hover {
  background: var(--slate-100);
  border-color: var(--ampi-green);
  color: var(--ampi-green);
}

/* KPI Cards in Admin */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.admin-kpi-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.kpi-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.kpi-info-wrap {
  display: flex;
  flex-direction: column;
}

.kpi-num {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ampi-dark);
  line-height: 1.1;
}

.kpi-title {
  font-size: 0.825rem;
  color: var(--slate-600);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.kpi-trend {
  font-size: 0.75rem;
  color: var(--slate-500);
  font-weight: 600;
}

.admin-dashboard-widgets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

.admin-widget-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-sm);
}

.widget-header h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--ampi-dark);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cert-stats-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cert-stat-row {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
}

.cert-bar-container {
  height: 8px;
  background: var(--slate-100);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.cert-bar-fill {
  height: 100%;
  background: var(--ampi-green);
  border-radius: var(--radius-full);
}

.zonas-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.zona-badge {
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.825rem;
  color: var(--slate-700);
}

.zona-badge strong {
  color: var(--ampi-green);
}

/* ==========================================================================
   ADMIN DATA TABLE
   ========================================================================== */
.admin-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  gap: 1rem;
}

.toolbar-search {
  position: relative;
  max-width: 420px;
  width: 100%;
}

.toolbar-search i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--slate-400);
}

.toolbar-search input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.875rem;
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-300);
  background: var(--white);
}

.toolbar-search input:focus {
  outline: none;
  border-color: var(--ampi-green);
}

.toolbar-filters {
  display: flex;
  gap: 0.75rem;
}

.admin-select {
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-300);
  background: var(--white);
}

.admin-table-responsive {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.admin-data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.admin-data-table th {
  background: #f8fafc;
  color: var(--slate-600);
  font-weight: 700;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--slate-200);
  white-space: nowrap;
}

.admin-data-table td {
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--slate-100);
  vertical-align: middle;
}

.admin-data-table tr:hover td {
  background-color: #f8fafc;
}

.table-avatar-img {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.table-avatar-fallback {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--ampi-dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.status-badge-active {
  background: var(--ampi-green-light);
  color: var(--ampi-green);
  font-size: 0.725rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.table-actions-cell {
  display: flex;
  gap: 0.4rem;
}

.btn-tbl-action {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-200);
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--slate-600);
  transition: var(--transition);
}

.btn-tbl-action:hover {
  background: var(--ampi-green);
  color: var(--white);
  border-color: var(--ampi-green);
}

.btn-tbl-delete:hover {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  color: var(--white) !important;
}

/* ==========================================================================
   ADMIN FORM
   ========================================================================== */
.admin-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
}

.admin-grid-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-section-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--ampi-dark);
  font-weight: 700;
  border-bottom: 1px solid var(--slate-200);
  padding-bottom: 0.5rem;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--slate-700);
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-300);
  background: var(--white);
  color: var(--slate-800);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--ampi-green);
  box-shadow: 0 0 0 3px rgba(33, 138, 92, 0.12);
}

.form-checkbox-cluster {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--slate-50);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
}

.custom-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  cursor: pointer;
}

.form-submit-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.alert-box-success {
  background: var(--ampi-green-light);
  color: var(--ampi-green);
  border: 1px solid var(--ampi-green-border);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Backup Cards */
.admin-backup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.backup-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  padding: 2.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.backup-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.backup-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--ampi-dark);
  margin-bottom: 0.5rem;
}

.backup-card p {
  color: var(--slate-500);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.upload-dummy-dropzone {
  border: 2px dashed var(--slate-300);
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-md);
  background: var(--slate-50);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--slate-500);
  font-size: 0.85rem;
}

.upload-dummy-dropzone:hover {
  border-color: var(--ampi-green);
  background: var(--ampi-green-light);
  color: var(--ampi-green);
}

/* Reviews List in Admin */
.admin-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-review-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-review-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* ==========================================================================
   MODAL SYSTEMS (PROFILE, CONTACT, MISION)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 30, 62, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
}

.modal-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 800px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-hover);
  max-height: 90vh;
  overflow-y: auto;
  animation: modalUp 0.25s ease-out;
}

@keyframes modalUp {
  from { transform: translateY(15px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-card.modal-contact-card { max-width: 500px; }
.modal-card.modal-mision-card { max-width: 650px; }

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  background: var(--slate-100);
  border: none;
  border-radius: 50%;
  color: var(--slate-600);
  font-size: 1.15rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: var(--slate-200);
  color: var(--slate-900);
}

/* Profile Modal Content */
.profile-modal-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  padding: 2.5rem;
}

.profile-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile-avatar-wrap {
  width: 190px;
  height: 220px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 1rem;
  background: var(--slate-100);
}

.profile-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-direct-actions {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0.65rem;
  margin-top: 1rem;
}

.btn-contact-primary {
  background: var(--wa-green);
  color: var(--white);
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.35);
  transition: var(--transition);
}

.btn-contact-primary:hover {
  background: var(--wa-green-hover);
}

.btn-contact-secondary {
  background: var(--ampi-green-light);
  color: var(--ampi-green);
  border: 1px solid var(--ampi-green-border);
  text-decoration: none;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-contact-secondary:hover {
  background: var(--ampi-green);
  color: var(--white);
}

.profile-details-main h2 {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  color: var(--ampi-dark);
  margin-bottom: 0.25rem;
}

.profile-agency-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ampi-green);
  margin-bottom: 1.25rem;
}

.profile-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  background: var(--slate-50);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  margin-bottom: 1.25rem;
}

.profile-info-item {
  display: flex;
  flex-direction: column;
}

.profile-info-item span {
  font-size: 0.725rem;
  color: var(--slate-500);
  font-weight: 700;
  text-transform: uppercase;
}

.profile-info-item strong {
  font-size: 0.925rem;
  color: var(--slate-800);
}

/* Reviews Section in Profile */
.reviews-section {
  border-top: 1px solid var(--slate-200);
  padding-top: 1.25rem;
}

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

.reviews-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ampi-dark);
}

.review-item {
  background: var(--slate-50);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--ampi-green);
  margin-bottom: 0.75rem;
}

.review-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.2rem;
  font-size: 0.825rem;
  font-weight: 700;
}

.review-text {
  font-size: 0.825rem;
  color: var(--slate-600);
  font-style: italic;
}

/* Misión Modal */
.mision-modal-inner {
  padding: 2.5rem;
}

.mision-header-block {
  text-align: center;
  margin-bottom: 2rem;
}

.mision-crest-img {
  height: 55px;
  width: auto;
  margin-bottom: 1rem;
}

.mision-header-block h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--ampi-dark);
}

.mision-subtitle {
  font-size: 0.875rem;
  color: var(--ampi-green);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mision-text-card {
  background: var(--slate-50);
  border-left: 4px solid var(--ampi-green);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 1.25rem;
}

.mision-text-card h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--ampi-dark);
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mision-text-card p {
  font-size: 0.9rem;
  color: var(--slate-700);
  line-height: 1.6;
}

/* Contact Modal Inside */
.contact-card-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.contact-header-crest {
  font-size: 2.25rem;
  color: var(--ampi-green);
  margin-bottom: 0.5rem;
}

.contact-inner-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Empty State */
.empty-results-box {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 4rem 2rem;
  border: 1px dashed var(--slate-300);
  margin: 2rem 0;
}

.empty-state-icon {
  font-size: 3rem;
  color: var(--slate-400);
  margin-bottom: 1rem;
}

.empty-results-box h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--ampi-dark);
  margin-bottom: 0.5rem;
}

.empty-results-box p {
  color: var(--slate-500);
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-main-title { font-size: 2.2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-main-container { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-dashboard-widgets { grid-template-columns: 1fr; }
  .profile-modal-grid { grid-template-columns: 1fr; }
  .profile-avatar-wrap { width: 150px; height: 180px; }
}

@media (max-width: 768px) {
  .topbar-container { display: none; }
  .navbar-links { display: none; }
  .hero-main-title { font-size: 1.85rem; }
  
  .hero-kpi-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1.25rem;
  }
  .kpi-metric-sep { display: none; }

  .search-filter-card {
    padding: 1.25rem;
    margin-top: -2rem;
  }

  .filter-options-row {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-opt-item { width: 100%; justify-content: space-between; }
  .form-select-ampi { flex-grow: 1; }

  .footer-grid { grid-template-columns: 1fr; }
  .form-row-2, .form-row-3 { grid-template-columns: 1fr; }
  .cert-stat-row { grid-template-columns: 1fr; }
  .admin-backup-grid { grid-template-columns: 1fr; }
}
