/* ==========================================================
   YAKKA Schema Pro - Estilos por defecto
   ========================================================== */

/* ── FAQ (Acordeón CSS puro) ────────────────────────────── */
.yakka-sp-faq {
    margin: 1.5em 0;
}

.yakka-sp-faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.yakka-sp-faq-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.yakka-sp-faq-question {
    background: #fafafa;
    padding: 14px 18px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    list-style: none; /* Quita el marker de <summary> */
}

.yakka-sp-faq-question::-webkit-details-marker {
    display: none;
}

.yakka-sp-faq-q-icon {
    background: #2271b1;
    color: #fff;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.yakka-sp-faq-answer {
    padding: 14px 18px;
    border-top: 1px solid #e0e0e0;
    line-height: 1.6;
    color: #444;
}

.yakka-sp-faq-item[open] .yakka-sp-faq-question {
    background: #f0f0f0;
    border-bottom: 1px solid #e0e0e0;
}

/* ── HowTo ───────────────────────────────────────────────── */
.yakka-sp-howto {
    margin: 1.5em 0;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
}

.yakka-sp-howto-title {
    margin-top: 0;
    font-size: 1.4em;
}

.yakka-sp-howto-desc {
    color: #666;
    margin-bottom: 15px;
}

.yakka-sp-howto-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
    font-size: 0.9em;
}

.yakka-sp-howto-step {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.yakka-sp-howto-step-number {
    background: #2271b1;
    color: #fff;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.yakka-sp-howto-step-content {
    flex: 1;
    padding-top: 4px;
}

.yakka-sp-howto-step-title {
    display: block;
    margin-bottom: 4px;
    font-size: 1.05em;
}

.yakka-sp-howto-step-text {
    margin: 0;
    color: #444;
    line-height: 1.5;
}

.yakka-sp-howto-tool,
.yakka-sp-howto-material {
    display: inline-block;
    background: #f0f0f1;
    padding: 5px 12px;
    border-radius: 4px;
    margin: 0 8px 8px 0;
    font-size: 0.9em;
    color: #333;
}

/* ── Video ───────────────────────────────────────────────── */
.yakka-sp-video {
    margin: 1.5em 0;
}

.yakka-sp-video-title {
    margin-top: 0;
    font-size: 1.3em;
}

.yakka-sp-video-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    border-radius: 8px;
    background: #000;
}

.yakka-sp-video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.yakka-sp-video-desc {
    color: #666;
    font-size: 0.95em;
    margin-top: 10px;
}

/* ── Course ──────────────────────────────────────────────── */
.yakka-sp-course {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    margin: 1.5em 0;
    display: flex;
    flex-direction: column;
}

.yakka-sp-course-image {
    width: 100%;
    max-height: 250px;
    overflow: hidden;
}

.yakka-sp-course-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.yakka-sp-course-body {
    padding: 20px;
}

.yakka-sp-course-title {
    margin-top: 0;
    font-size: 1.3em;
}

.yakka-sp-course-desc {
    color: #666;
    margin-bottom: 12px;
}

.yakka-sp-course-provider {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

/* ── Event ───────────────────────────────────────────────── */
.yakka-sp-event {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    margin: 1.5em 0;
}

.yakka-sp-event-image {
    width: 100%;
    max-height: 250px;
    overflow: hidden;
}

.yakka-sp-event-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.yakka-sp-event-body {
    padding: 20px;
}

.yakka-sp-event-title {
    margin-top: 0;
    font-size: 1.3em;
}

.yakka-sp-event-desc {
    color: #666;
    margin-bottom: 12px;
}

.yakka-sp-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9em;
    color: #555;
}

/* ── Recipe ──────────────────────────────────────────────── */
.yakka-sp-recipe {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    margin: 1.5em 0;
}

.yakka-sp-recipe-image {
    width: 100%;
    max-height: 350px;
    overflow: hidden;
}

.yakka-sp-recipe-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.yakka-sp-recipe-body {
    padding: 20px;
}

.yakka-sp-recipe-title {
    margin-top: 0;
    font-size: 1.5em;
}

.yakka-sp-recipe-desc {
    color: #666;
    margin-bottom: 15px;
    font-style: italic;
}

.yakka-sp-recipe-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding: 12px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9em;
    color: #555;
}

.yakka-sp-recipe-rating {
    margin-bottom: 15px;
    color: #f5a623;
    font-size: 1.1em;
}

.yakka-sp-recipe-stars {
    letter-spacing: 2px;
}

.yakka-sp-recipe-rating-text {
    color: #666;
    font-size: 0.85em;
    margin-left: 8px;
}

.yakka-sp-recipe-section {
    margin-bottom: 25px;
}

.yakka-sp-recipe-section-title {
    margin-bottom: 12px;
    font-size: 1.2em;
    padding-bottom: 6px;
    border-bottom: 2px solid #2271b1;
    display: inline-block;
}

.yakka-sp-recipe-ingredients {
    list-style: none;
    padding: 0;
    margin: 0;
}

.yakka-sp-recipe-ingredient {
    padding: 8px 0;
    border-bottom: 1px dashed #e0e0e0;
    padding-left: 20px;
    position: relative;
}

.yakka-sp-recipe-ingredient::before {
    content: '•';
    color: #2271b1;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.yakka-sp-recipe-ingredient:last-child {
    border-bottom: none;
}

.yakka-sp-recipe-instructions {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step;
}

.yakka-sp-recipe-instruction {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.yakka-sp-recipe-inst-number {
    background: #2271b1;
    color: #fff;
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9em;
    margin-top: 2px;
}

.yakka-sp-recipe-inst-content {
    flex: 1;
}

.yakka-sp-recipe-inst-title {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

.yakka-sp-recipe-inst-text {
    margin: 0;
    color: #444;
    font-size: 0.95em;
    line-height: 1.5;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 600px) {
    .yakka-sp-recipe-meta,
    .yakka-sp-event-meta,
    .yakka-sp-howto-meta {
        flex-direction: column;
        gap: 6px;
    }

    .yakka-sp-course, .yakka-sp-event, .yakka-sp-recipe {
        border-radius: 0;
        margin-left: -20px;
        margin-right: -20px;
        border-left: none;
        border-right: none;
    }
}
