/* ============================================================
   Ayuda — rediseño moderno, corporativo y de confianza.
   Reutiliza .pr-* (productos-modern.css) y .hm-* (home-modern.css);
   aquí solo se agregan los componentes específicos de este módulo.
   ============================================================ */

.ay-page {
    font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
}

    .ay-page h1, .ay-page h2, .ay-page h3, .ay-page h4 {
        font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
        font-weight: 700;
    }

/* ---------- Canales de contacto (tarjetas) ---------- */
.ay-channel-value {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--inst-primary);
    font-weight: 700;
    font-size: 15px;
}

.ay-channel-value:hover {
    color: var(--inst-accent);
}

/* ---------- FAQ acordeón moderno ---------- */
.ay-faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ay-faq-item {
    background: #FFFFFF;
    border: 1px solid var(--inst-border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 200ms ease, box-shadow 200ms ease, opacity 180ms ease;
}

.ay-faq-group {
    transition: opacity 180ms ease;
}

.ay-fading {
    opacity: 0;
}

.ay-faq-item.open {
    border-color: var(--inst-accent);
    box-shadow: 0 10px 24px rgba(20, 83, 45, 0.08);
}

.ay-faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-weight: 600;
    font-size: 15.5px;
    color: var(--inst-primary);
    cursor: pointer;
}

.ay-faq-question i {
    flex-shrink: 0;
    color: var(--inst-accent);
    transition: transform 260ms ease;
}

.ay-faq-item.open .ay-faq-question i {
    transform: rotate(180deg);
}

.ay-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 320ms ease, padding 320ms ease;
    padding: 0 22px;
}

.ay-faq-item.open .ay-faq-answer {
    padding: 0 22px 20px;
}

.ay-faq-answer p {
    color: var(--inst-muted-fg);
    font-size: 14.5px;
    margin: 0;
}

@media (prefers-reduced-motion: reduce) {
    .ay-faq-answer { transition: none; }
    .ay-faq-question i { transition: none; }
}

/* ---------- Sucursales ---------- */
.ay-branch-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

@media (max-width: 767px) { .ay-branch-grid { grid-template-columns: 1fr; } }



.ay-branch-tag {
    display: inline-block;
    background: var(--inst-muted);
    color: var(--inst-primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 10px;
}

.ay-branch-card h3 {
    color: #1e293b;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.ay-branch-card p {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--inst-muted-fg);
    margin-bottom: 6px;
}

.ay-branch-card p i {
    color: var(--inst-accent);
}

.ay-branch-card table {
    width: 100%;
    margin-top: 14px;
    font-size: 13.5px;
}

.ay-branch-card table th {
    color: var(--inst-primary);
    font-weight: 700;
    border-bottom: 2px solid var(--inst-border);
    padding-bottom: 8px;
}

.ay-branch-card table td {
    color: var(--inst-muted-fg);
    padding: 8px 0;
    border-bottom: 1px solid var(--inst-border);
}

.ay-branch-rep {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--inst-bg-light);
    border-radius: 10px;
    padding: 10px 14px;
    margin: 12px 0;
}

.ay-branch-rep .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--inst-primary);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.ay-branch-rep span {
    font-size: 13px;
    color: var(--inst-primary);
    font-weight: 600;
    line-height: 1.3;
}

.ay-branch-rep span small {
    display: block;
    color: var(--inst-muted-fg);
    font-weight: 500;
    font-size: 11.5px;
}

/* ---------- Buscador de preguntas frecuentes ---------- */
.ay-faq-search {
    position: relative;
    margin-bottom: 18px;
}

.ay-faq-search i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--inst-muted-fg);
    font-size: 18px;
    pointer-events: none;
}

.ay-faq-search input {
    width: 100%;
    height: 56px;
    padding: 0 20px 0 52px;
    border: 1.5px solid var(--inst-border);
    border-radius: 14px;
    font-size: 15.5px;
    color: var(--inst-text);
    background: #FFFFFF;
    box-shadow: 0 8px 24px rgba(14, 68, 41, 0.05);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.ay-faq-search input:focus {
    outline: none;
    border-color: var(--inst-accent);
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.12);
}

.ay-faq-search input::placeholder {
    color: var(--inst-muted-fg);
}

.ay-faq-counter {
    color: var(--inst-muted-fg);
    font-size: 13.5px;
    font-weight: 500;
    margin: 0 0 18px;
    min-height: 20px;
}

.ay-faq-empty {
    text-align: center;
    background: var(--inst-bg-light);
    border: 1px dashed var(--inst-border);
    border-radius: 16px;
    padding: 48px 24px;
    margin-bottom: 40px;
    transition: opacity 180ms ease;
}

@media (prefers-reduced-motion: reduce) {
    .ay-branch-card, .ay-faq-item, .ay-faq-group, .ay-faq-empty { transition: none; }
}

.ay-faq-empty i {
    font-size: 44px;
    color: var(--inst-secondary-light);
    display: inline-block;
    margin-bottom: 12px;
}

.ay-faq-empty h3 {
    font-size: 19px;
    color: var(--inst-primary);
    margin-bottom: 8px;
}

.ay-faq-empty p {
    color: var(--inst-muted-fg);
    max-width: 420px;
    margin: 0 auto 20px;
}

/* ---------- Categorías de ubicaciones ---------- */
.ay-category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.ay-category-pill {
    background: #FFFFFF;
    border: 1.5px solid var(--inst-border);
    color: var(--inst-primary);
    font-weight: 600;
    font-size: 13.5px;
    padding: 9px 18px;
    border-radius: 100px;
    cursor: pointer;
    transition: all 150ms ease;
}

.ay-category-pill:hover {
    border-color: var(--inst-accent);
}

.ay-category-pill.active {
    background: var(--inst-primary);
    border-color: var(--inst-primary);
    color: #FFFFFF;
}

/* ---------- Calendario semanal de reuniones ---------- */
.ay-calendar-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1.5px solid var(--inst-border);
    color: var(--inst-primary);
    font-weight: 600;
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 150ms ease, color 150ms ease;
    margin-top: 10px;
}

.ay-calendar-toggle:hover {
    border-color: var(--inst-accent);
    color: var(--inst-accent);
}

.ay-calendar-toggle i {
    transition: transform 200ms ease;
}

.ay-calendar-toggle.open i {
    transform: rotate(180deg);
}

.ay-week-calendar {
    display: none;
    margin-top: 16px;
}

.ay-week-calendar.open {
    display: block;
    animation: ay-fade-in 260ms ease;
}

@keyframes ay-fade-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.ay-week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.ay-week-day {
    text-align: center;
    border-radius: 10px;
    padding: 8px 4px;
    background: var(--inst-bg-light);
    border: 1px solid var(--inst-border);
}

.ay-week-day .day-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--inst-muted-fg);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.ay-week-day.has-event {
    background: var(--inst-primary);
    border-color: var(--inst-primary);
}

.ay-week-day.has-event .day-label {
    color: rgba(255, 255, 255, 0.7);
}

.ay-week-day .day-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--inst-accent);
    margin: 0 auto;
}

.ay-week-events {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ay-week-events li {
    display: flex;
    gap: 10px;
    font-size: 13px;
    color: var(--inst-fg, #14532D);
    background: var(--inst-bg-light);
    border-radius: 8px;
    padding: 8px 12px;
}

.ay-week-events li strong {
    color: var(--inst-primary);
    white-space: nowrap;
}

/* Mini variant for map sidebar */
.ay-branch-mini {
    display: block;
    background: #FFFFFF;
    border: 1px solid var(--inst-border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
    cursor: pointer;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.ay-branch-mini:hover, .ay-branch-mini.active {
    border-color: var(--inst-accent);
    box-shadow: 0 10px 22px rgba(20, 83, 45, 0.1);
}

.ay-branch-mini h3 {
    font-size: 16px;
    color: var(--inst-primary);
    margin: 0 0 6px;
}

.ay-branch-mini p {
    font-size: 13.5px;
    color: var(--inst-muted-fg);
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ay-branch-mini p i { color: var(--inst-accent); }

/* ---------- Confirmación de envío ---------- */
.ay-form-card .alert-success {
    animation: ay-fade-in 380ms ease;
}

@media (prefers-reduced-motion: reduce) {
    .ay-form-card .alert-success { animation: none; }
}

/* ---------- Formulario de contacto ---------- */
.ay-form-layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 32px;
    align-items: start;
}

@media (max-width: 991px) { .ay-form-layout { grid-template-columns: 1fr; } }

.ay-form-card {
    background: #FFFFFF;
    border: 1px solid var(--inst-border);
    border-radius: 16px;
    padding: 34px;
    box-shadow: 0 12px 32px rgba(20, 83, 45, 0.06);
}

.ay-form-card .form-group label {
    font-weight: 600;
    color: var(--inst-primary);
    font-size: 14px;
    margin-bottom: 6px;
    display: block;
}

.ay-form-card .form-control {
    border-radius: 8px;
    border: 1.5px solid var(--inst-border);
    padding: 11px 14px;
}

.ay-form-card .form-control:focus {
    border-color: var(--inst-accent);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}



    .ay-sidebar-card h3 {
        font-size: 18px;
        margin-bottom: 12px;
        color: var(--inst-white);
    }

.ay-sidebar-card p {
    color: #D9EDE1;
    font-size: 14px;
    margin-bottom: 16px;
}

.ay-sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
}

.ay-sidebar-item i {
    color: var(--inst-accent);
}


.ay-channel-image {
    height: 180px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    padding: 10px;
    background: #f8faf9;
    border-radius: 12px;
    overflow: hidden;
}

    .ay-channel-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

.ay-channel-description {
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
    text-align: justify;
}
.ay-channel-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    margin-top: 18px;
}

    .ay-channel-contact i {
        color: #f97316;
    }

    .ay-channel-contact span {
        color: #334155;
        font-weight:500;
    }



.ay-channel-category {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(20,83,45,.08);
    color: var(--inst-primary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 12px;
}
.ay-channel-footer {
    margin-top: auto;
}

.ay-card-divider {
    margin: 20px 0 16px;
    border: none;
    border-top: 1px solid #e5e7eb;
}




.ay-intro-section {
    margin-bottom: 32px;
}

.ay-section-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--inst-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.ay-intro-section h2 {
    color: var(--inst-primary);
    margin-bottom: 12px;
}

.ay-intro-section p {
    max-width: 760px;
    color: var(--inst-muted-fg);
    font-size: 15px;
    line-height: 1.7;
}

.ay-channel-featured {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #fdba74;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}


.ay-help-options {
    text-align: center;
    margin: 60px 0;
}

    .ay-help-options h2 {
        color: var(--inst-primary);
        margin-bottom: 12px;
    }

    .ay-help-options p {
        color: var(--inst-muted-fg);
        margin-bottom: 30px;
    }

.ay-help-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ay-help-card {
    background: #fff;
    border: 1px solid var(--inst-border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: all .2s ease;
}

    .ay-help-card:hover {
        transform: translateY(-4px);
        border-color: var(--inst-accent);
    }

    .ay-help-card i {
        font-size: 28px;
        color: var(--inst-primary);
    }

    .ay-help-card span {
        color: var(--inst-primary);
        font-weight: 600;
    }

@media (max-width: 768px) {
    .ay-help-grid {
        grid-template-columns: 1fr;
    }
}

.ay-branch-card {
    position: relative;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    transition: all .25s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,.05), 0 10px 25px rgba(0,0,0,.04);
}

    .ay-branch-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 10px 30px rgba(0,0,0,.08);
    }

    .ay-branch-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: transparent;
        transition: all .25s ease;
    }

    .ay-branch-card:hover::before {
        background: linear-gradient( 90deg, var(--inst-primary), var(--inst-white) );
    }
.ay-channel-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ay-channel-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #94a3b8;
}

    .ay-channel-section-title i {
        color: var(--inst-accent);
    }