/* LibertadConciencia Testimonials - Public Styles */

/* Fuentes */
@font-face {
    font-family: 'Oswald';
    src: url('../fonts/Oswald/Oswald-VariableFont_wght.ttf') format('truetype-variations');
    font-weight: 200 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DM Sans';
    src: url('../fonts/DM_Sans/DMSans-VariableFont_opsz,wght.ttf') format('truetype-variations');
    font-weight: 100 1000;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DM Sans';
    src: url('../fonts/DM_Sans/DMSans-Italic-VariableFont_opsz,wght.ttf') format('truetype-variations');
    font-weight: 100 1000;
    font-style: italic;
    font-display: swap;
}

:root {
    /* Paleta de colores oficial */
    --lc-primary-dark: #006D77;
    --lc-primary-light: #83C5BE;
    --lc-background-cream: #EDF6F9;
    --lc-accent-peach: #FFDDD2;
    --lc-accent-orange: #E29578;
    --lc-accent-orange-dark: #DB673B;
    
    /* Colores adicionales */
    --lc-text-dark: #1a1a1a;
    --lc-text-medium: #4a4a4a;
    --lc-text-light: #7a7a7a;
    --lc-white: #ffffff;
    --lc-black: #000000;
    
    /* Sombras */
    --lc-shadow-sm: 0 2px 8px rgba(0, 109, 119, 0.1);
    --lc-shadow-md: 0 4px 16px rgba(0, 109, 119, 0.15);
    --lc-shadow-lg: 0 8px 24px rgba(0, 109, 119, 0.2);
    --lc-shadow-xl: 0 12px 40px rgba(0, 109, 119, 0.25);
    
    /* Bordes */
    --lc-radius-sm: 4px;
    --lc-radius-md: 8px;
    --lc-radius-lg: 12px;
    --lc-radius-xl: 16px;
    
    /* Tipografía */
    --lc-font-heading: 'Oswald', sans-serif;
    --lc-font-body: 'DM Sans', sans-serif;
}

* {
    box-sizing: border-box;
}

.testimonials-container {
    max-width: 90%;
    width: 100%;
    margin: 0 auto;
    padding: 40px 0;
    font-family: var(--lc-font-body);
    /* background: var(--lc-background-cream); */
}

/* Filter Styles - Diseño compacto con acordeón */
.testimonial-filters {
    background: linear-gradient(135deg, var(--lc-black) 0%, var(--lc-primary-dark) 100%);
    border-radius: var(--lc-radius-lg);
    box-shadow: var(--lc-shadow-lg);
    padding: 25px;
    margin-bottom: 35px;
    position: relative;
    overflow: hidden;
}

.testimonial-filters::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(131, 197, 190, 0.08) 100%);
    pointer-events: none;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.filters-title {
    margin: 0;
    font-family: var(--lc-font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--lc-accent-peach) !important;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    text-align: left;
    position: relative;
    padding-left: 15px;
    border-left: 4px solid var(--lc-accent-orange);
    flex: 1;
}

/* Diseño horizontal compacto para categorías */
.filters-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.filter-group {
    margin-bottom: 0;
    background: rgba(255, 255, 255, 0.08);
    padding: 0;
    border-radius: var(--lc-radius-md);
    border: 1px solid rgba(131, 197, 190, 0.2);
    transition: all 0.3s ease;
    flex: 0 1 auto;
    overflow: hidden;
}

.filter-group.expanded {
    flex: 1 1 100%;
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--lc-primary-light);
}

.filter-category {
    margin: 0;
    font-family: var(--lc-font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--lc-white) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 18px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    white-space: nowrap;
    gap: 8px;
}

.filter-category:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--lc-accent-peach);
}

.filter-count {
    display: none;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--lc-accent-orange-dark), var(--lc-accent-orange));
    color: var(--lc-white);
    font-family: var(--lc-font-body);
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(219, 103, 59, 0.4);
    animation: pulse 0.3s ease;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.filter-category::after {
    content: '▼';
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    color: var(--lc-accent-orange);
    flex-shrink: 0;
    margin-left: auto;
}

.filter-group.expanded .filter-category::after {
    transform: rotate(180deg);
}

.filter-options {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease;
}

.filter-group.expanded .filter-options {
    display: flex;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-option {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    user-select: none;
    position: relative;
    backdrop-filter: blur(10px);
}

.filter-option:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--lc-accent-orange);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(219, 103, 59, 0.3);
}

/* Estilos para opciones no disponibles (filtrado dinámico) */
.filter-option.unavailable {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(131, 197, 190, 0.2);
    transition: opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.filter-option.unavailable:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(131, 197, 190, 0.2);
    transform: none;
    box-shadow: none;
}

.filter-option.unavailable .checkmark {
    border-color: rgba(131, 197, 190, 0.3);
    background-color: rgba(255, 255, 255, 0.05);
}

.filter-option.unavailable .option-text {
    color: rgba(255, 255, 255, 0.5);
}

.testimonial-filter-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 16px;
    width: 16px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--lc-primary-light);
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.filter-option:hover .checkmark {
    border-color: var(--lc-accent-orange);
    background-color: rgba(226, 149, 120, 0.2);
}

.testimonial-filter-checkbox:checked ~ .checkmark {
    background: linear-gradient(135deg, var(--lc-accent-orange-dark), var(--lc-accent-orange));
    border-color: var(--lc-accent-orange-dark);
    box-shadow: 0 0 10px rgba(219, 103, 59, 0.4);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 7px;
    border: solid var(--lc-white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.testimonial-filter-checkbox:checked ~ .checkmark:after {
    display: block;
}

.testimonial-filter-checkbox:checked ~ .option-text {
    color: var(--lc-white);
    font-weight: 600;
}

.option-text {
    font-family: var(--lc-font-body);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.3s ease;
    line-height: 1.3;
}

/* Testimonials Grid */
.libertadconciencia-testimonials {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
    margin-top: 20px;
}

.testimonial-item {
    background: var(--lc-white);
    border-radius: var(--lc-radius-xl);
    box-shadow: var(--lc-shadow-md);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid transparent;
    opacity: 1;
    transform: scale(1);
    position: relative;
}

.testimonial-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--lc-primary-dark), var(--lc-primary-light));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.testimonial-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--lc-shadow-xl);
    border-color: var(--lc-primary-light);
}

.testimonial-item:hover::before {
    opacity: 1;
}

.testimonial-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--lc-primary-dark), var(--lc-black));
}

.testimonial-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.testimonial-content {
    padding: 30px;
    background: var(--lc-white);
}

.testimonial-name {
    margin: 0 0 18px 0;
    font-family: var(--lc-font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--lc-primary-dark);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 12px;
}

.testimonial-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, var(--lc-accent-orange-dark), var(--lc-accent-orange));
    border-radius: 2px;
}

.testimonial-text {
    margin: 0 0 25px 0;
    font-family: var(--lc-font-body);
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--lc-text-medium);
}

.testimonial-tags {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 6px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid var(--lc-background-cream);
}

.tag {
    background: linear-gradient(135deg, var(--lc-primary-dark), var(--lc-primary-light));
    color: var(--lc-white);
    padding: 4px 8px;
    border-radius: 12px;
    font-family: var(--lc-font-body);
    font-size: 0.65rem;
    font-weight: 600;
    border: none;
    margin: 0;
    transition: all 0.3s ease;
    box-shadow: 0 1px 4px rgba(0, 109, 119, 0.2);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 109, 119, 0.3);
}

/* Loading and transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.testimonial-item {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.filter-group {
    animation: fadeIn 0.4s ease forwards;
}

.filter-group:nth-child(1) { animation-delay: 0.05s; }
.filter-group:nth-child(2) { animation-delay: 0.1s; }
.filter-group:nth-child(3) { animation-delay: 0.15s; }
.filter-group:nth-child(4) { animation-delay: 0.2s; }

/* Responsive Design */
@media (max-width: 1024px) {
    .filters-grid {
        gap: 10px;
    }
    
    .libertadconciencia-testimonials {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .testimonials-container {
        max-width: 100%;
        padding: 25px 10px;
    }

    .libertadconciencia-testimonials {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .testimonial-filters {
        padding: 20px 18px;
    }
    
    .filters-header {
        margin-bottom: 18px;
        gap: 10px;
    }
    
    .filters-title {
        font-size: 1.3rem;
    }
    
    .filters-grid {
        gap: 10px;
    }
    
    .filter-category {
        font-size: 0.9rem;
        padding: 9px 15px;
    }

    .filter-options {
        padding: 12px;
        gap: 7px;
    }

    .filter-option {
        padding: 5px 12px;
    }
    
    .testimonial-content {
        padding: 25px 20px;
    }
    
    .testimonial-name {
        font-size: 1.5rem;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    .option-text {
        font-size: 0.8rem;
    }

    .tag {
        font-size: 0.6rem;
        padding: 3px 6px;
    }
}

@media (max-width: 480px) {
    .testimonials-container {
        max-width: 100%;
        padding: 20px 10px;
    }
    
    .testimonial-filters {
        padding: 18px 15px;
        border-radius: var(--lc-radius-md);
    }
    
    .filters-header {
        margin-bottom: 15px;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .filters-title {
        font-size: 1.2rem;
        padding-left: 12px;
    }
    
    .filters-grid {
        gap: 8px;
    }

    .filter-group {
        border-radius: var(--lc-radius-sm);
    }
    
    .filter-category {
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    .filter-options {
        padding: 10px;
        gap: 6px;
    }
    
    .filter-option {
        padding: 5px 10px;
    }

    .checkmark {
        height: 14px;
        width: 14px;
        margin-right: 6px;
    }

    .checkmark:after {
        left: 3px;
        top: 1px;
        width: 3px;
        height: 6px;
    }

    .option-text {
        font-size: 0.75rem;
    }
    
    .testimonial-content {
        padding: 20px 15px;
    }
    
    .testimonial-name {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 20px;
    }
    
    .testimonial-tags {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
        gap: 5px;
        margin-top: 15px;
        padding-top: 12px;
    }

    .tag {
        font-size: 0.55rem;
        padding: 3px 6px;
        border-radius: 10px;
    }
    
    .libertadconciencia-testimonials {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .whatsapp-float {
        width: 45px;
        height: 45px;
        bottom: 15px;
        left: 15px;
    }
    
    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    text-decoration: none;
    cursor: pointer;
    animation: whatsappPulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
    background: #20BD5A;
}

.whatsapp-float:active {
    transform: scale(0.95);
}

.whatsapp-float svg {
    width: 36px;
    height: 36px;
    display: block;
}

@keyframes whatsappPulse {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
}

/* Responsive para tablets */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 18px;
        left: 18px;
    }
    
    .whatsapp-float svg {
        width: 30px;
        height: 30px;
    }
}
