/* =========================================
   DECOPADO - APP ACCOUNT STYLES (ORDENADO)
   ========================================= */


/* ---------------------------------------------------------
   1. LAYOUT MAESTRO (my-account.php)
   --------------------------------------------------------- */
.account-hub-layout {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Header Móvil */
.app-account-header h1 {
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 5px;
  color: var(--text-title);
}
.app-account-header p {
  color: #888;
  font-size: 0.9rem;
}

/* Layout Desktop (Sidebar + Contenido) */
@media (min-width: 1024px) {
  .account-hub-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 50px;
    align-items: start;
  }
  .mobile-only {
    display: none !important;
  }
}


/* ---------------------------------------------------------
   2. NAVEGACIÓN & AVATAR (navigation.php) - MOBILE FIRST
   --------------------------------------------------------- */
.account-hub-sidebar {
  background: #fff;
  border-radius: 24px;
  padding: 25px;
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.08);
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .account-hub-sidebar {
    background: transparent;
    box-shadow: none;
    padding: 0;
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
}

.user-profile-card {
  display: flex;
  align-items: center;
  gap: 15px;

  background: transparent;
  box-shadow: none;
  border: none;
  border-radius: 0;

  padding: 0 0 20px 0;
  margin-bottom: 15px;
  border-bottom: 1px solid #f5f5f5;

  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .user-profile-card {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
    margin-bottom: 0;
    border-bottom: none;
  }
}

.upc-avatar {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #f9f9f9;
  flex-shrink: 0;
}
.upc-avatar img { width: 100%; height: 100%; object-fit: cover; }

.upc-info { display: flex; flex-direction: column; width: 100%; overflow: hidden; }
.upc-welcome {
  font-size: 0.7rem;
  color: #aaa;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.upc-name {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--text-body);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-nav-list {
  list-style: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;

  background: transparent;
  box-shadow: none;
  padding: 0;

  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .account-nav-list {
    background: #fff;
    padding: 15px;
    border-radius: 24px;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.05);
  }
}

.account-nav-list li { width: 100%; margin: 0; display: block; }

.account-nav-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;

  width: 100%;
  box-sizing: border-box;

  padding: 14px 15px;
  border-radius: 12px;

  font-weight: 600;
  color: #666;
  text-decoration: none;
  background: transparent;
  transition: all 0.2s ease;
}

@media (min-width: 1024px) {
  .account-nav-list li a {
    padding: 14px 25px;
    border-radius: 50px;
  }
}

.account-nav-list li a:hover {
  background: #f8f9fa;
  color: var(--primary);
  transform: translateX(5px);
}

.account-nav-list li.is-active a {
  background: var(--primary);
  color: white;
  box-shadow: 0 5px 15px rgba(159, 182, 177, 0.4);
}

.woocommerce-MyAccount-navigation {
  width: 100% !important;
  float: none !important;
  margin-right: 0 !important;
}


/* ---------------------------------------------------------
   3. DASHBOARD: BENTO GRID
   --------------------------------------------------------- */
.dashboard-hub { width: 100%; animation: fadeIn 0.5s ease; }

.bento-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

.b-card {
  background: #fff;
  border-radius: 24px;
  padding: 25px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none !important;
  color: var(--text-body);
  box-shadow: 0 10px 30px -5px rgba(0,0,0,0.06);
  border: 1px solid rgba(255,255,255,0.6);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.b-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px -10px rgba(0,0,0,0.12);
  z-index: 2;
  border-color: transparent;
}

/* Perfil */
.b-profile {
  background: linear-gradient(135deg, #ffffff 0%, #f0f6f5 100%);
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
}
.b-profile::after {
  content: '\f007';
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  right: -20px;
  bottom: -30px;
  font-size: 8rem;
  color: var(--primary);
  opacity: 0.05;
  transform: rotate(-15deg);
  pointer-events: none;
}
.profile-avatar {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  background: #fff;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  flex-shrink: 0;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-info { z-index: 2; display: flex; flex-direction: column; align-items: flex-start; }
.profile-info h2 { margin: 0; font-size: 1.6rem; font-weight: 800; color: var(--text-body); line-height: 1.1; }
.profile-info p { margin: 5px 0 0 0; color: #888; font-size: 0.95rem; }
.profile-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 50px;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(159, 182, 177, 0.4);
}

/* Tracking */
.b-tracking { border-top: 5px solid var(--accent); }
.bt-head { display: flex; justify-content: space-between; margin-bottom: 5px; width: 100%; }
.bt-label { font-size: 0.75rem; font-weight: 700; color: #bbb; text-transform: uppercase; letter-spacing: 1px; }
.bt-status { font-size: 1.3rem; font-weight: 800; margin: 0; color: var(--text-body); }
.bt-meta { color: #27ae60; font-weight: 600; font-size: 0.95rem; display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.pulse { width: 10px; height: 10px; background: #27ae60; border-radius: 50%; animation: pulse 2s infinite; }

/* Wishlist */
.b-wish { align-items: center; justify-content: center; gap: 15px; text-align: center; }
.wish-icon { font-size: 2rem; color: #ffafaf; transition: 0.3s; }
.b-wish:hover .wish-icon { color: #ff6b6b; transform: scale(1.2); }
.wish-count { font-weight: 800; font-size: 1rem; }

/* Herramientas */
.b-tool { align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 25px 15px; }
.tool-icon {
  width: 50px;
  height: 50px;
  background: #f4f8f7;
  color: var(--primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: 0.3s;
}
.b-tool:hover .tool-icon {
  background: var(--primary);
  color: white;
  transform: rotate(-10deg) scale(1.1);
  box-shadow: 0 5px 15px rgba(159, 182, 177, 0.4);
}
.tool-name { font-weight: 700; font-size: 0.95rem; line-height: 1.2; }

.b-tool.care .tool-icon { background: #fff8e1; color: var(--accent); }
.b-tool.care:hover .tool-icon { background: var(--accent); color: white; box-shadow: 0 5px 15px rgba(201, 162, 126, 0.4); }

/* Acciones */
.b-wa {
  background: #e6f9ee;
  color: #25D366;
  border: 1px solid #dbece4;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 15px;
}
.b-wa i { font-size: 1.8rem; transition: transform 0.3s; }
.b-wa span { font-weight: 700; font-size: 1.1rem; }
.b-wa:hover { background: #25D366; color: white; border-color: #25D366; box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3); }
.b-wa:hover i { transform: scale(1.1); }

.b-docs { align-items: center; justify-content: center; gap: 10px; text-align: center; background: #fbfbfb; }
.b-docs i { color: #999; font-size: 1.4rem; transition: 0.3s; }
.b-docs:hover i { color: var(--text-body); transform: translateY(-3px); }

.b-logout {
  background: #fffafa;
  border: 1px dashed #ffcccc;
  color: #ff8888;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  box-shadow: none;
}
.b-logout:hover {
  border-style: solid;
  border-color: #ff6b6b;
  background: #ff6b6b;
  color: white;
  box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7); } 100% { box-shadow: 0 0 0 10px rgba(39, 174, 96, 0); } }

@media (min-width: 900px) {
  .bento-grid { grid-template-columns: repeat(4, 1fr); grid-template-rows: 180px 140px 80px; gap: 25px; }
  .b-profile { grid-column: span 2; }
  .b-tracking { grid-column: span 1; }
  .b-wish { grid-column: span 1; }
  .b-tool { grid-column: span 1; }
  .b-wa { grid-column: span 2; }
  .b-docs { grid-column: span 1; }
  .b-logout { grid-column: span 1; }
}

@media (max-width: 899px) {
  .bento-grid { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }

  .b-profile, .b-tracking, .b-wa, .b-logout {
    grid-column: span 2 !important;
    width: 100% !important;
  }

  .b-tool, .b-docs, .b-wish {
    grid-column: span 1 !important;
    padding: 20px 10px !important;
    min-height: 110px !important;
    justify-content: center !important;
  }

  .tool-icon, .b-docs i, .wish-icon {
    width: 50px !important;
    height: 50px !important;
    font-size: 1.5rem !important;
    margin-bottom: 8px !important;
    border-radius: 14px !important;
  }

  .tool-name, .b-docs span, .wish-count {
    font-size: 0.85rem !important;
    line-height: 1.1 !important;
  }

  .b-logout {
    flex-direction: row !important;
    padding: 18px !important;
    gap: 10px !important;
    background-color: #fff5f5 !important;
    border-color: #ffcccc !important;
  }

  .b-wa i, .b-logout i {
    font-size: 2.2rem !important;
    margin: 0 !important;
  }

  .b-wa span, .b-logout span {
    font-size: 1.25rem !important;
  }
}


/* ---------------------------------------------------------
   4. LOGIN / REGISTRO ESTILO APP
   --------------------------------------------------------- */
.login-wrapper-app {
  max-width: 400px;
  margin: 40px auto;
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.login-toggle-btns {
  display: flex;
  background: #f0f0f0;
  padding: 4px;
  border-radius: 50px;
  margin-bottom: 30px;
}

.l-btn {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #999;
  cursor: pointer;
  transition: 0.3s;
}
.l-btn.active {
  background: #fff;
  color: var(--text-body);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.app-input {
  width: 100%;
  padding: 12px 15px !important;
  border: 2px solid #eee !important;
  border-radius: 12px !important;
  font-size: 1rem !important;
  background: #fafafa !important;
}
.app-input:focus {
  border-color: var(--primary) !important;
  background: #fff !important;
}

.app-btn-full {
  width: 100%;
  background: var(--primary) !important;
  color: white !important;
  padding: 14px !important;
  border-radius: 12px !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 10px;
}


/* ---------------------------------------------------------
   5. SOCIAL LOGIN (NEXTEND) & OVERRIDES
   --------------------------------------------------------- */
.social-login-box { text-align: center; margin-bottom: 20px; }

.login-separator {
  text-align: center;
  border-bottom: 1px solid #eee;
  line-height: 0.1em;
  margin: 30px 0 20px;
}
.login-separator span {
  background: #fff;
  padding: 0 10px;
  color: #999;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
}

#form-register .nsl-label-text { display: none; }
#form-register .nsl-button-custom-decopado::after {
  content: "Registrarme con Google";
  font-weight: 600;
  color: #555555;
  margin-left: 5px;
}
#form-register .nsl-button-custom-decopado { justify-content: center; }

div.nsl-container,
div.nsl-container-block {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 0 20px 0 !important;
  text-align: center !important;
}
div.nsl-container .nsl-container-buttons { display: block !important; width: 100% !important; }
div.nsl-container a.nsl-button {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  text-decoration: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50px !important;
  margin-bottom: 10px;
}
.nsl-button-custom-decopado {
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}


/* ---------------------------------------------------------
   6. UTILITIES (Woo)
   --------------------------------------------------------- */
.woocommerce-password-strength {
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  border-radius: 12px !important;
  padding: 14px !important;
  margin-top: 10px !important;
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.woocommerce-password-strength.short,
.woocommerce-password-strength.bad {
  background-color: #ffe5e5 !important;
  color: #d63031 !important;
  border: 1px solid #ffe5e5;
}
.woocommerce-password-strength.good {
  background-color: #fff7d6 !important;
  color: #f1c40f !important;
  border: 1px solid #fff7d6;
}
.woocommerce-password-strength.strong {
  background-color: #ddf7e7 !important;
  color: #2ecc71 !important;
  border: 1px solid #ddf7e7;
}

.app-notices-area { display: none !important; }


/* ---------------------------------------------------------
   7. ANIMACIONES / INTERACCIÓN
   --------------------------------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.tap-active {
  transform: scale(0.98) !important;
  background-color: rgba(0,0,0,0.05) !important;
  transition: all 0.1s ease !important;
}

.account-hub-content { transition: opacity 0.3s ease; }


/* ---------------------------------------------------------
   8. EXPANDER (Bento App)
   --------------------------------------------------------- */
.bento-grid.hidden-view { display: none; }

.bento-expander {
  display: none;
  background: #fff;
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.08);
  animation: expandUp 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  width: 100%;
}
.bento-expander.active-view { display: block; }

@keyframes expandUp {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* El contenedor que vos inyectás desde JS */
.expander-content {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Botón Volver: UNA sola definición (sin order acá) */
.btn-cancel-expand {
  background: #f0f0f0;
  color: #666;
  border: none;
  padding: 12px 25px;
  border-radius: 50px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s;
  text-transform: uppercase;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  min-width: 180px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  margin: 0;
}
.btn-cancel-expand:hover {
  background: #e5e5e5;
  color: #333;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Volver abajo + separado (esto era lo que querías) */
.expander-content > * { order: 1; }
.expander-content > .btn-cancel-expand {
  order: 99;
  margin-top: 28px !important;
  align-self: center;
}

/* Ajuste básico dentro del expander */
.bento-expander form { margin: 0; }
.bento-expander h3 { margin-top: 0; font-size: 1.5rem; margin-bottom: 20px; color: var(--text-title); }


/* ---------------------------------------------------------
   9. ESTILOS INTERNOS: Mis Datos, Pedidos, Direcciones
   --------------------------------------------------------- */

/* Mis Datos */
.woocommerce-EditAccountForm fieldset { background: #fff; padding: 0; border: none; margin-bottom: 20px; }
.woocommerce-EditAccountForm legend {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-title);
  margin-bottom: 15px;
  display: block;
  width: 100%;
  border-bottom: 2px solid #f5f5f5;
  padding-bottom: 10px;
}
.woocommerce-EditAccountForm p.form-row { margin-bottom: 15px; }
.woocommerce-EditAccountForm label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
  margin-bottom: 5px;
  display: block;
}
.woocommerce-EditAccountForm input.input-text {
  width: 100%;
  padding: 12px 15px !important;
  border: 2px solid #eee !important;
  border-radius: 12px !important;
  font-size: 1rem !important;
  background: #fbfbfb !important;
  color: var(--text-body);
  box-sizing: border-box;
}
.woocommerce-EditAccountForm input.input-text:focus {
  background: #fff !important;
  border-color: var(--primary) !important;
}

/* Mis Compras / Pedidos (tabla a tarjetas) */
.woocommerce-orders-table { width: 100%; border-collapse: separate; border-spacing: 0 15px; }
.woocommerce-orders-table thead { display: none; }

.woocommerce-orders-table__row {
  display: flex;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.03);
  position: relative;
  align-items: center;
}
.woocommerce-orders-table__cell {
  display: block;
  border: none !important;
  padding: 5px 0;
  font-size: 0.95rem;
  width: 100%;
}
.woocommerce-orders-table__cell::before {
  content: attr(data-title) ": ";
  font-weight: 700;
  font-size: 0.75rem;
  color: #aaa;
  text-transform: uppercase;
  margin-right: 5px;
}
.woocommerce-orders-table__cell-order-status { color: var(--text-body); font-weight: 600; }
.woocommerce-orders-table__cell-order-total { font-weight: 800; color: var(--primary); font-size: 1.1rem; }

.woocommerce-orders-table__cell-order-actions {
  margin-top: 15px;
  padding-top: 15px !important;
  border-top: 1px dashed #eee !important;
  width: 100%;
  text-align: center;
}
.woocommerce-orders-table__cell-order-actions a.button {
  background: var(--text-body) !important;
  color: white !important;
  padding: 10px 0 !important;
  width: 100%;
  display: block;
  text-align: center;
  border-radius: 50px !important;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem !important;
}

/* Direcciones */
.u-columns.woocommerce-Addresses {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
}
.u-column1, .u-column2 {
  width: 100% !important;
  float: none !important;
  flex: 1 1 300px;
}
.woocommerce-Address {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 20px;
  padding: 25px;
  height: 100%;
  box-sizing: border-box;
  transition: 0.3s;
  box-shadow: 0 5px 20px rgba(0,0,0,0.02);
}
.woocommerce-Address:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.woocommerce-Address-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #f5f5f5;
  padding-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}
.woocommerce-Address-title h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-title);
  line-height: 1.2;
}
.woocommerce-Address-title .edit {
  background: #f0f0f0;
  color: #666;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 50px;
  text-decoration: none;
  transition: 0.2s;
}
.woocommerce-Address-title .edit:hover { background: var(--primary); color: white; }
.woocommerce-Address address { font-style: normal; color: #666; font-size: 0.95rem; line-height: 1.6; }


/* ---------------------------------------------------------
   10. BOTONES (forms + responsive)
   --------------------------------------------------------- */
.woocommerce-account form .button,
.woocommerce-account form input[type="submit"],
.woocommerce-account form button[type="submit"] {
  height: 50px !important;
  min-width: 180px !important;
  padding: 0 25px !important;

  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;

  font-size: 0.85rem !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1;

  border-radius: 50px !important;
  border: none !important;
  cursor: pointer;

  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: all 0.25s ease;

  margin: 10px 0 !important;
  background: var(--primary) !important;
  color: white !important;
}

.woocommerce-account form .button:hover,
.woocommerce-account form input[type="submit"]:hover,
.woocommerce-account form button[type="submit"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  filter: brightness(1.05);
}

@media (max-width: 600px) {
  .btn-cancel-expand,
  .woocommerce-account form .button,
  .woocommerce-account form input[type="submit"],
  .woocommerce-account form button[type="submit"] {
    width: 100% !important;
    min-width: 0 !important;
    margin: 5px 0 !important;
  }
}


/* ---------------------------------------------------------
   11. AVISOS WOO (arregla el cuadradito azul)
   --------------------------------------------------------- */
.woocommerce-account .woocommerce-info::before,
.woocommerce-account .woocommerce-message::before,
.woocommerce-account .woocommerce-error::before {
  content: none !important;
  display: none !important;
}

.woocommerce-account .woocommerce-info,
.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-error {
  background: #f4f8f7 !important;
  color: #555 !important;
  border-top: 3px solid var(--primary) !important;
  padding: 18px 20px !important;
  border-radius: 16px !important;
  margin: 0 !important;
  box-shadow: none !important;

  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
}

.woocommerce-account .woocommerce-info .button,
.woocommerce-account .woocommerce-message .button {
  margin: 0 !important;
  border-radius: 999px !important;
  padding: 10px 16px !important;
  font-weight: 700 !important;
}

@media (max-width: 1023px) {
  .woocommerce-account .woocommerce-info,
  .woocommerce-account .woocommerce-message,
  .woocommerce-account .woocommerce-error {
    padding: 16px 16px !important;
  }
}


/* ---------------------------------------------------------
   12. FIXES FORMULARIO MIS DATOS (tarjeta)
   --------------------------------------------------------- */
.woocommerce-EditAccountForm .form-row-first,
.woocommerce-EditAccountForm .form-row-last {
  width: 100% !important;
  float: none !important;
  margin-right: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-content form.edit-account {
  background: #fff;
  padding: 25px;
  border-radius: 24px;
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.03);
}

.woocommerce-account legend {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-title);
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 15px;
  margin-bottom: 20px;
  display: block;
  width: 100%;
}


/* ---------------------------------------------------------
   13. MODO APP: ocultar sidebar (si esto es lo que querés)
   --------------------------------------------------------- */
.woocommerce-MyAccount-navigation,
.account-hub-sidebar {
  display: none !important;
}

.woocommerce-MyAccount-content,
.account-hub-content {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.account-hub-layout {
  display: block !important;
}

.dashboard-hub {
  max-width: 1100px;
  margin: 0 auto;
}


/* ---------------------------------------------------------
   14. LOGIN: centrado mobile + ocultar título solo en login
   --------------------------------------------------------- */
@media (max-width: 1023px) {

  :root{
    --dp-login-shift: -34px;
    --dp-login-minh: calc(100svh - 120px);
  }

  body.woocommerce-account:not(.logged-in) .app-login-screen{
    width: 100%;
    min-height: var(--dp-login-minh);
    display: grid;
    place-items: center;
    padding: 0;
  }

  body.woocommerce-account:not(.logged-in) .app-login-screen .login-wrapper-app{
    margin: 0 !important;
    width: min(92vw, 400px);
    transform: translateY(var(--dp-login-shift));
  }

  body.woocommerce-account:not(.logged-in) .std-page .page-header{
    display: none !important;
  }

  body.woocommerce-account:not(.logged-in) .std-page{
    padding-top: 12px !important;
  }
}


/* ================================================= */
/* ESTILOS "MIS COMPRAS VACÍO" (WooCommerce Info)    */
/* ================================================= */

/* 1. Contenedor Flexible: Alineamos todo al centro en columna */
#bento-expander .woocommerce-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 15px !important;
    text-align: center !important;
    
    /* Quitamos bordes azules feos de Woo por defecto */
    border-top: none !important;
    background: transparent !important;
    color: #666 !important;
    font-size: 1rem !important;
    padding: 40px 20px !important;
}

/* 2. Botón "Explorar": Lo clonamos visualmente al de "Volver" */
#bento-expander .woocommerce-info .button {
    background: #f0f0f0 !important;
    color: #666 !important;
    
    /* Medidas idénticas al btn-cancel-expand */
    height: 50px !important;
    min-width: 200px !important; /* Un poco más ancho para que entren ambos */
    padding: 0 25px !important;
    border-radius: 50px !important;
    
    /* Tipografía */
    font-weight: 800 !important;
    text-transform: uppercase !important;
    font-size: 0.85rem !important;
    line-height: 1 !important;
    border: none !important;
    
    /* Flex para centrar texto */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
    margin: 0 !important;
    
    /* ORDEN: Lo forzamos a subir antes que el de Volver */
    order: 1 !important;
}

/* Hover del botón Explorar */
#bento-expander .woocommerce-info .button:hover {
    background: #e5e5e5 !important;
    color: #333 !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15) !important;
}

/* 3. Botón "Volver": Lo forzamos a bajar */
#bento-expander .woocommerce-info .btn-cancel-expand {
    order: 2 !important; /* Va después del Explorar */
    min-width: 200px !important; /* Igualamos anchos */
    margin: 0 !important;
}

/* Icono dentro del botón (opcional, para que no moleste) */
#bento-expander .woocommerce-info .button::after { content: none !important; }

/* ================================================= */
/* FIX DIRECCIONES: ENFOQUE HÍBRIDO (COMPATIBLE)     */
/* ================================================= */

/* 1. Contenedor Maestro: Limpieza */
#bento-expander .u-columns.woocommerce-Addresses {
    display: block !important; /* Volvemos a bloque para permitir floats controlados */
    width: 100% !important;
    overflow: hidden !important; /* Clearfix para floats */
    margin: 0 !important;
    padding: 0 !important;
}

/* 2. Las Columnas (Wrappers de Woo) */
/* En Desktop forzamos 48% para dejar hueco en el medio */
@media (min-width: 769px) {
    #bento-expander .u-column1, 
    #bento-expander .u-column2 {
        width: 48% !important;
        float: left !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    
    #bento-expander .u-column1 { margin-right: 4% !important; }
    #bento-expander .u-column2 { margin-right: 0 !important; }
}

/* 3. La Tarjeta Visual (Estilo Decopado) */
#bento-expander .woocommerce-Address {
    background: #f9f9f9 !important;
    border-radius: 20px !important;
    padding: 30px !important;
    min-height: 280px !important; /* Altura mínima para igualarlas visualmente */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid rgba(0,0,0,0.03) !important;
    box-sizing: border-box !important;
    position: relative;
    box-shadow: none !important;
}

/* 4. Títulos */
#bento-expander .woocommerce-Address-title h3 {
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    color: var(--text-title) !important;
    margin: 0 0 20px 0 !important;
    float: none !important;
}

/* 5. Botón Editar (Estilo Píldora) */
#bento-expander .woocommerce-Address-title .edit {
    display: inline-block !important;
    background: var(--white) !important;
    color: var(--text-body) !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    padding: 10px 20px !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important;
    margin-top: auto !important; /* Empuja al fondo */
    align-self: flex-start;
    float: none !important;
}

#bento-expander .woocommerce-Address-title .edit:hover {
    background: var(--primary) !important;
    color: white !important;
    transform: translateY(-2px);
}

/* 6. Header interno */
#bento-expander .woocommerce-Address-title {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    margin-bottom: 0 !important;
    float: none !important;
}

/* 7. Texto Dirección */
#bento-expander .woocommerce-Address address {
    font-style: normal;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1; /* Ocupa espacio para empujar botón */
}

/* --- MÓVIL: Limpieza Total (Sin caja, sin doble padding) --- */
@media (max-width: 768px) {
    
    /* 1. Apilar las columnas */
    #bento-expander .u-column1, 
    #bento-expander .u-column2 {
        width: 100% !important;
        float: none !important;
        margin-bottom: 30px !important; /* Separación entre Facturación y Envío */
        margin-right: 0 !important;
    }
    
    /* 2. "Desnudar" la tarjeta: Chau fondo, chau padding interno */
    #bento-expander .woocommerce-Address {
        background: transparent !important; /* Sacamos el gris (#f9f9f9) */
        border: none !important;            /* Sacamos el borde */
        box-shadow: none !important;
        padding: 0 !important;              /* Sacamos el padding interno */
        min-height: auto !important;
    }

    /* 3. Agregamos una línea sutil al título para separar visualmente */
    #bento-expander .woocommerce-Address-title h3 {
        border-bottom: 1px solid #f0f0f0;
        padding-bottom: 10px;
        margin-bottom: 15px !important;
    }

    /* 4. El botón editar lo alineamos a la izquierda simple */
    #bento-expander .woocommerce-Address-title .edit {
        margin-top: 15px !important;
        background: #f5f5f5 !important; /* Un gris muy suavecito para el botón */
        width: 100% !important;          /* Botón ancho completo para dedo fácil */
        text-align: center;
    }
}

/* ================================================= */
/* SECCIÓN MIS DESCARGAS (Transformación a Tarjetas) */
/* ================================================= */

/* 1. Resetear la tabla para que deje de comportarse como tabla vieja */
#bento-expander .shop_table.downloads {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 15px; /* Espacio entre tarjetas */
    border: none !important;
}

#bento-expander .shop_table.downloads thead {
    display: none; /* Ocultamos los encabezados (Producto, Vence, etc.) */
}

#bento-expander .shop_table.downloads tbody,
#bento-expander .shop_table.downloads tr,
#bento-expander .shop_table.downloads td {
    display: block; /* Forzamos comportamiento de bloques */
    width: 100%;
    box-sizing: border-box;
    border: none !important;
}

/* 2. Estilo Tarjeta para cada fila de descarga */
#bento-expander .shop_table.downloads tr {
    background: #fff;
    border: 1px solid #eee !important;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    position: relative;
    transition: 0.3s;
}

#bento-expander .shop_table.downloads tr:hover {
    border-color: var(--primary) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* 3. Estilo de las celdas (Datos) */
#bento-expander .shop_table.downloads td {
    padding: 5px 0 !important;
    text-align: left;
    font-size: 0.95rem;
    color: #666;
}

/* Agregamos etiquetas falsas para saber qué es cada dato */
#bento-expander .shop_table.downloads td::before {
    content: attr(data-title) ": ";
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: #aaa;
    margin-right: 5px;
    display: inline-block;
    min-width: 80px; /* Alineación visual */
}

/* 4. Destacar el Nombre del Producto/Archivo */
#bento-expander .shop_table.downloads td.download-product {
    font-weight: 800;
    color: var(--text-title);
    font-size: 1.1rem;
    margin-bottom: 10px;
    padding-bottom: 10px !important;
    border-bottom: 1px dashed #eee !important;
}
#bento-expander .shop_table.downloads td.download-product::before {
    content: none; /* No necesitamos etiqueta aquí */
}

/* 5. El Botón de Descargar */
#bento-expander .shop_table.downloads td.download-actions {
    margin-top: 15px;
}

#bento-expander .shop_table.downloads .woocommerce-MyAccount-downloads-file {
    display: flex;
    width: 100%;
    background: var(--primary);
    color: white !important;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: 0.2s;
}
/* Agregamos icono de descarga vía CSS */
#bento-expander .shop_table.downloads .woocommerce-MyAccount-downloads-file::before {
    content: '\f019'; /* Icono FontAwesome Download */
    font-family: "Font Awesome 5 Free"; 
    font-weight: 900;
    font-size: 1rem;
}

#bento-expander .shop_table.downloads .woocommerce-MyAccount-downloads-file:hover {
    background: #27ae60; /* Un verde un poquito más oscuro */
    transform: translateY(-2px);
}

/* 6. Mensaje "No tienes descargas" (Reutilizamos estilos anteriores) */
#bento-expander .woocommerce-info {
    /* Ya está estilizado en el bloque anterior, pero aseguramos limpieza */
    margin-bottom: 0 !important;
}