/* Club Vivemás – widgets de acceso y «Mi cuenta» (Elementor). */

/* ---------- Visibilidad por sesión (en el editor se ve todo) ---------- */
body.cvm-con-sesion:not(.elementor-editor-active) .cvm-solo-visitante,
body.cvm-sin-sesion:not(.elementor-editor-active) .cvm-solo-socio{display:none!important}
body.elementor-editor-active .e-con.cvm-solo-visitante,body.elementor-editor-active .e-con.cvm-solo-socio{outline:2px dashed #0aa38566;outline-offset:-2px}

/* ---------- Diseño de dos columnas ---------- */
.e-con.cvm-con.cvm-acc{
  display:grid;grid-template-columns:min(46vw,640px) minmax(0,1fr);min-height:100vh;
  padding:0;gap:0;background:#f6faf8;position:relative
}
.e-con.cvm-con.cvm-acc>.e-con-inner{display:contents}
.e-con.cvm-con.cvm-acc-side{position:sticky;top:0;height:100vh;min-height:560px;padding:0;align-self:start}
.admin-bar .e-con.cvm-con.cvm-acc-side{top:32px;height:calc(100vh - 32px)}
.e-con.cvm-con.cvm-acc-main{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 24px 32px;min-width:0}
.e-con.cvm-acc>.elementor-element,.e-con.cvm-acc-side>.elementor-element,.e-con.cvm-acc-main>.elementor-element{width:100%;max-width:none;margin:0}
.e-con.cvm-acc-side>.elementor-element{height:100%}
.e-con.cvm-acc-main>.elementor-element{max-width:420px}

/* ---------- Panel de marca ---------- */
html body .cvm.cvm-ap{height:100%;min-height:inherit;background:none;color:#fff}
html body .cvm.cvm-ap .cvm-ap-in{
  position:relative;overflow:hidden;height:100%;min-height:560px;
  display:flex;flex-direction:column;justify-content:space-between;gap:32px;
  padding:44px clamp(32px,4.5vw,64px);
  background:radial-gradient(120% 80% at 100% 0%,#0aa38533 0%,transparent 60%),linear-gradient(160deg,#0d3236 0%,#0b4a45 55%,#087e69 100%)
}
html body .cvm.cvm-ap .cvm-ap-in::before,html body .cvm.cvm-ap .cvm-ap-in::after{content:"";position:absolute;border-radius:50%;border:1px solid #ffffff14;pointer-events:none}
html body .cvm.cvm-ap .cvm-ap-in::before{width:520px;height:520px;right:-220px;bottom:-180px}
html body .cvm.cvm-ap .cvm-ap-in::after{width:340px;height:340px;right:-130px;bottom:-90px;background:#ffffff08}
html body .cvm.cvm-ap .cvm-ap-brand{position:relative;display:inline-flex;align-items:center;gap:12px;color:#fff;text-decoration:none;font-weight:800;font-size:1.2rem;letter-spacing:-.02em}
html body .cvm.cvm-ap .cvm-ap-brand img{width:46px;height:46px;object-fit:contain;background:#fff;border-radius:14px;padding:5px}
html body .cvm.cvm-ap .cvm-ap-brand b{color:#7fe0c6;font-weight:800}
html body .cvm.cvm-ap .cvm-ap-copy{position:relative;max-width:470px}
html body .cvm.cvm-ap .cvm-ap-eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:.78rem;font-weight:700;color:#bff0e2;background:#ffffff14;padding:6px 12px;border-radius:99px;margin-bottom:22px}
html body .cvm.cvm-ap .cvm-ap-eyebrow::before{content:"";width:6px;height:6px;border-radius:50%;background:#7fe0c6}
html body .cvm.cvm-ap .cvm-ap-title{margin:0 0 28px;font-size:clamp(2rem,3.2vw,2.9rem);line-height:1.08;letter-spacing:-.035em;font-weight:800;color:#fff}
html body .cvm.cvm-ap .cvm-ap-title em{font-style:normal;color:#7fe0c6}
html body .cvm.cvm-ap ul{list-style:none;margin:0;padding:0;display:grid;gap:14px}
html body .cvm.cvm-ap li{display:flex;align-items:flex-start;gap:12px;margin:0;font-size:1rem;line-height:1.45;color:#dcefe9}
html body .cvm.cvm-ap li i{flex:none;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#7fe0c6;color:#0d3236;margin-top:-1px}
html body .cvm.cvm-ap .cvm-ap-legal{position:relative;font-size:.8rem;color:#a9cbc2}

/* ---------- Formulario ---------- */
html body .cvm.cvm-af{width:100%;max-width:420px;margin:0 auto;background:none;color:var(--ink);font-size:16px}
html body .cvm.cvm-af .cvm-af-logo{display:none;width:64px;height:64px;object-fit:contain;margin:4px 0 22px}
html body .cvm.cvm-af .cvm-af-head{margin:0 0 22px}
html body .cvm.cvm-af .cvm-af-head h1{margin:0;font-size:2rem;line-height:1.1;letter-spacing:-.035em;font-weight:800;color:var(--dark)}
html body .cvm.cvm-af .cvm-af-head p{margin:10px 0 0;color:var(--muted);font-size:.98rem;line-height:1.55}
html body .cvm.cvm-af a{color:var(--g)}

/* Avisos (propios y de WooCommerce) */
html body .cvm.cvm-af .cvm-af-msg,
html body .cvm.cvm-af .woocommerce-error,html body .cvm.cvm-af .woocommerce-message,html body .cvm.cvm-af .woocommerce-info{
  list-style:none;margin:0 0 16px;padding:12px 16px;border:0;border-left:4px solid var(--g);border-radius:12px;
  background:#fff;box-shadow:0 0 0 1px var(--line);font-size:.9rem;line-height:1.5;color:var(--ink);outline:none
}
html body .cvm.cvm-af .cvm-af-msg.is-err,html body .cvm.cvm-af .woocommerce-error{border-left-color:#c2410c;background:#fff7f2}
html body .cvm.cvm-af .woocommerce-error::before,html body .cvm.cvm-af .woocommerce-message::before,html body .cvm.cvm-af .woocommerce-info::before{display:none}
html body .cvm.cvm-af .woocommerce-error li{margin:0;padding:0}
html body .cvm.cvm-af .woocommerce-error a,html body .cvm.cvm-af .woocommerce-message a{font-weight:700}
html body .cvm.cvm-af .woocommerce-notices-wrapper:empty{display:none}
html body .cvm.cvm-af .cvm-af-woo .woocommerce>h2{display:none}
html body .cvm.cvm-af .cvm-af-woo .woocommerce>p{color:var(--muted);font-size:.95rem;margin:0 0 10px}

/* Tarjeta */
html body .cvm.cvm-af form{
  display:block;font-size:1rem;font-weight:400;color:var(--ink);white-space:normal;line-height:1.55;gap:0;
  margin:0;padding:28px;border:0;border-radius:20px;background:#fff;text-align:left;
  box-shadow:0 1px 2px #0d32360d,0 18px 40px -16px #0d323638,0 0 0 1px var(--line)
}
html body .cvm.cvm-af form p{margin:0;padding:0}
html body .cvm.cvm-af form>p:empty,html body .cvm.cvm-af form .clear{display:none}
html body .cvm.cvm-af form>p+p,html body .cvm.cvm-af form .form-row+.form-row,html body .cvm.cvm-af form .cvm-af-row+.cvm-af-row{margin-top:18px}
html body .cvm.cvm-af form .form-row{float:none;width:auto;padding:0;margin:0}
html body .cvm.cvm-af form .form-row+.form-row{margin-top:18px}
html body .cvm.cvm-af form label{display:block;margin:0 0 7px;font-size:.86rem;font-weight:700;color:var(--ink);line-height:1.4}
html body .cvm.cvm-af form .required{display:none}
html body .cvm.cvm-af .screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
html body .cvm.cvm-af form input.input-text,html body .cvm.cvm-af form input[type=text],html body .cvm.cvm-af form input[type=email],html body .cvm.cvm-af form input[type=password]{
  width:100%;height:50px;margin:0;padding:0 16px;font:inherit;font-size:1rem;line-height:normal;color:var(--ink);
  background:#fff;border:1.5px solid #d5e2de;border-radius:12px;box-shadow:none;outline:none;transition:border-color .15s,box-shadow .15s
}
html body .cvm.cvm-af form input.input-text:hover{border-color:#b8ccc6}
html body .cvm.cvm-af form input.input-text:focus{border-color:var(--g);box-shadow:0 0 0 4px #087e691f}

/* Mostrar contraseña */
html body .cvm.cvm-af form .password-input{position:relative;display:block;width:100%}
html body .cvm.cvm-af form .password-input input.input-text{padding-right:52px}
html body .cvm.cvm-af form .show-password-input{
  position:absolute;top:0;right:0;bottom:auto;transform:none;width:50px;height:50px;margin:0;padding:0;border:0;background:transparent;cursor:pointer;color:var(--muted);border-radius:0 12px 12px 0;box-shadow:none
}
html body .cvm.cvm-af form .show-password-input::after{
  content:"";font-family:inherit;position:absolute;inset:0;margin:auto;width:20px;height:20px;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center/contain no-repeat
}
html body .cvm.cvm-af form .show-password-input.display-password::after{
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.7 5.1A10.4 10.4 0 0 1 12 5c6.5 0 10 7 10 7a17 17 0 0 1-2.2 3.2M6.6 6.6C3.7 8.6 2 12 2 12s3.5 7 10 7a9.8 9.8 0 0 0 5.4-1.6M9.9 9.9a3 3 0 0 0 4.2 4.2M2 2l20 20'/%3E%3C/svg%3E");
          mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.7 5.1A10.4 10.4 0 0 1 12 5c6.5 0 10 7 10 7a17 17 0 0 1-2.2 3.2M6.6 6.6C3.7 8.6 2 12 2 12s3.5 7 10 7a9.8 9.8 0 0 0 5.4-1.6M9.9 9.9a3 3 0 0 0 4.2 4.2M2 2l20 20'/%3E%3C/svg%3E")
}
html body .cvm.cvm-af form .show-password-input::before{content:none;display:none}
html body .cvm.cvm-af form .show-password-input:hover{color:var(--g);background:transparent}

/* Recuérdame */
html body .cvm.cvm-af form label.woocommerce-form-login__rememberme{display:inline-flex;align-items:center;gap:8px;margin:0;font-size:.88rem;font-weight:600;color:var(--muted);cursor:pointer}
html body .cvm.cvm-af form input[type=checkbox]{width:18px;height:18px;margin:0;accent-color:var(--g)}

/* Botón (WooCommerce lo pone dentro del párrafo de «Recuérdame») */
html body .cvm.cvm-af form .button,html body .cvm.cvm-af form button[type=submit],html body .cvm.cvm-af .cvm-af-cta{
  display:flex;align-items:center;justify-content:center;gap:8px;float:none;width:100%;height:52px;margin:22px 0 0;padding:0 20px;
  font:inherit;font-size:1rem;font-weight:700;line-height:1;letter-spacing:-.01em;text-decoration:none;
  color:#fff;background:var(--g);border:0;border-radius:12px;cursor:pointer;
  box-shadow:0 10px 24px -10px #087e69b3;transition:background .15s,transform .15s,box-shadow .15s
}
html body .cvm.cvm-af form .button:hover,html body .cvm.cvm-af .cvm-af-cta:hover{background:#066b59;color:#fff;transform:translateY(-1px)}
html body .cvm.cvm-af form .button:active{transform:none}
html body .cvm.cvm-af form .button:focus-visible,html body .cvm.cvm-af .cvm-af-cta:focus-visible{outline:3px solid var(--g2);outline-offset:3px}
html body .cvm.cvm-af form .button[disabled],html body .cvm.cvm-af form .button.disabled{opacity:.6;cursor:not-allowed;transform:none}

/* Enlaces */
html body .cvm.cvm-af .woocommerce-LostPassword{margin:16px 0 0;text-align:center;font-size:.9rem}
html body .cvm.cvm-af .woocommerce-LostPassword a,html body .cvm.cvm-af .cvm-af-nav a,html body .cvm.cvm-af .cvm-af-back a{color:var(--muted);font-weight:600;text-decoration:none}
html body .cvm.cvm-af .woocommerce-LostPassword a:hover,html body .cvm.cvm-af .cvm-af-nav a:hover,html body .cvm.cvm-af .cvm-af-back a:hover{color:var(--g)}
html body .cvm.cvm-af .cvm-af-join,html body .cvm.cvm-af .cvm-af-nav{margin:18px 0 0;text-align:center;font-size:.95rem;color:var(--muted)}
html body .cvm.cvm-af .cvm-af-join a{font-weight:800;text-decoration:none}
html body .cvm.cvm-af .cvm-af-join a:hover{text-decoration:underline}
html body .cvm.cvm-af .cvm-af-back{margin:22px 0 0;padding-top:18px;border-top:1px solid var(--line);text-align:center;font-size:.9rem}

/* Fuerza de la contraseña nueva */
html body .cvm.cvm-af .woocommerce-password-strength{margin-top:10px;padding:8px 12px;border-radius:10px;font-size:.85rem;font-weight:700;text-align:center}
html body .cvm.cvm-af .woocommerce-password-strength.short,html body .cvm.cvm-af .woocommerce-password-strength.bad{background:#fde8e1;color:#9a3412}
html body .cvm.cvm-af .woocommerce-password-strength.good{background:#fdf3d7;color:#8a5a00}
html body .cvm.cvm-af .woocommerce-password-strength.strong{background:var(--g-soft);color:var(--g)}
html body .cvm.cvm-af .woocommerce-password-hint{display:block;margin-top:8px;color:var(--muted);font-size:.82rem;line-height:1.5}

/* ---------- Mi cuenta (con sesión) ---------- */
.e-con.cvm-con.cvm-cuenta-main{padding:28px max(24px,calc((100% - 1132px) / 2)) 80px;background:#f6faf8}
html body .cvm.cvm-acc-cuenta{background:none;color:var(--ink);font-size:16px}
html body .cvm.cvm-acc-cuenta .woocommerce{display:grid;grid-template-columns:240px minmax(0,1fr);gap:24px;align-items:start}
html body .cvm.cvm-acc-cuenta .woocommerce::before,html body .cvm.cvm-acc-cuenta .woocommerce::after{display:none}
html body .cvm.cvm-acc-cuenta .woocommerce-MyAccount-navigation{float:none;width:auto;background:#fff;border-radius:20px;padding:10px;box-shadow:0 1px 2px #0d32360d,0 12px 32px -12px #0d32362e,0 0 0 1px var(--line)}
html body .cvm.cvm-acc-cuenta .woocommerce-MyAccount-navigation ul{list-style:none;margin:0;padding:0;display:grid;gap:2px}
html body .cvm.cvm-acc-cuenta .woocommerce-MyAccount-navigation li{margin:0;padding:0;border:0}
html body .cvm.cvm-acc-cuenta .woocommerce-MyAccount-navigation a{display:block;padding:11px 14px;border-radius:12px;color:var(--ink);font-weight:600;font-size:.95rem;text-decoration:none}
html body .cvm.cvm-acc-cuenta .woocommerce-MyAccount-navigation a:hover{background:var(--bg);color:var(--g)}
html body .cvm.cvm-acc-cuenta .woocommerce-MyAccount-navigation .is-active a{background:var(--g-soft);color:var(--g);font-weight:800}
html body .cvm.cvm-acc-cuenta .woocommerce-MyAccount-navigation-link--customer-logout a{color:var(--muted)}
html body .cvm.cvm-acc-cuenta .woocommerce-MyAccount-content{float:none;width:auto;min-width:0;background:#fff;border-radius:20px;padding:28px;box-shadow:0 1px 2px #0d32360d,0 12px 32px -12px #0d32362e,0 0 0 1px var(--line)}
html body .cvm.cvm-acc-cuenta .woocommerce-MyAccount-content p{color:var(--muted);margin:0 0 12px}
html body .cvm.cvm-acc-cuenta .woocommerce-MyAccount-content a{color:var(--g);font-weight:700}
html body .cvm.cvm-acc-cuenta .woocommerce-MyAccount-content h2,html body .cvm.cvm-acc-cuenta .woocommerce-MyAccount-content h3{font-size:1.15rem;letter-spacing:-.02em;color:var(--dark);margin:0 0 14px}
html body .cvm.cvm-acc-cuenta .woocommerce-MyAccount-content table{width:100%;border-collapse:collapse;font-size:.92rem;border:0}
html body .cvm.cvm-acc-cuenta .woocommerce-MyAccount-content th,html body .cvm.cvm-acc-cuenta .woocommerce-MyAccount-content td{padding:12px 10px;border:0;border-bottom:1px solid var(--line);text-align:left}
html body .cvm.cvm-acc-cuenta .woocommerce-MyAccount-content input.input-text,html body .cvm.cvm-acc-cuenta .woocommerce-MyAccount-content select{width:100%;height:46px;padding:0 14px;border:1.5px solid #d5e2de;border-radius:12px;font:inherit;background:#fff}
html body .cvm.cvm-acc-cuenta .woocommerce-MyAccount-content input.input-text:focus{outline:none;border-color:var(--g);box-shadow:0 0 0 4px #087e691f}
html body .cvm.cvm-acc-cuenta .woocommerce-MyAccount-content label{font-size:.86rem;font-weight:700;color:var(--ink)}
html body .cvm.cvm-acc-cuenta .woocommerce-MyAccount-content fieldset{border:1px solid var(--line);border-radius:14px;padding:16px;margin:18px 0}
html body .cvm.cvm-acc-cuenta .woocommerce-MyAccount-content .button{display:inline-flex;align-items:center;height:46px;padding:0 20px;border:0;border-radius:12px;background:var(--g);color:#fff;font:inherit;font-weight:700;text-decoration:none;cursor:pointer}
html body .cvm.cvm-acc-cuenta .woocommerce-MyAccount-content .button:hover{background:#066b59;color:#fff}
html body .cvm.cvm-acc-cuenta .woocommerce-message,html body .cvm.cvm-acc-cuenta .woocommerce-info,html body .cvm.cvm-acc-cuenta .woocommerce-error{list-style:none;margin:0 0 16px;padding:12px 16px;border:0;border-left:4px solid var(--g);border-radius:12px;background:var(--bg);font-size:.9rem;color:var(--ink)}
html body .cvm.cvm-acc-cuenta .woocommerce-error{border-left-color:#c2410c;background:#fff7f2}
html body .cvm.cvm-acc-cuenta .woocommerce-message::before,html body .cvm.cvm-acc-cuenta .woocommerce-info::before,html body .cvm.cvm-acc-cuenta .woocommerce-error::before{display:none}
html body .cvm.cvm-acc-cuenta .cvm-acc-ej{font-size:.82rem;font-style:italic}

/* Campos en dos columnas de «Detalles de la cuenta» y direcciones */
html body .cvm.cvm-acc-cuenta .woocommerce-MyAccount-content .form-row{margin:0 0 14px;padding:0}
html body .cvm.cvm-acc-cuenta .woocommerce-MyAccount-content .form-row-first,html body .cvm.cvm-acc-cuenta .woocommerce-MyAccount-content .form-row-last{width:calc(50% - 8px)}
html body .cvm.cvm-acc-cuenta .woocommerce-MyAccount-content .form-row-first{float:left}
html body .cvm.cvm-acc-cuenta .woocommerce-MyAccount-content .form-row-last{float:right}
html body .cvm.cvm-acc-cuenta .woocommerce-MyAccount-content .form-row-wide,html body .cvm.cvm-acc-cuenta .woocommerce-MyAccount-content .clear{clear:both}

/* ---------- Celular y tablet ---------- */
@media (max-width:960px){
  .e-con.cvm-con.cvm-acc{grid-template-columns:1fr;min-height:100vh}
  .e-con.cvm-con.cvm-acc-side{display:none}
  .e-con.cvm-con.cvm-acc-main{justify-content:flex-start;padding:28px 20px}
  html body .cvm.cvm-af .cvm-af-logo{display:block}
  html body .cvm.cvm-af .cvm-af-head h1{font-size:1.7rem}
  html body .cvm.cvm-af form{padding:22px}
  html body .cvm.cvm-acc-cuenta .woocommerce{grid-template-columns:1fr}
  html body .cvm.cvm-acc-cuenta .woocommerce-MyAccount-navigation ul{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none}
  html body .cvm.cvm-acc-cuenta .woocommerce-MyAccount-navigation a{white-space:nowrap}
  html body .cvm.cvm-acc-cuenta .woocommerce-MyAccount-content{padding:20px}
  html body .cvm.cvm-acc-cuenta .woocommerce-MyAccount-content .form-row-first,html body .cvm.cvm-acc-cuenta .woocommerce-MyAccount-content .form-row-last{width:100%;float:none}
}
body.elementor-editor-active .e-con.cvm-con.cvm-acc-side{position:relative;top:auto;height:auto;min-height:640px;align-self:stretch}
@media (prefers-reduced-motion:reduce){html body .cvm.cvm-af form .button{transition:none}}
