/* --- Variables de Diseño --- */
:root {
    --green-accent: #10b981;
    --salmon-bg: #fffcfb; 
    --orange-accent: #ff8a65;
    --orange-dark: #e67655;
    --white: #ffffff;
    --text-main: #2d3748;
    --text-muted: #718096;
    --shadow-soft: 0 10px 30px -5px rgba(255, 138, 101, 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--salmon-bg) !important;
    color: var(--text-main);
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

/* --- Notificación Toast (Indispensable) --- */
#toast {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(45, 55, 72, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 10px 24px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
    z-index: 10000;
    display: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
}

/* --- Buscador --- */
#faq-search {
    border: 2px solid #ffe4dc;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-soft);
}

#faq-search:focus {
    transform: translateY(-2px);
    border-color: var(--orange-accent);
    box-shadow: 0 12px 25px rgba(255, 138, 101, 0.2);
}

/* --- Grid de Categorías Pequeñas (En una línea) --- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 8px;
}

.cat-card {
    background: var(--white);
    border: 1px solid rgba(255, 138, 101, 0.1);
    padding: 12px 4px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cat-card .icon { 
    font-size: 1.1rem; 
}

.cat-card .label { 
    font-size: 8.5px; 
    font-weight: 800; 
    color: var(--text-muted);
    text-transform: uppercase; 
    letter-spacing: 0.3px;
    text-align: center;
    line-height: 1.1;
}

.cat-card:hover {
    transform: translateY(-3px);
    border-color: var(--orange-accent);
}

.cat-card.active {
    background: linear-gradient(135deg, var(--orange-accent), var(--orange-dark));
    border-color: transparent;
    box-shadow: 0 8px 15px rgba(255, 138, 101, 0.3);
}

.cat-card.active .label, .cat-card.active .icon { color: var(--white); }

/* --- Títulos Divisores --- */
.category-title {
    font-size: 10px;
    font-weight: 800;
    color: var(--orange-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 45px 0 15px 5px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.category-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, #ffdcd1, transparent);
}

/* --- Acordeones Modernos --- */
.accordion-item {
    background: var(--white);
    border-radius: 20px;
    border: 1px solid rgba(255, 138, 101, 0.08);
    margin-bottom: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.accordion-item.is-open {
    border-color: var(--orange-accent);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.04);
}

.accordion-header {
    padding: 1.1rem 1.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.accordion-header span {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-main);
    line-height: 1.4;
}

.accordion-content {
    display: none;
    padding: 0 1.4rem 1.4rem;
}

.accordion-item.is-open .accordion-content {
    display: block;
}

.content-inner {
    padding-top: 15px;
    border-top: 1px solid #fff5f2;
    color: #4a5568;
    line-height: 1.7;
    font-size: 14.5px;
}

/* --- Estilos de Contenido (R11, R17, etc) --- */
.alert-salmon {
    background-color: #fff9f8;
    border: 1px solid #ffdcd1;
    padding: 12px;
    border-radius: 12px;
    color: #c53030;
}

.highlight {
    background: linear-gradient(120deg, #d1fae5 0%, #d1fae5 100%);
    background-repeat: no-repeat;
    background-size: 100% 0.3em;
    background-position: 0 90%;
    font-weight: 700;
}

/* --- Botones Flotantes y Selector --- */
#store-selector {
    border: 1px solid rgba(255, 138, 101, 0.1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.arrow { 
    transition: transform 0.3s ease; 
    color: var(--orange-accent);
    flex-shrink: 0;
}

.accordion-item.is-open .arrow { 
    transform: rotate(180deg); 
    color: var(--green-accent);
}

/* --- Responsive Móvil --- */
@media (max-width: 600px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 botones por fila en móvil */
    }
    .cat-card { padding: 10px 2px; }
    .cat-card .icon { font-size: 1rem; }
    .cat-card .label { font-size: 7.5px; }
    .accordion-header span { font-size: 14px; }
}