/* ================================================================
   BENEFICIOS PAGE – Accordion Style
   Supermercado O'Higgins
   ================================================================ */

:root {
    --primary-blue: #001A72;
    --primary-blue-light: #0a2ea0;
    --primary-blue-dark: #000f4a;
    --primary-yellow: #FFD700;
    --text-dark: #1a1a1a;
    --text-mid: #4a5568;
    --text-light: #718096;
    --bg-light: #ffffff;
    --bg-cream: #f5f7fb;
    --border-color: #e2e8f0;
    --font-main: 'Outfit', sans-serif;
    --font-script: 'Great Vibes', cursive;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.5;
    background: var(--bg-cream);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 94%;
    max-width: 700px;
    margin: 0 auto;
}

.container-wide {
    width: 94%;
    max-width: 1260px;
    margin: 0 auto;
}

/* ===== HEADER ===== */
.main-header {
    background: var(--bg-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid var(--border-color);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 0;
    min-height: 52px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.header-back {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 16px 6px 12px;
    border-radius: 22px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.84rem;
    color: var(--primary-blue);
    background: #eef2ff;
    border: 1px solid rgba(0, 26, 114, 0.1);
    transition: all var(--transition);
}

.header-back:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    transform: translateX(-2px);
}

.header-logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.header-logo {
    height: 38px;
    width: auto;
}

.header-slogan {
    font-family: var(--font-script);
    color: var(--primary-blue);
    font-size: 1.25rem;
    opacity: 0.85;
    line-height: 1;
}

@media (max-width: 640px) {
    .header-slogan {
        display: none;
    }
}

/* ===== BREADCRUMBS (HEADER INTEGRATED) ===== */
.header-breadcrumbs {
    display: flex;
    align-items: center;
    min-width: 0;
}

.breadcrumbs-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.breadcrumbs-list li {
    font-size: 0.82rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.breadcrumbs-list li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs-list li a:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

.breadcrumbs-list .separator {
    color: #e2e8f0;
    font-size: 0.75rem;
    font-weight: 300;
}

.breadcrumbs-list .current {
    color: var(--text-dark);
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== HERO BANNER ===== */
.hero-banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 60%, var(--primary-blue-light) 100%);
}

.hero-banner-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(51, 102, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-banner-content {
    position: relative;
    z-index: 1;
    padding: 28px 0;
    text-align: center;
}

.hero-banner-title {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 800;
    color: white;
    line-height: 1.15;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.text-yellow {
    color: var(--primary-yellow);
}

.hero-banner-sub {
    font-size: clamp(0.82rem, 1.5vw, 0.95rem);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

/* ===== ACCORDION SECTION ===== */
.accordion-section {
    flex: 1;
    padding: 24px 0 16px;
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Accordion Item */
.acc-item {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 26, 114, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all var(--transition);
}

.acc-item:hover {
    box-shadow: 0 4px 20px rgba(0, 26, 114, 0.1);
}

.acc-item.open {
    box-shadow: 0 6px 28px rgba(0, 26, 114, 0.12);
    border-color: rgba(0, 26, 114, 0.1);
}

/* Trigger */
.acc-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
    transition: background var(--transition);
    gap: 12px;
}

.acc-trigger:hover {
    background: rgba(0, 26, 114, 0.02);
}

.acc-trigger-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

/* Icon variations */
.acc-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--transition);
    color: white;
}

.acc-item:hover .acc-icon,
.acc-item.open .acc-icon {
    transform: scale(1.06);
}

.acc-icon--blue {
    background: linear-gradient(135deg, #001A72 0%, #1a3fa8 100%);
}

.acc-icon--green {
    background: linear-gradient(135deg, #0f5132 0%, #198754 100%);
}

.acc-icon--amber {
    background: linear-gradient(135deg, #92400e 0%, #d97706 100%);
}

.acc-icon--purple {
    background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 100%);
}

.acc-icon--red {
    background: linear-gradient(135deg, #991b1b 0%, #dc2626 100%);
}

.acc-icon--teal {
    background: linear-gradient(135deg, #134e4a 0%, #14b8a6 100%);
}

.acc-trigger-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.acc-label {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

.acc-hint {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 400;
    line-height: 1.3;
    margin-top: 1px;
}

.acc-item.open .acc-hint {
    opacity: 0.6;
}

/* Arrow */
.acc-arrow {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all var(--transition);
}

.acc-item:hover .acc-arrow {
    background: #e2e8f0;
    color: var(--text-mid);
}

.acc-item.open .acc-arrow {
    background: var(--primary-blue);
    color: white;
    transform: rotate(180deg);
}

/* Body (expandable) */
.acc-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.acc-body-inner {
    padding: 0 20px 20px;
    border-top: 1px solid #f0f2f7;
    padding-top: 16px;
}

/* List */
.acc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.acc-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--text-dark);
    line-height: 1.5;
}

.acc-list li strong {
    color: var(--text-dark);
    font-weight: 700;
}

.acc-check {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    margin-top: 1px;
}

.acc-check--blue {
    background: #eef0ff;
    color: var(--primary-blue);
}

.acc-check--green {
    background: #e6f7ed;
    color: #0f5132;
}

.acc-check--amber {
    background: #fef3c7;
    color: #92400e;
}

.acc-check--purple {
    background: #ede9fe;
    color: #4c1d95;
}

.acc-check--red {
    background: #fee2e2;
    color: #991b1b;
}

.acc-check--teal {
    background: #ccfbf1;
    color: #134e4a;
}

/* ===== FAQ CTA ===== */
.faq-cta {
    margin-top: 22px;
}

.faq-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 22px;
    background: white;
    border-radius: 14px;
    border: 1px dashed rgba(0, 26, 114, 0.15);
    box-shadow: 0 1px 6px rgba(0, 26, 114, 0.04);
    transition: all var(--transition);
}

.faq-cta-inner:hover {
    border-color: rgba(0, 26, 114, 0.25);
    box-shadow: 0 4px 16px rgba(0, 26, 114, 0.08);
}

.faq-cta-text {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-mid);
    font-weight: 400;
}

.faq-cta-icon {
    flex-shrink: 0;
    color: var(--primary-blue);
    opacity: 0.6;
}

.faq-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 24px;
    background: var(--primary-blue);
    color: white;
    font-family: var(--font-main);
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all var(--transition);
    box-shadow: 0 2px 8px rgba(0, 26, 114, 0.2);
}

.faq-cta-link:hover {
    background: var(--primary-blue-light);
    transform: translateX(3px);
    box-shadow: 0 4px 14px rgba(0, 26, 114, 0.28);
}

/* ===== FOOTER BAR ===== */
.page-footer-bar {
    background: white;
    border-top: 1px solid var(--border-color);
    padding: 14px 0;
}

.footer-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--primary-blue);
    text-decoration: none;
    transition: all var(--transition);
}

.footer-back-link:hover {
    transform: translateX(-3px);
    opacity: 0.8;
}

.footer-copy {
    font-size: 0.78rem;
    color: var(--text-light);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 640px) {
    .header-inner {
        min-height: 48px;
    }

    .header-back span {
        display: none;
    }

    .header-back {
        padding: 8px;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        justify-content: center;
    }

    .header-logo-link {
        flex-shrink: 0;
    }

    .header-logo {
        height: 32px;
    }

    .header-slogan {
        display: none;
    }

    .hero-banner-content {
        padding: 20px 0;
    }

    .accordion-section {
        padding: 16px 0 12px;
    }

    .accordion {
        gap: 10px;
    }

    .acc-trigger {
        padding: 14px 16px;
        gap: 10px;
    }

    .acc-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .acc-icon svg {
        width: 20px;
        height: 20px;
    }

    .acc-label {
        font-size: 0.95rem;
    }

    .acc-hint {
        font-size: 0.75rem;
    }

    .acc-arrow {
        width: 28px;
        height: 28px;
    }

    .acc-arrow svg {
        width: 16px;
        height: 16px;
    }

    .acc-body-inner {
        padding: 0 16px 16px;
        padding-top: 14px;
    }

    .acc-list li {
        font-size: 0.88rem;
    }

    /* FAQ CTA mobile */
    .faq-cta {
        margin-top: 18px;
    }

    .faq-cta-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px 18px;
        text-align: center;
    }

    .faq-cta-text {
        justify-content: center;
        font-size: 0.84rem;
    }

    .header-left {
        gap: 6px;
    }

    .header-breadcrumbs .breadcrumbs-list li:not(.current):not(.separator) {
        display: none;
    }

    .header-breadcrumbs .breadcrumbs-list .separator {
        margin: 0 -2px;
        opacity: 0.4;
    }

    .header-breadcrumbs {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }

    .breadcrumbs-list {
        max-width: 100%;
        overflow: hidden;
    }

    .header-breadcrumbs .breadcrumbs-list li {
        font-size: 0.72rem;
        letter-spacing: -0.01em;
        white-space: nowrap;
        color: #94a3b8;
    }

    .header-breadcrumbs .breadcrumbs-list .current {
        max-width: 160px;
        /* Ajuste para evitar que se corte cuando sobra espacio */
        overflow: hidden;
        text-overflow: ellipsis;
        color: var(--text-dark);
        font-weight: 700;
        display: block;
    }

    .page-footer-bar {
        padding: 12px 0;
    }
}

@media (max-width: 380px) {
    .hero-banner-content {
        padding: 16px 0;
    }

    .hero-banner-title {
        font-size: 1.2rem;
    }

    .acc-trigger {
        padding: 12px 14px;
    }

    .acc-icon {
        width: 36px;
        height: 36px;
    }

    .acc-label {
        font-size: 0.9rem;
    }
}

/* ===== SHARED CATALOG HEADER ON INNER PAGES ===== */
.main-header {
    border-bottom: 0;
}

.main-header .header-top.container {
    width: 100%;
    max-width: none;
}

.main-header .nav-search-container.container {
    width: 94%;
    max-width: 1500px;
    margin: 0 auto;
}

.main-header .search-bar-container {
    max-width: 460px;
}

@media (max-width: 900px) {
    .main-header .header-top.container {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 78px;
        padding: 0 18px;
    }

    .main-header .logo-container {
        position: static !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: auto;
        margin: 0 auto;
    }

    .main-header .site-logo {
        height: 56px;
    }

    .main-header .top-links {
        display: block;
        position: absolute;
        inset: 0;
        height: auto;
        pointer-events: none;
    }

    .main-header .top-link {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        gap: 5px;
        font-size: 0.77rem;
        font-weight: 800;
        line-height: 1;
        pointer-events: auto;
    }

    .main-header .top-link:first-child {
        left: 18px;
    }

    .main-header .top-link:last-child {
        right: 18px;
    }

    .hero-banner-content {
        padding: 22px 16px 24px;
    }
}

@media (max-width: 380px) {
    .main-header .header-top.container {
        min-height: 74px;
        padding: 0 12px;
    }

    .main-header .site-logo {
        height: 50px;
    }

    .main-header .top-link {
        font-size: 0.71rem;
        gap: 4px;
    }

    .main-header .top-link:first-child {
        left: 12px;
    }

    .main-header .top-link:last-child {
        right: 12px;
    }
}
