:root{
  --alp-orange:#fc4b08;
  --alp-orange-dark:#d83d00;
  --alp-soft:#fff4ef;
  --alp-ink:#0f172a;
  --alp-muted:#64748b;
  --alp-line:#e2e8f0;
}

.account-page{
  min-height:68vh;
  padding:34px 0 60px;
  background:
    radial-gradient(circle at 10% 0%, rgba(252,75,8,.09), transparent 30%),
    linear-gradient(180deg,#fff,#f8fafc);
}

.account-shell{
  max-width:1180px;
  margin:0 auto;
  padding:0 16px;
}

.account-hidden{ display:none !important; }

.account-auth-card{
  width:min(100%,900px);
  margin:20px auto;
  display:grid;
  grid-template-columns:1fr 1fr;
  overflow:hidden;
  border:1px solid var(--alp-line);
  border-radius:26px;
  background:#fff;
  box-shadow:0 24px 70px rgba(15,23,42,.12);
}

.account-welcome{
  padding:40px;
  color:#fff;
  background:
    linear-gradient(145deg,rgba(252,75,8,.96),rgba(215,55,0,.98));
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.account-welcome__icon{
  width:74px;height:74px;border-radius:22px;
  display:grid;place-items:center;
  background:rgba(255,255,255,.16);
  font-size:38px;
  margin-bottom:18px;
}

.account-welcome h1{ margin:0 0 12px;font-size:34px; }
.account-welcome p{ margin:0;line-height:1.65;color:#fff; }

.account-auth{
  padding:34px;
}

.account-tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  padding:5px;
  background:#f1f5f9;
  border-radius:14px;
  margin-bottom:22px;
}

.account-tab{
  border:0;
  border-radius:10px;
  padding:11px;
  font-weight:850;
  cursor:pointer;
  background:transparent;
}

.account-tab.active{
  background:#fff;
  color:var(--alp-orange);
  box-shadow:0 4px 12px rgba(15,23,42,.08);
}

.account-form{ display:grid;gap:13px; }
.account-field{ display:grid;gap:6px; }
.account-field label{ font-weight:750;font-size:13px; }
.account-field input{
  width:100%;
  height:46px;
  border:1.5px solid #dbe4ee;
  border-radius:12px;
  padding:0 13px;
  outline:0;
  font:inherit;
}
.account-field input:focus{
  border-color:var(--alp-orange);
  box-shadow:0 0 0 4px rgba(252,75,8,.10);
}

.account-submit{
  min-height:47px;
  border:0;
  border-radius:13px;
  background:linear-gradient(135deg,#ff733d,var(--alp-orange));
  color:#fff;
  font-weight:900;
  cursor:pointer;
}

.account-social{
  margin-top:18px;
  padding-top:18px;
  border-top:1px solid var(--alp-line);
}

.account-social__label{
  color:var(--alp-muted);
  font-size:13px;
  text-align:center;
  margin-bottom:10px;
}

.account-social__grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
}

.account-social__grid--three{
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.account-social-btn{
  min-height:46px;
  border:1px solid var(--alp-line);
  border-radius:12px;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  color:#0f172a;
  font-weight:800;
  cursor:pointer;
  transition:.18s ease;
}

.account-social-btn:hover{
  transform:translateY(-1px);
  border-color:#fdba9e;
  background:#fff7f2;
}

.account-social-logo{
  width:25px;
  height:25px;
  border-radius:7px;
  display:grid;
  place-items:center;
  background:#f1f5f9;
  font-weight:900;
}

.account-social-note{
  margin-top:10px;
  color:#64748b;
  font-size:12px;
  line-height:1.45;
  text-align:center;
}

.account-msg{
  min-height:20px;
  font-size:13px;
  font-weight:750;
}
.account-msg.error{ color:#b91c1c; }
.account-msg.success{ color:#15803d; }

.account-dashboard{
  display:grid;
  gap:24px;
}

.account-profile-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:24px;
  border:1px solid var(--alp-line);
  border-radius:22px;
  background:#fff;
  box-shadow:0 12px 34px rgba(15,23,42,.08);
}

.account-user{
  display:flex;
  align-items:center;
  gap:15px;
}

.account-avatar{
  width:66px;height:66px;border-radius:50%;
  display:grid;place-items:center;
  background:var(--alp-soft);
  color:var(--alp-orange);
  font-size:31px;
  box-shadow:0 0 0 7px rgba(252,75,8,.08);
}

.account-user h2{ margin:0 0 5px; }
.account-user p{ margin:0;color:var(--alp-muted); }

.account-logout{
  border:1px solid #fecaca;
  background:#fff;
  color:#b91c1c;
  border-radius:12px;
  padding:10px 15px;
  font-weight:850;
  cursor:pointer;
}

.account-menu{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:12px;
}

.account-menu-btn{
  min-height:132px;
  padding:15px 10px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:9px;
  border:1px solid var(--alp-line);
  border-radius:18px;
  background:#fff;
  color:var(--alp-ink);
  cursor:pointer;
  box-shadow:0 8px 24px rgba(15,23,42,.05);
  transition:.18s ease;
}

.account-menu-btn:hover,
.account-menu-btn.active{
  transform:translateY(-2px);
  border-color:#fdba9e;
  background:var(--alp-soft);
  color:var(--alp-orange-dark);
}

.account-menu-icon{ font-size:30px; }
.account-menu-label{ font-weight:850;text-align:center; }

.account-panel{
  display:none;
  padding:22px;
  border:1px solid var(--alp-line);
  border-radius:20px;
  background:#fff;
  box-shadow:0 10px 30px rgba(15,23,42,.06);
}
.account-panel.active{ display:block; }
.account-panel h3{ margin:0 0 16px; }

.account-grid-2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.account-card-list{ display:grid;gap:12px; }

.account-order{
  border:1px solid var(--alp-line);
  border-radius:16px;
  padding:16px;
  background:#fff;
}

.account-order-head{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
}

.account-order-title{ font-weight:900;font-size:17px; }
.account-order-meta{ color:var(--alp-muted);font-size:13px;margin-top:4px; }
.account-order-total{ font-weight:900;color:var(--alp-orange);font-size:19px; }

.account-status{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:10px;
  padding:6px 10px;
  border-radius:999px;
  background:#fff4ef;
  color:#c2410c;
  font-size:12px;
  font-weight:850;
}

.account-order-items{
  margin:12px 0 0;
  padding-top:12px;
  border-top:1px solid var(--alp-line);
  display:grid;
  gap:6px;
  font-size:13px;
}

.account-address{
  border:1px solid var(--alp-line);
  border-radius:15px;
  padding:14px;
}

.account-address-actions{
  display:flex;
  gap:8px;
  margin-top:10px;
}

.account-small-btn{
  border:1px solid var(--alp-line);
  background:#fff;
  border-radius:9px;
  padding:7px 10px;
  cursor:pointer;
  font-weight:750;
}

.account-empty{
  padding:30px 16px;
  border:1px dashed #cbd5e1;
  border-radius:15px;
  text-align:center;
  color:var(--alp-muted);
  background:#f8fafc;
}

.account-modal{
  position:fixed;
  inset:0;
  z-index:30000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
}
.account-modal.hidden{ display:none !important; }
.account-modal-bg{
  position:absolute;inset:0;
  background:rgba(2,8,23,.75);
  backdrop-filter:blur(5px);
}
.account-modal-card{
  position:relative;
  z-index:1;
  width:min(460px,96vw);
  padding:25px;
  border-radius:22px;
  background:#fff;
  box-shadow:0 30px 90px rgba(2,8,23,.45);
}
.account-modal-card h3{ margin:0 0 10px; }
.account-modal-card p{ color:var(--alp-muted);line-height:1.5; }
.account-modal-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:18px;
}

@media(max-width:980px){
  .account-menu{ grid-template-columns:repeat(3,1fr); }
}

@media(max-width:760px){
  .account-auth-card{ grid-template-columns:1fr; }
  .account-welcome{ padding:28px; }
  .account-auth{ padding:24px; }
  .account-profile-head{ align-items:flex-start;flex-direction:column; }
  .account-menu{ grid-template-columns:repeat(2,1fr); }
  .account-grid-2{ grid-template-columns:1fr; }
  .account-social__grid,
  .account-social__grid--three{ grid-template-columns:1fr; }
}


/* =========================================================
   AJUSTES VISUALES PARA IGUALAR EL RESTO DEL SITIO ALP
   ========================================================= */

html,
body{
  min-height:100%;
  background:#fff;
  color:#0f172a;
  font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}

body{
  display:flex;
  flex-direction:column;
}

.account-page{
  flex:1;
  min-height:640px;
  padding:32px 0 54px;
  background:#fff;
}

.account-auth-card,
.account-profile-head,
.account-panel,
.account-menu-btn{
  font-family:inherit;
}

.account-welcome{
  background:linear-gradient(145deg,#ff6c33,#fc4b08);
}

.account-main-nav{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:2px;
}

.account-main-nav a{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-right:12px;
  color:#0f172a;
  font-size:15px;
  font-weight:500;
  text-decoration:none;
  white-space:nowrap;
}

.account-main-nav a:hover,
.account-main-nav a.active{
  color:#d93e00;
}

.account-nav-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#fc4b08;
  line-height:1;
}

.account-cart-button{
  padding:5px 9px;
  border:0;
  box-shadow:none;
}

.account-cart-button img{
  display:block;
  object-fit:contain;
}

/* ===== Franja naranja ===== */
.account-social-footer{
  width:100%;
  margin-top:auto;
  padding:34px 0;
  background:#fc4b08;
  color:#fff;
}

.account-social-footer .social-wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
}

.account-social-footer .social-brand{
  display:flex;
  align-items:center;
  gap:16px;
}

.account-social-footer .logo{
  flex:0 0 54px;
  width:54px;
  height:54px;
  border-radius:13px;
  background:#fff;
  color:#fc4b08;
  box-shadow:0 8px 22px rgba(0,0,0,.13);
}

.account-social-footer h3{
  margin:0 0 8px;
  color:#fff;
  font-size:18px;
}

.account-social-footer .social-contacts{
  margin:0;
  color:#fff;
  line-height:1.7;
}

.account-social-footer a{
  color:#fff;
  font-weight:650;
  text-decoration:underline;
}

.social-separator{
  display:inline-block;
  margin:0 8px;
}

.account-social-footer .social-icons{
  display:flex;
  align-items:center;
  gap:10px;
}

.account-social-footer .social-icons .ic{
  width:41px;
  height:41px;
  display:grid;
  place-items:center;
  border:1.5px solid rgba(255,255,255,.80);
  border-radius:50%;
  background:rgba(255,255,255,.08);
  color:#fff;
  transition:.18s ease;
}

.account-social-footer .social-icons .ic:hover{
  transform:translateY(-2px);
  background:#fff;
  color:#fc4b08;
}

.account-social-footer .social-icons svg{
  width:21px;
  height:21px;
  fill:currentColor;
}

.account-footer{
  background:#fff;
  padding:18px 0;
  border-top:0;
  color:#64748b;
}


/* =========================================================
   WIDGET FLOTANTE DE ASISTENCIA ALP
   Clases exclusivas para evitar conflictos con otras páginas.
   ========================================================= */

.alp-help-widget,
.alp-help-widget *{
  box-sizing:border-box;
}

.alp-help-widget{
  position:fixed;
  right:20px;
  bottom:20px;
  z-index:50000;
  font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}

.alp-help-button{
  position:relative;
  z-index:3;
  width:62px;
  height:62px;
  margin-left:auto;
  display:grid;
  place-items:center;
  border:0;
  border-radius:50%;
  background:linear-gradient(145deg,#0877bd,#005f9f);
  color:#fff;
  cursor:pointer;
  box-shadow:
    0 16px 34px rgba(0,69,116,.30),
    0 0 0 7px rgba(8,119,189,.10);
  transition:
    transform .18s ease,
    box-shadow .18s ease;
}

.alp-help-button:hover{
  transform:translateY(-2px) scale(1.03);
  box-shadow:
    0 20px 40px rgba(0,69,116,.36),
    0 0 0 9px rgba(8,119,189,.12);
}

.alp-help-button:focus-visible,
.alp-help-close:focus-visible,
.alp-help-whatsapp:focus-visible{
  outline:3px solid rgba(252,75,8,.28);
  outline-offset:3px;
}

.alp-help-button svg{
  width:29px;
  height:29px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.alp-help-callout{
  position:absolute;
  right:76px;
  bottom:7px;
  width:max-content;
  max-width:245px;
  min-height:47px;
  display:flex;
  align-items:center;
  gap:9px;
  padding:10px 14px;
  border-radius:14px;
  background:#111827;
  color:#fff;
  font-size:14px;
  line-height:1.25;
  font-weight:850;
  box-shadow:0 15px 34px rgba(2,8,23,.25);
  animation:
    alpHelpAppear .28s ease both,
    alpHelpFloat 3s ease-in-out 1s infinite;
}

.alp-help-callout::after{
  content:"";
  position:absolute;
  right:-8px;
  bottom:15px;
  border-left:9px solid #111827;
  border-top:8px solid transparent;
  border-bottom:8px solid transparent;
}

.alp-help-callout.is-hidden{
  display:none;
}

.alp-help-online-dot{
  width:11px;
  height:11px;
  flex:0 0 11px;
  border-radius:50%;
  background:#22c55e;
  box-shadow:0 0 0 5px rgba(34,197,94,.16);
  animation:alpHelpPulse 1.7s infinite;
}

.alp-help-panel{
  position:absolute;
  right:0;
  bottom:78px;
  width:340px;
  max-width:calc(100vw - 28px);
  overflow:hidden;
  visibility:hidden;
  opacity:0;
  pointer-events:none;
  transform:translateY(14px) scale(.96);
  transform-origin:right bottom;
  border:1px solid #dbe4ee;
  border-radius:21px;
  background:#fff;
  box-shadow:0 30px 80px rgba(2,8,23,.28);
  transition:
    opacity .2s ease,
    transform .2s ease,
    visibility .2s ease;
}

.alp-help-panel.is-open{
  visibility:visible;
  opacity:1;
  pointer-events:auto;
  transform:translateY(0) scale(1);
}

.alp-help-header{
  min-height:72px;
  padding:15px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  background:linear-gradient(135deg,#ff6c33,#fc4b08);
  color:#fff;
}

.alp-help-header > div{
  display:grid;
  gap:2px;
}

.alp-help-header strong{
  font-size:17px;
  font-weight:900;
}

.alp-help-header span{
  color:rgba(255,255,255,.86);
  font-size:12px;
}

.alp-help-close{
  width:34px;
  height:34px;
  flex:0 0 34px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid rgba(255,255,255,.55);
  border-radius:10px;
  background:rgba(255,255,255,.15);
  color:#fff;
  font-size:24px;
  line-height:1;
  font-weight:500;
  cursor:pointer;
}

.alp-help-close:hover{
  background:rgba(255,255,255,.25);
}

.alp-help-body{
  padding:16px;
  background:#f8fafc;
}

.alp-help-message{
  display:flex;
  align-items:flex-end;
  gap:9px;
  margin-bottom:16px;
}

.alp-help-avatar{
  width:38px;
  height:38px;
  flex:0 0 38px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:#fc4b08;
  color:#fff;
  font-size:11px;
  font-weight:900;
  box-shadow:0 6px 14px rgba(252,75,8,.22);
}

.alp-help-bubble{
  padding:11px 13px;
  border:1px solid #e2e8f0;
  border-radius:14px 14px 14px 4px;
  background:#fff;
  color:#334155;
  font-size:14px;
  line-height:1.45;
  box-shadow:0 5px 15px rgba(15,23,42,.05);
}

.alp-help-whatsapp{
  width:100%;
  min-height:61px;
  padding:10px 12px;
  display:grid;
  grid-template-columns:40px minmax(0,1fr) 20px;
  align-items:center;
  gap:11px;
  border:1px solid #bbf7d0;
  border-radius:15px;
  background:#f0fdf4;
  color:#14532d;
  text-align:left;
  cursor:pointer;
  transition:
    transform .16s ease,
    border-color .16s ease,
    background .16s ease;
}

.alp-help-whatsapp:hover{
  transform:translateY(-1px);
  border-color:#4ade80;
  background:#dcfce7;
}

.alp-help-whatsapp-icon{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:#25d366;
  color:#fff;
  box-shadow:0 6px 14px rgba(37,211,102,.26);
}

.alp-help-whatsapp-icon svg{
  width:23px;
  height:23px;
  fill:currentColor;
}

.alp-help-whatsapp > span:nth-child(2){
  display:grid;
  gap:2px;
}

.alp-help-whatsapp strong{
  font-size:14px;
  font-weight:900;
}

.alp-help-whatsapp small{
  color:#15803d;
  font-size:12px;
}

.alp-help-arrow{
  color:#16a34a;
  font-size:28px;
  line-height:1;
}

.alp-help-note{
  margin:11px 0 0;
  color:#64748b;
  font-size:12px;
  text-align:center;
}

@keyframes alpHelpAppear{
  from{
    opacity:0;
    transform:translateY(7px) scale(.98);
  }
  to{
    opacity:1;
    transform:translateY(0) scale(1);
  }
}

@keyframes alpHelpFloat{
  0%,100%{ transform:translateY(0); }
  50%{ transform:translateY(-4px); }
}

@keyframes alpHelpPulse{
  0%{ box-shadow:0 0 0 0 rgba(34,197,94,.60); }
  70%{ box-shadow:0 0 0 10px rgba(34,197,94,0); }
  100%{ box-shadow:0 0 0 0 rgba(34,197,94,0); }
}

@media(max-width:620px){
  .alp-help-widget{
    right:14px;
    bottom:14px;
  }

  .alp-help-button{
    width:56px;
    height:56px;
  }

  .alp-help-callout{
    right:68px;
    bottom:5px;
    max-width:185px;
    min-height:44px;
    padding:9px 11px;
    font-size:12px;
  }

  .alp-help-panel{
    right:0;
    bottom:70px;
    width:min(330px,calc(100vw - 28px));
  }
}

.account-order-actions{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin-top:14px;
}

.account-pdf-button{
  min-height:41px;
  padding:9px 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:1px solid #ffd5c6;
  border-radius:11px;
  background:#fff7f2;
  color:#d93e00;
  font-size:14px;
  font-weight:850;
  text-decoration:none;
  transition:
    transform .16s ease,
    background .16s ease,
    border-color .16s ease;
}

.account-pdf-button:hover{
  transform:translateY(-1px);
  border-color:#fc4b08;
  background:#fff0e9;
}

/* =========================================================
   BOTONES DE ACCESO SOCIAL CON LOGOS OFICIALES
   ========================================================= */
.account-social-btn{
  position:relative;
  min-height:52px;
  padding:9px 12px;
  overflow:hidden;
  border-width:1.5px;
  box-shadow:0 7px 18px rgba(15,23,42,.06);
}

.account-social-btn::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:0;
  background:linear-gradient(110deg,transparent 20%,rgba(255,255,255,.75) 45%,transparent 70%);
  transform:translateX(-120%);
}

.account-social-btn:hover::after{
  opacity:1;
  animation:accountSocialShine .7s ease;
}

.account-social-btn--google:hover{
  border-color:#4285f4;
  background:#f8fbff;
  box-shadow:0 11px 25px rgba(66,133,244,.16);
}

.account-social-btn--microsoft:hover{
  border-color:#00a4ef;
  background:#f8fcff;
  box-shadow:0 11px 25px rgba(0,164,239,.15);
}

.account-social-btn--facebook:hover{
  border-color:#1877f2;
  background:#f7faff;
  box-shadow:0 11px 25px rgba(24,119,242,.16);
}

.account-social-logo{
  width:31px;
  height:31px;
  flex:0 0 31px;
  padding:5px;
  border:1px solid #e2e8f0;
  border-radius:9px;
  background:#fff;
  box-shadow:0 4px 10px rgba(15,23,42,.08);
}

.account-social-logo svg{
  width:100%;
  height:100%;
  display:block;
}

.account-social-logo--facebook{
  padding:3px;
}

.account-social-btn > span:last-child{
  position:relative;
  z-index:1;
}

@keyframes accountSocialShine{
  to{ transform:translateX(120%); }
}
/* Estado mostrado cuando el backend aún no generó el PDF */
.account-pdf-pending{
  min-height:41px;
  padding:9px 14px;
  display:inline-flex;
  align-items:center;
  border:1px dashed #f59e0b;
  border-radius:11px;
  background:#fffbeb;
  color:#92400e;
  font-size:13px;
  font-weight:800;
}