/* ========================================
   GUIAS CSS - SalonBookIt
   Estilos ESPECIFICOS de la pagina de guias y tutoriales
   ======================================== */

/* === GUIDES FILTER === */
.guides-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 2rem;
}

.filter-btn {
    padding: 0.625rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: #000;
}

/* === GUIDES GRID === */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* === GUIDE CARD === */
.guide-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.guide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.guide-thumbnail {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a2d4a 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-size: cover;
    background-position: center;
}

.guide-thumbnail::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.7) 0%, rgba(26, 45, 74, 0.5) 100%);
}

.guide-thumbnail svg.icon {
    width: 64px;
    height: 64px;
    color: var(--gold);
    opacity: 0.5;
    position: relative;
    z-index: 1;
}

.guide-play {
    position: absolute;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.guide-play svg {
    width: 24px;
    height: 24px;
    color: #000;
    margin-left: 4px;
}

.guide-card:hover .guide-play {
    transform: scale(1.1);
}

.guide-duration {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    z-index: 2;
}

.guide-type {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.375rem 0.75rem;
    background: var(--gold);
    color: #000;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    z-index: 2;
}

.guide-type.pdf {
    background: #ef4444;
    color: white;
}

.guide-content {
    padding: 1.5rem;
}

.guide-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.guide-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.guide-desc {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.guide-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.guide-level {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.guide-level-dots {
    display: flex;
    gap: 0.25rem;
}

.guide-level-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray-300);
}

.guide-level-dot.active {
    background: var(--gold);
}

.guide-link {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
}

.guide-link:hover {
    color: var(--gold);
}

/* === FEATURED GUIDE === */
.featured-guide {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    margin-bottom: 3rem;
}

.featured-thumbnail {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a2d4a 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.featured-thumbnail::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.6) 0%, rgba(26, 45, 74, 0.4) 100%);
}

.featured-thumbnail svg.icon {
    width: 100px;
    height: 100px;
    color: var(--gold);
    opacity: 0.4;
    position: relative;
    z-index: 1;
}

.featured-play {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.featured-play:hover {
    transform: scale(1.1);
}

.featured-play svg {
    width: 32px;
    height: 32px;
    color: #000;
    margin-left: 4px;
}

.featured-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 1rem;
    width: fit-content;
}

.featured-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.featured-desc {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.featured-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.featured-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.featured-meta-item svg {
    width: 16px;
    height: 16px;
    color: var(--gold);
}

/* === DOWNLOAD SECTION === */
.download-section {
    margin-top: 2rem;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.download-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-decoration: none;
    color: var(--white);
    transition: all 0.2s ease;
}

.download-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold);
}

.download-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.download-icon.pdf {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.download-icon.excel {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.download-icon.template {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.download-icon svg {
    width: 24px;
    height: 24px;
}

.download-info {
    flex: 1;
}

.download-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.download-size {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
}

.download-arrow {
    color: rgba(255, 255, 255, 0.4);
}

.download-card:hover .download-arrow {
    color: var(--gold);
}

/* === ASSISTANT BANNER === */
.assistant-banner {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.assistant-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
}

.assistant-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--gold) 0%, #f0c040 100%);
}

.assistant-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold) 0%, #f0c040 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.assistant-icon svg {
    width: 40px;
    height: 40px;
    color: #000;
}

.assistant-content {
    flex: 1;
}

.assistant-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.assistant-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.assistant-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.assistant-desc strong {
    color: var(--text);
}

.assistant-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
    margin-bottom: 1.5rem;
}

.assistant-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text);
}

.assistant-feature svg {
    width: 18px;
    height: 18px;
    color: #16a34a;
    flex-shrink: 0;
}

.assistant-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-outline-gold {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-outline-gold:hover {
    background: var(--gold);
    color: #000;
}

.assistant-image {
    position: relative;
    flex-shrink: 0;
}

.assistant-image img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--gold);
}

.assistant-image-badge {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: #000;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.6875rem;
    font-weight: 700;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.assistant-image-badge svg {
    width: 14px;
    height: 14px;
}

/* === RESPONSIVE GUIAS === */
@media (max-width: 1024px) {
    .download-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .featured-guide {
        grid-template-columns: 1fr;
    }

    .guides-grid {
        grid-template-columns: 1fr;
    }

    .assistant-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .assistant-icon {
        margin: 0 auto;
    }

    .assistant-features {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .assistant-buttons {
        justify-content: center;
    }

    .assistant-image {
        display: none;
    }
}

@media (max-width: 640px) {
    .download-grid {
        grid-template-columns: 1fr;
    }
}
