:root{
  --bg:        #f7f4ee;
  --card:      #ffffff;
  --text:      #1f1f1f;
  --muted:     #6f6f6f;
  --gold:      #b88a1e;
  --gold2:     #d7b75e;
  --goldsoft:  #f3e6bf;
  --line:      #e8e1d2;
  --shadow:    0 14px 35px rgba(0,0,0,.08);
  --shadow-sm: 0 6px 18px rgba(0,0,0,.03);
  --shadow-md: 0 10px 25px rgba(0,0,0,.08);
  --radius:    22px;
  --font:      Arial, Helvetica, sans-serif;
}

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

html{
  scroll-behavior: smooth;
}

body{
  font-family: var(--font);
  background:
    radial-gradient(circle at top, rgba(184,138,30,.08), transparent 32%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding: 8px 16px 16px;
}

a{
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea{
  font: inherit;
}

img{
  max-width: 100%;
  display: block;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap{
  width: min(1100px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.center{
  min-height: calc(100vh - 24px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6px;
}

.card{
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

/* ============================================================
   BRAND / NAV
   ============================================================ */
.brand{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: nowrap;
}

.brand-left{
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo{
  width: 64px;
  height: 64px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.logo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text h1,
.brand-hero .name{
  font-size: 1.35rem;
  line-height: 1.05;
  margin-bottom: 4px;
}

.brand-text p,
.brand-hero .city,
.helper,
.subtitle{
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.5;
}

.top-actions{
  display: flex;
  gap: 8px;
}

.top-actions a,
.tab{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  border-radius: 50px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 700;
  transition: .2s;
  white-space: nowrap;
}

.top-actions a:hover,
.tab:hover{
  border-color: var(--gold);
  color: #7c5a0c;
}

.tab.active{
  background: var(--goldsoft);
  border-color: rgba(184,138,30,.35);
  color: #7c5a0c;
}

/* ============================================================
   BADGES / PILLS
   ============================================================ */
.badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--goldsoft);
  color: #7c5a0c;
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--goldsoft);
  color: #7c5a0c;
  font-size: .8rem;
  font-weight: 700;
}

/* ============================================================
   SECCIONES Y TÍTULOS
   ============================================================ */
.section-title{
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #222;
}

.tabs{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ============================================================
   STATS / MINI CARDS
   ============================================================ */
.summary{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mini-card{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
}

.mini-card span{
  display: block;
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.mini-card strong{
  display: block;
  font-size: 1.22rem;
  color: var(--text);
}

.grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

/* ============================================================
   FORMS
   ============================================================ */
.form{
  display: grid;
  gap: 10px;
}

.field{
  background: #fbfaf7;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 15px;
}

.field-label{
  display: block;
  font-size: .8rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.field-value{
  font-size: 1rem;
  color: var(--text);
  line-height: 1.4;
  word-break: break-word;
}

input,
textarea,
select{
  width: 100%;
  padding: 12px 13px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: .95rem;
  color: var(--text);
  outline: none;
}

input:focus,
textarea:focus,
select:focus{
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,138,30,.10);
}

textarea{
  min-height: 92px;
  resize: vertical;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 14px;
  border: none;
  background: var(--gold);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: .2s;
}

.btn:hover{
  background: #a07b18;
}

.btn.full{
  width: 100%;
}

.btn.secondary{
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn.secondary:hover{
  border-color: var(--gold);
  color: #7c5a0c;
}

/* Tamaños alternativos */
.btn.sm{
  padding: 7px 14px;
  font-size: .82rem;
  border-radius: 10px;
}

.btn.xs{
  padding: 5px 10px;
  font-size: .78rem;
  border-radius: 8px;
}

/* ============================================================
   SEARCH / AUTOCOMPLETE
   ============================================================ */
.search-box{
  position: relative;
  display: grid;
  gap: 10px;
}

.autocomplete{
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  max-height: 220px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 6px;
  box-shadow: var(--shadow-md);
}

.autocomplete-item{
  padding: 12px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  gap: 12px;
}

.autocomplete-item:last-child{
  border-bottom: none;
}

.autocomplete-item:hover{
  background: #f9f6f1;
}

.autocomplete-item strong{
  display: block;
  margin-bottom: 4px;
}

.autocomplete-item small{
  color: var(--muted);
}

.selected-client{
  margin-top: 8px;
  font-size: 14px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 14px;
  background: #fff;
  color: var(--text);
}

/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.flash{
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 16px;
  border: 1px solid transparent;
}

.flash.success{
  background: #eef8ef;
  border-color: #c8e6c9;
  color: #1b5e20;
}

.flash.error{
  background: #fff0f0;
  border-color: #f6c1c1;
  color: #8e1d1d;
}

.flash.warning{
  background: #fffde7;
  border-color: #fff176;
  color: #5d4000;
}

/* ============================================================
   RECORD CARDS
   ============================================================ */
.record-grid{
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.record-card{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.record-card h4{
  font-size: 1rem;
  margin-bottom: 8px;
}

.record-meta{
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: .94rem;
}

.record-stats{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* ============================================================
   TABLES
   ============================================================ */
.table-wrap{
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.table{
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.table th,
.table td{
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: .93rem;
}

.table th{
  background: var(--goldsoft);
  color: #7c5a0c;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.table tr:last-child td{
  border-bottom: none;
}

/* ============================================================
   FOOTER — 2 columnas con divisor vertical
   ============================================================ */
.footer-note{
  margin: 26px auto 0;
  padding: 20px 24px 24px;
  max-width: 720px;
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: center;
  gap: 24px;
  font-family: var(--font);
  font-size: .85rem;
  line-height: 1.7;
  color: var(--muted);
}

/* Línea divisoria — ocupa la columna del medio (1px) */
.footer-divider{
  width: 1px;
  height: 80px;
  background: linear-gradient(
    180deg,
    transparent,
    #d9c79a 25%,
    var(--gold) 50%,
    #d9c79a 75%,
    transparent
  );
  align-self: center;
  justify-self: center;
}

.footer-note .footer-col{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-note .footer-col-left  { text-align: right; }
.footer-note .footer-col-right { text-align: left;  }

.footer-note p { margin: 0; }

/* Estilo dorado/mayúsculas (Luisa y Forever Nails — mismo estilo) */
.footer-note .footer-brand,
.footer-note .footer-owner{
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #7c5a0c;
  font-size: .82rem;
}

/* Estilo enlace dorado (WhatsApp y Derechos — mismo estilo) */
.footer-note .footer-link a,
.footer-note .footer-rights{
  color: var(--gold);
  text-decoration: none;
  font-weight: 700;
  font-size: .85rem;
  transition: color .2s;
  display: inline-block;
}

.footer-note .footer-link a:hover{
  color: #7c5a0c;
  text-decoration: underline;
}

/* Año y contacto — texto pequeño gris */
.footer-note .footer-year,
.footer-note .footer-contact{
  font-size: .78rem;
  color: #999;
}

/* Responsive — móviles pequeños se apilan */
@media (max-width: 480px){
  .footer-note{
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: center;
  }

  .footer-divider{
    width: 60%;
    height: 1px;
    margin: 0 auto;
    background: linear-gradient(
      90deg,
      transparent,
      var(--gold) 50%,
      transparent
    );
  }

  .footer-note .footer-col-left,
  .footer-note .footer-col-right{
    text-align: center;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
}

.hero-copy{
  padding: 32px;
}

.hero-copy h2{
  margin: 14px 0 14px;
  font-size: clamp(34px, 4.8vw, 60px);
  line-height: 1.02;
}

.hero-copy p{
  color: var(--muted);
  line-height: 1.8;
  max-width: 64ch;
}

.hero-stack{
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.metric{
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(184,138,30,.10);
}

.metric span{
  display: block;
  color: var(--muted);
  font-size: .82rem;
}

.metric strong{
  display: block;
  margin-top: 8px;
  font-size: 1.35rem;
}

.hero-panel{
  padding: 28px;
}

/* ============================================================
   BRAND HERO (login)
   ============================================================ */
.brand-hero{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.brand-hero .logo{
  width: 128px;
  height: 128px;
  border-radius: 50%;
  border: none;
  box-shadow: 0 18px 32px rgba(212,175,55,.12);
}

.brand-hero .sub{
  font-size: clamp(16px, 2.4vw, 24px);
  font-weight: 900;
  letter-spacing: .18em;
  color: var(--gold);
}

.login-form{
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

/* ============================================================
   UTILIDADES
   ============================================================ */
.mobile-hide{ display: block; }
.mobile-only{ display: none;  }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px){
  .hero,
  .grid,
  .summary,
  .record-grid{
    grid-template-columns: 1fr;
  }

  .hero-stack{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px){
  body{
    padding: 10px 12px 12px;
  }

  .wrap{
    width: min(94vw, 1100px);
  }

  .card,
  .section,
  .hero-copy,
  .hero-panel{
    padding: 18px;
  }

  .brand{
    flex-direction: column;
    align-items: flex-start;
  }

  .top-actions{
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  /* En móvil los botones principales sí ocupan todo el ancho */
  .btn{
    width: 100%;
  }

  /* Los pequeños mantienen su tamaño */
  .btn.sm,
  .btn.xs{
    width: auto;
  }

  .brand-hero .logo{
    width: 114px;
    height: 114px;
  }

  .table{
    min-width: 680px;
  }

  .mobile-hide{ display: none;  }
  .mobile-only{ display: block; }
}

@media (max-width: 520px){
  .brand-hero .logo{
    width: 96px;
    height: 96px;
  }

  .hero-copy h2{
    font-size: clamp(28px, 8vw, 38px);
  }

  .field-label{
    font-size: .95rem;
  }

  input,
  textarea,
  select{
    font-size: 1rem;
    min-height: 52px;
  }
}

@media (max-width: 480px){
  .footer-note{
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: center;
  }

  .footer-note::before{
    width: 60%;
    height: 1px;
    margin: 0 auto;
    background: linear-gradient(
      90deg,
      transparent,
      var(--gold) 50%,
      transparent
    );
    grid-column: 1;
  }

  .footer-note .footer-col-left,
  .footer-note .footer-col-right{
    text-align: center;
  }
}

/* ============================================================
   CARRUSEL VENTAJAS VIP - Versión final (móvil-safe)
   ============================================================ */
.vip-carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
    margin: 14px 0;
    padding: 8px 0;
    pointer-events: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.vip-carousel-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 14px;
    width: max-content;
    animation: vip-scroll 28s linear infinite;
}

/* Solo pausa en escritorio con mouse real, NO en móvil */
@media (hover: hover) and (pointer: fine) {
    .vip-carousel:hover .vip-carousel-track {
        animation-play-state: paused;
    }
}

@keyframes vip-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.vip-carousel .vip-card.silver {
    flex: 0 0 240px !important;
    width: 240px !important;
    min-width: 240px !important;
    max-width: 240px !important;
    height: 150px;
    background:
        linear-gradient(135deg,
            #e8e8ed 0%,
            #f5f5f7 25%,
            #ffffff 45%,
            #e0e0e5 65%,
            #b8b8c0 100%);
    border: 2px solid #ffffff;
    outline: 1px solid rgba(180, 180, 190, 0.4);
    outline-offset: -6px;
    border-radius: 16px;
    padding: 16px 14px;
    text-align: center;
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 0.9),
        inset 0 -2px 4px rgba(140, 140, 150, 0.3);
    color: #2a2a30;
    user-select: none;
    box-sizing: border-box;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.vip-carousel .vip-card .vip-emoji {
    display: block;
    font-size: 1.9rem;
    margin-bottom: 6px;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.15));
}

.vip-carousel .vip-card .vip-title {
    font-size: .98rem;
    font-weight: 900;
    letter-spacing: .01em;
    margin: 0 0 4px;
    color: #1a1a20;
    line-height: 1.2;
    text-shadow: 0 1px 0 rgba(255,255,255,.7);
    font-family: Georgia, 'Times New Roman', serif;
}

.vip-carousel .vip-card .vip-desc {
    font-size: .8rem;
    line-height: 1.4;
    margin: 0;
    color: #4a4a55;
    font-weight: 600;
    text-shadow: 0 1px 0 rgba(255,255,255,.5);
}

@media (max-width: 480px) {
    .vip-carousel .vip-card.silver {
        flex: 0 0 220px !important;
        width: 220px !important;
        min-width: 220px !important;
        max-width: 220px !important;
        height: 140px;
        padding: 14px 12px;
    }
    .vip-carousel .vip-card .vip-emoji { font-size: 1.7rem; }
    .vip-carousel .vip-card .vip-title { font-size: .92rem; }
    .vip-carousel .vip-card .vip-desc  { font-size: .76rem; }
    .vip-carousel-track  { animation-duration: 24s; }
}

@media (prefers-reduced-motion: reduce) {
    .vip-carousel-track { animation: none; }
}

/* ============================================================
   PEGAR AL FINAL DE styles.css
   Forever Nails — Layout administrativo reestructurado
   ============================================================ */

/* ============================================================
   NAV PRIMARIO
   ============================================================ */
.topnav{
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 4px 12px rgba(0,0,0,.04);
    margin: -8px -16px 18px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.topnav-inner{
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.topnav-brand{
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.topnav-logo{
    width: 42px;
    height: 42px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gold), var(--gold2));
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
    flex-shrink: 0;
}
.topnav-logo img{ width:100%; height:100%; object-fit:cover; }

.topnav-title{ display: flex; flex-direction: column; line-height: 1.1; }
.topnav-title strong{ font-size: 1rem; font-weight: 800; color: #222; }
.topnav-title span{ font-size: .72rem; color: var(--muted); margin-top: 2px; }

/* Burger — oculto en escritorio */
.topnav-burger{
    display: none;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 10px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
}
.topnav-burger span{
    display: block;
    width: 18px;
    height: 2px;
    background: #444;
    border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease;
}

/* Menú */
.topnav-menu{
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.topnav-item{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: .9rem;
    font-weight: 700;
    color: #555;
    text-decoration: none;
    transition: all .2s;
    position: relative;
    white-space: nowrap;
}
.topnav-item .ic{ font-size: 1rem; }
.topnav-item:hover{ background: #fafaf8; color: var(--gold); }
.topnav-item.is-active{
    background: var(--goldsoft);
    color: #7c5a0c;
}
.topnav-badge{
    background: #c62828;
    color: #fff;
    border-radius: 999px;
    padding: 1px 7px;
    font-size: .7rem;
    font-weight: 800;
    margin-left: 2px;
}

.topnav-foot{
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
    padding-left: 12px;
    border-left: 1px solid var(--line);
}
.topnav-user{ font-size: .82rem; color: var(--muted); }
.topnav-logout{
    color: #c62828;
    font-weight: 700;
    font-size: .85rem;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 8px;
    transition: background .2s;
}
.topnav-logout:hover{ background: #fff0f0; }

/* ============================================================
   SUB-NAV CONTEXTUAL
   ============================================================ */
.subnav{
    background: #fbf9f4;
    border-top: 1px solid var(--line);
}
.subnav-inner{
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.subnav-inner::-webkit-scrollbar{ display: none; }

.subnav-item{
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    font-size: .85rem;
    font-weight: 700;
    color: var(--muted);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: all .2s;
}
.subnav-item:hover{ color: var(--gold); }
.subnav-item.is-active{
    color: #7c5a0c;
    border-bottom-color: var(--gold);
}

/* Overlay para móvil */
.menu-overlay{
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 90;
    opacity: 0;
    transition: opacity .2s;
}
body.menu-open .menu-overlay{
    display: block;
    opacity: 1;
}

/* ============================================================
   ADMIN SHELL — espaciado consistente
   ============================================================ */
.admin-shell{
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Card head con título y link */
.card-head{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.card-title{
    font-size: 1.05rem;
    font-weight: 800;
    color: #222;
    margin: 0;
}
.card-link{
    color: var(--gold);
    font-weight: 700;
    font-size: .85rem;
    text-decoration: none;
}
.card-link:hover{ color: #7c5a0c; }

/* ============================================================
   ALERTA / BANNER
   ============================================================ */
.alert-banner{
    background: linear-gradient(135deg, #fffbef, #fff);
    border: 1px solid var(--line);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-sm);
}
.alert-icon{ font-size: 2rem; flex-shrink: 0; }
.alert-body{ flex: 1; min-width: 200px; }
.alert-title{ font-size: 1.05rem; font-weight: 900; color: #7c5a0c; }
.alert-meta{ font-size: .88rem; color: #666; margin-top: 2px; }
.alert-cta{
    background: var(--gold);
    color: #fff;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s;
}
.alert-cta:hover{ background: #a07b18; }

/* ============================================================
   KPI CARDS
   ============================================================ */
.kpi-grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.kpi-grid-4{ grid-template-columns: repeat(4, 1fr); }

.kpi-card{
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.kpi-card.kpi-gold{
    background: linear-gradient(135deg, #fffbef, #fff);
    border-color: rgba(184,138,30,.25);
}
.kpi-label{
    font-size: .75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 700;
}
.kpi-value{
    font-size: 1.4rem;
    font-weight: 900;
    color: #222;
    line-height: 1.1;
}
.kpi-card.kpi-gold .kpi-value{ color: #7c5a0c; }
.kpi-sub{ font-size: .75rem; color: #999; }
.kpi-trend{
    font-size: .78rem;
    font-weight: 700;
    margin-top: 2px;
}
.kpi-trend.up   { color: #1b5e20; }
.kpi-trend.down { color: #c62828; }

/* ============================================================
   ZONAS DE TRABAJO (las 4 grandes)
   ============================================================ */
.zones-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.zone{
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px;
    text-decoration: none;
    color: inherit;
    transition: all .25s;
    position: relative;
    overflow: hidden;
}
.zone::before{
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, currentColor 200%);
    opacity: .03;
    pointer-events: none;
}
.zone:hover{
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
}
.zone-icon{
    font-size: 2.4rem;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.zone-clients   .zone-icon{ background: #e8f0fe; }
.zone-redentions .zone-icon{ background: var(--goldsoft); }
.zone-badges    .zone-icon{ background: #f3e8ff; }
.zone-reports   .zone-icon{ background: #eef8ef; }

.zone-body{ flex: 1; min-width: 0; }
.zone-body strong{
    display: block;
    font-size: 1.1rem;
    font-weight: 900;
    color: #222;
    margin-bottom: 2px;
}
.zone-body span{
    display: block;
    font-size: .82rem;
    color: var(--muted);
}
.zone-arrow{
    font-size: 1.4rem;
    color: var(--gold);
    transition: transform .25s;
}
.zone:hover .zone-arrow{ transform: translateX(4px); }

.zone-badge{
    position: absolute;
    top: 14px;
    right: 14px;
    background: #c62828;
    color: #fff;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: .72rem;
    font-weight: 800;
}

/* ============================================================
   ATAJOS RAPIDOS
   ============================================================ */
.quick-grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.quick-card{
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px 12px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all .2s;
}
.quick-card:hover{
    border-color: var(--gold);
    background: #fffbef;
}
.quick-ic{ font-size: 1.6rem; }
.quick-tx{ font-size: .82rem; font-weight: 700; color: #444; }

/* ============================================================
   TASK LISTS (colas de trabajo)
   ============================================================ */
.task-list{ list-style: none; margin: 0; padding: 0; }
.task-list li{ border-bottom: 1px solid var(--line); }
.task-list li:last-child{ border-bottom: none; }

.task-item{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 4px;
    text-decoration: none;
    color: inherit;
    transition: background .2s;
    border-radius: 8px;
}
.task-item:hover{ background: #fafaf8; padding-left: 8px; }

.task-main{ flex: 1; min-width: 0; }
.task-head{ display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.task-tag{
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
}
.tag-curso   { background: #e8f0fe; color: #1a56db; }
.tag-producto{ background: var(--goldsoft); color: #7c5a0c; }
.task-title{ font-size: .92rem; font-weight: 700; color: #333; }
.task-sub{ font-size: .82rem; color: #666; line-height: 1.4; }
.task-date{ font-size: .75rem; color: #999; flex-shrink: 0; }
.task-pill{
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 700;
}
.pill-info{ background: #e8f0fe; color: #1a56db; }

/* ============================================================
   COLORES UTILITARIOS
   ============================================================ */
.txt-danger { color: #c62828; }
.txt-info   { color: #1a56db; }
.txt-success{ color: #1b5e20; }
.txt-gold   { color: #7c5a0c; font-weight: 700; }
.txt-magenta{ color: #880e4f; font-weight: 700; }

/* ============================================================
   RESUMEN HISTÓRICO COLAPSABLE
   ============================================================ */
.history-summary{ overflow: hidden; }
.history-toggle{
    cursor: pointer;
    font-weight: 700;
    color: var(--muted);
    list-style: none;
    padding: 4px 0;
    user-select: none;
}
.history-toggle::-webkit-details-marker{ display: none; }
.history-toggle::before{
    content: '▸ ';
    color: var(--gold);
    transition: transform .2s;
    display: inline-block;
}
.history-summary[open] .history-toggle::before{ transform: rotate(90deg); }
.history-summary[open] .history-toggle{ margin-bottom: 14px; }

/* ============================================================
   FOOTER CENTRADO (override del de 2 columnas)
   ============================================================ */
.footer-note.footer-centered{
    grid-template-columns: 1fr;
    text-align: center;
    gap: 6px;
    max-width: 600px;
    padding: 20px;
}
.footer-note.footer-centered .footer-owner,
.footer-note.footer-centered .footer-rights{
    text-align: center;
}

/* ============================================================
   RESPONSIVE — MÓVIL
   ============================================================ */
@media (max-width: 900px){
    /* KPIs en 2x2 */
    .kpi-grid,
    .kpi-grid-4{ grid-template-columns: repeat(2, 1fr); }

    /* Zonas en 1 columna */
    .zones-grid{ grid-template-columns: 1fr; }

    /* Atajos en 2x2 */
    .quick-grid{ grid-template-columns: repeat(2, 1fr); }

    /* Burger visible */
    .topnav-burger{ display: flex; }

    /* Menú offcanvas */
    .topnav-menu{
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background: #fff;
        box-shadow: -10px 0 30px rgba(0,0,0,.15);
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 70px 16px 16px;
        margin: 0;
        transition: right .25s ease;
        z-index: 95;
        overflow-y: auto;
    }
    body.menu-open .topnav-menu{ right: 0; }

    .topnav-item{
        padding: 12px 14px;
        font-size: .95rem;
        border-radius: 12px;
        justify-content: flex-start;
    }
    .topnav-item .ic{ font-size: 1.2rem; }

    .topnav-foot{
        margin-top: 14px;
        margin-left: 0;
        padding-left: 0;
        padding-top: 14px;
        border-left: none;
        border-top: 1px solid var(--line);
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    /* Sub-nav scroll horizontal */
    .subnav-inner{ padding: 0 12px; }

    /* Alert apilada */
    .alert-banner{ flex-direction: column; align-items: flex-start; }
    .alert-cta{ width: 100%; text-align: center; }

    /* Footer ya está centrado por la clase */
}

@media (max-width: 480px){
    .kpi-value{ font-size: 1.2rem; }
    .quick-grid{ gap: 8px; }
    .quick-card{ padding: 14px 8px; }
    .quick-ic{ font-size: 1.4rem; }
    .quick-tx{ font-size: .76rem; }

    .zone{ padding: 14px; gap: 12px; }
    .zone-icon{ width: 52px; height: 52px; font-size: 1.9rem; }
    .zone-body strong{ font-size: 1rem; }

    .topnav-title strong{ font-size: .92rem; }
    .topnav-title span{ font-size: .68rem; }
    .topnav-logo{ width: 38px; height: 38px; }
}

/* ============================================================
   PEGAR AL FINAL DE: /assets/css/styles.css
   Forever Nails — Layout área del cliente (mobile-first)
   ============================================================ */

/* ============================================================
   SHELL DEL CLIENTE — espaciado consistente
   ============================================================ */
.cliente-shell {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ============================================================
   SALDO HERO — destacado en la parte superior
   ============================================================ */
.saldo-hero {
    text-align: center;
    padding: 28px 16px;
    background: linear-gradient(135deg, #fffbef, #f3e6bf);
    border-radius: 18px;
    border: 1px solid rgba(184,138,30,.25);
}
.saldo-label {
    font-size: .72rem;
    color: #7c5a0c;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    margin: 0;
}
.saldo-valor {
    font-size: 3rem;
    font-weight: 900;
    color: #7c5a0c;
    line-height: 1;
    margin: 8px 0;
}
.saldo-valor.is-negative { color: #c62828; }

.saldo-sub {
    font-size: .92rem;
    color: #7c5a0c;
    font-weight: 700;
    margin: 0;
}

/* Saldo negativo: alerta */
.saldo-alerta-negativa {
    background: #fff0f0;
    border: 1px solid #f6c1c1;
    border-radius: 14px;
    padding: 12px 16px;
    margin-top: 12px;
    color: #c62828;
    font-size: .88rem;
    line-height: 1.5;
    text-align: left;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.saldo-alerta-negativa .icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

/* ============================================================
   BIENVENIDA — header del cliente
   ============================================================ */
.bienvenida {
    text-align: center;
    margin-bottom: 14px;
}
.bienvenida-tag {
    color: #7c5a0c;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    margin: 0;
}
.bienvenida-nombre {
    font-size: 1.4rem;
    font-weight: 900;
    margin: 4px 0;
    color: #222;
}
.bienvenida-codigo {
    color: #666;
    font-size: .85rem;
    margin: 0;
}

/* ============================================================
   ALERTA INLINE (solicitudes pendientes, etc.)
   ============================================================ */
.alerta-cliente {
    background: linear-gradient(135deg, #fffbef, #fff);
    border-left: 4px solid #b88a1e;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.alerta-cliente.is-warning {
    border-left-color: #c62828;
    background: linear-gradient(135deg, #fff5f5, #fff);
}
.alerta-icon { font-size: 1.8rem; flex-shrink: 0; }
.alerta-body { flex: 1; min-width: 180px; }
.alerta-titulo {
    font-size: .95rem;
    font-weight: 800;
    color: #7c5a0c;
    margin: 0;
}
.alerta-cliente.is-warning .alerta-titulo { color: #c62828; }
.alerta-meta {
    font-size: .82rem;
    color: #666;
    margin: 2px 0 0;
}
.alerta-cta {
    background: #b88a1e;
    color: #fff;
    padding: 9px 16px;
    border-radius: 50px;
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
}
.alerta-cliente.is-warning .alerta-cta { background: #c62828; }

/* ============================================================
   PROGRESO DE CURSOS
   ============================================================ */
.curso-row {
    padding: 14px 0;
    border-bottom: 1px solid #f0ece3;
}
.curso-row:last-child { border-bottom: none; }
.curso-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}
.curso-titulo { font-size: .95rem; font-weight: 700; color: #222; }
.curso-cta {
    background: #b88a1e;
    color: #fff;
    padding: 7px 14px;
    border-radius: 50px;
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
}
.curso-cta.is-cert { background: #1b5e20; }

.progress-track {
    background: #f0ece3;
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #b88a1e, #d7b75e);
    transition: width .4s;
}
.curso-meta {
    color: #666;
    font-size: .82rem;
    margin-top: 6px;
    display: block;
}

/* ============================================================
   GRID DE INSIGNIAS (3 col móvil, 4-6 escritorio)
   ============================================================ */
.insignia-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.insignia-cell {
    text-align: center;
    padding: 8px 4px;
}
.insignia-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 6px;
    font-size: 1.7rem;
    box-shadow: 0 6px 14px rgba(0,0,0,.1);
}
.insignia-bg-oro      { background: linear-gradient(135deg, #ffd54f, #b88a1e); }
.insignia-bg-plata    { background: linear-gradient(135deg, #e3e7ec, #a3acb6); }
.insignia-bg-bronce   { background: linear-gradient(135deg, #d7a583, #8b5a2b); }
.insignia-bg-especial { background: linear-gradient(135deg, #9c27b0, #4a148c); }

.insignia-nombre {
    font-size: .78rem;
    font-weight: 700;
    color: #444;
    line-height: 1.3;
}

/* ============================================================
   ACCESOS RÁPIDOS — grid 3x2 móvil
   ============================================================ */
.accesos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.acceso-card {
    background: #fff;
    border: 1px solid #e8e1d2;
    border-radius: 14px;
    padding: 18px 8px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all .2s;
    min-height: 88px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.acceso-card:hover {
    border-color: #b88a1e;
    background: #fffbef;
}
.acceso-icon {
    font-size: 1.7rem;
    margin-bottom: 6px;
    line-height: 1;
}
.acceso-tx {
    font-weight: 700;
    font-size: .82rem;
    color: #444;
}

/* ============================================================
   TABS DEL CLIENTE
   ============================================================ */
.tabs-cliente {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8e1d2;
}
.tab-c-cliente {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 50px;
    background: #fff;
    border: 1px solid #e8e1d2;
    font-size: .85rem;
    font-weight: 700;
    color: #555;
    text-decoration: none;
    transition: all .2s;
    min-height: 38px;
}
.tab-c-cliente:hover { border-color: #b88a1e; color: #7c5a0c; }
.tab-c-cliente.is-active {
    background: #f3e6bf;
    border-color: rgba(184,138,30,.35);
    color: #7c5a0c;
}
.tab-c-cliente .pill-num {
    background: rgba(0,0,0,.08);
    padding: 1px 7px;
    border-radius: 999px;
    font-size: .72rem;
}
.tab-c-cliente.is-active .pill-num { background: rgba(124,90,12,.15); }

/* ============================================================
   TARJETAS DE SOLICITUD — móvil-first
   ============================================================ */
.sol-card {
    background: #fff;
    border: 1px solid #e8e1d2;
    border-radius: 18px;
    padding: 16px;
    transition: border-color .2s;
}
.sol-card:hover { border-color: #b88a1e; }

.sol-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.sol-titulo-wrap { flex: 1; min-width: 180px; }
.sol-tipo-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    margin-right: 6px;
}
.sol-tipo-curso    { background: #e8f0fe; color: #1a56db; }
.sol-tipo-producto { background: #f3e6bf; color: #7c5a0c; }

.sol-titulo { font-size: .95rem; font-weight: 800; color: #222; }
.sol-fecha { font-size: .8rem; color: #888; display: block; margin-top: 4px; }

.sol-estado {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 700;
    white-space: nowrap;
}
.sol-estado-pendiente { background: #fff8e1; color: #7c5a0c; }
.sol-estado-aprobada  { background: #e8f0fe; color: #1a56db; }
.sol-estado-entregada { background: #eef8ef; color: #1b5e20; }
.sol-estado-rechazada { background: #fff0f0; color: #c62828; }
.sol-estado-cancelada { background: #f0f0f0; color: #666; }

.sol-modo {
    font-size: .88rem;
    color: #555;
    margin: 8px 0;
    line-height: 1.5;
}

.sol-nota {
    border-radius: 8px;
    padding: 10px 12px;
    font-size: .85rem;
    line-height: 1.4;
    margin: 8px 0;
}
.sol-nota-tag {
    display: block;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.sol-nota-cliente {
    background: #fafaf8;
    border-left: 3px solid #b88a1e;
    color: #444;
}
.sol-nota-cliente .sol-nota-tag { color: #7c5a0c; }
.sol-nota-admin {
    background: #fff8e1;
    border-left: 3px solid #f9a825;
    color: #5d4037;
}
.sol-nota-admin .sol-nota-tag { color: #5d4037; }

.sol-aprobada-msg {
    background: #e8f0fe;
    color: #1a56db;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: .85rem;
    margin: 8px 0;
}
.sol-entregada-meta {
    color: #1b5e20;
    font-size: .82rem;
    display: block;
    margin-top: 6px;
}

.btn-cancelar-sol {
    background: #fff;
    border: 1px solid #f6c1c1;
    color: #c62828;
    padding: 9px 16px;
    border-radius: 50px;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    min-height: 38px;
}
.btn-cancelar-sol:hover { background: #fff0f0; }

/* ============================================================
   FORM DE SOLICITAR (radios estilo card)
   ============================================================ */
.modo-opciones { display: grid; gap: 10px; margin-top: 8px; }

.modo-opcion {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 2px solid #e8e1d2;
    border-radius: 14px;
    cursor: pointer;
    background: #fff;
    transition: all .2s;
    min-height: 66px;
}
.modo-opcion:hover {
    border-color: #b88a1e;
    background: #fffbef;
}
.modo-opcion.is-disabled {
    cursor: not-allowed;
    border-color: #f6c1c1;
    background: #fff5f5;
}
.modo-opcion input[type="radio"] {
    width: auto;
    flex-shrink: 0;
    transform: scale(1.2);
}
.modo-info { flex: 1; min-width: 0; }
.modo-titulo {
    font-weight: 700;
    font-size: .95rem;
    color: #222;
}
.modo-detalle {
    font-size: .85rem;
    color: #666;
    margin-top: 4px;
    line-height: 1.4;
}
.modo-saldo-ok    { color: #1b5e20; }
.modo-saldo-bad   { color: #c62828; }

.solicitar-info {
    background: #f5f5f5;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: .85rem;
    color: #555;
    margin-bottom: 12px;
    line-height: 1.5;
}
.solicitar-info strong { color: #333; }
.solicitar-info ul {
    margin-top: 6px;
    padding-left: 20px;
    line-height: 1.6;
}

/* ============================================================
   BOTÓN VOLVER
   ============================================================ */
.btn-volver {
    background: #fff;
    border: 1px solid #e8e1d2;
    color: #444;
    padding: 9px 16px;
    border-radius: 50px;
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 38px;
}
.btn-volver:hover { background: #fafaf8; }

/* ============================================================
   RESPONSIVE — Escritorio
   ============================================================ */
@media (min-width: 720px) {
    .accesos-grid { grid-template-columns: repeat(3, 1fr); }
    .insignia-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (min-width: 900px) {
    .accesos-grid { grid-template-columns: repeat(6, 1fr); }
}

/* Hover effects solo en dispositivos con cursor */
@media (hover: none) {
    .acceso-card:hover { border-color: #e8e1d2; background: #fff; }
    .modo-opcion:hover { border-color: #e8e1d2; background: #fff; }
}

/* ============================================================
   PEGAR AL FINAL DE: /assets/css/styles.css
   (continúa el bloque añadido en Fase 6A)
   Forever Nails — Cliente Mobile-First v6B
   Items del catálogo (productos/cursos) + catálogo PDF
   ============================================================ */

/* ============================================================
   SALDO COMPACTO (para encabezar productos.php / cursos.php)
   ============================================================ */
.saldo-compacto {
    background: linear-gradient(135deg, #fffbef, #f3e6bf);
    border: 1px solid rgba(184,138,30,.25);
    border-radius: 18px;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.saldo-compacto-label {
    font-size: .72rem;
    color: #7c5a0c;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    margin: 0;
}
.saldo-compacto-valor {
    font-size: 1.6rem;
    font-weight: 900;
    color: #7c5a0c;
    line-height: 1.1;
    margin: 4px 0 0;
}
.saldo-compacto-valor.is-negative { color: #c62828; }
.saldo-compacto-link {
    background: #fff;
    color: #7c5a0c;
    padding: 9px 16px;
    border-radius: 50px;
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #b88a1e;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
}

/* ============================================================
   GRID DE ITEMS (productos / cursos) — 1 col móvil, 2 escritorio
   ============================================================ */
.items-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
@media (min-width: 720px) {
    .items-grid { grid-template-columns: repeat(2, 1fr); }
}

.item-card {
    background: #fff;
    border: 1px solid #e8e1d2;
    border-radius: 18px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    transition: all .2s;
}
.item-card:hover {
    border-color: #b88a1e;
    box-shadow: 0 4px 14px rgba(0,0,0,.05);
}

.item-titulo {
    font-size: 1rem;
    font-weight: 800;
    color: #222;
    margin: 0 0 8px;
    line-height: 1.3;
}
.item-descripcion {
    color: #666;
    font-size: .88rem;
    line-height: 1.5;
    margin: 0 0 14px;
    flex: 1;
}

.item-cert-fisico {
    background: #fff8e1;
    color: #7c5a0c;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: .8rem;
    margin: 0 0 10px;
    line-height: 1.4;
}

.item-precios {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: .9rem;
    margin-bottom: 14px;
}
.item-precio-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.item-precio-puntos { color: #7c5a0c; font-weight: 700; }
.item-precio-dinero { color: #1b5e20; font-weight: 700; }
.item-faltan {
    color: #c62828;
    font-size: .82rem;
    font-weight: 700;
}

.btn-solicitar {
    background: #b88a1e;
    color: #fff;
    padding: 12px 16px;
    border-radius: 50px;
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.btn-solicitar:hover { background: #a07b18; }

/* ============================================================
   CURSO ACTIVO (mis cursos en curso)
   ============================================================ */
.curso-activo {
    background: #fff;
    border: 1px solid #e8e1d2;
    border-radius: 18px;
    padding: 16px;
}
.curso-activo-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}
.curso-activo-info { flex: 1; min-width: 200px; }
.curso-activo-titulo {
    font-size: 1rem;
    font-weight: 800;
    color: #222;
    margin: 0 0 4px;
    line-height: 1.3;
}
.curso-activo-desc {
    color: #666;
    font-size: .85rem;
    line-height: 1.4;
    margin: 0;
}
.curso-estado-pill {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 700;
    white-space: nowrap;
}
.curso-estado-pill.is-completado { background: #eef8ef; color: #1b5e20; }
.curso-estado-pill.is-progreso   { background: #e8f0fe; color: #1a56db; }

.curso-progreso-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .82rem;
    margin-bottom: 6px;
}
.curso-progreso-meta strong { color: #7c5a0c; }

.curso-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.btn-curso-action {
    background: #b88a1e;
    color: #fff;
    padding: 11px 18px;
    border-radius: 50px;
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    transition: background .2s;
}
.btn-curso-action:hover { background: #a07b18; }
.btn-curso-action.is-cert { background: #1b5e20; }
.btn-curso-action.is-cert:hover { background: #154a18; }

/* ============================================================
   PENDIENTES INLINE (lista de cursos solicitados pendientes)
   ============================================================ */
.pendiente-row {
    padding: 12px 0;
    border-bottom: 1px solid #f0ece3;
}
.pendiente-row:last-child { border-bottom: none; }
.pendiente-row-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.pendiente-meta {
    color: #666;
    font-size: .82rem;
    display: block;
    margin-top: 2px;
}

/* ============================================================
   CATÁLOGO PDF — destacado y archivo
   ============================================================ */
.pdf-actual {
    background: linear-gradient(135deg, #fffbef, #f3e6bf);
    border: 1px solid rgba(184,138,30,.3);
    border-radius: 18px;
    padding: 28px 20px;
    text-align: center;
}
.pdf-icon-grande {
    font-size: 3rem;
    margin-bottom: 10px;
    line-height: 1;
}
.pdf-titulo {
    font-size: 1.2rem;
    color: #7c5a0c;
    font-weight: 900;
    margin: 0 0 6px;
}
.pdf-descripcion {
    color: #666;
    font-size: .9rem;
    margin: 0 0 12px;
    line-height: 1.5;
}
.pdf-fecha {
    color: #999;
    font-size: .82rem;
    margin: 0 0 18px;
}
.btn-descargar-pdf {
    display: inline-block;
    background: #b88a1e;
    color: #fff;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: .95rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(184,138,30,.3);
    min-height: 48px;
    line-height: 1.2;
    transition: all .2s;
}
.btn-descargar-pdf:hover {
    background: #a07b18;
    transform: translateY(-1px);
}

.pdf-historico-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}
.pdf-historico-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e8e1d2;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    min-height: 56px;
    transition: all .2s;
}
.pdf-historico-item:hover {
    border-color: #b88a1e;
    background: #fffbef;
}
.pdf-historico-titulo {
    font-size: .9rem;
    font-weight: 700;
    color: #222;
}
.pdf-historico-fecha {
    font-size: .78rem;
    color: #999;
    display: block;
    margin-top: 2px;
}
.pdf-historico-cta {
    color: #b88a1e;
    font-weight: 700;
    font-size: .82rem;
    flex-shrink: 0;
}

.pdf-empty {
    background: #fff8e1;
    color: #7c5a0c;
    padding: 24px 16px;
    border-radius: 14px;
    text-align: center;
}
.pdf-empty-icon { font-size: 2.5rem; margin-bottom: 8px; }
.pdf-empty-msg {
    font-size: .92rem;
    line-height: 1.5;
    margin: 6px 0 12px;
}

/* ============================================================
   PEGAR AL FINAL DE: /assets/css/styles.css
   (continúa los bloques añadidos en Fases 6A y 6B)
   Forever Nails — Cliente Mobile-First v6C
   Histórico (puntos/compras) + insignias completas + perfil
   ============================================================ */

/* ============================================================
   TABLA DE HISTORICO (puntos / compras)
   Tarjetas en móvil, tabla en escritorio
   ============================================================ */
.hist-tabla {
    width: 100%;
    border-collapse: collapse;
    min-width: 480px;
}
.hist-tabla thead {
    background: #f3e6bf;
}
.hist-tabla th {
    padding: 10px 12px;
    text-align: left;
    font-size: .72rem;
    color: #7c5a0c;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 700;
}
.hist-tabla th.is-right { text-align: right; }
.hist-tabla td {
    padding: 12px;
    border-bottom: 1px solid #e8e1d2;
    font-size: .88rem;
    color: #555;
}
.hist-tabla td.is-right { text-align: right; }
.hist-tabla td.is-fecha { color: #888; white-space: nowrap; }
.hist-tabla td.is-bold { font-weight: 700; color: #222; }

.hist-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Pills de tipo de movimiento */
.mov-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 700;
    white-space: nowrap;
}
.mov-pill-compra    { background: #eef8ef; color: #1b5e20; }
.mov-pill-redencion { background: #fff0f0; color: #8e1d1d; }
.mov-pill-ajuste    { background: #fff8e1; color: #7c5a0c; }
.mov-pill-anulacion { background: #fff0f0; color: #c62828; }

.mov-puntos { font-weight: 800; font-size: .95rem; }
.mov-puntos-pos { color: #1b5e20; }
.mov-puntos-neg { color: #8e1d1d; }

/* Pill puntos en compras */
.compra-pts-pill {
    background: #f3e6bf;
    color: #7c5a0c;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 700;
}

/* ============================================================
   GRID INSIGNIAS COMPLETO (mis insignias + por desbloquear)
   ============================================================ */
.insignias-grid-full {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
@media (min-width: 720px) {
    .insignias-grid-full { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
    .insignias-grid-full { grid-template-columns: repeat(4, 1fr); }
}

.insignia-card-full {
    background: #fff;
    border: 1px solid #e8e1d2;
    border-radius: 18px;
    padding: 18px 14px;
    text-align: center;
    transition: transform .2s, box-shadow .2s;
}
.insignia-card-full:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,.06);
}

.insignia-circle-grande {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 12px;
    font-size: 2.2rem;
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

.insignia-card-titulo {
    font-size: .95rem;
    font-weight: 800;
    color: #222;
    margin: 0 0 4px;
    line-height: 1.3;
}
.insignia-card-desc {
    font-size: .82rem;
    color: #666;
    line-height: 1.4;
    margin: 0 0 8px;
}
.insignia-card-fecha {
    color: #999;
    font-size: .74rem;
    display: block;
    margin-top: 4px;
}
.insignia-card-notas {
    color: #7c5a0c;
    font-size: .72rem;
    display: block;
    margin-top: 4px;
    font-style: italic;
    line-height: 1.4;
}

/* Variante "por desbloquear" */
.insignia-card-locked {
    background: #fafaf8;
    border: 1px dashed #e8e1d2;
    opacity: .65;
    transition: opacity .2s;
}
.insignia-card-locked:hover { opacity: .85; transform: none; box-shadow: none; }
.insignia-card-locked .insignia-circle-grande {
    background: #f0f0f0 !important;
    color: #999;
    box-shadow: 0 2px 6px rgba(0,0,0,.05);
}
.insignia-card-locked .insignia-card-titulo { color: #777; }
.insignia-card-locked .insignia-card-desc { color: #999; }

/* ============================================================
   PERFIL — campos en grid 2 col escritorio, 1 col móvil
   ============================================================ */
.perfil-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 18px;
}
@media (min-width: 600px) {
    .perfil-grid { grid-template-columns: repeat(2, 1fr); }
}

.perfil-field {
    background: #fafaf8;
    border: 1px solid #e8e1d2;
    border-radius: 12px;
    padding: 12px 14px;
}
.perfil-field-label {
    font-size: .72rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 700;
    margin: 0 0 4px;
}
.perfil-field-value {
    font-size: .95rem;
    color: #222;
    font-weight: 700;
    margin: 0;
    word-break: break-word;
}

.perfil-info {
    background: #fff8e1;
    color: #7c5a0c;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: .85rem;
    line-height: 1.5;
    margin-top: 14px;
}

/* Mini-cards de resumen (compras/puntos) */
.mini-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}
@media (min-width: 600px) {
    .mini-summary.is-three { grid-template-columns: repeat(3, 1fr); }
}

.mini-summary-card {
    background: #fff;
    border: 1px solid #e8e1d2;
    border-radius: 14px;
    padding: 12px 14px;
    text-align: center;
}
.mini-summary-card.is-gold {
    background: linear-gradient(135deg, #fffbef, #f3e6bf);
    border-color: rgba(184,138,30,.25);
}
.mini-summary-label {
    font-size: .72rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 700;
    display: block;
    margin: 0 0 4px;
}
.mini-summary-card.is-gold .mini-summary-label { color: #7c5a0c; }
.mini-summary-value {
    font-size: 1.2rem;
    font-weight: 900;
    color: #222;
    line-height: 1.1;
}
.mini-summary-card.is-gold .mini-summary-value { color: #7c5a0c; }

/* ============================================================
   CARRUSEL DE LOGROS - Estilos MEJORADOS (Tablet + Desktop)
   ============================================================ */

.logros-carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
    margin: 14px 0;
    padding: 8px 0;
    pointer-events: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.logros-carousel-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 12px;
    width: max-content;
    animation: logros-scroll 10s linear infinite;
}

/* Pausa solo en desktop con mouse real, NO en móvil */
@media (hover: hover) and (pointer: fine) {
    .logros-carousel:hover .logros-carousel-track {
        animation-play-state: paused;
    }
}

@keyframes logros-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ─── TARJETA DE LOGRO ─── */
.logros-carousel .logros-card {
    flex: 0 0 auto;
    width: 320px;
    min-width: 320px;
    max-width: 320px;
    height: 140px;
    background: linear-gradient(135deg,
        #fffbef 0%,
        #faf5eb 25%,
        #fff7df 45%,
        #f3e6bf 65%,
        #e8d9a8 100%);
    border: 2px solid rgba(184, 138, 30, 0.3);
    outline: 1px solid rgba(184, 138, 30, 0.15);
    outline-offset: -8px;
    border-radius: 14px;
    padding: 16px;
    box-shadow:
        0 4px 14px rgba(184, 138, 30, 0.12),
        inset 0 2px 4px rgba(255, 255, 255, 0.8),
        inset 0 -2px 4px rgba(124, 90, 8, 0.1);
    user-select: none;
    box-sizing: border-box;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 6px;
}

.logros-carousel .logros-card:hover {
    box-shadow:
        0 6px 20px rgba(184, 138, 30, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.9),
        inset 0 -2px 4px rgba(124, 90, 8, 0.15);
    border-color: rgba(184, 138, 30, 0.5);
}

/* ─── INFO DEL LOGRO ─── */
.logros-carousel .logro-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.logros-carousel .logro-medalla {
    display: none;
}

.logros-carousel .logro-medalla-nombre {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #b88a1e;
    line-height: 1.1;
}

.logros-carousel .logro-curso-titulo {
    font-size: 1rem;
    font-weight: 700;
    color: #5d4007;
    line-height: 1.35;
    word-break: break-word;
}

/* ─── BOTÓN VER MEDALLAS Y CERTIFICADOS ─── */
.btn-medallas-certificados {
    display: inline-block;
    background: linear-gradient(135deg, #b88a1e, #d7b246, #e8c856);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 
        0 6px 20px rgba(184, 138, 30, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
    transition: all 0.25s ease;
    letter-spacing: 0.3px;
}

.btn-medallas-certificados:hover {
    background: linear-gradient(135deg, #c9991f, #e0bb4d, #f0d461);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 28px rgba(184, 138, 30, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

.btn-medallas-certificados:active {
    transform: translateY(0);
    box-shadow: 
        0 3px 12px rgba(184, 138, 30, 0.25),
        inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ─── RESPONSIVE: TABLET (560px - 1024px) ─── */
@media (max-width: 1024px) and (min-width: 561px) {
    .logros-carousel .logros-card {
        flex: 0 0 auto;
        width: 300px;
        min-width: 300px;
        max-width: 300px;
        height: 135px;
        padding: 15px;
        gap: 5px;
    }
    
    .logros-carousel .logro-curso-titulo {
        font-size: 0.95rem;
    }
    
    .logros-carousel .logro-medalla-nombre {
        font-size: 0.72rem;
    }
    
    .btn-medallas-certificados {
        font-size: 0.9rem;
        padding: 12px 28px;
    }
}

/* ─── RESPONSIVE: MÓVIL (max 560px) ─── */
@media (max-width: 560px) {
    .logros-carousel {
        padding: 6px 0;
    }
    
    .logros-carousel .logros-card {
        flex: 0 0 auto;
        width: 280px;
        min-width: 280px;
        max-width: 280px;
        height: 130px;
        padding: 14px;
        gap: 5px;
    }
    
    .logros-carousel .logro-curso-titulo {
        font-size: 0.92rem;
    }
    
    .logros-carousel .logro-medalla-nombre {
        font-size: 0.68rem;
    }
    
    .btn-medallas-certificados {
        font-size: 0.9rem;
        padding: 12px 28px;
    }
}

/* ─── RESPONSIVE: MÓVIL PEQUEÑO (max 380px) ─── */
@media (max-width: 380px) {
    .logros-carousel .logros-card {
        flex: 0 0 auto;
        width: 240px;
        min-width: 240px;
        max-width: 240px;
        height: 120px;
        padding: 12px;
        gap: 4px;
    }
    
    .logros-carousel .logro-medalla-nombre {
        font-size: 0.65rem;
    }
    
    .logros-carousel .logro-curso-titulo {
        font-size: 0.85rem;
    }
    
    .btn-medallas-certificados {
        font-size: 0.85rem;
        padding: 11px 24px;
    }
}


/* ============================================================
   ESTILOS PARA MEDALLAS DESBLOQUEADAS/BLOQUEADAS
   ============================================================ */

/* Medallas bloqueadas - estado desbloqueado */
.insignia-card-locked {
    opacity: 0.65;
    pointer-events: none;
    background: linear-gradient(135deg,
        #f5f5f5 0%,
        #f0f0f0 25%,
        #ececec 45%,
        #e8e8e8 65%,
        #e0e0e0 100%) !important;
    border-color: rgba(150, 150, 150, 0.2) !important;
}

.insignia-card-locked .logro-medalla {
    filter: grayscale(1) brightness(0.85);
    opacity: 0.5;
    background: linear-gradient(135deg, #d0d0d0, #b0b0b0) !important;
}

.insignia-card-locked .logro-medalla-nombre {
    color: #aaa;
}

.insignia-card-locked .logro-curso-titulo {
    color: #999;
}

.insignia-card-locked .logro-cert-btn {
    display: none;
}

/* Hover effect solo en tarjetas desbloqueadas */
.logro-curso:not(.insignia-card-locked):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 138, 30, 0.2) !important;
}

/* Animación de entrada para medallas obtenidas */
@keyframes medalla-entrada {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.logro-curso:not(.insignia-card-locked) {
    animation: medalla-entrada 0.4s ease-out;
}
