/* Variables CSS para consistencia */
:root {
    --tc-primary: #a42339;
    --tc-primary-light: #c53450;
    --tc-secondary: #f59631;
    --tc-accent: #d17a2a;
    --tc-text-dark: #1f2937;
    --tc-text-light: #6b7280;
    --tc-bg-light: #f8fafc;
    --tc-border: #e5e7eb;
    --tc-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --tc-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --tc-radius: 16px;
    --tc-radius-sm: 8px;
}

/* Container principal */
.tc-testimonials-container {
    position: relative;
    padding: 2rem 80px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Glide personalizado - resetear estilos por defecto */
.tc-glide {
    position: relative;
}

.tc-glide .glide__track {
    overflow: hidden;
}

.tc-glide .glide__slides {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: stretch;
}

.tc-glide .glide__slide {
      min-height: 0;
    flex-shrink: 0;
    display: flex;
    align-items: stretch; /* esto hace que ocupen toda la altura disponible */
    justify-content: center;
    height: auto;
}

/* Cards de testimonios */
.tc-card {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 15px;
}

.tc-card-inner {
    background: #fff;
    border-radius: var(--tc-radius);
    box-shadow: var(--tc-shadow);
    padding: 2rem;
   max-width: 500px; 
    width: 100%;
     min-height: 300px; /* altura mínima fija */
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--tc-border);
    overflow: hidden;
}

.tc-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #fff;
}

.tc-card-inner:hover {
    transform: translateY(-5px);
    box-shadow: var(--tc-shadow-lg);
}

/* Header de la card con título y comillas */
.tc-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

.tc-post-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--tc-text-dark);
    margin: 0;
    flex: 1;
    line-height: 1.3;
}

/* Icono de comillas moderno */
.tc-quote-icon {
    color: var(--tc-primary);
    opacity: 0.8;
    flex-shrink: 0;
}

/* Contenido */
.tc-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tc-excerpt {
    color: var(--tc-text-dark);
    font-size: 14px;
    line-height: 1.6;
    font-weight: 400;
    flex: 1;
}

/* Botón leer más moderno */
.tc-readmore {
    background: none;
    border: none;
    color: var(--tc-primary);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 14px;
    transition: all 0.2s ease;
    align-self: flex-start;
}

.tc-readmore:hover {
    color: var(--tc-primary-light);
    gap: 0.75rem;
}

/* Autor */
.tc-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--tc-border);
}

.tc-avatar {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--tc-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.tc-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.tc-avatar-placeholder {
    color: var(--tc-text-light);
    background: var(--tc-bg-light);
}

.tc-author-info {
    flex: 1;
}

.tc-name {
    font-weight: 700;
    color: var(--tc-text-dark);
    font-size: 14px;
    margin-bottom: 0.25rem;
}

.tc-role {
    font-size: 12px;
    color: var(--tc-text-light);
    font-weight: 500;
}

/* Controles de Glide personalizados */
.tc-glide .glide__arrows {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    left: -60px;
    right: -60px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
    padding: 0 35px;
}

.tc-glide .glide__arrow {
    width: 48px;
    height: 48px;
    background: var(--tc-primary);
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    pointer-events: auto;
    box-shadow: var(--tc-shadow);
}

.tc-glide .glide__arrow:hover {
    background: var(--tc-primary-light);
    transform: scale(1.05);
    box-shadow: var(--tc-shadow-lg);
}

.tc-glide .glide__arrow.tc-arrow-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.tc-glide .glide__arrow svg {
    width: 20px;
    height: 20px;
}

/* Bullets personalizados - ahora centrados abajo */
.tc-bullets {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 0 20px;
}

.tc-glide .glide__bullet {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--tc-border);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tc-glide .glide__bullet.tc-bullet-active {
    background: var(--tc-primary);
    transform: scale(1.2);
}

.tc-glide .glide__bullet:hover {
    background: var(--tc-primary-light);
}

/* Modal moderno (sin cambios) */
.tc-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.tc-modal.active {
    display: flex;
}

.tc-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.tc-modal-content {
    background: white;
    border-radius: var(--tc-radius);
    box-shadow: var(--tc-shadow-lg);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    position: relative;
    animation: slideIn 0.3s ease;
}

.tc-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--tc-border);
    background: var(--tc-bg-light);
}

.tc-modal-header h3 {
    margin: 0;
    color: var(--tc-text-dark);
    font-weight: 700;
}

.tc-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--tc-radius-sm);
    color: var(--tc-text-light);
    transition: all 0.2s ease;
}

.tc-close:hover {
    background: var(--tc-border);
    color: var(--tc-text-dark);
}

.tc-modal-body {
    padding: 2rem;
    overflow-y: auto;
    max-height: 60vh;
}

#tc-modal-text {
    color: var(--tc-text-dark);
    line-height: 1.7;
    font-size: 14px;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to { 
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* No testimonials */
.tc-no-testimonials {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--tc-text-light);
    font-size: 1.1rem;
}

/* Override estilos por defecto de Glide que pueden causar conflictos */
.tc-glide * {
    box-sizing: border-box;
}

.tc-glide .glide__track {
    width: 100%;
    margin: 0;
}

.tc-glide .glide__slides {
    backface-visibility: hidden;
    transform-style: preserve-3d;
    touch-action: pan-Y;
    will-change: transform;
}

/* Mejoras para transiciones suaves */
.tc-glide.glide--swipeable {
    cursor: grab;
}

.tc-glide.glide--dragging {
    cursor: grabbing;
}

/* Estilos responsive mejorados */
@media (max-width: 1024px) {
    .tc-glide .glide__arrows {
        padding: 0 25px;
    }
    
    .tc-card {
        padding: 0 10px;
    }
}

@media (max-width: 768px) {
    .tc-testimonials-container {
        padding: 1rem 60px;
    }
    
    .tc-card {
        padding: 0 8px;
    }
    
    .tc-card-inner {
        min-height: 400px;
        padding: 1.5rem;
        max-width: 320px;
        gap: 1.25rem;
    }
    
    .tc-header {
        gap: 0.75rem;
        margin-bottom: 0.25rem;
    }
    
    .tc-post-title {
        font-size: 15px;
    }
    

    .tc-glide .glide__arrows {
        width: -40px;
        height: -40px;
    }
    
    .tc-glide .glide__arrow svg {
        width: 18px;
        height: 18px;
    }
    
    .tc-bullets {
        margin-top: 1.5rem;
        padding: 0 15px;
    }
    
    .tc-modal-content {
        margin: 0 1rem;
        max-height: 90vh;
    }
    
    .tc-modal-header {
        padding: 1rem;
    }
    
    .tc-modal-body {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .tc-card {
        padding: 0 5px;
    }
    
    .tc-card-inner {
        max-width: 350px;
        padding: 1.25rem;
        gap: 1rem;
    }
    
    .tc-header {
        gap: 0.5rem;
    }
    
    .tc-post-title {
        font-size: 14px;
        line-height: 1.2;
    }
    
    .tc-quote-icon svg {
        width: 28px;
        height: 20px;
    }
    
    .tc-excerpt {
        font-size: 13px;
    }
    
    .tc-avatar {
        width: 50px;
        height: 50px;
    }
    
    .tc-name {
        font-size: 13px;
    }
    
    .tc-role {
        font-size: 11px;
    }
    
    .tc-readmore {
        font-size: 13px;
    }
    
    .tc-glide .glide__arrows {
 left: -35px;
        right: -35px;    }
    
    .tc-glide .glide__arrow {
        width: 36px;
        height: 36px;
    }
    
    .tc-glide .glide__arrow svg {
        width: 16px;
        height: 16px;
    }
    
    .tc-bullets {
        padding: 0 10px;
    }

     .tc-testimonials-container {
        padding: 1rem 50px;
    }
}



.tc-glide.glide--initialized {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Estilos para cuando solo hay 1 slide */
.tc-glide[data-single-slide="true"] .glide__arrows {
    display: none;
}

.tc-glide[data-single-slide="true"] .tc-bullets {
    display: none;
}