/* =========================================================
   YO, TURO — MI CUENTA
   Presentación sobre WooCommerce nativo.
========================================================= */
.turo-account-page,
.turo-account-page #page,
.turo-account-page .site,
.turo-account-page .site-content,
.turo-account-page #content,
.turo-account-page #primary,
.turo-account-page .site-main,
.turo-account-page .entry-content,
.turo-account-page .ast-container { background:#fff!important; }
.turo-account-page .site-main,.turo-account-page .entry-content { overflow:visible; }
.turo-account-page #primary { margin-top:0; padding-top:0; }
.turo-account-page .site-content .ast-container { max-width:none; padding-left:0; padding-right:0; }
.turo-account-page .entry-content { margin-top:0; }
.turo-account-page .woocommerce {
  width:min(1240px,calc(100% - 48px)); margin:42px auto 84px;
  font-family:Poppins,sans-serif; color:#111;
}

/* Header de cuenta */
.turo-account-hero {
  margin:0 0 24px; padding:34px 38px; border:1px solid #f0dfe6; border-radius:28px;
  background:linear-gradient(135deg,#fff 0%,#fff8fb 62%,#fff3f7 100%);
  box-shadow:0 18px 55px rgba(17,17,17,.045);
}
.turo-account-hero__eyebrow { display:inline-block; margin-bottom:8px; color:#e8578d!important; font-size:11px; font-weight:800; letter-spacing:.13em; text-decoration:none!important; }
.turo-account-hero__title-row { display:flex; align-items:baseline; flex-wrap:wrap; gap:8px 14px; }
.turo-account-hero h1 { margin:0; font-size:clamp(30px,3vw,44px); line-height:1.05; letter-spacing:-.04em; }
.turo-account-hero p { margin:12px 0 0; color:#6d6d6d; font-size:14px; }
.turo-account-logout { color:#444!important; font-size:12px; font-weight:600!important; text-decoration:underline!important; text-underline-offset:3px; }

/* El menú nativo conserva endpoints/markup pero no se duplica visualmente. */
.turo-account-page.logged-in .woocommerce-MyAccount-navigation { display:none!important; }
.turo-account-page.logged-in .woocommerce-MyAccount-content { float:none!important; width:100%!important; min-width:0; }

/* Las tres cards son la navegación visible. */
.turo-account-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin:0 0 20px; }
.turo-account-card {
  display:grid; grid-template-columns:auto 1fr auto; gap:12px; align-items:center; min-height:126px;
  padding:22px; border:1px solid #e9e9e9; border-radius:22px; background:#fff; color:#111!important;
  text-decoration:none!important; box-shadow:0 8px 28px rgba(17,17,17,.025);
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease,color .18s ease;
}
.turo-account-card:hover { transform:translateY(-2px); border-color:#e8578d; box-shadow:0 12px 30px rgba(17,17,17,.06); }
.turo-account-card__icon { display:grid; place-items:center; width:44px; height:44px; border-radius:14px; background:#fff0f5; font-size:18px; }
.turo-account-card strong,.turo-account-card small { display:block; }
.turo-account-card strong { font-size:14px; }
.turo-account-card small { margin-top:4px; color:#777; font-size:12px; line-height:1.45; font-weight:500; }
.turo-account-card__arrow { font-size:18px; }
.turo-account-card.is-active { background:#111; border-color:#111; color:#fff!important; box-shadow:0 12px 30px rgba(17,17,17,.12); }
.turo-account-card.is-active .turo-account-card__icon { background:#fff; color:#111; }
.turo-account-card.is-active small { color:#d7d7d7; }

/* Contenedor del endpoint */
.turo-account-page.logged-in .woocommerce-MyAccount-content {
  padding:34px; border:1px solid #ececec; border-radius:26px; background:#fff;
  box-shadow:0 16px 46px rgba(17,17,17,.04);
}
.turo-account-dashboard .woocommerce-MyAccount-content > p { display:none; }
.turo-account-page .woocommerce-MyAccount-content > p { color:#666; font-size:14px; line-height:1.7; }
.turo-account-page .woocommerce-MyAccount-content h2,
.turo-account-page .woocommerce-MyAccount-content h3 { color:#111; letter-spacing:-.03em; }

/* Botones consistentes */
.turo-account-page .woocommerce-button,
.turo-account-page button.button,
.turo-account-page input.button {
  min-height:50px!important; padding:0 24px!important; border:0!important; border-radius:999px!important;
  background:#111!important; color:#fff!important; font-family:Poppins,sans-serif!important;
  font-size:12px!important; font-weight:800!important; letter-spacing:.02em; box-shadow:none!important;
}
.turo-account-page .woocommerce-button:hover,
.turo-account-page button.button:hover,
.turo-account-page input.button:hover { background:#e8578d!important; color:#111!important; }

/* Login + registro */
.turo-account-page:not(.logged-in) .woocommerce { max-width:1080px; margin-top:58px; }
.turo-account-page #customer_login { display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:24px!important; align-items:start!important; width:100%!important; }
.turo-account-page #customer_login::before,
.turo-account-page #customer_login::after { display:none!important; content:none!important; }
.turo-account-page #customer_login > div {
  float:none!important; clear:none!important; width:100%!important; max-width:none!important; margin:0!important; padding:38px!important; border:1px solid #eee; border-radius:28px;
  background:#fff; box-shadow:0 18px 55px rgba(17,17,17,.05);
}
.turo-account-page #customer_login > .u-column2 { background:linear-gradient(145deg,#fff9fb,#fff1f6); border-color:#f1dce5; }
.turo-account-page #customer_login h2 { margin:0 0 8px; font-size:clamp(28px,3vw,38px); line-height:1.05; letter-spacing:-.04em; }
.turo-auth-intro { min-height:48px; margin:0 0 26px!important; color:#6d6d6d; font-size:14px; line-height:1.6; }
.turo-account-page form.login,.turo-account-page form.register,.turo-account-page form.edit-account { border:0!important; padding:0!important; margin:0!important; }
.turo-account-page .form-row { margin-bottom:16px!important; }
.turo-account-page label { color:#222; font-size:12px; font-weight:700; }
.turo-account-page .woocommerce-Input,.turo-account-page .input-text,
.turo-account-page select {
  width:100%; min-height:50px; padding:11px 14px!important; border:1px solid #ddd!important; border-radius:13px!important;
  background:#fff!important; color:#222!important; box-shadow:none!important;
}
.turo-account-page .woocommerce-Input:focus,.turo-account-page .input-text:focus,.turo-account-page select:focus { border-color:#111!important; outline:none!important; box-shadow:0 0 0 3px rgba(17,17,17,.05)!important; }
.turo-account-page .select2-container .select2-selection--single {
  min-height:50px!important; border:1px solid #ddd!important; border-radius:13px!important; background:#fff!important; box-shadow:none!important;
}
.turo-account-page .select2-container .select2-selection--single .select2-selection__rendered { line-height:48px!important; padding-left:14px!important; padding-right:42px!important; }
.turo-account-page .select2-container .select2-selection--single .select2-selection__arrow { height:48px!important; right:10px!important; }
.turo-account-page .woocommerce-form-login__rememberme { display:flex!important; align-items:center; gap:8px; margin:4px 0 14px!important; }
.turo-account-page .woocommerce-form-login__rememberme input { width:18px; height:18px; margin:0!important; accent-color:#111; }
.turo-account-page .woocommerce-LostPassword { margin:14px 0 0!important; }
.turo-account-page .woocommerce-LostPassword a { color:#111!important; font-size:13px; font-weight:600; text-decoration:underline; text-underline-offset:3px; }


/* Recuperar contraseña */
.turo-account-page form.woocommerce-ResetPassword.lost_reset_password {
  width:min(100%,620px)!important;
  margin:0 auto!important;
  padding:38px!important;
  border:1px solid #eee!important;
  border-radius:28px!important;
  background:#fff;
  box-shadow:0 18px 55px rgba(17,17,17,.05);
}
.turo-account-page form.woocommerce-ResetPassword.lost_reset_password::before {
  content:'¿Olvidaste tu contraseña?';
  display:block;
  margin:0 0 10px;
  color:#111;
  font-size:clamp(28px,3vw,38px);
  line-height:1.05;
  font-weight:800;
  letter-spacing:-.04em;
}
.turo-account-page form.woocommerce-ResetPassword.lost_reset_password > p:first-of-type {
  margin:0 0 26px!important;
  color:#6d6d6d;
  font-size:14px;
  line-height:1.6;
}
.turo-account-page form.woocommerce-ResetPassword.lost_reset_password .form-row-first {
  float:none!important;
  width:100%!important;
}
.turo-account-page form.woocommerce-ResetPassword.lost_reset_password button.button {
  min-height:50px!important;
  padding:0 24px!important;
}

/* Pedidos / estados vacíos / avisos */
.turo-account-orders .woocommerce-MyAccount-content::before { content:'Mis pedidos'; display:block; margin-bottom:6px; font-size:30px; font-weight:800; letter-spacing:-.04em; }
.turo-account-orders .woocommerce-MyAccount-content::after { content:''; }
.turo-account-page .woocommerce-info,.turo-account-page .woocommerce-message,.turo-account-page .woocommerce-error {
  margin:0 0 16px!important; padding:20px 22px!important; border:1px solid #eee!important; border-radius:18px!important;
  background:#fff!important; color:#222!important; box-shadow:none!important; font-size:13px; line-height:1.55;
}
.turo-account-page .woocommerce-info::before,.turo-account-page .woocommerce-message::before { color:#e8578d!important; }
.turo-account-page .woocommerce-info .button,.turo-account-page .woocommerce-message .button { min-height:38px!important; padding:0 16px!important; }
.turo-account-page table.shop_table { border:1px solid #eee!important; border-radius:18px!important; overflow:hidden; border-collapse:separate!important; border-spacing:0!important; }
.turo-account-page table.shop_table th { background:#fafafa; color:#555; font-size:11px; text-transform:uppercase; letter-spacing:.05em; }
.turo-account-page table.shop_table th,.turo-account-page table.shop_table td { padding:15px 16px!important; border-color:#eee!important; font-size:13px; }

/* Direcciones: listado */
.turo-account-address .woocommerce-MyAccount-content > p:first-child { margin:0 0 20px; }
.turo-account-page .woocommerce-Addresses { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.turo-account-page .woocommerce-Address { float:none!important; width:auto!important; padding:26px!important; border:1px solid #ececec; border-radius:22px; background:#fff; }
.turo-account-page .woocommerce-Address-title { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:18px; }
.turo-account-page .woocommerce-Address-title h2,.turo-account-page .woocommerce-Address-title h3 { margin:0!important; font-size:24px; }
.turo-account-page .woocommerce-Address-title a.edit { float:none!important; display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:0 26px; border-radius:999px; background:#111; color:#fff!important; font-size:11px; font-weight:800; text-decoration:none!important; transition:background .18s ease,color .18s ease; }
.turo-account-page .woocommerce-Address-title a.edit:hover { background:#fff2a8; color:#111!important; }
.turo-account-page .woocommerce-Address address { margin:0; padding:0; border:0; color:#555; font-style:normal; font-size:14px; line-height:1.75; }
.turo-account-card__icon svg { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }

/* Dirección: jerarquía simple, sin cajas/bordes duplicados. */
.turo-account-address .woocommerce-MyAccount-content > .turo-address-heading { margin:0 0 8px; }
.turo-account-address .turo-address-heading h2 { margin:0!important; font-size:30px; line-height:1.15; letter-spacing:-.035em; }
.turo-account-address .woocommerce-MyAccount-content > p:first-of-type { margin:0 0 26px; color:#777; font-size:14px; }
.turo-account-address .woocommerce-Addresses { display:block; }
.turo-account-address .woocommerce-Address { padding:0!important; border:0; border-radius:0; background:transparent; }
.turo-account-address .woocommerce-Address-title { margin:0 0 18px; padding:0; border:0; }
.turo-account-address .woocommerce-Address-title h2,
.turo-account-address .woocommerce-Address-title h3 { display:none; }
.turo-account-address .woocommerce-Address address { padding:22px 0 0; border-top:1px solid #eee; }

/* Edición de dirección y Mis datos */
.turo-account-address form h2,.turo-account-address form h3,.turo-account-details form h2,.turo-account-details form h3 { margin-top:0; margin-bottom:8px; font-size:30px; }
.turo-account-address form h3::after { content:'Estos datos se utilizarán por defecto para tus próximos pedidos.'; display:block; margin-top:8px; color:#777; font-size:13px; font-weight:400; line-height:1.5; letter-spacing:0; }
.turo-account-page .woocommerce-address-fields__field-wrapper,
.turo-account-page form.edit-account { display:block; }
.turo-account-page fieldset { margin:30px 0 24px!important; padding:32px 26px 26px!important; border:1px solid #eee!important; border-radius:20px; background:#fafafa; }
.turo-account-page fieldset legend { display:block; width:100%; margin:0 0 22px!important; padding:0 0 14px!important; border-bottom:1px solid #e5e5e5; font-size:18px; font-weight:800; line-height:1.2; }
.turo-account-page form.edit-account > p:last-child,.turo-account-page .woocommerce-address-fields > p:last-child { margin-top:22px; }
.turo-account-details .woocommerce-MyAccount-content::before { content:'Mis datos'; display:block; margin-bottom:6px; font-size:30px; font-weight:800; letter-spacing:-.04em; }
.turo-account-details .woocommerce-MyAccount-content::after { content:'Actualiza tu información personal y la seguridad de tu cuenta.'; display:block; color:#777; font-size:13px; }

/* Header: usuario con texto, no icono perdido. */
.turo-account-nav-link { display:flex; align-items:center; justify-content:center; gap:7px; min-height:40px; padding:0 8px; color:#111; text-decoration:none!important; white-space:nowrap; transition:color .18s ease,transform .18s ease; }
.turo-account-nav-link:hover { transform:translateY(-1px); color:#e8578d; }
.turo-account-nav-link svg { width:20px; height:20px; flex:0 0 auto; fill:none; stroke:currentColor; stroke-width:1.8; }
.turo-account-nav-link span { font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.02em; }
.home #masthead .turo-account-nav-link { color:#111; }
.turo-mobile-account-menu a { display:flex!important; align-items:center; gap:10px; }
.turo-mobile-account-menu svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; }

@media (max-width:900px) {
  .turo-account-cards { grid-template-columns:1fr; }
  .turo-account-card { min-height:94px; }
  .turo-account-page .woocommerce-Addresses { grid-template-columns:1fr; }
  .turo-account-nav-link span { display:none; }
  .turo-account-nav-link { width:38px; padding:0; }
}
@media (max-width:700px) {
  .turo-account-page #customer_login { grid-template-columns:1fr; }
  .turo-account-page #customer_login > div { padding:26px!important; }
  .turo-account-page form.woocommerce-ResetPassword.lost_reset_password { padding:26px!important; }
}
@media (max-width:600px) {
  .turo-account-page .woocommerce { width:min(100% - 24px,1180px); margin:24px auto 60px; }
  .turo-account-hero { padding:22px 20px; border-radius:20px; margin-bottom:18px; }
  .turo-account-hero h1 { font-size:30px; }
  .turo-account-page.logged-in .woocommerce-MyAccount-content { padding:22px 18px; border-radius:20px; }
  .turo-account-card { padding:18px; border-radius:18px; }
  .turo-account-page .woocommerce-Address { padding:20px!important; }
  .turo-account-page .woocommerce-Address-title { align-items:flex-start; flex-direction:column; }
  .turo-account-page fieldset { padding:20px 16px!important; }
  .turo-account-page table.shop_table_responsive tr { border-bottom:1px solid #eee; }
}

/* 2026-09-15 — Ajustes visuales: navegación + pedidos */
.turo-account-card:hover {
  background:#fff8c9;
  border-color:#eadb72;
  color:#111!important;
  box-shadow:0 12px 30px rgba(17,17,17,.05);
}
.turo-account-card.is-active,
.turo-account-card.is-active:hover {
  background:#fff3a6;
  border-color:#eadb72;
  color:#111!important;
  box-shadow:0 12px 30px rgba(17,17,17,.055);
}
.turo-account-card.is-active .turo-account-card__icon {
  background:#fff;
  color:#111;
}
.turo-account-card.is-active small { color:#666; }

/* Avisos de Mis pedidos: una sola línea visual, bien centrada. */
.turo-account-orders .woocommerce-MyAccount-content > .woocommerce-info,
.turo-account-orders .woocommerce-MyAccount-content > .woocommerce-message {
  display:flex!important;
  align-items:center!important;
  gap:18px!important;
  min-height:86px;
  padding:20px 26px 20px 58px!important;
}
.turo-account-orders .woocommerce-MyAccount-content > .woocommerce-info::before,
.turo-account-orders .woocommerce-MyAccount-content > .woocommerce-message::before {
  top:50%!important;
  left:24px!important;
  transform:translateY(-50%);
  margin:0!important;
}
.turo-account-orders .woocommerce-MyAccount-content > .woocommerce-info .button,
.turo-account-orders .woocommerce-MyAccount-content > .woocommerce-message .button {
  float:none!important;
  order:2;
  margin:0 0 0 auto!important;
  flex:0 0 auto;
}
.turo-account-orders .woocommerce-MyAccount-content > .woocommerce-info a:not(.button),
.turo-account-orders .woocommerce-MyAccount-content > .woocommerce-message a:not(.button) {
  flex:0 0 auto;
}

@media (max-width:700px) {
  .turo-account-orders .woocommerce-MyAccount-content > .woocommerce-info,
  .turo-account-orders .woocommerce-MyAccount-content > .woocommerce-message {
    align-items:flex-start!important;
    flex-direction:column;
    gap:10px!important;
    padding:20px 20px 20px 52px!important;
  }
  .turo-account-orders .woocommerce-MyAccount-content > .woocommerce-info .button,
  .turo-account-orders .woocommerce-MyAccount-content > .woocommerce-message .button {
    margin:4px 0 0!important;
  }
  .turo-account-orders .woocommerce-MyAccount-content > .woocommerce-info::before,
  .turo-account-orders .woocommerce-MyAccount-content > .woocommerce-message::before {
    left:20px!important;
    top:27px!important;
    transform:none;
  }
}

/* 2026-09-15 — Mis pedidos: alineación compacta y consistente */
.turo-account-orders .woocommerce-MyAccount-content > .woocommerce-info,
.turo-account-orders .woocommerce-MyAccount-content > .woocommerce-message {
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:12px!important;
  min-height:120px;
  padding:26px 30px!important;
  text-align:center!important;
}
.turo-account-orders .woocommerce-MyAccount-content > .woocommerce-info::before,
.turo-account-orders .woocommerce-MyAccount-content > .woocommerce-message::before {
  display:none!important;
  content:none!important;
}
.turo-account-orders .woocommerce-MyAccount-content > .woocommerce-info .button,
.turo-account-orders .woocommerce-MyAccount-content > .woocommerce-message .button {
  float:none!important;
  order:2!important;
  margin:0!important;
  align-self:center!important;
  white-space:nowrap;
}
.turo-account-orders .woocommerce-MyAccount-content > .woocommerce-info a:not(.button),
.turo-account-orders .woocommerce-MyAccount-content > .woocommerce-message a:not(.button) {
  margin:0!important;
}
@media (max-width:700px) {
  .turo-account-orders .woocommerce-MyAccount-content > .woocommerce-info,
  .turo-account-orders .woocommerce-MyAccount-content > .woocommerce-message {
    min-height:110px;
    gap:10px!important;
    padding:22px 18px!important;
  }
}

/* 2026-09-15 — Mis datos: preferencias de correo */
.turo-account-details form.edit-account > p:has(> label > input[type="checkbox"]),
.turo-account-details form.edit-account > p:has(> label > input[type="radio"]),
.turo-account-details form.edit-account > label:has(> input[type="checkbox"]),
.turo-account-details form.edit-account > label:has(> input[type="radio"]) {
  display:block!important;
  width:100%;
  min-height:64px;
  margin:10px 0!important;
  padding:0!important;
  color:#222;
  font-family:Poppins,sans-serif;
  font-size:13px!important;
  font-weight:650!important;
  line-height:1.4;
  cursor:pointer;
}
.turo-account-details form.edit-account > p:has(> label > input[type="checkbox"]) > label,
.turo-account-details form.edit-account > p:has(> label > input[type="radio"]) > label,
.turo-account-details form.edit-account > label:has(> input[type="checkbox"]),
.turo-account-details form.edit-account > label:has(> input[type="radio"]) {
  display:flex!important;
  align-items:center!important;
  gap:14px!important;
  width:100%;
  min-height:64px;
  margin:0!important;
  padding:16px 20px!important;
  cursor:pointer;
}
.turo-account-details form.edit-account input[type="checkbox"],
.turo-account-details form.edit-account input[type="radio"] {
  appearance:none;
  -webkit-appearance:none;
  width:20px!important;
  height:20px!important;
  min-width:20px;
  margin:0!important;
  border:1.5px solid #bdbdbd!important;
  border-radius:6px!important;
  background:#fff!important;
  box-shadow:none!important;
  display:inline-grid!important;
  place-content:center;
  vertical-align:middle;
  cursor:pointer;
}
.turo-account-details form.edit-account input[type="checkbox"]::before,
.turo-account-details form.edit-account input[type="radio"]::before {
  content:"";
  width:10px;
  height:10px;
  transform:scale(0);
  transition:transform .12s ease;
  border-radius:3px;
  background:#111;
}
.turo-account-details form.edit-account input[type="checkbox"]:checked,
.turo-account-details form.edit-account input[type="radio"]:checked {
  border-color:#111!important;
  background:#fff8c9!important;
}
.turo-account-details form.edit-account input[type="checkbox"]:checked::before,
.turo-account-details form.edit-account input[type="radio"]:checked::before { transform:scale(1); }
.turo-account-details form.edit-account > p:has(> label > input[type="checkbox"]) > label:hover,
.turo-account-details form.edit-account > p:has(> label > input[type="radio"]) > label:hover,
.turo-account-details form.edit-account > label:has(> input[type="checkbox"]):hover,
.turo-account-details form.edit-account > label:has(> input[type="radio"]):hover {
  border-color:#eadb72;
  background:#fffdf2;
}

/* Resumen de dirección: lectura limpia, una línea por dato y acción al final. */
.turo-account-address .woocommerce-Address { display:flex; flex-direction:column; }
.turo-account-address .woocommerce-Address address {
  order:1;
  margin:4px 0 0!important;
  padding:22px 26px!important;
  border:1px solid #ececec!important;
  border-radius:18px;
  background:#fff;
  color:#333;
  font-style:normal;
  font-size:15px;
  line-height:2.15;
}
.turo-account-address .woocommerce-Address address br { display:block; }
.turo-account-address .woocommerce-Address-title {
  order:2;
  margin:22px 0 0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
}
.turo-account-address .woocommerce-Address-title a.edit { min-height:54px; padding:0 34px; }

@media (max-width:600px) {
  .turo-account-address .woocommerce-Address address { padding:18px 20px!important; font-size:14px; line-height:2; }
  .turo-account-address .woocommerce-Address-title a.edit { width:100%; }
}
