/* ============================================================
   css/acordeon.css — Estilos del acordeón para páginas públicas
   ============================================================ */

/* ── Acordeón principal ──────────────────────────────────── */
.am-accordion {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #dde3ea;
}

.am-accordion.am-sub {
    border: none;
    border-radius: 0;
    margin-top: 12px;
}

/* ── Item del acordeón ───────────────────────────────────── */
.am-item {
    border-bottom: 1px solid #dde3ea;
}

.am-item:last-child {
    border-bottom: none;
}

/* ── Botón cabecera ──────────────────────────────────────── */
.am-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #f8f9fb;
    border: none;
    cursor: pointer;
    font-size: 17px;
    font-weight: 600;
    color: #08539a;
    font-family: 'Raleway', sans-serif;
    text-align: left;
    transition: background 0.15s;
    gap: 10px;
}

.am-header:hover {
    background: #eef2f8;
}

.am-item.am-open > .am-header {
    background: #e8f0fe;
    color: #185FA5;
}

/* ── Chevron ─────────────────────────────────────────────── */
.am-chevron {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    position: relative;
    display: inline-block;
}

.am-chevron::before,
.am-chevron::after {
    content: '';
    position: absolute;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.25s ease;
}

.am-chevron::before {
    width: 9px;
    height: 2px;
    top: 9px;
    left: 2px;
    transform: rotate(45deg);
}

.am-chevron::after {
    width: 9px;
    height: 2px;
    top: 9px;
    left: 9px;
    transform: rotate(-45deg);
}

.am-item.am-open > .am-header .am-chevron::before {
    transform: rotate(-45deg);
}

.am-item.am-open > .am-header .am-chevron::after {
    transform: rotate(45deg);
}

/* ── Cuerpo del acordeón ─────────────────────────────────── */
.am-body {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
}

.am-item.am-open > .am-body {
    /* max-height se establece por JS o con none para contenido abierto por defecto */
}

.am-body-inner {
    padding: 16px 20px 20px;
    background: #fff;
}

/* ── Sub-acordeón (T&C) ──────────────────────────────────── */
.am-header-sub {
    font-size: 13px;
    font-weight: 500;
    color: #666;
    background: #f5f5f5;
    padding: 10px 14px;
}

.am-header-sub:hover {
    background: #eee;
}

.am-tyc {
    font-size: 12px;
    color: #777;
    line-height: 1.6;
    padding: 10px 14px;
}

/* ── Imágenes dentro del acordeón ────────────────────────── */
.img-manteletas {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

/* ── Botones de sección de manteletas ────────────────────── */
.btn-manteleta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 22px;
    background: #08539a;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    font-family: 'Raleway', sans-serif;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background 0.15s;
    width: 100%;
    min-height: 60px;
}

.btn-manteleta:hover {
    background: #0066bb;
}

/* ── Clases de Quill que deben funcionar también en la página pública ── */
.ql-align-center{text-align:center}
.ql-align-right{text-align:right}
.ql-align-justify{text-align:justify}
.am-body img{max-width:100%}
.am-body a img{cursor:pointer}
