/* Sección CBAM. Reutiliza la tipografía del tema (Roboto / Open Sans) y su paleta:
   amarillo #efca30, gris oscuro #333333, gris claro #f2f2f2. */

.cbam-page .cbam-lead { font-size: 17px; line-height: 1.7; max-width: 860px; margin: 0 auto 10px; text-align: center; }
.cbam-page h2.cbam-title { text-align: center; margin: 0 0 8px; }
.cbam-page .cbam-rayas { display: block; margin: 0 auto 30px; }
.cbam-page .cbam-section { padding-top: 50px; padding-bottom: 50px; }
.cbam-page .cbam-section p, .cbam-page .cbam-section li { font-size: 15px; line-height: 1.7; }
.cbam-page .cbam-narrow { max-width: 860px; margin: 0 auto; }

/* Bandas a todo el ancho, como las filas grises y oscuras de la home */
.cbam-band { position: relative; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding-left: calc(50vw - 50%); padding-right: calc(50vw - 50%); }
.cbam-band--light { background: #f2f2f2; }
.cbam-band--dark { background: #333333; color: #e7ebeb; }
.cbam-band--dark h2, .cbam-band--dark h3, .cbam-band--dark p { color: #e7ebeb; }
.cbam-band--yellow { background: #efca30; }
.cbam-band--yellow p { color: #000; }

/* Subtítulo y titulares de sección */
.cbam-page .cbam-subtitle { font-family: Roboto, sans-serif; font-size: 20px; text-align: center; color: #333; margin: -10px auto 15px; }
.cbam-page h3.cbam-headline { font-size: 22px; line-height: 1.4; text-align: center; margin: 0 0 15px; }
.cbam-page h3.cbam-subhead { font-size: 18px; margin: 30px 0 10px; }

/* La aplicación, en el hero */
.cbam-app { max-width: 860px; margin: 20px auto 5px; background: #fff8d6; border-left: 3px solid #efca30; padding: 15px 22px; }
.cbam-page .cbam-section .cbam-app p { margin: 0; font-size: 16px; color: #333; }

/* Cifras destacadas */
.cbam-markup { display: flex; flex-wrap: wrap; gap: 15px; justify-content: center; margin: 25px 0 10px; }
.cbam-markup div { background: #fff; border-top: 3px solid #efca30; padding: 15px 25px; text-align: center; min-width: 150px; }
.cbam-markup strong { display: block; font-family: Roboto, sans-serif; font-size: 28px; font-weight: 400; color: #333; }
.cbam-stats div { flex: 1 1 170px; max-width: 220px; padding: 15px; font-size: 13px; line-height: 1.5; color: #555; background: #f2f2f2; }
.cbam-stats strong { font-size: 26px; margin-bottom: 6px; }
.cbam-stats small { font-size: 14px; }
.cbam-stats .cbam-stat-good { border-top-color: #333; }

/* Sin plan / con plan verificado */
.cbam-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 25px; }
.cbam-box { background: #fff; border-top: 3px solid #999; padding: 20px 25px; }
.cbam-box--good { border-top-color: #efca30; }
.cbam-box h3 { font-size: 20px; margin: 4px 0 10px; }
.cbam-box-label { display: block; font-size: 12px; color: #777; text-transform: uppercase; letter-spacing: .5px; }
.cbam-box-figure strong { font-family: Roboto, sans-serif; font-size: 18px; color: #333; }

/* Cita */
.cbam-page .cbam-section p.cbam-quote { max-width: 860px; margin: 30px auto 0; padding: 5px 0 5px 20px; border-left: 3px solid #efca30; font-size: 16px; line-height: 1.7; font-style: italic; color: #333; }

/* Precios */
.cbam-assessment { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; background: #f2f2f2; border-left: 3px solid #efca30; padding: 20px 25px; margin: 25px 0; }
.cbam-assessment-price { flex: 0 0 auto; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: #777; }
.cbam-assessment-price strong { display: block; font-family: Roboto, sans-serif; font-size: 32px; font-weight: 400; color: #333; text-transform: none; letter-spacing: 0; }
.cbam-assessment p { flex: 1 1 300px; margin: 0; }
.cbam-prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; margin-top: 10px; }
.cbam-card { background: #fff; border: 1px solid #e1e1e1; border-top: 3px solid #efca30; padding: 25px; }
.cbam-card h3 { font-size: 17px; margin: 10px 0; }
.cbam-page .cbam-card .cbam-card-price { font-family: Roboto, sans-serif; font-size: 30px; color: #333; margin: 8px 0 0; line-height: 1.2; }
.cbam-page .cbam-card .cbam-card-unit { font-size: 13px; color: #777; margin: 0; }
.cbam-check { list-style: none; padding: 0; margin: 10px 0 15px; }
.cbam-check li { position: relative; padding-left: 24px; margin-bottom: 4px; }
.cbam-check li:before { content: "\2713"; position: absolute; left: 0; color: #c9a400; font-weight: 700; }
.cbam-features--single { grid-template-columns: 1fr; gap: 10px; }

/* Tabla del ejemplo */
.cbam-table-wrap { overflow-x: auto; margin: 20px 0 10px; }
.cbam-table { width: 100%; min-width: 560px; border-collapse: collapse; background: #fff; font-size: 15px; }
.cbam-table th, .cbam-table td { padding: 12px 15px; border-bottom: 1px solid #e1e1e1; text-align: right; vertical-align: top; }
.cbam-table th:first-child, .cbam-table td:first-child { text-align: left; }
.cbam-table thead th { background: #333; color: #fff; font-weight: 600; font-size: 14px; text-transform: uppercase; }
.cbam-table thead th.cbam-good { background: #efca30; color: #000; }
.cbam-table tr.cbam-total td { font-weight: 700; border-bottom: 0; }
.cbam-note { font-size: 13px !important; color: #777; font-style: italic; }

/* Lista de funciones de la plataforma */
.cbam-features { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px 30px; }
.cbam-features li { position: relative; padding-left: 28px; }
.cbam-features li:before { content: ""; position: absolute; left: 0; top: 8px; width: 14px; height: 14px; background: #efca30; transform: rotate(45deg) scale(.75); }
.cbam-features strong { color: #333; }

/* Plazos */
.cbam-timeline { list-style: none; padding: 0; margin: 25px auto 0; max-width: 860px; }
.cbam-timeline li { display: flex; gap: 20px; padding: 14px 0; border-bottom: 1px solid #e1e1e1; }
.cbam-timeline li:last-child { border-bottom: 0; }
.cbam-timeline .cbam-when { flex: 0 0 150px; font-family: Roboto, sans-serif; font-weight: 500; color: #333; }

/* Pasos */
.cbam-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; margin-top: 30px; counter-reset: cbam-step; }
.cbam-step { text-align: center; }
.cbam-step:before { counter-increment: cbam-step; content: counter(cbam-step); display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin: 0 auto 15px; border-radius: 50%; background: #efca30; color: #000; font-family: Roboto, sans-serif; font-size: 22px; }
.cbam-step h3 { font-size: 18px; margin-bottom: 8px; }
.cbam-step .cbam-time { display: block; font-size: 13px; color: #777; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .5px; }

/* Botones con el estilo de los botones del tema */
.cbam-buttons { display: flex; flex-wrap: wrap; gap: 15px; justify-content: center; margin-top: 25px; }
.cbam-btn { display: inline-block; padding: 10px 30px; background: #efca30; color: #000 !important; font-size: 15px; text-transform: uppercase; text-decoration: none !important; border: 2px solid #efca30; transition: background .2s, color .2s; }
.cbam-btn:hover { background: transparent; color: #333 !important; }
.cbam-band--dark .cbam-btn:hover { color: #efca30 !important; }
.cbam-btn--ghost { background: transparent; color: #333 !important; }
.cbam-btn--ghost:hover { background: #efca30; color: #000 !important; }
.cbam-band--dark .cbam-btn--ghost { color: #e7ebeb !important; }
.cbam-band--dark .cbam-btn--ghost:hover { color: #000 !important; }

/* Bloque de la home */
/* Bloque CBAM de la home, presentado como servicio nuevo. Reutiliza la banda azul noche
   de la sección del vídeo (.cbam-band--video). */
.cbam-launch { margin-top: 30px; padding-top: 80px; padding-bottom: 80px; overflow: hidden; }
.cbam-launch-grid { display: grid; grid-template-columns: 1fr; gap: 50px; align-items: center; max-width: 1170px; margin: 0 auto; }
.cbam-launch-text { text-align: left; }
.cbam-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 12px; border: 1px solid rgba(239, 202, 48, .55); border-radius: 30px; background: rgba(239, 202, 48, .1); color: #efca30; font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }
.cbam-badge i { width: 8px; height: 8px; border-radius: 50%; background: #efca30; box-shadow: 0 0 0 0 rgba(239, 202, 48, .6); animation: cbam-dot 2s infinite; }
@keyframes cbam-dot { 0% { box-shadow: 0 0 0 0 rgba(239, 202, 48, .6); } 70% { box-shadow: 0 0 0 8px rgba(239, 202, 48, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 202, 48, 0); } }
.cbam-launch h2 { color: #fff; font-size: 38px; line-height: 1.15; margin: 20px 0 16px; text-transform: uppercase; font-weight: 300; }
.cbam-launch h2 strong { font-weight: 700; color: #efca30; }
.cbam-launch-lead { color: #b9c1d6; font-size: 16px; line-height: 1.7; margin: 0; }

.cbam-launch-stats { display: flex; align-items: stretch; gap: 14px; margin: 28px 0 0; }
.cbam-launch-stats > div:not(.cbam-launch-arrow) { flex: 1; padding: 16px 18px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px; background: rgba(255, 255, 255, .03); }
.cbam-launch-stats strong { font-family: Roboto, sans-serif; font-size: 34px; font-weight: 500; color: #fff; line-height: 1; }
.cbam-launch-stats small { margin-left: 6px; font-size: 13px; color: #7f89a3; }
.cbam-launch-stats span { display: block; margin-top: 8px; font-size: 13px; line-height: 1.4; color: #9aa3ba; }
.cbam-launch-stats .is-good { border-color: rgba(239, 202, 48, .5); background: rgba(239, 202, 48, .08); }
.cbam-launch-stats .is-good strong { color: #efca30; }
.cbam-launch-arrow { flex: 0 0 22px; align-self: center; height: 2px; background: linear-gradient(90deg, rgba(255, 255, 255, .2), #efca30); position: relative; }
.cbam-launch-arrow:after { content: ""; position: absolute; right: -2px; top: -4px; border-style: solid; border-width: 5px 0 5px 7px; border-color: transparent transparent transparent #efca30; }

.cbam-launch-points { list-style: none; margin: 24px 0 0; padding: 0; }
.cbam-launch-points li { position: relative; padding: 5px 0 5px 28px; color: #dfe4f0; font-size: 15px; }
.cbam-launch-points li:before { content: ""; position: absolute; left: 2px; top: 10px; width: 14px; height: 8px; border-left: 2px solid #efca30; border-bottom: 2px solid #efca30; transform: rotate(-45deg); }
.cbam-launch-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.cbam-launch .cbam-btn--ghost { color: #e7ebeb !important; }
.cbam-launch .cbam-btn--ghost:hover { color: #000 !important; }
.cbam-launch .cbam-btn:not(.cbam-btn--ghost):hover { color: #efca30 !important; }

/* Ventana de la aplicación con el recorrido por los cinco pasos */
.cbam-launch-app { position: relative; }
.cbam-launch-app:before { content: ""; position: absolute; inset: 8% -6% -4% 10%; background: radial-gradient(closest-side, rgba(239, 202, 48, .18), transparent); filter: blur(10px); pointer-events: none; }
.cbam-app-window { position: relative; border-radius: 12px; overflow: hidden; background: #f4f5f8; box-shadow: 0 30px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .08); transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); transition: transform .5s; }
.cbam-launch-app:hover .cbam-app-window { transform: perspective(1400px) rotateY(0) rotateX(0); }
.cbam-app-bar { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; background: #e6e8ee; border-bottom: 1px solid #d7dae2; }
.cbam-app-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c9cdd6; }
.cbam-app-bar i:first-child { background: #ff6159; } .cbam-app-bar i:nth-child(2) { background: #ffbd2e; } .cbam-app-bar i:nth-child(3) { background: #28c941; }
.cbam-app-bar span { flex: 1; margin: 0 30px 0 12px; padding: 3px 10px; border-radius: 6px; background: #fff; color: #6b7285; font-size: 12px; text-align: center; }
.cbam-app-screens { position: relative; aspect-ratio: 900 / 370; }
.cbam-app-screens img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.02); transition: opacity .6s, transform 4s linear; }
.cbam-app-screens img.is-active { opacity: 1; transform: scale(1); }

.cbam-app-steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.cbam-app-steps button { position: relative; width: 100%; height: 100%; padding: 12px 6px 10px; background: none; border: 0; border-top: 2px solid rgba(255, 255, 255, .15); color: #8a93ab; font-size: 12px; line-height: 1.3; text-align: left; cursor: pointer; transition: color .2s; }
.cbam-app-steps button span { display: block; margin-bottom: 3px; font-family: "SFMono-Regular", Menlo, Consolas, monospace; font-size: 11px; color: #5d6680; }
.cbam-app-steps button:before { content: ""; position: absolute; left: 0; top: -2px; height: 2px; width: 0; background: #efca30; }
.cbam-app-steps button.is-active { color: #fff; }
.cbam-app-steps button.is-active span { color: #efca30; }
.cbam-app-steps button.is-active:before { width: 100%; }
.cbam-launch-app.is-running .cbam-app-steps button.is-active:before { animation: cbam-progress 4s linear; }
@keyframes cbam-progress { from { width: 0; } to { width: 100%; } }
.cbam-app-steps button:hover { color: #fff; }
.cbam-app-steps button:focus-visible { outline: 2px solid #efca30; outline-offset: 2px; }

@media (min-width: 992px) {
  .cbam-launch-grid { grid-template-columns: 5fr 6fr; gap: 60px; }
}
@media (max-width: 767px) {
  .cbam-launch { padding-top: 50px; padding-bottom: 50px; }
  .cbam-launch h2 { font-size: 28px; }
  .cbam-launch-stats { flex-direction: column; }
  .cbam-launch-arrow { display: none; }
  .cbam-app-window { transform: none; }
  .cbam-app-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .cbam-app-steps button { font-size: 0; padding: 8px 0 0; }
  .cbam-app-steps button span { font-size: 11px; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cbam-badge i { animation: none; }
  .cbam-app-screens img { transition: opacity .3s; transform: none; }
  .cbam-app-window, .cbam-launch-app:hover .cbam-app-window { transform: none; }
}

@media (max-width: 767px) {
  .cbam-timeline li { flex-direction: column; gap: 4px; }
  .cbam-timeline .cbam-when { flex-basis: auto; }
  .cbam-page .cbam-section { padding-top: 35px; padding-bottom: 35px; }
}

/* Vídeo de presentación: la banda usa el mismo azul noche y la misma retícula que el
   vídeo, para que el reproductor no parezca un recuadro incrustado. */
.cbam-band--video {
  background-color: #0a0f1d;
  background-image:
    radial-gradient(ellipse 60% 70% at 68% 50%, rgba(52, 72, 128, .28), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
  color: #b9c1d6;
}
.cbam-page .cbam-band--video { padding-top: 70px; padding-bottom: 70px; }
.cbam-video-layout { display: grid; grid-template-columns: 1fr; gap: 30px; align-items: center; max-width: 1170px; margin: 0 auto; }
.cbam-video-text h2 { color: #fff; margin: 0 0 14px; font-size: 30px; line-height: 1.25; }
.cbam-video-text p { color: #b9c1d6; font-size: 16px; line-height: 1.7; margin: 0; }

.cbam-chapters { list-style: none; margin: 26px 0 0; padding: 0; }
.cbam-chapters li { margin: 0; }
.cbam-chapters button { display: flex; width: 100%; gap: 14px; align-items: baseline; padding: 10px 0 10px 16px; background: none; border: 0; border-left: 2px solid rgba(255, 255, 255, .12); color: #b9c1d6; font-size: 15px; text-align: left; cursor: pointer; transition: color .2s, border-color .2s; }
.cbam-chapters button span { font-family: "SFMono-Regular", Menlo, Consolas, monospace; font-size: 13px; color: #7f89a3; min-width: 36px; transition: color .2s; }
.cbam-chapters button:hover, .cbam-chapters button.is-active { color: #fff; border-left-color: #efca30; }
.cbam-chapters button:hover span, .cbam-chapters button.is-active span { color: #efca30; }
.cbam-chapters button:focus-visible { outline: 2px solid #efca30; outline-offset: 2px; }

.cbam-video-player { position: relative; aspect-ratio: 16 / 9; }
.cbam-video-player video { display: block; width: 100%; height: 100%; background: #0a0f1d; }
/* Funde los bordes del póster con el fondo de la banda; desaparece al reproducir */
.cbam-video-player:after { content: ""; position: absolute; inset: -1px; pointer-events: none; box-shadow: inset 0 0 40px 24px #0a0f1d; transition: opacity .4s; }
.cbam-video-player.is-playing:after { opacity: 0; }

.cbam-play { position: absolute; right: 5.5%; bottom: 9%; z-index: 2; display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px 12px 18px; border: 0; border-radius: 40px; background: #efca30; color: #000; font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; cursor: pointer; box-shadow: 0 0 0 0 rgba(239, 202, 48, .45); animation: cbam-pulse 2.4s infinite; transition: transform .2s, background .2s; }
.cbam-play:before { content: ""; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #000; }
.cbam-play span { font-weight: 400; opacity: .7; }
.cbam-play:hover { transform: translateY(-2px); background: #f5d75a; }
.cbam-play:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.cbam-play[hidden], .cbam-video-player.is-playing .cbam-play { display: none; }
@keyframes cbam-pulse { 0% { box-shadow: 0 0 0 0 rgba(239, 202, 48, .45); } 70% { box-shadow: 0 0 0 18px rgba(239, 202, 48, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 202, 48, 0); } }
@media (prefers-reduced-motion: reduce) { .cbam-play { animation: none; } }

@media (min-width: 992px) {
  .cbam-video-layout { grid-template-columns: 4fr 7fr; gap: 50px; }
}
@media (max-width: 767px) {
  .cbam-page .cbam-band--video { padding-top: 45px; padding-bottom: 45px; }
  .cbam-video-text h2 { font-size: 24px; }
  .cbam-video-player:after { box-shadow: inset 0 0 20px 10px #0a0f1d; }
  .cbam-video-player { aspect-ratio: auto; }
  .cbam-video-player video { height: auto; aspect-ratio: 16 / 9; }
  .cbam-video-player:after { bottom: auto; height: calc(100% - 64px); }
  .cbam-play { position: static; margin-top: 18px; padding: 10px 18px 10px 16px; font-size: 13px; gap: 8px; }
  .cbam-play:before { border-width: 6px 0 6px 10px; }
}
