/* Visual finish for the existing detail panels. Navigation and forms are unchanged. */
body.approved-design.eg-luxe .approved-panel {
  --bg: #100e16;
  --card: #18141f;
  --text: #f5f0e7;
  --muted: #d5ccd9;
  --gold: #e6c987;
  --eg-detail-ink: #f5f0e7;
  --eg-detail-copy: #d5ccd9;
  --eg-detail-link: #e6c987;
  --eg-detail-line: rgba(229, 194, 110, .27);
  color: #f5f0e7;
  color-scheme: dark;
  margin: 24px auto 40px;
  padding: clamp(26px, 4vw, 48px) clamp(20px, 3.5vw, 42px) 56px;
  border: 1px solid rgba(229, 194, 110, .2);
  border-radius: 26px;
  background: radial-gradient(ellipse at 100% 0%, rgba(139, 102, 57, .13), transparent 45%),
    radial-gradient(ellipse at 0% 38%, rgba(114, 78, 139, .11), transparent 50%),
    linear-gradient(145deg, rgba(29, 25, 32, .94), rgba(12, 12, 17, .97)) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 240, 207, .05);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

body.approved-design.eg-luxe .approved-panel > .approved-heading {
  border-bottom-color: rgba(229, 194, 110, .22);
  padding-bottom: 28px;
}
body.approved-design.eg-luxe .approved-panel > .approved-heading :is(h1, h2) {
  color: #f7ebd3 !important;
  font: 400 clamp(2rem, 4vw, 3.35rem)/1.15 Georgia, 'Times New Roman', serif;
  letter-spacing: -.025em;
  margin: 12px 0 16px;
}
body.approved-design.eg-luxe .approved-panel > .approved-heading > p:first-child {
  color: #e6c987 !important;
  font-size: .875rem;
  letter-spacing: .13em;
}
body.approved-design.eg-luxe .approved-panel .approved-back {
  color: #e9cf99 !important;
  text-underline-offset: 5px;
}
body.approved-design.eg-luxe .approved-panel :is(h1, h2, h3, h4, h5, strong, b, label, legend) {
  color: #f5f0e7 !important;
}
body.approved-design.eg-luxe .approved-panel :is(p, li, small, dd, .card-text) {
  color: #d5ccd9 !important;
}
body.approved-design.eg-luxe .approved-panel :is(.kicker, .eyebrow, .eg-business-label) {
  color: #e6c987 !important;
}
body.approved-design.eg-luxe .approved-panel a:where(:not(.portal-cover, .eg-partner-image)) {
  color: #e9cf99 !important;
  text-underline-offset: 4px;
}
body.approved-design.eg-luxe .approved-panel em {
  color: #dbc4ec;
}
body.approved-design.eg-luxe .approved-panel :is(details, .eg-card-details, .home-service) {
  border-color: rgba(229, 194, 110, .24);
}
body.approved-design.eg-luxe .approved-panel summary {
  color: #f2e6ce !important;
}

/* Old light-surface rules use !important, so palette overrides are explicit. */
body.approved-design.eg-luxe .approved-panel :is(.card, .approved-light-surface, .eg-activity,
  .eg-course-preview, .team-card, .eg-resource-card, .eg-plan, .project-service,
  .eg-recommend-feature, .eg-demo-stage, .eg-demo-answer, .team-project,
  .eg-jefa-feature, .eg-web-lead, .cine-feature, .eg-people, .eg-companies,
  .eg-featured-sponsors, .eg-sponsors, .eg-portal-fold) {
  border-color: rgba(229, 194, 110, .27) !important;
  background: linear-gradient(135deg, rgba(49, 40, 49, .75), rgba(20, 19, 26, .9)) !important;
  color: #f5f0e7 !important;
  box-shadow: inset 0 1px 0 rgba(255, 239, 207, .045), 0 12px 34px rgba(0, 0, 0, .12);
}
body.approved-design.eg-luxe .approved-panel .approved-light-surface :is(h2, h3, h4, h5, strong, b, label, legend) {
  color: #f5f0e7 !important;
}
body.approved-design.eg-luxe .approved-panel .approved-light-surface :is(p, li, small) {
  color: #d5ccd9 !important;
}
body.approved-design.eg-luxe .approved-panel .approved-light-surface :is(span, em) {
  color: #dcc4e9 !important;
}
body.approved-design.eg-luxe .approved-panel .approved-light-surface a:not(.portal-cover):not(.eg-partner-image) {
  color: #e9cf99 !important;
}
body.approved-design.eg-luxe .approved-panel :is(.eg-discovery, .eg-demo-stage, .eg-demo-answer, .team-project) :is(label, legend) {
  color: #f5f0e7 !important;
}
body.approved-design.eg-luxe .approved-panel .academy-paths > a {
  background: linear-gradient(145deg, rgba(43, 34, 47, .85), rgba(18, 18, 24, .95));
  border-color: rgba(229, 194, 110, .27);
  box-shadow: inset 0 1px 0 rgba(255, 239, 207, .04);
}
body.approved-design.eg-luxe .approved-panel .academy-paths strong {
  color: #f4e5c6 !important;
}
body.approved-design.eg-luxe .approved-panel .academy-paths span {
  color: #d5ccd9 !important;
}
body.approved-design.eg-luxe .approved-panel :is(.eg-partner-copy, .eg-fold-content) {
  background: transparent !important;
}

/* Retained home cards have more specific legacy selectors; match their scope. */
body.approved-design.eg-luxe .approved-panel :is(.eg-hub-detail-content, #eg-home-highlights) {
  --eg-detail-ink: #f5f0e7;
  --eg-detail-copy: #d5ccd9;
  --eg-detail-link: #e6c987;
  --eg-detail-line: rgba(229, 194, 110, .27);
  color: #f5f0e7;
}
body.approved-design.eg-luxe .approved-panel :is(.eg-hub-detail-content, #eg-home-highlights) .eg-v3-card {
  background: linear-gradient(145deg, rgba(44, 37, 45, .85), rgba(20, 19, 26, .94)) !important;
  border-color: rgba(229, 194, 110, .28);
  color: #f5f0e7 !important;
  box-shadow: inset 0 1px 0 rgba(255, 239, 207, .04);
}
body.approved-design.eg-luxe .approved-panel :is(.eg-hub-detail-content, #eg-home-highlights) .eg-v3-card.purple {
  background: linear-gradient(145deg, rgba(60, 39, 70, .8), rgba(24, 21, 31, .94)) !important;
  border-color: rgba(190, 157, 217, .36);
}
body.approved-design.eg-luxe .approved-panel :is(.eg-hub-detail-content, #eg-home-highlights) .eg-v3-card :is(h2, h3, strong) {
  color: #f6e7ca !important;
}
body.approved-design.eg-luxe .approved-panel :is(.eg-hub-detail-content, #eg-home-highlights) .eg-v3-card :is(p, li, small) {
  color: #d5ccd9 !important;
}
body.approved-design.eg-luxe .approved-panel :is(.eg-hub-detail-content, #eg-home-highlights) :is(.eg-v3-price, .eg-v3-eyebrow) {
  color: #e6c987 !important;
}
body.approved-design.eg-luxe .approved-panel :is(.eg-hub-detail-content, #eg-home-highlights) .eg-v3-card .eg-v3-price {
  color: #e6c987 !important;
}
body.approved-design.eg-luxe .approved-panel :is(.eg-hub-detail-content, #eg-home-highlights) .eg-v3-card > a {
  color: #e9cf99 !important;
}
body.approved-design.eg-luxe .approved-panel .eg-hub-detail-content .eg-v3-accordion > details {
  background: rgba(30, 26, 35, .78) !important;
  border-color: rgba(229, 194, 110, .27);
  color: #d5ccd9;
}
body.approved-design.eg-luxe .approved-panel .eg-hub-detail-content .eg-v3-accordion > details > summary {
  color: #f2e6ce !important;
}
body.approved-design.eg-luxe .approved-panel .eg-hub-detail-content .eg-v3-accordion > details > div {
  color: #d5ccd9;
}
body.approved-design.eg-luxe .approved-panel .eg-hub-detail-content :is(#te-lo-dejo-montado-quipu, .eg-v3-systeme) {
  background: linear-gradient(135deg, rgba(62, 46, 28, .65), rgba(27, 22, 31, .9)) !important;
  color: #f5f0e7 !important;
  border-color: rgba(229, 194, 110, .3);
}
body.approved-design.eg-luxe .approved-panel .eg-hub-detail-content :is(#te-lo-dejo-montado-quipu, .eg-v3-systeme) :is(strong, span) {
  color: #f1dfb9 !important;
}
body.approved-design.eg-luxe :is(#servicios-eg, #libros-recursos).approved-panel .home-primary-card {
  background: linear-gradient(145deg, rgba(44, 35, 47, .83), rgba(18, 17, 23, .95)) !important;
  color: #f5f0e7 !important;
  border-color: rgba(229, 194, 110, .28);
}
body.approved-design.eg-luxe :is(#servicios-eg, #libros-recursos).approved-panel .home-primary-card :is(h2, h3, strong) {
  color: #f6e7ca !important;
}
body.approved-design.eg-luxe :is(#servicios-eg, #libros-recursos).approved-panel .home-primary-card :is(p, small) {
  color: #d5ccd9 !important;
}
body.approved-design.eg-luxe :is(#servicios-eg, #libros-recursos).approved-panel .home-primary-card :is(.home-card-kicker, .home-price) {
  color: #e6c987 !important;
}
body.approved-design.eg-luxe #servicios-eg.approved-panel .home-service > a {
  color: #e9cf99 !important;
}
body.approved-design.eg-luxe .approved-panel .eg-hub-detail-content :is(.eg-v5-product, .eg-v4-trust) {
  background: linear-gradient(145deg, rgba(43, 35, 44, .84), rgba(19, 18, 24, .94)) !important;
  color: #f5f0e7 !important;
  border-color: rgba(229, 194, 110, .27);
}
body.approved-design.eg-luxe .approved-panel .eg-hub-detail-content .eg-v5-product :is(h3, strong),
body.approved-design.eg-luxe .approved-panel .eg-hub-detail-content .eg-v4-trust-item strong {
  color: #f6e7ca !important;
}
body.approved-design.eg-luxe .approved-panel .eg-hub-detail-content .eg-v5-product :is(p, small) {
  color: #d5ccd9 !important;
}
body.approved-design.eg-luxe .approved-panel .eg-hub-detail-content .eg-v5-product .eg-v5-product-kicker {
  color: #e6c987 !important;
}
body.approved-design.eg-luxe .approved-panel .eg-hub-detail-content .eg-collab-promo {
  background: linear-gradient(135deg, rgba(62, 40, 74, .8), rgba(24, 20, 32, .92)) !important;
  border-color: rgba(190, 157, 217, .4);
}
body.approved-design.eg-luxe #formacion.approved-panel .eg-hub-detail-content #chatgpt-experto-destacado span {
  color: #e6c987 !important;
}

/* Podcast and diplomas keep their own artwork and dark editorial presentation. */
body.approved-design.eg-luxe #podcast-eg.approved-panel #el-arte-de-vender.eg-podcast {
  background: radial-gradient(ellipse at 100% 0%, rgba(167, 119, 46, .12), transparent 52%),
    linear-gradient(145deg, rgba(33, 27, 33, .88), rgba(10, 10, 15, .96)) !important;
  border-color: rgba(229, 194, 110, .3);
}
body.approved-design.eg-luxe #podcast-eg.approved-panel #el-arte-de-vender :is(#eg-podcast-title, .eg-podcast__eyebrow) {
  color: #efd59d !important;
}
body.approved-design.eg-luxe #diplomas-eg.approved-panel #eg-diploma-courses-title {
  color: #f6e7ca !important;
}

/* Contact fields stay opaque enough to read, including autofill and placeholders. */
body.approved-design.eg-luxe .approved-panel :is(input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea) {
  background: #131119 !important;
  color: #f7f2ea !important;
  border: 1px solid rgba(209, 183, 132, .47) !important;
  border-radius: 8px;
  caret-color: #f0d497;
  font-size: 1rem;
}
body.approved-design.eg-luxe .approved-panel :is(input, textarea)::placeholder {
  color: #a99fae !important;
  opacity: 1;
}
body.approved-design.eg-luxe .approved-panel :is(input[type=checkbox], input[type=radio]) {
  accent-color: #d8b76d !important;
}
body.approved-design.eg-luxe #ayuda-eg.approved-panel .eg-web-lead-copy :is(h2, p),
body.approved-design.eg-luxe #ayuda-eg.approved-panel .eg-web-lead-form > label:not(.eg-web-lead-consent),
body.approved-design.eg-luxe #ayuda-eg.approved-panel :is(.eg-web-lead-consent, .eg-web-lead-privacy) {
  color: #e4dce8 !important;
}
body.approved-design.eg-luxe #ayuda-eg.approved-panel .eg-web-lead-copy .approved-eyebrow,
body.approved-design.eg-luxe #ayuda-eg.approved-panel :is(.eg-web-lead-consent, .eg-web-lead-privacy) a,
body.approved-design.eg-luxe #ayuda-eg.approved-panel .eg-web-lead-status {
  color: #e9cf99 !important;
}
body.approved-design.eg-luxe .approved-panel :is(a, button, input, textarea, select, summary):focus-visible {
  outline: 2px solid #c6a3e2;
  outline-offset: 4px;
}

/* Gold actions use dark ink; their children must not inherit pale body copy. */
body.approved-design.eg-luxe .approved-panel :is(button, .approved-button, .project-button,
  .eg-recommend-button, .eg-resource-button, .eg-sponsors-button, .eg-companies-cta,
  .eg-verifactu-gift-button, .eg-v3-btn, .eg-v4-btn, .eg-collab-promo-button,
  .home-button, .egp-button, .eg-podcast__cta, .eg-diplomas__button, .eg-diploma-courses__button,
  .eg-life-play, .eg-service-pack-button, .eg-academy-promo-button, .eg-official-training-button,
  .eg-travelpayouts-cta, .eg-wonderbox-cta) {
  color: #21180d !important;
  background: linear-gradient(115deg, #d1aa5f, #f0dca6 48%, #dab974) !important;
  border-color: #e2c184 !important;
  box-shadow: 0 7px 22px rgba(207, 166, 74, .1), inset 0 1px 0 rgba(255, 250, 220, .4);
}
body.approved-design.eg-luxe .approved-panel :is(button, .approved-button, .project-button,
  .eg-recommend-button, .eg-resource-button, .eg-sponsors-button, .eg-companies-cta,
  .eg-verifactu-gift-button, .eg-v3-btn, .eg-v4-btn, .eg-collab-promo-button,
  .home-button, .egp-button, .eg-podcast__cta, .eg-diplomas__button, .eg-diploma-courses__button,
  .eg-life-play, .eg-service-pack-button, .eg-academy-promo-button, .eg-official-training-button,
  .eg-travelpayouts-cta, .eg-wonderbox-cta) :is(span, strong, b) {
  color: inherit !important;
}
body.approved-design.eg-luxe .approved-panel .approved-light-surface a:not(.portal-cover):not(.eg-partner-image):is(.project-button, .eg-recommend-button, .eg-resource-button, .eg-sponsors-button, .eg-companies-cta, .eg-life-play),
body.approved-design.eg-luxe .approved-panel .approved-light-surface .card-links > a:first-child,
body.approved-design.eg-luxe .approved-panel .eg-hub-detail-content :is(.eg-v3-btn, .eg-v4-btn, .eg-collab-promo-button),
body.approved-design.eg-luxe :is(#servicios-eg, #libros-recursos).approved-panel .home-primary-card .home-button,
body.approved-design.eg-luxe #formacion.approved-panel #chatgpt-experto-destacado a,
body.approved-design.eg-luxe .approved-panel .eg-hub-detail-content .eg-v5-product a,
body.approved-design.eg-luxe .approved-panel .card-links > a:first-child,
body.approved-design.eg-luxe .approved-panel .eg-reto-promo > a,
body.approved-design.eg-luxe .approved-panel .cine-feature a,
body.approved-design.eg-luxe .approved-panel .eg-showcase-entry > a,
body.approved-design.eg-luxe #formacion.approved-panel #eg-vende-con-ia a {
  color: #21180d !important;
  background: linear-gradient(115deg, #d1aa5f, #f0dca6 48%, #dab974) !important;
  border-color: #e2c184 !important;
}
body.approved-design.eg-luxe :is(#servicios-eg, #libros-recursos).approved-panel .home-primary-card .home-button.secondary,
body.approved-design.eg-luxe .approved-panel .eg-hub-detail-content .eg-v4-btn.secondary {
  background: rgba(28, 22, 35, .9) !important;
  color: #ead5f6 !important;
  border-color: rgba(196, 165, 224, .52) !important;
  box-shadow: inset 0 1px 0 rgba(228, 207, 244, .05);
}

@media (max-width: 760px) {
  body.approved-design.eg-luxe .approved-panel {
    width: calc(100% - 24px);
    margin: 16px 12px 28px;
    padding: 24px 18px 40px;
    border-radius: 20px;
  }
  body.approved-design.eg-luxe .approved-panel > .approved-heading {
    padding-bottom: 24px;
    margin-bottom: 26px;
  }
}
