/* ==========================================================================
   DTI Barcelona · Mi cuenta (mi-cuenta.php)
   Estructura del master Innuro (hero + tarjeta WooCommerce + tira de servicios)
   con el diseño de DTI Barcelona: negro, crema y amarillo.
   Base y cabecera en header.css · Rótulos y migas en componentes.css
   ========================================================================== */

/* ==========================================================================
   HERO
   ========================================================================== */
.account-hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 6vw, 80px); background: radial-gradient(70% 90% at 85% 10%, #2a2210 0%, #151208 35%, var(--bg) 70%); border-bottom: 1px solid var(--line); }
.account-hero::after { content: ""; position: absolute; right: -6vw; bottom: -14vw; width: 34vw; height: 34vw; border-radius: 50%; border: 1px solid rgba(255, 194, 0, .12); box-shadow: 0 0 0 4vw rgba(255, 194, 0, .03), 0 0 0 8vw rgba(255, 194, 0, .02); pointer-events: none; }
.account-hero .wrap { position: relative; z-index: 1; }
.account-hero__title { font-size: clamp(52px, 7.4vw, 108px); }
.account-hero p { color: var(--muted); max-width: 640px; margin: 22px 0 0; font-size: 18px; }
.account-hero p strong { color: var(--cream); }
.account-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.account-badge { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line-2); color: var(--cream); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.account-badge svg { width: 16px; height: 16px; fill: var(--yellow); flex: none; }

/* Enlaces de WooCommerce dentro de la tarjeta clara (la base pone los enlaces en amarillo) */
.account-card a { color: inherit; }
.account-card a:hover { color: var(--gold-ink); }

/* ==========================================================================
   Cuerpo Principal de Mi Cuenta (fondo crema de DTI Barcelona)
   ========================================================================== */
.account-body {
  padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 100px);
  background: var(--sand);
  color: var(--ink);
}

.account-card {
  background: #ffffff;
  border: 0;
  border-radius: 26px;
  padding: clamp(24px, 3.4vw, 44px);
  box-shadow: 0 30px 70px rgba(60, 45, 20, .14);
  color: #1a202c;
}

/* ==========================================================================
   Layout de Mi Cuenta (Navegación Lateral + Contenido)
   ========================================================================== */
.woocommerce-account .woocommerce,
.account-card .woocommerce {
  display: grid !important;
  grid-template-columns: 260px 1fr !important;
  gap: 36px !important;
  align-items: start !important;
}

@media (max-width: 860px) {
  .woocommerce-account .woocommerce,
  .account-card .woocommerce {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}

/* Navegación Lateral */
.woocommerce-MyAccount-navigation {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  padding: 8px 0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  float: none !important;
  width: 100% !important;
}

.woocommerce-MyAccount-navigation ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce-MyAccount-navigation li {
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce-MyAccount-navigation a {
  display: flex !important;
  align-items: center !important;
  padding: 13px 20px !important;
  color: #4a5568 !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  text-decoration: none !important;
  border-left: 3px solid transparent !important;
  transition: all .18s ease !important;
}

.woocommerce-MyAccount-navigation a:hover {
  background: #f8fafc !important;
  color: #1a202c !important;
  border-left-color: var(--gold) !important;
}

.woocommerce-MyAccount-navigation li.is-active a {
  background: rgba(255, 194, 0, 0.08) !important;
  color: var(--gold-ink) !important;
  border-left-color: var(--gold) !important;
  font-weight: 700 !important;
}

.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a {
  color: #e53e3e !important;
}

.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
  background: #fee2e2 !important;
  color: #991b1b !important;
  border-left-color: #e53e3e !important;
}

/* ==========================================================================
   Iconos del Menú de Mi Cuenta (WooCommerce / Tailwind w-5 h-5 / SVGs)
   ========================================================================== */
.woocommerce-MyAccount-navigation a svg,
.woocommerce-MyAccount-navigation svg {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  margin-right: 12px !important;
  flex: 0 0 20px !important;
  flex-shrink: 0 !important;
  stroke: currentColor !important;
  vertical-align: middle !important;
  display: inline-block !important;
  transition: stroke .18s ease !important;
}

.woocommerce-MyAccount-navigation a:hover svg {
  stroke: var(--gold-ink) !important;
}

.woocommerce-MyAccount-navigation li.is-active a svg {
  stroke: var(--gold-ink) !important;
}

.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a svg {
  stroke: #e53e3e !important;
}

/* Clases de utilidad Tailwind usadas por plantillas externas de WooCommerce */
svg.w-3\.5, .w-3\.5 { width: 14px !important; height: 14px !important; max-width: 14px !important; max-height: 14px !important; }
svg.w-4, .w-4 { width: 16px !important; height: 16px !important; max-width: 16px !important; max-height: 16px !important; }
svg.w-5, .w-5 { width: 20px !important; height: 20px !important; max-width: 20px !important; max-height: 20px !important; }
svg.w-6, .w-6 { width: 24px !important; height: 24px !important; max-width: 24px !important; max-height: 24px !important; }
svg.h-3\.5, .h-3\.5 { height: 14px !important; max-height: 14px !important; }
svg.h-4, .h-4 { height: 16px !important; max-height: 16px !important; }
svg.h-5, .h-5 { height: 20px !important; max-height: 20px !important; }
svg.h-6, .h-6 { height: 24px !important; max-height: 24px !important; }
.mr-2 { margin-right: 8px !important; }
.mr-3 { margin-right: 12px !important; }
.mr-4 { margin-right: 16px !important; }
.flex-shrink-0, .shrink-0 { flex-shrink: 0 !important; }

/* Contener cualquier otro SVG en la tarjeta de cuenta para evitar iconos desbordados */
.account-card svg:not(.cart),
.woocommerce svg:not(.cart) {
  max-width: 24px !important;
  max-height: 24px !important;
}

/* Área de Contenido */
.woocommerce-MyAccount-content {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 30px 34px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  min-height: 320px !important;
  float: none !important;
  width: 100% !important;
}

.woocommerce-MyAccount-content p {
  color: #4a5568 !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  margin: 0 0 16px 0 !important;
}

.woocommerce-MyAccount-content p strong {
  color: #1a202c !important;
}

.woocommerce-MyAccount-content a {
  color: var(--gold-ink) !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}
.woocommerce-MyAccount-content a:hover {
  text-decoration: underline !important;
}

/* ==========================================================================
   Tabla de Pedidos (.woocommerce-orders-table)
   ========================================================================== */
table.woocommerce-orders-table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 10px 0 20px 0 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
}

table.woocommerce-orders-table thead th {
  background: #f8fafc !important;
  color: #1a202c !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  padding: 12px 14px !important;
  border-bottom: 2px solid #e2e8f0 !important;
  text-align: left !important;
}

table.woocommerce-orders-table tbody td {
  padding: 14px !important;
  border-bottom: 1px solid #edf2f7 !important;
  color: #2d3748 !important;
  font-size: 13px !important;
}

table.woocommerce-orders-table tbody td.woocommerce-orders-table__cell-order-number a {
  color: #1a202c !important;
  font-weight: 700 !important;
}
table.woocommerce-orders-table tbody td.woocommerce-orders-table__cell-order-number a:hover {
  color: var(--gold-ink) !important;
}

/* Insignias de Estado del Pedido */
.woocommerce-orders-table__cell-order-status {
  font-weight: 600 !important;
}

/* Botón Ver Pedido */
a.woocommerce-button.button.view,
.woocommerce-orders-table__cell-order-actions a.button {
  background: var(--yellow) !important;
  color: var(--bg) !important;
  padding: 6px 14px !important;
  border-radius: 4px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  display: inline-block !important;
  transition: background .2s ease !important;
}

a.woocommerce-button.button.view:hover,
.woocommerce-orders-table__cell-order-actions a.button:hover {
  background: var(--yellow-2) !important;
  text-decoration: none !important;
  color: var(--bg) !important;
}

/* ==========================================================================
   Gestión de Direcciones (.woocommerce-Addresses)
   ========================================================================== */
.woocommerce-Addresses {
  margin-top: 10px !important;
}

.woocommerce-Addresses .col2-set {
  display: grid !important;
  gap: 24px !important;
}

@media (max-width: 680px) {
  .woocommerce-Addresses .col2-set {
    grid-template-columns: 1fr !important;
  }
}

.woocommerce-Address {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  padding: 20px 22px !important;
}

.woocommerce-Address-title {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 12px !important;
}

.woocommerce-Address-title h3 {
  font-family: var(--display, "Anton", sans-serif) !important;
  font-size: 17px !important;
  text-transform: uppercase !important;
  letter-spacing: .03em !important;
  color: #1a202c !important;
  margin: 0 !important;
}

.woocommerce-Address-title a.edit {
  color: var(--gold-ink) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
}
.woocommerce-Address-title a.edit:hover {
  text-decoration: underline !important;
}

.woocommerce-Address address {
  font-style: normal !important;
  line-height: 1.6 !important;
  color: #4a5568 !important;
  font-size: 14px !important;
}

/* ==========================================================================
   Formulario de Detalles de Cuenta / Editar Dirección
   ========================================================================== */
form.woocommerce-EditAccountForm,
form.woocommerce-address-fields {
  margin-top: 10px !important;
}

form.woocommerce-EditAccountForm fieldset {
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  padding: 18px 22px !important;
  margin: 24px 0 !important;
  background: #f8fafc !important;
}

form.woocommerce-EditAccountForm legend {
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .03em !important;
  color: var(--gold-ink) !important;
  padding: 0 8px !important;
}

.woocommerce-form-row label,
.woocommerce form .form-row label {
  color: #4a5568 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .02em !important;
  text-transform: uppercase !important;
  margin-bottom: 6px !important;
  display: block !important;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select,
input[type="text"],
input[type="email"],
input[type="password"] {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  color: #1a202c !important;
  padding: 12px 14px !important;
  font-size: 14px !important;
  font-family: inherit !important;
  width: 100% !important;
  transition: border-color .2s ease, box-shadow .2s ease !important;
  outline: none !important;
}

.woocommerce form .form-row input.input-text:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(255, 194, 0, 0.2) !important;
}

/* Botón Guardar Cambios */
button.woocommerce-Button.button,
button.woocommerce-button.button,
.woocommerce-EditAccountForm button[type="submit"] {
  background: var(--yellow) !important;
  color: var(--bg) !important;
  border: none !important;
  padding: 13px 26px !important;
  border-radius: 5px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(255, 194, 0, 0.3) !important;
  transition: all .2s ease !important;
  margin-top: 10px !important;
}

button.woocommerce-Button.button:hover,
button.woocommerce-button.button:hover {
  filter: brightness(1.08) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(255, 194, 0, 0.45) !important;
}

/* ==========================================================================
   Estado No Logueado (Formularios de Acceso y Registro)
   ========================================================================== */
.account-card .u-columns.col2-set {
  display: grid !important;
  gap: 36px !important;
}

@media (max-width: 768px) {
  .account-card .u-columns.col2-set {
    grid-template-columns: 1fr !important;
  }
}

.account-card .u-column1,
.account-card .u-column2 {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 28px !important;
}

.account-card .u-column1 h2,
.account-card .u-column2 h2 {
  font-family: var(--display, "Anton", sans-serif) !important;
  font-size: 22px !important;
  text-transform: uppercase !important;
  letter-spacing: .03em !important;
  color: #1a202c !important;
  margin: 0 0 18px 0 !important;
  padding-bottom: 10px !important;
  border-bottom: 2px solid #e2e8f0 !important;
}

/* ==========================================================================
   Notificaciones y Mensajes de WooCommerce (Alineación perfecta de iconos)
   ========================================================================== */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  position: relative !important;
  border-radius: 8px !important;
  padding: 14px 22px 14px 54px !important;
  margin: 0 0 24px 0 !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  list-style: none outside !important;
  word-wrap: break-word !important;
  box-sizing: border-box !important;
  width: 100% !important;
  clear: both !important;
  display: block !important;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
  position: absolute !important;
  top: 14px !important;
  left: 18px !important;
  font-family: WooCommerce, sans-serif !important;
  font-size: 20px !important;
  line-height: 1 !important;
  display: inline-block !important;
}

.woocommerce-message {
  background: rgba(255, 194, 0, 0.08) !important;
  border: 1px solid rgba(255, 194, 0, 0.3) !important;
  border-left: 4px solid var(--gold) !important;
  color: #1a202c !important;
}

.woocommerce-message::before {
  content: "\e015" !important;
  color: var(--gold-ink) !important;
}

.woocommerce-info {
  background: #f0fdf4 !important;
  border: 1px solid #86efac !important;
  border-left: 4px solid #16a34a !important;
  color: #166534 !important;
}

.woocommerce-info::before {
  content: "\e028" !important;
  color: #16a34a !important;
}

.woocommerce-error {
  background: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  border-left: 4px solid #dc2626 !important;
  color: #991b1b !important;
}

.woocommerce-error::before {
  content: "\e016" !important;
  color: #dc2626 !important;
}

.woocommerce-error li,
.woocommerce-info li,
.woocommerce-message li {
  list-style: none outside !important;
  padding-left: 0 !important;
  margin: 0 0 6px 0 !important;
}

.woocommerce-error li:last-child,
.woocommerce-info li:last-child,
.woocommerce-message li:last-child {
  margin-bottom: 0 !important;
}

.woocommerce-message a,
.woocommerce-info a,
.woocommerce-error a {
  color: var(--gold-ink) !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
}

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
  float: right !important;
  margin: -3px 0 0 16px !important;
  padding: 8px 18px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .03em !important;
  background: var(--yellow) !important;
  color: var(--bg) !important;
  border: none !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  line-height: 1.4 !important;
  box-shadow: 0 2px 8px rgba(255, 194, 0, 0.25) !important;
  transition: all .2s ease !important;
}

.woocommerce-message .button:hover,
.woocommerce-info .button:hover,
.woocommerce-error .button:hover {
  background: var(--yellow-2) !important;
  color: var(--bg) !important;
  box-shadow: 0 4px 12px rgba(255, 194, 0, 0.4) !important;
  transform: translateY(-1px) !important;
}

.woocommerce-message::after,
.woocommerce-info::after,
.woocommerce-error::after {
  content: "" !important;
  display: table !important;
  clear: both !important;
}

@media (max-width: 640px) {
  .woocommerce-message .button,
  .woocommerce-info .button,
  .woocommerce-error .button {
    float: none !important;
    display: block !important;
    margin: 10px 0 0 0 !important;
    text-align: center !important;
  }
}

@media (max-width: 768px) {
  .account-body {
    padding: 20px 0 50px 0;
  }
  .account-card {
    padding: 20px 16px;
    border-radius: 10px;
  }
}

/* ==========================================================================
   TIRA DE SERVICIOS DE CONFIANZA (amarilla, antes del pie)
   ========================================================================== */
.service { background: var(--yellow); color: var(--bg); }
.service .wrap { display: grid; grid-template-columns: auto auto repeat(4, minmax(0, 1fr)); align-items: center; padding-block: 20px; }
.service .cell { display: flex; align-items: center; gap: 12px; padding: 6px 18px; border-left: 1.5px solid rgba(14, 14, 14, .22); min-width: 0; color: var(--bg); font: 700 14px/1.2 var(--body); letter-spacing: .04em; text-transform: uppercase; }
.service .cell:first-child { border: 0; padding-left: 0; white-space: nowrap; font: 400 clamp(20px, 2vw, 26px)/1.05 var(--display); letter-spacing: .01em; }
.service a.cell { transition: opacity .2s ease; }
.service a.cell:hover { color: var(--bg); opacity: .7; }
.service .cell svg { flex: none; width: 40px; height: 40px; fill: none; stroke: var(--bg); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.service .cell:first-child svg { width: 64px; height: 44px; }
.service .pill { background: var(--bg); border-radius: 999px; padding: 12px 24px; margin-inline: 18px; }
.service .pill img { display: block; width: 140px; height: auto; }

@media (max-width: 1260px) {
  .service .wrap { grid-template-columns: 1fr 1fr; gap: 14px 0; }
  .service .cell:first-child { grid-column: 1 / -1; }
  .service .pill { display: none; }
  .service .cell:nth-child(3), .service .cell:nth-child(5) { border-left: 0; padding-left: 0; }
}
@media (max-width: 560px) {
  .service .wrap { grid-template-columns: 1fr; }
  .service .cell { border-left: 0; padding: 6px 0; }
  .service .cell svg { width: 32px; height: 32px; }
}
