/* Secciones de la landing de MiAgendar */
.ma-topbar, #header .ma-topbar { background: #430071 !important; color: #ffffff !important; font-size: 14px; font-weight: 500; padding: 7px 12px; text-align: center; line-height: 1.4; }
.ma-topbar strong, #header .ma-topbar strong { color: #ffffff !important; }
.ma-topbar a, #header .ma-topbar a, #header .ma-topbar a:focus { color: #ffffff !important; font-weight: 700; text-decoration: underline; margin-left: 4px; }
.ma-topbar a:hover, #header .ma-topbar a:hover { color: #FD7119 !important; }
#header.ma-header { display: block; padding-top: 0 !important; }
#header.ma-header .ma-topbar { margin-bottom: 10px; }
#header.ma-header.header-scrolled .ma-topbar { margin-bottom: 6px; }
#header.ma-header .navbar ul li a { padding-left: 14px; padding-right: 0; white-space: nowrap; }
#header.ma-header .navbar ul li a.getstarted { padding: 9px 22px !important; margin-left: 14px; white-space: nowrap; }
#hero { padding-top: 140px !important; }
#alert-successMes { top: 130px !important; }
@media (max-width: 991px) {
    .ma-topbar { font-size: 12px; padding: 5px 8px; }
    #hero { padding-top: 120px !important; }
    #header.ma-header .navbar-mobile ul li a { padding: 10px 20px; }
}

.ma-trust { background: #fff; border-bottom: 1px solid #eee; padding: 18px 0; }
.ma-trust ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; }
.ma-trust li { display: flex; align-items: center; gap: 8px; color: var(--color-primario, #430071); font-weight: 600; font-size: 15px; }
.ma-trust i { font-size: 22px; color: var(--color-secundario, #ff7a00); }

.ma-ordenar { background: linear-gradient(135deg, var(--color-primario_superClaro, #efdaff), #fff); }
.ma-acc .accordion-item { border: 0; border-radius: 16px !important; margin-bottom: 14px; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.ma-acc .accordion-button { font-weight: 700; font-size: 18px; padding: 20px 24px; color: var(--color-primario, #430071); background: #fff; box-shadow: none; }
.ma-acc .accordion-button:not(.collapsed) { background: var(--color-primario, #430071); color: #fff; }
.ma-acc .accordion-button:not(.collapsed)::after { filter: brightness(0) invert(1); }
.ma-acc .ma-num { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; border-radius: 50%; margin-right: 14px; background: var(--color-secundario, #ff7a00); color: #fff; font-size: 15px; }
.ma-acc .accordion-body { padding: 20px 24px 24px; text-align: left; }
.ma-acc .accordion-body a { font-weight: 600; color: var(--color-secundario, #ff7a00); }

.ma-cliente { background: #fff; }
.ma-cliente .ma-pasos { list-style: none; padding: 0; margin: 0 0 24px; text-align: left; }
.ma-cliente .ma-pasos li { display: flex; gap: 14px; margin-bottom: 18px; }
.ma-cliente .ma-pasos .ma-num { flex: 0 0 38px; height: 38px; border-radius: 50%; background: var(--color-primario_superClaro, #efdaff); color: var(--color-primario, #430071); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ma-cliente .ma-pasos strong { display: block; color: var(--color-primario, #430071); }
.ma-phone { max-width: 320px; margin: 0 auto; border: 10px solid #1d1d1f; border-radius: 38px; overflow: hidden; box-shadow: 0 20px 45px rgba(67,0,113,.25); background: #f6f6f6; aspect-ratio: 9 / 18; display: flex; align-items: center; justify-content: center; }
.ma-phone img { width: 100%; height: 100%; object-fit: cover; }
.ma-phone .ma-placeholder { color: #999; font-size: 14px; padding: 20px; text-align: center; }
.ma-phone[data-demo] { position: relative; display: block; }
.ma-demo-paso { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease; }
.ma-demo-paso.activo { opacity: 1; }
.ma-cursor { position: absolute; left: 50%; top: 105%; width: 26px; height: 26px; margin: -4px 0 0 -6px; z-index: 5; pointer-events: none; transition: left 1.1s cubic-bezier(.45,.05,.3,1), top 1.1s cubic-bezier(.45,.05,.3,1); filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.ma-cursor svg { width: 100%; height: 100%; display: block; }
.ma-cursor::after { content: ""; position: absolute; left: 2px; top: 2px; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgba(253,113,25,.45); transform: scale(0); opacity: 0; }
.ma-cursor.clic svg { animation: maCursorClic .3s ease; }
.ma-cursor.clic::after { animation: maOnda .6s ease-out; }
@keyframes maCursorClic { 50% { transform: scale(.82); } }
@keyframes maOnda { 0% { transform: scale(0); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
#como-reserva .ma-pasos li { border-radius: 12px; padding: 6px 8px; transition: background .3s ease; }
#como-reserva .ma-pasos li.activo { background: var(--color-primario_superClaro, #efdaff); }
#como-reserva .ma-pasos li.activo .ma-num { background: var(--color-primario, #430071); color: #fff; }
.ma-btn-demo { background: var(--color-secundario, #ff7a00); border-color: var(--color-secundario, #ff7a00); color: #fff; }
.ma-btn-demo:hover { background: var(--color-secundario_claro, #ff9a40); border-color: var(--color-secundario_claro, #ff9a40); color: #fff; }

.ma-faq { background: linear-gradient(180deg, #fff, var(--color-primario_superClaro, #efdaff)); }
.ma-faq .accordion-button { font-size: 16px; }

/* Secciones fuera de #main: mismo espaciado que el resto */
.ma-ordenar, .ma-cliente, .ma-faq { padding: 100px 0; }
.ma-trust { padding: 18px 0 !important; }
.ma-cliente { background: #ffffff !important; }

/* Compensar la cabecera fija al saltar desde el menú */
section[id] { scroll-margin-top: 120px; }

@media (max-width: 991px) {
    .ma-ordenar, .ma-cliente, .ma-faq { padding: 70px 0; }
    section[id] { scroll-margin-top: 100px; }
}
