.page-content-account{max-width:none!important;padding:0!important}.agenda-account-page{--account-ink:#25211e;--account-muted:#81786f;--account-gold:#b18a52;--account-line:#e7ded2;max-width:1180px;margin:0 auto;padding:70px 24px 90px;color:var(--account-ink);font-family:var(--font-body,'Inter',sans-serif)}
.agenda-account-hero{display:flex;justify-content:space-between;align-items:end;margin-bottom:34px}.agenda-account-hero p,.agenda-account-eyebrow{color:var(--account-gold);font-size:11px;letter-spacing:.28em;font-weight:700;margin:0 0 12px}.agenda-account-hero h1{font-family:var(--font-heading,'Cormorant Garamond',Georgia,serif);font-size:clamp(42px,5vw,70px);line-height:1;margin:0 0 10px;font-weight:500}.agenda-account-hero span{color:var(--account-muted);font-size:18px}.agenda-account-card{background:#fffdf9;border:1px solid var(--account-line);border-radius:4px;padding:42px;box-shadow:0 18px 50px rgba(64,45,27,.07);max-width:980px;margin:0 auto}.agenda-account-card h2,.agenda-account-section h3,.agenda-account-empty h3{font-family:var(--font-heading,'Cormorant Garamond',Georgia,serif);font-weight:500}.agenda-account-card h2{font-size:34px;margin:0 0 10px}.agenda-account-lead{color:var(--account-muted);margin:0 0 28px;line-height:1.6}.agenda-account-form{max-width:480px;display:grid;gap:17px}.agenda-account-form label{display:grid;gap:7px;font-size:13px;color:#564e47}.agenda-account-form input{font:inherit;padding:14px 15px;border:1px solid var(--account-line);border-radius:2px;background:#fff;color:var(--account-ink)}.agenda-account-form input:focus{outline:2px solid rgba(177,138,82,.25);border-color:var(--account-gold)}.agenda-account-btn{display:inline-flex;align-items:center;justify-content:center;gap:14px;background:#211d19;color:#fff;text-decoration:none;border:1px solid #211d19;padding:15px 23px;border-radius:2px;letter-spacing:.05em;font-size:13px;font-weight:600;cursor:pointer;transition:transform .2s ease,background .2s ease}.agenda-account-btn:hover{background:#3b3025;transform:translateY(-2px)}.agenda-account-btn-light{background:transparent;color:#211d19;border-color:var(--account-gold)}.agenda-account-link{color:#806341;text-decoration:underline;text-underline-offset:4px;font-size:13px;text-align:center}.agenda-account-divider{border-top:1px solid var(--account-line);margin:34px 0 22px;padding-top:24px;color:var(--account-muted);font-size:13px}.agenda-account-notice{padding:14px 16px;border:1px solid var(--account-line);margin-bottom:22px;font-size:14px}.agenda-account-notice.success{background:#f5f4ee;color:#496148}.agenda-account-notice.error{background:#fff4f0;color:#9a4b37}.agenda-account-welcome{display:flex;align-items:center;justify-content:space-between;gap:22px;padding-bottom:32px;border-bottom:1px solid var(--account-line);margin-bottom:32px}.agenda-account-welcome h2{margin:0 0 8px}.agenda-account-welcome p:not(.agenda-account-eyebrow){margin:0;color:var(--account-muted)}.agenda-account-section{margin:0 0 34px}.agenda-account-section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.agenda-account-section h3{font-size:28px;margin:0}.agenda-account-status{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#6c604f;background:#f1eadf;padding:7px 10px;border-radius:30px;white-space:nowrap}.agenda-appointment{display:flex;align-items:center;gap:20px;border:1px solid var(--account-line);padding:18px 20px;background:#fff;margin-bottom:10px}.agenda-appointment.is-featured{border-color:#c9ab7a;background:#fcfaf5;padding:24px}.agenda-appointment-date{width:60px;height:60px;display:grid;place-content:center;text-align:center;background:#f2ece2;color:#79603d}.agenda-appointment-date strong{font-family:Georgia,serif;font-size:25px;font-weight:500;line-height:1}.agenda-appointment-date span{text-transform:uppercase;font-size:10px;letter-spacing:.1em}.agenda-appointment-info{display:grid;gap:6px;flex:1}.agenda-appointment-info strong{font-family:Georgia,serif;font-size:22px;font-weight:500}.agenda-appointment-info span{font-size:13px;color:var(--account-muted)}.agenda-account-empty{text-align:center;padding:42px 20px;border:1px dashed var(--account-line);margin-bottom:32px}.agenda-account-empty h3{font-size:29px;margin:0 0 10px}.agenda-account-empty p{color:var(--account-muted);margin:0 auto 22px;max-width:460px}.agenda-account-history{border-top:1px solid var(--account-line);padding-top:22px}.agenda-account-history summary{cursor:pointer;font-size:14px;color:#806341;letter-spacing:.06em}.agenda-account-history .agenda-account-list{margin-top:18px}.agenda-account-footer-actions{display:flex;justify-content:space-between;margin-top:30px;padding-top:22px;border-top:1px solid var(--account-line)}.agenda-account-footer-actions a{font-size:13px;color:#806341}
@media(max-width:700px){.agenda-account-page{padding:34px 16px 60px}.agenda-account-hero{display:block;margin-bottom:22px}.agenda-account-hero h1{font-size:46px}.agenda-account-hero span{font-size:16px}.agenda-account-card{padding:26px 18px}.agenda-account-card h2{font-size:30px}.agenda-account-welcome{display:grid}.agenda-account-welcome .agenda-account-btn{width:100%}.agenda-account-section h3{font-size:25px}.agenda-account-section-head{align-items:flex-start;gap:12px}.agenda-appointment,.agenda-appointment.is-featured{display:grid;grid-template-columns:auto 1fr;gap:13px;padding:15px}.agenda-appointment .agenda-account-status{grid-column:2;justify-self:start}.agenda-appointment-info strong{font-size:19px}.agenda-appointment-info span{font-size:12px;line-height:1.4}.agenda-account-footer-actions{display:grid;gap:16px}.agenda-account-footer-actions a{text-align:center}.agenda-account-form,.agenda-account-btn{width:100%;box-sizing:border-box}}

/* Login: editorial split layout aligned with the main landing page. */
.agenda-account-card:has(.agenda-account-login-layout){max-width:1060px;padding:0;overflow:hidden;border-radius:3px}
.agenda-account-login-layout{display:grid;grid-template-columns:minmax(0,1.02fr) minmax(320px,.98fr);min-height:570px}
.agenda-account-login-content{padding:clamp(34px,5vw,68px);display:flex;flex-direction:column;justify-content:center}
.agenda-account-login-content>.agenda-account-eyebrow{margin:0 0 13px;color:var(--account-gold);font-size:10px;letter-spacing:.25em;font-weight:600}
.agenda-account-login-content>h2{font-size:clamp(35px,4vw,49px);line-height:1.04;margin:0 0 12px}
.agenda-account-login-content>.agenda-account-lead{font-size:15px;max-width:400px;margin-bottom:27px}
.agenda-account-login-content .agenda-account-form{width:100%;max-width:430px;gap:17px}
.agenda-account-login-content .agenda-account-form label{font-size:12px;letter-spacing:.025em}
.agenda-account-login-content .agenda-account-form input{height:50px;padding:0 15px;background:#fffefa;border-color:#e3d9cb;border-radius:2px;transition:border-color .2s,box-shadow .2s}
.agenda-account-login-content .agenda-account-form input::placeholder{color:#b2aaa0}
.agenda-account-login-content .agenda-account-form input:focus{box-shadow:0 0 0 3px rgba(177,138,82,.12)}
.agenda-account-login-content .agenda-account-btn{width:100%;min-height:52px;margin-top:3px}
.agenda-account-login-content .agenda-account-link{text-align:right;margin-top:-4px}
.agenda-account-login-content .agenda-account-divider{margin:27px 0 12px;padding-top:19px;text-align:center;border-top:1px solid #eee7dd;font-size:11px;letter-spacing:.11em;text-transform:uppercase}
.agenda-account-login-note{margin:0 0 12px;text-align:center;color:var(--account-muted);font-size:12px}
.agenda-account-login-content .agenda-account-btn-light{min-height:48px}
.agenda-account-login-visual{position:relative;min-height:100%;overflow:hidden;background-color:#e7d8c7;background-image:linear-gradient(180deg,rgba(28,23,19,.02) 18%,rgba(28,23,19,.68) 100%),var(--agenda-login-image);background-size:cover;background-position:58% center}
.agenda-account-login-visual:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(246,240,230,.05),transparent 24%);pointer-events:none}
.agenda-account-login-visual-copy{position:absolute;z-index:1;left:clamp(24px,4vw,52px);right:24px;bottom:clamp(30px,5vw,56px);display:grid;gap:13px;color:#fff}
.agenda-account-login-visual-copy>span{font-size:10px;letter-spacing:.28em}
.agenda-account-login-visual-copy strong{font-family:var(--font-heading,'Cormorant Garamond',Georgia,serif);font-size:clamp(37px,4vw,56px);font-weight:500;line-height:.98}
.agenda-account-login-visual-copy i{height:1px;width:44px;background:#c8a46f}
.agenda-account-login-visual-copy small{font-size:9px;letter-spacing:.2em;color:rgba(255,255,255,.78)}
@media(max-width:700px){.agenda-account-card:has(.agenda-account-login-layout){padding:0}.agenda-account-login-layout{display:flex;flex-direction:column;min-height:0}.agenda-account-login-content{padding:30px 22px 28px}.agenda-account-login-content>h2{font-size:36px}.agenda-account-login-content>.agenda-account-lead{font-size:14px;margin-bottom:22px}.agenda-account-login-visual{min-height:210px;background-position:center 42%}.agenda-account-login-visual-copy{left:24px;bottom:20px;gap:8px}.agenda-account-login-visual-copy strong{font-size:34px}.agenda-account-login-visual-copy>span{font-size:9px}.agenda-account-login-visual-copy small{font-size:8px}}
@media(prefers-reduced-motion:reduce){.agenda-account-login-content .agenda-account-form input,.agenda-account-btn{transition:none}}

/* Mobile refinement: undo the theme container's side padding so the form has room. */
@media(max-width:700px){
  .agenda-account-page{box-sizing:border-box;width:calc(100% + 56px);margin-left:-28px;padding:26px 16px 48px}
  .agenda-account-hero{margin-bottom:18px}
  .agenda-account-hero p,.agenda-account-eyebrow{font-size:9px;letter-spacing:.17em;line-height:1.5}
  .agenda-account-hero h1{font-size:42px}
  .agenda-account-hero span{font-size:15px}
  .agenda-account-card:has(.agenda-account-login-layout){width:100%;box-sizing:border-box}
  .agenda-account-login-layout{width:100%}
  .agenda-account-login-content{padding:27px 20px 24px}
  .agenda-account-login-content>.agenda-account-eyebrow{margin-bottom:10px;letter-spacing:.18em}
  .agenda-account-login-content>h2{font-size:34px;line-height:1.02;margin-bottom:10px}
  .agenda-account-login-content>.agenda-account-lead{font-size:14px;line-height:1.55;margin-bottom:19px}
  .agenda-account-login-content .agenda-account-form{gap:14px}
  .agenda-account-login-content .agenda-account-form label{gap:6px;font-size:12px}
  .agenda-account-login-content .agenda-account-form input{height:50px;box-sizing:border-box;width:100%;font-size:16px}
  .agenda-account-login-content .agenda-account-btn{min-height:50px}
  .agenda-account-login-content .agenda-account-divider{margin:21px 0 10px;padding-top:15px;letter-spacing:.08em}
  .agenda-account-login-note{line-height:1.45}
  .agenda-account-login-visual{min-height:190px;background-position:center 42%}
  .agenda-account-login-visual-copy{left:20px;bottom:17px}
  .agenda-account-login-visual-copy strong{font-size:32px}
}
@media(max-width:380px){
  .agenda-account-page{padding-right:13px;padding-left:13px}
  .agenda-account-login-content{padding-right:17px;padding-left:17px}
  .agenda-account-login-content>h2{font-size:31px}
  .agenda-account-login-content>.agenda-account-eyebrow{font-size:8px;letter-spacing:.15em}
  .agenda-account-login-visual{min-height:175px}
}
@media(max-width:700px){body:has(.agenda-account-page) .whatsapp-float{display:none}}

/* ===== Dashboard "Mi cuenta" ===== */
.agenda-account-card:has(.agenda-dash-welcome){max-width:1180px}
.agenda-dash-welcome{display:flex;align-items:center;gap:20px;padding-bottom:28px;border-bottom:1px solid var(--account-line);margin-bottom:26px}
.agenda-dash-avatar{flex:0 0 56px;width:56px;height:56px;border-radius:50%;background:#f2ece2;color:#79603d;display:grid;place-content:center;font-family:Georgia,serif;font-size:20px}
.agenda-dash-welcome > div{flex:1}
.agenda-dash-welcome h2{margin:0 0 4px;font-family:var(--font-heading,'Cormorant Garamond',Georgia,serif);font-weight:500;font-size:28px}
.agenda-dash-welcome p{margin:0;color:var(--account-muted);font-size:14px}
.agenda-dash-welcome .agenda-account-btn{flex:0 0 auto}
.agenda-dash-grid-top{margin-bottom:24px}
.agenda-dash-card{background:#fff;border:1px solid var(--account-line);border-radius:12px;padding:22px 24px}
.agenda-dash-card h3{display:flex;align-items:center;gap:8px;margin:0 0 16px;font-family:var(--font-heading,'Cormorant Garamond',Georgia,serif);font-weight:500;font-size:20px}
.agenda-dash-card h3 .dashicons{color:var(--account-gold);font-size:19px;width:19px;height:19px}
.agenda-dash-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.agenda-dash-card-head h3{margin:0}
.agenda-dash-link{background:none;border:0;padding:0;color:#806341;font-size:13px;text-decoration:underline;text-underline-offset:3px;cursor:pointer;font-family:inherit;white-space:nowrap}
.agenda-dash-proxima .agenda-appointment{margin-bottom:0}
.agenda-appointment-meta{display:flex;flex-wrap:wrap;gap:4px 16px;margin-top:6px}
.agenda-appointment-meta span{display:inline-flex;align-items:center;gap:5px;font-size:12px;color:var(--account-muted)}
.agenda-appointment-meta .dashicons{font-size:14px;width:14px;height:14px;color:#a3937c}
.agenda-status-pendiente{background:#FEF3C7;color:#92400E}
.agenda-status-confirmada{background:#DCFCE7;color:#15803D}
.agenda-status-en-atencion{background:#DBEAFE;color:#1D4ED8}
.agenda-status-completada{background:#DCFCE7;color:#15803D}
.agenda-status-cancelada{background:#FEE2E2;color:#B91C1C}
.agenda-status-no-asistio{background:#FFEDD5;color:#7C2D12}
.agenda-dash-grid{display:grid;grid-template-columns:2fr 1fr;align-items:start;gap:24px}
.agenda-dash-sidebar{display:flex;flex-direction:column;gap:24px}
.agenda-dash-tabs{display:flex;gap:8px;margin-bottom:16px}
.agenda-dash-tab{background:#f7f3ed;border:1px solid var(--account-line);border-radius:30px;padding:7px 16px;font-size:12px;color:var(--account-muted);cursor:pointer;font-family:inherit}
.agenda-dash-tab.is-active{background:#211d19;border-color:#211d19;color:#fff}
.agenda-dash-tab-panel[hidden]{display:none}
.agenda-panel-vacio{color:var(--account-muted);font-size:13px;margin:0}
.agenda-dash-datos-vista{display:grid;grid-template-columns:1fr 1fr;gap:16px 20px;margin:0}
.agenda-dash-datos-vista[hidden]{display:none}
.agenda-dash-datos-vista dt{font-size:11px;letter-spacing:.05em;text-transform:uppercase;color:#a3937c;margin:0 0 3px}
.agenda-dash-datos-vista dd{margin:0;font-size:14px;color:var(--account-ink)}
.agenda-dash-datos-form{display:grid;gap:12px}
.agenda-dash-datos-form[hidden]{display:none}
.agenda-dash-datos-form label{display:grid;gap:5px;font-size:12px;color:#564e47}
.agenda-dash-datos-form input{font:inherit;padding:10px 12px;border:1px solid var(--account-line);border-radius:6px;background:#fff;color:var(--account-ink)}
.agenda-dash-datos-acciones{display:flex;gap:10px;margin-top:4px}
.agenda-dash-datos-acciones .agenda-account-btn{padding:10px 16px;font-size:12px}
.agenda-dash-tratamientos-lista{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.agenda-dash-tratamientos-lista li{display:flex;align-items:center;gap:12px}
.agenda-dash-tratamientos-lista img,.agenda-dash-tratamiento-placeholder{width:44px;height:44px;border-radius:8px;object-fit:cover;flex:0 0 44px}
.agenda-dash-tratamiento-placeholder{display:grid;place-content:center;background:#f2ece2;color:#a3937c;font-family:Georgia,serif}
.agenda-dash-tratamientos-lista strong{display:block;font-size:13px;color:var(--account-ink);font-weight:600}
.agenda-dash-tratamientos-lista span{font-size:12px;color:var(--account-muted)}

/* ===== Consentimientos informados (Mi cuenta) ===== */
.agenda-dash-consentimientos .agenda-account-notice{margin-bottom:18px}
.agenda-dash-consentimiento-pendiente{display:grid;gap:10px;padding:16px 18px;border:1px solid var(--account-line);border-radius:8px;background:#faf8f4}
.agenda-dash-consentimiento-pendiente+.agenda-dash-consentimiento-pendiente{margin-top:14px}
.agenda-dash-consentimiento-pendiente p{margin:0}
.agenda-dash-consentimiento-pendiente p.description{color:var(--account-muted);font-size:13px;line-height:1.55}
.agenda-dash-consentimiento-pendiente form{display:grid;gap:12px}
.agenda-dash-consentimiento-check{display:flex;align-items:center;gap:10px;font-size:13px;line-height:1.4;cursor:pointer}
.agenda-dash-consentimiento-check input{width:20px;height:20px;flex:0 0 20px;margin:0;cursor:pointer}
.agenda-dash-consentimiento-pendiente .agenda-account-btn{justify-self:start}
.agenda-dash-consentimientos-historial-titulo{font-size:12px;letter-spacing:.05em;text-transform:uppercase;color:#a3937c;margin:18px 0 8px}
.agenda-firma-pad-wrap{display:grid;gap:8px}
.agenda-firma-pad-label{font-size:12px;color:#564e47;font-weight:600}
.agenda-firma-pad{width:100%;height:160px;display:block;border:1px solid var(--account-line);border-radius:6px;background:#fff;cursor:crosshair;touch-action:none}
.agenda-firma-pad-acciones{display:flex;justify-content:flex-end}
.agenda-firma-pad-borrar{background:none;border:0;padding:0;color:#806341;font-size:12px;text-decoration:underline;text-underline-offset:3px;cursor:pointer;font-family:inherit}
.agenda-firma-pad-error{color:#9a4b37;font-size:12px;margin:0}
@media(max-width:700px){
  .agenda-dash-consentimiento-pendiente{padding:14px 16px}
  .agenda-dash-consentimiento-pendiente .agenda-account-btn{justify-self:stretch;width:100%}
  .agenda-firma-pad{height:180px}
}
@media(max-width:900px){.agenda-dash-grid{grid-template-columns:1fr}}
@media(max-width:700px){.agenda-dash-welcome{display:grid;text-align:center}.agenda-dash-avatar{margin:0 auto}.agenda-dash-datos-vista{grid-template-columns:1fr}}

/* Keep patient details readable on touch screens without clipping long emails. */
.agenda-dash-datos-vista{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);align-items:start}
.agenda-dash-datos-vista>div{min-width:0}
.agenda-dash-datos-vista dt{line-height:1.35;letter-spacing:.08em}
.agenda-dash-datos-vista dd{min-width:0;line-height:1.45;overflow-wrap:anywhere;word-break:normal}
@media(max-width:700px){
  .agenda-dash-card.agenda-dash-datos{padding:21px 20px}
  .agenda-dash-datos .agenda-dash-card-head{align-items:center;gap:10px;margin-bottom:18px}
  .agenda-dash-datos .agenda-dash-card-head h3{font-size:23px;line-height:1.15}
  .agenda-dash-datos .agenda-dash-link{font-size:12px;flex:0 0 auto}
  .agenda-dash-datos-vista{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:17px 14px}
  .agenda-dash-datos-vista dt{font-size:10px;margin-bottom:5px}
  .agenda-dash-datos-vista dd{font-size:13px}
  .agenda-dash-datos-vista>div:last-child dd{font-size:12px;letter-spacing:-.01em}
}
@media(max-width:460px){.agenda-dash-datos-vista{grid-template-columns:minmax(0,1fr);gap:14px}}
@media(max-width:380px){
  .agenda-dash-datos .agenda-dash-card-head{gap:6px}
  .agenda-dash-datos .agenda-dash-card-head h3{font-size:20px;white-space:nowrap}
  .agenda-dash-datos .agenda-dash-link{font-size:11px}
}

/* ===== Autogestión de citas (Fase 3): acciones en tarjeta + modales ===== */
.agenda-appointment-acciones{display:flex;gap:16px;margin-top:8px}
.agenda-appointment-acciones .agenda-dash-link{font-size:12px}
.agenda-modal{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center}
.agenda-modal[hidden]{display:none}
.agenda-modal-backdrop{position:absolute;inset:0;background:rgba(37,33,30,.55)}
.agenda-modal-dialog{position:relative;background:#fffdf9;border-radius:6px;max-width:440px;width:calc(100% - 32px);max-height:calc(100vh - 60px);overflow:auto;box-shadow:0 24px 60px rgba(0,0,0,.25)}
.agenda-modal-header{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;border-bottom:1px solid var(--account-line, #e7ded2)}
.agenda-modal-header strong{font-family:var(--font-heading,'Cormorant Garamond',Georgia,serif);font-size:20px;font-weight:500}
.agenda-modal-cerrar{background:none;border:0;font-size:22px;line-height:1;cursor:pointer;color:#81786f}
.agenda-modal-body{padding:20px 22px;display:grid;gap:14px}
.agenda-modal-body .agenda-field{display:grid;gap:6px}
.agenda-modal-body .agenda-field label{font-size:12px;color:#564e47}
.agenda-modal-body input[type=date],.agenda-modal-body textarea{font:inherit;padding:10px 12px;border:1px solid var(--account-line,#e7ded2);border-radius:4px;width:100%;box-sizing:border-box}
.agenda-cuenta-slots{display:flex;flex-wrap:wrap;gap:8px}
.agenda-time-slot{border:1px solid var(--account-line,#e7ded2);background:#fff;padding:8px 12px;border-radius:20px;font-size:13px;cursor:pointer}
.agenda-time-slot.is-selected{background:#211d19;border-color:#211d19;color:#fff}
.agenda-cuenta-mensaje{font-size:13px;color:#496148;margin:0}
.agenda-cuenta-mensaje-error{color:#9a4b37}
.agenda-modal-footer{display:flex;justify-content:flex-end;gap:10px;padding:16px 22px;border-top:1px solid var(--account-line,#e7ded2)}
.agenda-modal-footer .agenda-account-btn{padding:11px 18px;font-size:13px}
@media(max-width:480px){.agenda-modal-footer{flex-direction:column-reverse}.agenda-modal-footer .agenda-account-btn{width:100%}}
