/* Adhamar Corporate Modal - UI Refresh (v1.0.4) */
:root{
  --adhamar-primary:#dd8a0d;           /* Dorado */
  --adhamar-primary-2:#b16e0a;         /* Dorado oscuro (degradado) */
  --adhamar-accent:#dd9933;            /* Hover / acento */
  --adhamar-secondary:#252424;         /* Negro corporativo */
  --adhamar-primary-rgb:221,138,13;
  --adhamar-accent-rgb:221,153,51;

  --adhamar-surface:#ffffff;
  --adhamar-surface-2:#f8fafc;
  --adhamar-text:#111827;
  --adhamar-muted:#6b7280;
  --adhamar-border:rgba(17,24,39,.14);
  --adhamar-shadow:0 20px 60px rgba(2,6,23,.28);
}

#adhamarCorporateModal, #adhamarCorporateModal *{ box-sizing:border-box; }
.adhamar-corp-btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 18px; border-radius:12px; border:0;
  background:var(--adhamar-primary); color:#111; font-weight:700; cursor:pointer;
  box-shadow:0 10px 22px rgba(2,6,23,.15);
}
.adhamar-corp-btn:hover{ filter:brightness(.96); }
.adhamar-modal{ position:fixed; inset:0; display:none; z-index:999999; }
.adhamar-modal.is-open{ display:block; }
.adhamar-modal__backdrop{ position:absolute; inset:0; background:rgba(2,6,23,.60); backdrop-filter: blur(2px); }
.adhamar-modal__dialog{
  position:relative; z-index:2;
  width:min(1100px, calc(100% - 24px));
  max-height:calc(100vh - 24px);
  margin:12px auto;
  background:var(--adhamar-surface);
  border-radius:18px;
  overflow:hidden;
  box-shadow:var(--adhamar-shadow);
}
.adhamar-modal__close{
  position:absolute; top:10px; right:10px; z-index:5;
  width:40px; height:40px; border-radius:12px;
  border:1px solid rgba(15,23,42,.12); background:rgba(255,255,255,.92);
  font-size:22px; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
}
.adhamar-modal__close:hover{ background:#fff; }

.adhamar-modal__layout{
  display:grid;
  grid-template-columns: 360px minmax(0,1fr);
  min-height: min(620px, calc(100vh - 24px));
}

.adhamar-modal__side{
  padding:26px 22px;
  color:#fff;
  background:
    radial-gradient(1200px 600px at 18% 12%, rgba(var(--adhamar-primary-rgb),.38), transparent 58%),
    linear-gradient(135deg, var(--adhamar-secondary), #0b0b0c);
}
.adhamar-side__brand{ display:flex; align-items:center; gap:10px; margin-bottom:14px; font-weight:700; }

.adhamar-side__logo{
  display:block;
  height:28px;
  width:auto;
  max-width:170px;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.28));
}
.adhamar-side__dot{ width:10px; height:10px; border-radius:999px; background:var(--adhamar-primary); box-shadow:0 0 0 6px rgba(var(--adhamar-primary-rgb),.18); }
.adhamar-side__name{ opacity:.95; letter-spacing:.2px; }
.adhamar-side__title{ margin:10px 0 8px; font-size:20px; font-weight:800; }
.adhamar-side__text{ margin:0 0 14px; opacity:.92; line-height:1.45; }
.adhamar-side__list{ margin:0; padding:0 0 0 18px; display:grid; gap:8px; }
.adhamar-side__list li{ opacity:.95; }
.adhamar-side__note{ margin-top:16px; font-size:12px; opacity:.90; padding-top:14px; border-top:1px solid rgba(255,255,255,.18); }

.adhamar-modal__main{
  display:flex; flex-direction:column;
  background:var(--adhamar-surface);
  min-height:0;
}

/* Header */
#adhamarCorporateModal .adhamar-modal__header{
  padding:20px 22px 14px;
  border-bottom:1px solid rgba(15,23,42,.08);
  background:linear-gradient(180deg, rgba(248,250,252,.9), rgba(255,255,255,1));
}
#adhamarCorporateModal .adhamar-modal__header h2{
  margin:0 0 6px; font-size:20px; color:var(--adhamar-text); font-weight:800;
}
#adhamarCorporateModal .adhamar-modal__header p{
  margin:0; color:var(--adhamar-muted);
}

/* Form */
#adhamarCorporateModal .adhamar-form{
  display:flex; flex-direction:column;
  min-height:0;
}
#adhamarCorporateModal .adhamar-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:12px;
  padding:18px 22px 0;
}
#adhamarCorporateModal .adhamar-form input{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid var(--adhamar-border);
  background:var(--adhamar-surface-2);
  outline:none;
  color:var(--adhamar-text);
  transition: box-shadow .15s ease, border-color .15s ease, background .15s ease;
}

/* Textarea (mensaje) */
#adhamarCorporateModal .adhamar-form textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--adhamar-border);
  background:var(--adhamar-surface-2);
  outline:none;
  color:var(--adhamar-text);
  min-height:140px;
  resize:vertical;
  transition: box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
#adhamarCorporateModal .adhamar-form textarea::placeholder{
  color:#475569 !important;
  opacity:1 !important;
}
#adhamarCorporateModal .adhamar-form textarea:focus{
  background:#fff;
  border-color:rgba(var(--adhamar-primary-rgb),.55);
  box-shadow:0 0 0 4px rgba(var(--adhamar-primary-rgb),.18);
}
#adhamarCorporateModal .adhamar-form input::placeholder{
  color:#475569 !important;
  opacity:1 !important;
}
#adhamarCorporateModal .adhamar-form input:focus{
  background:#fff;
  border-color:rgba(var(--adhamar-primary-rgb),.55);
  box-shadow:0 0 0 4px rgba(var(--adhamar-primary-rgb),.18);
}

/* Editor */
#adhamarCorporateModal .adhamar-editor{ padding:14px 22px 0; }
#adhamarCorporateModal .adhamar-label{ display:block; margin:0 0 6px; font-weight:800; color:var(--adhamar-text); }
#adhamarCorporateModal .adhamar-help{ margin:0 0 10px; font-size:12px; color:var(--adhamar-muted); }
#adhamarCorporateModal .wp-editor-wrap{
  border:1px solid var(--adhamar-border) !important;
  border-radius:14px !important;
  overflow:hidden;
  background:#fff;
}
#adhamarCorporateModal .wp-editor-container{
  border:0 !important;
}
#adhamarCorporateModal .wp-editor-area{
  background:#fff !important;
  color:var(--adhamar-text) !important;
}

/* Footer actions */
#adhamarCorporateModal .adhamar-actions{
  margin-top:auto;
  display:flex; justify-content:flex-end; gap:10px;
  padding:14px 22px 18px;
  border-top:1px solid rgba(15,23,42,.08);
  background:linear-gradient(0deg, rgba(248,250,252,.95), rgba(255,255,255,1));
}
#adhamarCorporateModal .adhamar-btn{
  padding:11px 16px; border-radius:12px; border:1px solid transparent;
  cursor:pointer; font-weight:800;
}
#adhamarCorporateModal .adhamar-btn--primary{
  background:var(--adhamar-primary);
  color:#fff;
  box-shadow:0 12px 24px rgba(var(--adhamar-primary-rgb),.22);
}
#adhamarCorporateModal .adhamar-btn--primary:hover{ background:var(--adhamar-accent); }
#adhamarCorporateModal .adhamar-btn--ghost{
  background:#fff;
  color:var(--adhamar-text);
  border-color:rgba(15,23,42,.14);
}
#adhamarCorporateModal .adhamar-btn--ghost:hover{ background:var(--adhamar-surface-2); }

body.adhamar-modal-open{ overflow:hidden; }

/* Hide editor tabs (pure visual) */
#adhamarCorporateModal .wp-editor-tabs{ display:none !important; }

/* Responsive */
@media (max-width: 980px){
  .adhamar-modal__layout{ grid-template-columns: 1fr; }
  .adhamar-modal__side{ display:none; }
}
@media (max-width: 720px){
  #adhamarCorporateModal .adhamar-grid{ grid-template-columns: 1fr; }
  #adhamarCorporateModal .adhamar-modal__header{ padding:18px 16px 12px; }
  #adhamarCorporateModal .adhamar-grid{ padding:16px 16px 0; }
  #adhamarCorporateModal .adhamar-editor{ padding:12px 16px 0; }
  #adhamarCorporateModal .adhamar-actions{ padding:12px 16px 16px; }
}