/* Dashboard v3 - Más azul, simple y elegante (respeta paleta Viagico)
   Paleta base: #307582 (primary), #173F49 (dark), #4FACBB (accent)
*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root{
  --c1:#307582;              /* primary */
  --c2:#173F49;              /* dark */
  --c3:#4FACBB;              /* accent */

  --bg:#f2f6f9;
  --card: rgba(255,255,255,.92);
  --card-2: rgba(255,255,255,.86);
  --text:#162126;
  --muted:#516167;
  --border: rgba(23,63,73,.14);

  --shadow: 0 14px 34px rgba(23,63,73,.12);
  --shadow2: 0 18px 50px rgba(48,117,130,.22);

  --grad: linear-gradient(135deg, var(--c1), var(--c2));
  --grad-2: linear-gradient(135deg, var(--c3), var(--c1));
  --grad-soft: linear-gradient(135deg, rgba(79,172,187,.20), rgba(48,117,130,.08));
  --ring: 0 0 0 4px rgba(79,172,187,.18);
}

/* =============================
   Fondo (más azul, menos blanco)
   ============================= */
main.dashboard-active{
  position: relative;
  background:
    radial-gradient(1200px 700px at 12% 6%, rgba(79,172,187,.34), transparent 60%),
    radial-gradient(1100px 650px at 88% 18%, rgba(48,117,130,.30), transparent 62%),
    radial-gradient(900px 550px at 50% 92%, rgba(23,63,73,.18), transparent 55%),
    linear-gradient(180deg, #f7fafc 0%, #eef3f7 45%, #eaf1f6 100%) !important;
  background-attachment: fixed;
}

/* textura sutil */
main.dashboard-active::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    url("data:image/svg+xml,%3Csvg width='120' height='120' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='d' width='120' height='120' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='1' cy='1' r='1' fill='rgba(48,117,130,0.06)'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23d)'/%3E%3C/svg%3E");
  opacity:.55;
  pointer-events:none;
  z-index:0;
}

main .mainContainer .dashboard-container{ background:transparent; }

.dashboard-container{
  width:100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 34px 18px 42px;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  position: relative;
  z-index: 1;
}

/* =============================
   Welcome (hero)
   ============================= */
.dashboard-welcome{
  position: relative;
  border-radius: 22px;
  padding: 28px 28px 26px;
  background: linear-gradient(180deg, var(--card) 0%, var(--card-2) 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.dashboard-welcome::before{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(700px 280px at 18% 0%, rgba(79,172,187,.28), transparent 58%),
    radial-gradient(900px 320px at 92% 0%, rgba(48,117,130,.24), transparent 62%);
  pointer-events:none;
}

.dashboard-welcome::after{
  content:"";
  position:absolute;
  left:0; right:0; top:0;
  height: 4px;
  background: var(--grad);
}

.dashboard-welcome-header{
  position:relative;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}

.dashboard-welcome h1{
  margin:0 0 8px;
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text) !important;
}

.dashboard-welcome h1 span,
.dashboard-welcome h1 strong{
  background: var(--grad);
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
}

.dashboard-welcome p{
  margin:0;
  color: var(--muted) !important;
  line-height: 1.55;
  font-size: 15px;
  max-width: 72ch;
}

/* =============================
   Metrics
   ============================= */
.dashboard-metrics{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0 26px;
}

.dashboard-metric-card{
  background: linear-gradient(180deg, var(--card) 0%, rgba(255,255,255,.82) 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 18px 16px;
  box-shadow: 0 10px 26px rgba(0,0,0,.05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position:relative;
  overflow:hidden;
}

.dashboard-metric-card::before{
  content:"";
  position:absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--grad-2);
  opacity: .9;
}

.dashboard-metric-card::after{
  content:"";
  position:absolute;
  inset:auto -40px -40px auto;
  width: 170px; height: 170px;
  background: var(--grad-soft);
  border-radius: 50%;
  opacity:.95;
}

.dashboard-metric-card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow2);
  border-color: rgba(48,117,130,.26);
}

.dashboard-metric-card-icon{
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  background: var(--grad);
  box-shadow: 0 12px 22px rgba(48,117,130,.28);
  position:relative;
  z-index:1;
}

.dashboard-metric-card-value{
  position:relative;
  z-index:1;
  margin-top: 14px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
}

.dashboard-metric-card-label{
  position:relative;
  z-index:1;
  margin-top: 4px;
  color: var(--muted) !important;
  font-size: 13.5px;
  font-weight: 700;
}

/* =============================
   Actions
   ============================= */
.dashboard-actions{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-action-card{
  background: linear-gradient(180deg, var(--card) 0%, rgba(255,255,255,.82) 100%);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
  cursor:pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position:relative;
  overflow:hidden;
  text-align:left;
}

.dashboard-action-card::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(135deg, rgba(79,172,187,.18), rgba(23,63,73,0));
  opacity:.55;
  transition: opacity .18s ease;
}

.dashboard-action-card::after{
  content:"";
  position:absolute;
  top:-60px; right:-60px;
  width: 180px; height: 180px;
  background: radial-gradient(circle at 30% 30%, rgba(79,172,187,.32), transparent 60%);
  border-radius: 50%;
  opacity:.7;
}

.dashboard-action-card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow2);
  border-color: rgba(48,117,130,.28);
}
.dashboard-action-card:hover::before{ opacity: 1; }

.dashboard-action-card:focus-within{ box-shadow: var(--shadow2), var(--ring); }

.dashboard-action-card-icon{
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--grad);
  color: #fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 26px;
  box-shadow: 0 14px 26px rgba(48,117,130,.30);
  margin-bottom: 14px;
  position:relative;
  z-index:1;
}

/* soporta tu HTML actual (h3/p) + clases opcionales */
.dashboard-action-card h3,
.dashboard-action-card .dashboard-action-card-title{
  position:relative;
  z-index:1;
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text) !important;
  letter-spacing: -0.01em;
}

.dashboard-action-card p,
.dashboard-action-card .dashboard-action-card-description{
  position:relative;
  z-index:1;
  margin: 0;
  font-size: 14px;
  color: var(--muted) !important;
  line-height: 1.55;
}

.dashboard-action-card-badge{
  position:absolute;
  top: 16px;
  right: 16px;
  background: var(--grad);
  color:#fff;
  font-weight:800;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: 0 12px 22px rgba(48,117,130,.26);
  z-index:2;
}

/* =============================
   Onboarding Checklist
   ============================= */
.dashboard-onboarding{
  background: linear-gradient(180deg, var(--card) 0%, rgba(255,255,255,.88) 100%);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px 28px 26px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}

.dashboard-onboarding::before{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(600px 250px at 20% 0%, rgba(79,172,187,.20), transparent 55%),
    radial-gradient(700px 280px at 85% 0%, rgba(48,117,130,.16), transparent 60%);
  pointer-events:none;
}

.dashboard-onboarding-header{
  position: relative;
  margin-bottom: 22px;
}

.dashboard-onboarding-header h2{
  margin: 0 0 6px;
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.dashboard-onboarding-header p{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.dashboard-onboarding-checklist{
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.onboarding-item{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(255,255,255,.65);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all .2s ease;
  position: relative;
}

.onboarding-item:hover{
  border-color: rgba(48,117,130,.25);
  background: rgba(255,255,255,.85);
  box-shadow: 0 4px 12px rgba(0,0,0,.04);
}

.onboarding-item.completed{
  background: linear-gradient(135deg, rgba(79,172,187,.08) 0%, rgba(48,117,130,.05) 100%);
  border-color: rgba(79,172,187,.3);
}

.onboarding-item-icon{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(48,117,130,.1);
  color: var(--c1);
  flex-shrink: 0;
  font-size: 18px;
}

.onboarding-item.completed .onboarding-item-icon{
  background: linear-gradient(135deg, var(--c3), var(--c1));
  color: #fff;
}

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

.onboarding-item-content h3{
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.onboarding-item-content p{
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.onboarding-item-status{
  flex-shrink: 0;
}

.status-badge{
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.status-badge.pending{
  background: rgba(255,193,7,.15);
  color: #F59E0B;
}

.status-badge.completed{
  background: linear-gradient(135deg, rgba(79,172,187,.2), rgba(48,117,130,.15));
  color: var(--c1);
}

.status-badge.in-progress{
  background: rgba(59,130,246,.15);
  color: #3B82F6;
}

.status-badge.rejected{
  background: rgba(239,68,68,.15);
  color: #EF4444;
}

.btn-verificacion{
  padding: 10px 20px;
  background: var(--grad);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .2s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.btn-verificacion:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(48,117,130,.3);
}

.btn-verificacion:active{
  transform: translateY(0);
}

.btn-verificacion:disabled{
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.dashboard-onboarding-message{
  margin-top: 18px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(79,172,187,.1) 0%, rgba(48,117,130,.08) 100%);
  border: 1px solid rgba(79,172,187,.25);
  border-radius: 14px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.dashboard-onboarding-message .message-icon{
  color: var(--c1);
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.dashboard-onboarding-message .message-content{
  flex: 1;
}

.dashboard-onboarding-message .message-content p{
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}

.dashboard-onboarding-message.warning{
  background: linear-gradient(135deg, rgba(245,158,11,.1) 0%, rgba(239,68,68,.08) 100%);
  border-color: rgba(245,158,11,.3);
}

.dashboard-onboarding-message.warning .message-icon{
  color: #F59E0B;
}

.dashboard-onboarding-message.success{
  background: linear-gradient(135deg, rgba(16,185,129,.1) 0%, rgba(5,150,105,.08) 100%);
  border-color: rgba(16,185,129,.3);
}

.dashboard-onboarding-message.success .message-icon{
  color: #10B981;
}

@media (max-width: 768px){
  .onboarding-item{
    flex-wrap: wrap;
  }
  
  .onboarding-item-status{
    width: 100%;
    margin-top: 8px;
  }
  
  .btn-verificacion{
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }
}


/* =============================
   Footer - profesional
   ============================= */
.dashboard-footer{
  margin-top: 70px;
  background: linear-gradient(135deg, rgba(23,63,73,1) 0%, rgba(48,117,130,1) 55%, rgba(23,63,73,1) 100%);
  color: #fdfdfd;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* “Wave” superior para cerrar elegante */
.dashboard-footer::before{
  content:"";
  position:absolute;
  top:-1px; left:0; right:0;
  height: 64px;
  background:
    radial-gradient(80px 80px at 10% 100%, rgba(79,172,187,.55), transparent 70%),
    radial-gradient(120px 120px at 35% 100%, rgba(255,255,255,.10), transparent 70%),
    radial-gradient(90px 90px at 70% 100%, rgba(79,172,187,.45), transparent 70%),
    radial-gradient(120px 120px at 92% 100%, rgba(255,255,255,.08), transparent 70%);
  opacity: .9;
  pointer-events:none;
}

/* patrón sutil */
.dashboard-footer::after{
  content:"";
  position:absolute; inset:0;
  background:
    linear-gradient(0deg, rgba(0,0,0,.12), rgba(0,0,0,.12)),
    url("data:image/svg+xml,%3Csvg width='160' height='160' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='g' width='160' height='160' patternUnits='userSpaceOnUse'%3E%3Cpath d='M160 0H0V160' fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23g)'/%3E%3C/svg%3E");
  opacity:.55;
  pointer-events:none;
}

.dashboard-footer-container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 18px 26px;
  position: relative;
  z-index: 1;
}

.dashboard-footer-content{
  display: grid;
  grid-template-columns: 1.6fr 2.4fr;
  gap: 40px;
  margin-bottom: 26px;
}

.dashboard-footer-brand{
  display:flex;
  flex-direction:column;
  gap: 14px;
}

.dashboard-footer-logo-wrapper{
  display:flex;
  align-items:center;
  gap: 12px;
}

.dashboard-footer-logo-badge{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(79,172,187,.28), rgba(255,255,255,.10));
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 16px 30px rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.16);
}

.dashboard-footer-logo-badge i{ font-size: 18px; }

.dashboard-footer-logo-text{
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.dashboard-footer-description{
  font-size: 14px;
  color: rgba(253, 253, 253, 0.84);
  line-height: 1.65;
  margin: 0;
  max-width: 56ch;
}

.dashboard-footer-links{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.dashboard-footer-title{
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 0 0 10px;
  color: rgba(253,253,253,.95);
}

.dashboard-footer-column{
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.dashboard-footer-link{
  color: rgba(253, 253, 253, 0.78);
  text-decoration: none;
  font-size: 14px;
  transition: transform .18s ease, color .18s ease;
  display:inline-flex;
  align-items:center;
  gap: 8px;
}

.dashboard-footer-link:hover{
  color: #fff;
  transform: translateX(4px);
}

.dashboard-footer-link i{ opacity:.95; font-size: 13px; }

.dashboard-footer-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(253, 253, 253, 0.16);
  color: rgba(253, 253, 253, 0.70);
  font-size: 12.5px;
  flex-wrap: wrap;
}

.dashboard-footer-social{
  display:flex;
  gap: 10px;
}

.dashboard-footer-social a{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  color: #fff;
  text-decoration:none;
  transition: transform .18s ease, background .18s ease;
}

.dashboard-footer-social a:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.16);
}

/* =============================
   Responsive
   ============================= */
@media (max-width: 1024px){
  .dashboard-metrics{ grid-template-columns: repeat(2, 1fr); }
  .dashboard-actions{ grid-template-columns: 1fr; }
  .dashboard-footer-content{ grid-template-columns: 1fr; }
  .dashboard-footer-links{ grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px){
  .dashboard-container{ padding: 24px 14px 34px; }
  .dashboard-welcome{ padding: 22px; }
  .dashboard-footer-links{ grid-template-columns: 1fr; }
  .dashboard-footer-bottom{ justify-content: center; text-align:center; }
}

@media (max-width: 520px){
  .dashboard-metrics{ grid-template-columns: 1fr; }
}
