/* ========================================
   SECTIONS.CSS - Estilos Combinados de Secciones
   Combina: home.css, testimonials.css, events.css, docs.css, cv-contact.css, bulk-upload.css
   ======================================== */

/* ===== SECCIÓN DE INICIO ===== */

/* Título modernizado de Inicio con fondo de color acento */
.home-title-wrapper {
    background: var(--color-accent);
    padding: 1.875rem 2rem;
    margin: 0;
    position: relative;
    overflow: hidden;
}

/* Efecto decorativo de fondo con patrón sutil */
.home-title-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.home-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 3rem;
    color: white;
    text-align: center;
    margin: 0;
    padding: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.home-title-name {
    display: inline-block;
    animation: pulse-home 5s ease-in-out infinite;
    transition: all 0.3s ease;
}

/* Efecto hover: letter-spacing + scale + glow */
.home-title-name:hover {
    letter-spacing: 2px;
    transform: scale(1.05);
    animation-play-state: paused; /* Pausar animación pulse durante hover */
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.2),        /* Sombra base */
        0 0 20px rgba(255, 255, 255, 0.5),   /* Glow interno */
        0 0 35px rgba(255, 255, 255, 0.3);   /* Glow externo */
}

/* Animación para el nombre del actor */
@keyframes pulse-home {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.03);
        opacity: 0.85;
    }
}

/* Icono de casa en esquina superior izquierda */
.home-icon-corner {
    position: absolute;
    top: 0.75rem;
    left: 1rem;
    font-size: 2.5rem;
    z-index: 2;
    display: inline-block;
    animation: pulse-home-icon 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Animación para el icono de casa */
@keyframes pulse-home-icon {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.85;
    }
}

/* ===== SECCIÓN DE OPINIONES (TESTIMONIALS) ===== */

/* Título modernizado de Reseñas con fondo de color acento */
.testimonials-title-wrapper {
    background: var(--color-accent);
    padding: 1.875rem 2rem;
    margin: 0;
    position: relative;
    overflow: hidden;
}

/* Efecto decorativo de fondo con patrón sutil */
.testimonials-title-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.testimonials-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 3rem;
    color: white;
    text-align: center;
    margin: 0;
    padding: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

/* Efecto hover: letter-spacing + scale + glow */
.testimonials-title:hover {
    letter-spacing: 2px;
    transform: scale(1.03);
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.2),        /* Sombra base */
        0 0 20px rgba(255, 255, 255, 0.5),   /* Glow interno */
        0 0 35px rgba(255, 255, 255, 0.3);   /* Glow externo */
}

.testimonials-title-icon {
    display: inline-block;
    animation: pulse-star 2s ease-in-out infinite;
    margin: 0 0.75rem;
    font-size: 2.5rem;
}

/* Animación para los iconos de estrella */
@keyframes pulse-star {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.85;
    }
}

/* Selector de estrellas interactivo */
.star {
    user-select: none;
    -webkit-user-select: none;
}

.star.selected {
    color: #FFD700 !important;
}

/* Tarjeta de opinión */
.testimonial-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
    position: relative; /* Para posicionar el badge */
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px rgba(var(--color-accent-rgb), 0.15);
}

/* Indicador visual para reseñas con respuesta */
.testimonial-card.has-response {
    border-left: 4px solid var(--color-accent);
}

.testimonial-response-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--color-accent);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: all 0.2s ease;
}

.testimonial-response-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(var(--color-accent-rgb), 0.3);
}

/* Estrellas de calificación en tarjeta */
.testimonial-stars {
    display: flex;
    gap: 0.25rem;
    font-size: 1.125rem;
    color: #FFD700;
}

/* Texto de la reseña */
.testimonial-text {
    color: #4B5563;
    font-size: 0.9375rem;
    line-height: 1.6;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Información del usuario */
.testimonial-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
}

/* Avatar circular */
.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Información del usuario (nombre y rol) */
.testimonial-user-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    text-align: left;
}

.testimonial-user-name {
    font-weight: bold;
    color: #1F2937;
    font-size: 0.9375rem;
}

.testimonial-user-role {
    color: #9CA3AF;
    font-size: 0.875rem;
    font-style: italic;
}

/* Botones de admin en tarjetas */
.testimonial-card-admin {
    border: 2px solid #E5E7EB;
}

.testimonial-admin-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #E5E7EB;
}

.testimonial-admin-actions button {
    flex: 1;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.btn-edit-testimonial {
    background: #EEF2FF;
    color: var(--color-accent);
}

.btn-edit-testimonial:hover {
    background: #DBEAFE;
}

.btn-delete-testimonial {
    background: #FEE2E2;
    color: #DC2626;
}

.btn-delete-testimonial:hover {
    background: #FECACA;
}

/* Contador de caracteres */
#char-count {
    font-weight: 600;
}

/* Animación de éxito */
#testimonial-success {
    animation: slideInFromTop 0.4s ease-out;
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Clase de padding específica para contenedor de reseñas */
.testimonials-content-padding {
    padding: 3rem;  /* Padding por defecto desktop */
}

/* Clase de padding específica para contenedor de contacto (mismo esquema que reseñas) */
.contact-content-padding {
    padding: 3rem;  /* Padding por defecto desktop */
}
@media (max-width: 768px) {
    .contact-content-padding {
        padding: 2rem 0.5rem;  /* 2rem arriba/abajo, 0.5rem laterales en móvil */
    }
}

/* Clase de padding específica para contenedor de CV/Sobre Mi (mismo esquema que reseñas) */
.cv-content-padding {
    padding: 3rem;  /* Padding por defecto desktop */
}
@media (max-width: 768px) {
    .cv-content-padding {
        padding: 2rem 0.5rem;  /* 2rem arriba/abajo, 0.5rem laterales en móvil */
    }
}

/* ===== MODAL DE RESEÑA EXPANDIDA ===== */
.testimonial-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    z-index: 50;
    align-items: center;
    justify-content: center;
}

.testimonial-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.testimonial-modal-content {
    background: white;
    border-radius: 1rem;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    z-index: 10;
    animation: slideUp 0.3s ease-out;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.testimonial-modal-body {
    padding: 2.5rem;
    text-align: center;
}

.testimonial-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: 300;
    transition: all 0.2s ease;
    z-index: 20;
}

.testimonial-modal-close:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: rotate(90deg);
}

/* Comentario del administrador */
.testimonial-admin-comment {
    border-top: 2px solid #e5e7eb;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    color: #9ca3af;
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.6;
}

.testimonial-admin-comment strong {
    color: #6b7280;
    font-weight: 600;
}

.testimonial-admin-comment p {
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
}

.admin-comment-signature {
    text-align: left;
    font-weight: 600;
    margin-top: 0.75rem;
    color: #6b7280;
    font-style: normal;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SECCIÓN DE EVENTOS ===== */

/* Título modernizado de Eventos con fondo de color acento */
.events-title-wrapper {
    background: var(--color-accent);
    padding: 1.875rem 2rem;
    margin: 0;
    position: relative;
    overflow: hidden;
}

/* Efecto decorativo de fondo con patrón sutil */
.events-title-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.events-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 3rem;
    color: white;
    text-align: center;
    margin: 0;
    padding: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

/* Efecto hover: letter-spacing + scale + glow */
.events-title:hover {
    letter-spacing: 2px;
    transform: scale(1.03);
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.2),        /* Sombra base */
        0 0 20px rgba(255, 255, 255, 0.5),   /* Glow interno */
        0 0 35px rgba(255, 255, 255, 0.3);   /* Glow externo */
}

.events-title-icon {
    display: inline-block;
    animation: pulse-calendar 2s ease-in-out infinite;
    margin: 0 0.75rem;
    font-size: 2.5rem;
}

/* Animación para los iconos de calendario */
@keyframes pulse-calendar {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.85;
    }
}

/* ===== SECCIÓN DE DOCUMENTACIÓN ===== */

/* Título modernizado de Doc. Pública con fondo de color acento */
.public-docs-title-wrapper {
    background: var(--color-accent);
    padding: 1.875rem 2rem;
    margin: 0;
    position: relative;
    overflow: hidden;
}

/* Título modernizado de Doc. Privada con fondo de color acento */
.private-docs-title-wrapper {
    background: var(--color-accent);
    padding: 1.875rem 2rem;
    margin: 0;
    position: relative;
    overflow: hidden;
}

/* Efecto decorativo de fondo con patrón sutil */
.public-docs-title-wrapper::before,
.private-docs-title-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.public-docs-title,
.private-docs-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 3rem;
    color: white;
    text-align: center;
    margin: 0;
    padding: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

/* Efecto hover: letter-spacing + scale + glow */
.public-docs-title:hover,
.private-docs-title:hover {
    letter-spacing: 2px;
    transform: scale(1.03);
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.2),        /* Sombra base */
        0 0 20px rgba(255, 255, 255, 0.5),   /* Glow interno */
        0 0 35px rgba(255, 255, 255, 0.3);   /* Glow externo */
}

.public-docs-title-icon,
.private-docs-title-icon {
    margin: 0 0.75rem;
}

/* Animación para los iconos de documentos */
@keyframes pulse-docs {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.85;
    }
}

/* ===== SECCIÓN DE CV Y CONTACTO ===== */

/* Título modernizado de CV con fondo de color acento */
.cv-title-wrapper {
    background: var(--color-accent);
    padding: 1.875rem 2rem;
    margin: 0;
    position: relative;
    overflow: hidden;
}

/* Título modernizado de Contacto con fondo de color acento */
.contact-title-wrapper {
    background: var(--color-accent);
    padding: 1.875rem 2rem;
    margin: 0;
    position: relative;
    overflow: hidden;
}

/* Efecto decorativo de fondo con patrón sutil */
.cv-title-wrapper::before,
.contact-title-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.cv-title,
.contact-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 3rem;
    color: white;
    text-align: center;
    margin: 0;
    padding: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

/* Efecto hover: letter-spacing + scale + glow */
.cv-title:hover,
.contact-title:hover {
    letter-spacing: 2px;
    transform: scale(1.03);
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.2),        /* Sombra base */
        0 0 20px rgba(255, 255, 255, 0.5),   /* Glow interno */
        0 0 35px rgba(255, 255, 255, 0.3);   /* Glow externo */
}

.cv-title-icon,
.contact-title-icon {
    display: inline-block;
    animation: pulse-cv-contact 2s ease-in-out infinite;
    margin: 0 0.75rem;
    font-size: 2.5rem;
}

/* Animación para los iconos */
@keyframes pulse-cv-contact {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.85;
    }
}

/* ========================================
   BULK UPLOAD - Drag & Drop Styles
   ======================================== */

/* Container principal */
.bulk-upload-zone {
    margin-bottom: 1rem;
    border-radius: 0.75rem;
    overflow: hidden;
}

/* Toggle button */
.bulk-upload-toggle {
    font-size: 0.875rem;
    color: #2563eb;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.bulk-upload-toggle:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Zona de drop - Estado idle */
.dropzone {
    border: 3px dashed #d1d5db;
    background-color: #f9fafb;
    border-radius: 0.75rem;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.dropzone:hover {
    border-color: #9ca3af;
    background-color: #f3f4f6;
}

/* Estado cuando se arrastra sobre la zona */
.dropzone.drag-over {
    border-color: #3b82f6;
    border-style: solid;
    background-color: #eff6ff;
    transform: scale(1.02);
}

/* Estado durante subida */
.dropzone.uploading {
    border-color: #10b981;
    background-color: #f0fdf4;
    cursor: default;
    pointer-events: none;
}

/* Estado de error */
.dropzone.error {
    border-color: #ef4444;
    background-color: #fef2f2;
}

/* Estado de éxito */
.dropzone.success {
    border-color: #10b981;
    background-color: #f0fdf4;
}

/* Icono y texto principal */
.dropzone-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.6;
    pointer-events: none; /* No interceptar clicks */
}

.dropzone-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    pointer-events: none; /* No interceptar clicks */
}

.dropzone-hint {
    font-size: 0.875rem;
    color: #6b7280;
    pointer-events: none; /* No interceptar clicks */
}

.dropzone-limit {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.5rem;
    pointer-events: none; /* No interceptar clicks */
}

/* Input file oculto */
.dropzone-input {
    display: none;
}

/* ========================================
   UPLOAD QUEUE - Cola de subida
   ======================================== */

.upload-queue {
    margin-top: 1rem;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.upload-queue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
}

.upload-queue-title {
    font-weight: 600;
    color: #374151;
}

.upload-queue-count {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Items individuales en la cola */
.upload-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
}

.upload-item:last-child {
    margin-bottom: 0;
}

.upload-item.uploading {
    background-color: #eff6ff;
}

.upload-item.completed {
    background-color: #f0fdf4;
}

.upload-item.error {
    background-color: #fef2f2;
}

/* Icono del archivo */
.upload-item-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Información del archivo */
.upload-item-info {
    flex: 1;
    min-width: 0;
}

.upload-item-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upload-item-path {
    font-size: 0.75rem;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upload-item-size {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Barra de progreso */
.upload-item-progress {
    width: 100%;
    height: 4px;
    background-color: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.25rem;
}

.upload-item-progress-bar {
    height: 100%;
    background-color: #3b82f6;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.upload-item.completed .upload-item-progress-bar {
    background-color: #10b981;
}

.upload-item.error .upload-item-progress-bar {
    background-color: #ef4444;
}

/* Estado del item */
.upload-item-status {
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.upload-item-status.pending {
    color: #6b7280;
    background-color: #f3f4f6;
}

.upload-item-status.uploading {
    color: #2563eb;
    background-color: #dbeafe;
}

.upload-item-status.completed {
    color: #059669;
    background-color: #d1fae5;
}

.upload-item-status.error {
    color: #dc2626;
    background-color: #fee2e2;
}

/* Progreso total */
.upload-total-progress {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #e5e7eb;
}

.upload-total-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.upload-total-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.upload-total-stats {
    font-size: 0.75rem;
    color: #6b7280;
}

.upload-total-bar {
    width: 100%;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.upload-total-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    transition: width 0.5s ease;
    border-radius: 4px;
}

/* Animación de spinner */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.upload-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Animación de éxito */
@keyframes checkmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.upload-checkmark {
    animation: checkmark 0.5s ease-in-out;
}

/* Mensajes de error */
.upload-error-message {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background-color: #fef2f2;
    border-left: 4px solid #ef4444;
    border-radius: 0.25rem;
}

.upload-error-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #dc2626;
    margin-bottom: 0.25rem;
}

.upload-error-detail {
    font-size: 0.75rem;
    color: #991b1b;
}

/* Scrollbar personalizado para la cola */
.upload-queue::-webkit-scrollbar {
    width: 8px;
}

.upload-queue::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 4px;
}

.upload-queue::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.upload-queue::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* ========================================
   RESPONSIVE - Media Queries Combinadas
   ======================================== */

@media (max-width: 768px) {
    /* Home */
    .home-title-wrapper {
        padding: 1.5rem 1.5rem;
    }

    .home-title {
        font-size: 2rem;
    }

    .home-icon-corner {
        font-size: 1.75rem;
        top: 0.625rem;
        left: 0.75rem;
    }

    /* Testimonials */
    .testimonials-title-wrapper {
        padding: 1.5rem 1.5rem;
    }

    .testimonials-title {
        font-size: 2rem;
    }

    .testimonials-title-icon {
        font-size: 1.75rem;
        margin: 0 0.5rem;
    }

    .testimonial-card {
        padding: 1.25rem;
    }

    .testimonial-avatar {
        width: 40px;
        height: 40px;
        font-size: 0.875rem;
    }

    .testimonials-content-padding {
        padding: 2rem 0.5rem;  /* 2rem arriba/abajo, 0.5rem laterales en móvil */
    }

    /* Events */
    .events-title-wrapper {
        padding: 1.5rem 1.5rem;
    }

    .events-title {
        font-size: 2rem;
    }

    .events-title-icon {
        font-size: 1.75rem;
        margin: 0 0.5rem;
    }

    /* Docs */
    .public-docs-title-wrapper,
    .private-docs-title-wrapper {
        padding: 1.5rem 1.5rem;
    }

    .public-docs-title,
    .private-docs-title {
        font-size: 2rem;
    }

    .public-docs-title-icon,
    .private-docs-title-icon {
        margin: 0 0.5rem;
    }

    /* CV & Contact */
    .cv-title-wrapper,
    .contact-title-wrapper {
        padding: 1.5rem 1.5rem;
    }

    .cv-title,
    .contact-title {
        font-size: 2rem;
    }

    .cv-title-icon,
    .contact-title-icon {
        font-size: 1.75rem;
        margin: 0 0.5rem;
    }

    /* FASE G6: ajustes globales de wrappers de título en móvil. Hace que los
       títulos lleguen a los bordes del card padre compensando su padding.
       Movido aquí desde gallery-videos.css (que ahora es lazy y rompía el
       primer paint del home cuando aún no se había cargado).
       Bleed-edge (width + margins + border-radius): se aplica a TODOS los
       wrappers, incluidos los que tienen imagen.
       Padding 1.5rem: solo NO-imagen — para wrappers con imagen, el padding
       lo controla la regla `.has-title-image` en styles.css con
       multiplicadores responsive (× 1.5 tablet, × 3 mobile). Sin esta
       exclusión, el `padding: 1.5rem !important` de aquí ganaba por
       especificidad y limitaba la altura del wrapper. */
    .container .home-title-wrapper,
    .container .videobook-title-wrapper,
    .container .gallery-title-wrapper,
    .container .events-title-wrapper,
    .container .blog-title-wrapper,
    .container .cv-title-wrapper,
    .container .contact-title-wrapper,
    .container .section-title-wrapper,
    .container .testimonials-title-wrapper,
    .container .public-docs-title-wrapper,
    .container .private-docs-title-wrapper,
    .container .projects-title-wrapper,
    .container .shop-title-wrapper {
        width: calc(100% + 3rem) !important;
        margin-left: -1.5rem !important;
        margin-right: -1.5rem !important;
        margin-top: -1.5rem !important;
        border-radius: 1rem 1rem 0 0 !important;
    }

    /* Padding 1.5rem solo para wrappers de TEXTO. Los .has-title-image
       gestionan su padding desde styles.css con multiplicadores responsive. */
    .container .home-title-wrapper:not(.has-title-image),
    .container .videobook-title-wrapper:not(.has-title-image),
    .container .gallery-title-wrapper:not(.has-title-image),
    .container .events-title-wrapper:not(.has-title-image),
    .container .blog-title-wrapper:not(.has-title-image),
    .container .cv-title-wrapper:not(.has-title-image),
    .container .contact-title-wrapper:not(.has-title-image),
    .container .section-title-wrapper:not(.has-title-image),
    .container .testimonials-title-wrapper:not(.has-title-image),
    .container .public-docs-title-wrapper:not(.has-title-image),
    .container .private-docs-title-wrapper:not(.has-title-image),
    .container .projects-title-wrapper:not(.has-title-image),
    .container .shop-title-wrapper:not(.has-title-image) {
        padding: 1.5rem 1.5rem !important;
    }
}

@media (max-width: 640px) {
    /* Home */
    .home-title {
        font-size: 1.75rem;
    }

    .home-icon-corner {
        font-size: 1.5rem;
        top: 0.5rem;
        left: 0.5rem;
    }

    /* Testimonials */
    .testimonials-title {
        font-size: 1.75rem;
    }

    .testimonials-title-icon {
        font-size: 1.5rem;
        margin: 0 0.35rem;
    }

    .testimonial-modal-content {
        max-width: 95%;
        max-height: 90vh;
    }

    .testimonial-modal-body {
        padding: 1.5rem;
    }

    /* Events */
    .events-title {
        font-size: 1.75rem;
    }

    .events-title-icon {
        font-size: 1.5rem;
        margin: 0 0.35rem;
    }

    /* Docs */
    .public-docs-title,
    .private-docs-title {
        font-size: 1.75rem;
    }

    .public-docs-title-icon,
    .private-docs-title-icon {
        margin: 0 0.35rem;
    }

    /* CRÍTICO: Reducir padding del contenedor padre de documentos */
    #public-docs > div > .p-8,
    #private-docs > div > .p-8,
    #public-docs > div > [class*="p-8"],
    #private-docs > div > [class*="p-8"] {
        padding: 0.5rem !important;
    }

    /* Contenedor de docs ocupa todo el ancho disponible */
    .docs-container {
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Barra de herramientas - cambiar a columna en móvil */
    .docs-container > div:first-child {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
        padding: 0.5rem !important;
    }

    /* Contenedor de botones - en fila compacta */
    .docs-container > div:first-child > div:last-child {
        flex-direction: row !important;
        width: 100% !important;
        gap: 0.25rem !important;
    }

    /* Botones de acción - muy compactos */
    .docs-container > div:first-child button {
        width: auto !important;
        flex: 1 !important;
        justify-content: center !important;
        padding: 0.25rem 0.3rem !important;
        font-size: 0.6rem !important;
        white-space: nowrap !important;
    }

    /* Items de archivo - padding reducido */
    .docs-container .bg-white {
        padding: 0.5rem !important;
    }

    .docs-container .bg-white .flex {
        flex-wrap: wrap !important;
        gap: 0.375rem !important;
    }

    /* Iconos más pequeños en móvil */
    .docs-container .text-2xl {
        font-size: 1.25rem !important;
    }

    /* Texto de archivo más compacto */
    .docs-container .font-medium {
        font-size: 0.875rem !important;
        line-height: 1.2 !important;
    }

    .docs-container .text-xs {
        font-size: 0.7rem !important;
    }

    /* Breadcrumb más compacto */
    .docs-container nav {
        font-size: 0.75rem !important;
        gap: 0.25rem !important;
    }

    /* CV & Contact */
    .cv-title,
    .contact-title {
        font-size: 1.75rem;
    }

    .cv-title-icon,
    .contact-title-icon {
        font-size: 1.5rem;
        margin: 0 0.35rem;
    }

    /* Bulk Upload */
    .dropzone {
        padding: 2rem 1rem;
    }

    .dropzone-icon {
        font-size: 2rem;
    }

    .dropzone-text {
        font-size: 1rem;
    }

    .upload-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .upload-item-status {
        align-self: flex-end;
    }

    .upload-queue {
        max-height: 300px;
    }

    /* FASE G6: ajustes globales de wrappers de título a 640px (padding lateral
       menor que en 768px). Movido aquí desde gallery-videos.css.
       Mismo patrón que el bloque equivalente en max-width:768px: bleed-edge
       para todos, padding solo para wrappers de TEXTO (los de imagen lo
       gestionan desde styles.css con multiplicadores responsive). */
    .container .home-title-wrapper,
    .container .videobook-title-wrapper,
    .container .gallery-title-wrapper,
    .container .events-title-wrapper,
    .container .blog-title-wrapper,
    .container .cv-title-wrapper,
    .container .contact-title-wrapper,
    .container .section-title-wrapper,
    .container .testimonials-title-wrapper,
    .container .public-docs-title-wrapper,
    .container .private-docs-title-wrapper,
    .container .projects-title-wrapper,
    .container .shop-title-wrapper {
        width: calc(100% + 3rem) !important;
        margin-left: -1.5rem !important;
        margin-right: -1.5rem !important;
        margin-top: -1.5rem !important;
    }

    .container .home-title-wrapper:not(.has-title-image),
    .container .videobook-title-wrapper:not(.has-title-image),
    .container .gallery-title-wrapper:not(.has-title-image),
    .container .events-title-wrapper:not(.has-title-image),
    .container .blog-title-wrapper:not(.has-title-image),
    .container .cv-title-wrapper:not(.has-title-image),
    .container .contact-title-wrapper:not(.has-title-image),
    .container .section-title-wrapper:not(.has-title-image),
    .container .testimonials-title-wrapper:not(.has-title-image),
    .container .public-docs-title-wrapper:not(.has-title-image),
    .container .private-docs-title-wrapper:not(.has-title-image),
    .container .projects-title-wrapper:not(.has-title-image),
    .container .shop-title-wrapper:not(.has-title-image) {
        padding: 1.5rem 1rem !important;
    }
}

@media (max-width: 480px) {
    /* Testimonials adicionales */
    .testimonials-title {
        font-size: 1.75rem;
    }

    .testimonials-title-icon {
        font-size: 1.5rem;
        margin: 0 0.35rem;
    }

    /* Events adicionales */
    .events-title {
        font-size: 1.75rem;
    }

    .events-title-icon {
        font-size: 1.5rem;
        margin: 0 0.35rem;
    }

    /* Docs adicionales */
    .public-docs-title,
    .private-docs-title {
        font-size: 1.75rem;
    }

    .public-docs-title-icon,
    .private-docs-title-icon {
        margin: 0 0.35rem;
    }

    /* CV & Contact adicionales */
    .cv-title,
    .contact-title {
        font-size: 1.75rem;
    }

    .cv-title-icon,
    .contact-title-icon {
        font-size: 1.5rem;
        margin: 0 0.35rem;
    }
}
